integrant

2020-03-10T19:04:09.006900Z

Hi, when I use integrant.repl to (reset) my system it reloads a lot of namespaces from my dependencies: :reloading (re-frame.db re-frame.loggers re-frame.registrar re-frame.trace re-frame.interceptor re-frame.cofx re-frame.utils re-frame.subs re-frame.std-interceptors......... Is this expected behavior?

kwrooijen 2020-03-10T19:06:44.007100Z

Yes, integrant.repl uses clojure.tools.namespace.repl to do this https://github.com/clojure/tools.namespace/blob/8d632bfcd8ce4f872f9a9cdafb5245c9b10574a0/src/main/clojure/clojure/tools/namespace/repl.clj#L128-L145

2020-03-10T19:08:38.008900Z

Sorry @kevin.van.rooijen, I don't think I was clear enough: I know that it's supposed to reload namespaces that have changed since I last ran (reset). But that shouldn't include my static dependencies (such as re-frame.db etc), right?

2020-03-10T19:09:36.009400Z

I'm assuming something in my config is strange...

kwrooijen 2020-03-10T19:10:15.009800Z

Not sure if that's an integrant issue or a clojure.tools issue

kwrooijen 2020-03-10T19:11:21.011200Z

But I don't think it would be expected

2020-03-10T19:11:34.011700Z

I think you're right, I probably would have the same issue using tools.namespace by itself or when using component

kwrooijen 2020-03-10T19:11:34.011900Z

Since the clojure.tools doc clearly says "files which have changed"

2020-03-10T19:16:17.012300Z

Just found the "cljc + ClojureScript source maps" in https://lambdaisland.com/blog/2018-02-09-reloading-woes

2020-03-10T19:16:27.012700Z

Might be what I'm experiencing.

2020-03-10T19:19:58.013200Z

And using set-refresh-dirs seems to solve the problem!

kwrooijen 2020-03-10T19:25:32.013500Z

Ah that's a good catch

kwrooijen 2020-03-10T19:26:47.014700Z

Of course if you're only using integrant, then that wouldn't help