Fork me on GitHub
#leiningen
<
2022-06-29
>
Yehonathan Sharvit03:06:28

Is there a way to launch lein repl without loading any namespace from my project? Two motivations: • Fast startup • Avoid REPL crash when there is a compilation error in one of the namespaces

noisesmith16:07:54

it should work to use user as :init-ns

noisesmith16:07:11

tested locally - comment out :main if any, and specify :init-ns user

Alex Miller (Clojure team)03:06:01

If you have a user.clj, then you'll want to stop having it as the Clojure runtime will load that automatically

Yehonathan Sharvit05:06:14

Is there a way to tell the Clojure runtime not loading user.clj?

eskos07:06:08

That’s built-in in Clojure itself, but you can of course create an user.clj which doesn’t have any requires/imports.