Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Standalone doesn't work with Clojure 1.5 #125

Closed
sfnelson opened this Issue · 4 comments

2 participants

@sfnelson

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(Var.java:233)
at clojure.lang.RT$1.invoke(RT.java:239)
at clojure.core$eval368.invoke(NO_SOURCE_FILE)
at clojure.lang.Compiler.eval(Compiler.java:6619)
at clojure.lang.Compiler.eval(Compiler.java:6608)
at clojure.lang.Compiler.eval(Compiler.java:6608)
at clojure.lang.Compiler.eval(Compiler.java:6582)
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: #()
@trptcolin
Owner

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
@trptcolin
Owner

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.

@sfnelson

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

@trptcolin
Owner

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.