Skip to content
Daniel Szmulewicz edited this page Aug 20, 2015 · 9 revisions

Reloading modified source files using clojure.tools.namespace.repl/refresh (eg. by following Stuart's workflow) may return surprising results at the beginning:

boot.user=> (require '[clojure.tools.namespace.repl :as repl])
nil

boot.user=> (repl/refresh)
:reloading ()
:ok

No files reloaded? Looks like they are not found by c.t.n.repl, or being more specific scanned directories are simply incorrect. As the doc says directories may be overwritten by set-refresh-dirs:

boot.user=> (def dirs (get-env :directories))
boot.user=> (apply repl/set-refresh-dirs dirs)

Then you can reload namespaces, no problems.

Additionally, you can take a look at system, a library optimized for REPL reloading, built with Boot in mind.

Clone this wiki locally