boot-garden icon indicating copy to clipboard operation
boot-garden copied to clipboard

Watch fileset tmpdirs for changed namespaces instead of `:source-dirs`

Open martinklepsch opened this issue 10 years ago • 2 comments

Also, if input-directories are watched, it's possible that ns-tracker will see some namespaces as changed before the change is synchronized to Boot temp dir and thus classpath.

via https://github.com/pandeiro/boot-http/pull/27#issuecomment-151656362

martinklepsch avatar Oct 27 '15 21:10 martinklepsch

Hi Martin,

I would love to help out and fix this issue (running into it...). Could you maybe give me some hints on how to get started?

Cheers,

JH

yeehaa123 avatar Feb 08 '16 21:02 yeehaa123

@yeehaa123 sure. So basically what we're doing is we pass the value of :source-paths to our namespace tracking pod (line 41). Because these directories are not actually on the classpath and files are synced with a small delay the mentioned error can happen.

What we now need to do is to track namespaces in the directories that are actually on the classpath. I think a good way to get those directories might be user-dirs (api docs).

Hope this gets you going, good luck! :)

martinklepsch avatar Feb 08 '16 21:02 martinklepsch