lein-garden
lein-garden copied to clipboard
Stale Results with Auto
[clojure "1.8.0"]
[lein-garden "0.3.0"]
[garden "1.3.2"]
auto
gives stale results after the initial compile. once
works fine. Everything with working previously so I'm not sure what broke it. I did a lot of things since the working state, the biggest of which was the addition of figwheel. My project has a lot of dependencies so it could be a while before I figure out what's up.
Do you mean it compiles only once or it doesn't compile as often as you save
The problem was in ns-tracker library. You use 0.3.0, while if there is a newer version (0.3.1) it will lead to wrong behavior.
In 0.3.0 when you make a change in some ns it will return all namespaces from the root one to the changed one and 0.3.1 will return only changed ns and it reloading this namespace won't lead to reloading of the main var with your stylesheet.
Workaround is to use explicitly [ns-tracker "0.3.0"]
in your dependencies in project.clj