Fork me on GitHub
#nrepl
<
2023-04-06
>
Alex Miller (Clojure team)20:04:32

hey all, when connecting over nrepl, what (if anything) sets the auto-referred vars in the user namespace? For comparison, clojure.main repl uses https://github.com/clojure/clojure/blob/master/src/clj/clojure/main.clj#L355-L359to define what happens. It seems like the nrepl repl does not do that. Could it? If not, where would a user configure such a thing? I assume in :repl-options somehow.

👀 4
Alex Miller (Clojure team)20:04:43

(the reason I am asking is that add-lib support is coming shortly, and while we've automatically refer'ed some new vars in clojure.main, nrepl servers don't get the benefit of that automatically, so you need to at least use the ns before you can use it)