Fork me on GitHub
#kaocha
<
2023-03-28
>
David Yang16:03:36

Is there a way to avoid namespaces that are reloaded by watch? I think tools.namespace is reloading namespaces that aren’t typically loaded and causing errors (I have a bunch of scratch files that aren’t loaded normally by integrant or boot, but are reloaded by tools.namespace)

imre16:03:42

have you tried setting refresh dirs for tns?

David Yang16:03:43

no I haven’t - is that something I would configure through kaocha or at the deps.edn?

imre16:03:37

I haven't encountered this problem with kaocha so far but I use https://cljdoc.org/d/org.clojure/tools.namespace/0.3.1/api/clojure.tools.namespace.repl#set-refresh-dirs in a few projects. I call it in user.clj

David Yang16:03:53

I added those paths to :ignore but I think that ignores watching them, not reloading them