Fork me on GitHub
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


it should work to use user as :init-ns


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?


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