martinklepsch / boot-garden

Boot task to compile Garden stylesheets.
Eclipse Public License 1.0
37 stars 6 forks source link

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

Open martinklepsch opened 8 years ago

martinklepsch commented 8 years ago

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

yeehaa123 commented 8 years ago

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

martinklepsch commented 8 years ago

@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! :)