Standalone doesn't work with Clojure 1.5 #125

Closed
sfnelson opened this Issue Sep 24, 2013 · 4 comments

Comments

Projects
None yet
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

This comment has been minimized.

Show comment Hide comment
@trptcolin

trptcolin Feb 21, 2014

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.

Owner

trptcolin commented Feb 21, 2014

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

This comment has been minimized.

Show comment Hide comment
@trptcolin

trptcolin Mar 7, 2014

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.

Owner

trptcolin commented Mar 7, 2014

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

This comment has been minimized.

Show comment Hide comment
@sfnelson

sfnelson Mar 12, 2014

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

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

@trptcolin

This comment has been minimized.

Show comment Hide comment
@trptcolin

trptcolin Mar 12, 2014

Owner

Thanks for the update!

Owner

trptcolin commented Mar 12, 2014

Thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment