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

Stale Results with Auto

Open deadghost opened this issue 8 years ago • 2 comments

[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.

deadghost avatar Dec 30 '16 14:12 deadghost

Do you mean it compiles only once or it doesn't compile as often as you save

noxecane avatar Jul 12 '17 19:07 noxecane

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

fl00r avatar Aug 15 '18 20:08 fl00r