Fork me on GitHub
#cursive
<
2022-07-11
>
Vincent Pizzo18:07:59

Is there anyway to have Cursive honor the following or achieve the same behavior once can do with disabling reload with tools namespace?

(:require [clojure.tools.namespace.repl :as ctnr])
(ctnr/disable-reload!)
We very occasionally get Cursive reloading our defprotocol namespace which then essentially breaks our code until we do a clean or surgically reload classes. It looks like it just adds a :clojure.tools.namespace.repl/load false to the metadata on the namespace and was wondering if Cursive has any built in logic to do this same thing?

cfleming22:07:51

No, there’s nothing like that at the moment. If it’s a useful thing to do, could you file an issue for it?

Vincent Pizzo22:07:49

Absolutely. Thanks, Colin!

imre20:07:52

Do note that Cursive does not re load namespaces as tns does, it simply loads them, often transitively.