matcher-combinators icon indicating copy to clipboard operation
matcher-combinators copied to clipboard

cljs-test integration hack conflicting with tools.namespace refresh

Open rafaeldff opened this issue 5 years ago • 1 comments

If we add matcher-combinators as source dependency of a pure clojure project (e.g. via deps :local/root), and try to call clojure.tools.namespace/refresh, it will try to load the namespace matcher-combinators.cljs-test, which requires cljs.test, leading to an error.

rafaeldff avatar Jan 07 '20 14:01 rafaeldff

In the described scenario, what are your clojure.tools.namespace.repl/refresh-dirs?

Generally it's good to explicitly set them. Maybe if they're not, you'll give clojure.tools.namespace.repl/refresh a greater workload than strictly necessary.

Hope it helps!

vemv avatar Feb 12 '20 02:02 vemv

I can confirm that this issue comes up with :local/root usage. Now with midje because the dependency got removed when moving to deps.edn. setting clojure.tools.namespace.repl/refresh-dirs to the current project works to avoid this. I think this is the way to go, thanks for the suggestion @vemv

philomates avatar Feb 08 '23 16:02 philomates