Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Standalone doesn't work with Clojure 1.5 #125

sfnelson opened this Issue · 4 comments

2 participants


Standalone fails when in-ns is called from init code as var bindings have not been established:

Exception in thread "main" java.lang.IllegalStateException: Can't change/establish root binding of: *ns* with set
at clojure.lang.Var.set(
at clojure.lang.RT$1.invoke(
at clojure.core$eval368.invoke(NO_SOURCE_FILE)
at clojure.lang.Compiler.eval(
at clojure.lang.Compiler.eval(
at clojure.lang.Compiler.eval(
at clojure.lang.Compiler.eval(
at clojure.core$eval.invoke(core.clj:2852)
at reply.eval_modes.standalone$main.invoke(standalone.clj:38)

Standalone init should be called using the clojure.core/repl :init argument instead.

From clojure.core/repl:

     - :init, function of no arguments, initialization hook called with
       bindings for set!-able vars in place.
       default: #()

Can you show me exactly what you're doing to get this error? Like what version of REPLy, the lein version if applicable, any command-line flags or profiles entries, etc.

I can't seem to reproduce it via the command line or via leiningen, so I'd be grateful if you could point me in the right direction.

@trptcolin trptcolin closed this in fff1fbc

I'm closing this, as I can't reproduce it (and also just unified the nrepl & non-nrepl workflows). Feel free to re-open if you can provide me some details with which to reproduce.


Sorry for not replying before. I can't reproduce either.


Thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.