LightTable / Clojure

Light Table Clojure language plugin
MIT License
99 stars 51 forks source link

Automatic recompilation and load of file-based namespace #100

Closed git-kundan closed 3 years ago

git-kundan commented 3 years ago

It seems like required file-based namespaces are compiled the first time, and then don't get recompiled and reloaded if we make any changes in the required file.

To recompile and reload the changes in required file, I have to disconnect (Editor: disconnect clients attached to editor) and then recompile. I see the re-connection messages (Reconnecting... Retrieving Deps....) and then the changes done in required files are reintegrated.

Is this the designed behavior? Shouldn't changes to required files be automatically integrated. Is there an alternate way/setting with better workflow than disconnection-reconnection?

git-kundan commented 3 years ago

Ok, I just realized that this relates to Clojure's way of working, rather than that of Light Table. Putting in the :reload flag while requiring libraries generates desired behavior (force-reload of required library). Example...

       (:require [my-stuff.pricing :as pricing] :reload)

Closing this issue.