cemerick / austin

The ClojureScript browser-REPL rebuilt stronger, faster, easier.
510 stars 31 forks source link

lein do cljsbuild once, repl vs M-x nrepl from Emacs #30

Closed txrev319 closed 10 years ago

txrev319 commented 10 years ago

Hi,

On the exact same machine, when I do "M-x nrepl", I get the following:

; nrepl.el 0.2.0 (Clojure 1.5.1, nREPL 0.2.3)
user> (def repl-env (reset! cemerick.austin.repls/browser-repl-env
                (cemerick.austin/repl-env)))
Browser-REPL ready @ http://localhost:35229/6081/repl/start
#'user/repl-env
user> (cemerick.austin.repls/cljs-repl repl-env)
IllegalStateException Can't change/establish root binding of: *cljs-repl-options* with set  clojure.lang.Var.set (Var.java:233)

Yet, if I do "lein do cljsbuild once, repl" I get:

lein do cljsbuild once, repl
Compiling ClojureScript.
nREPL server started on port 32794
REPL-y 0.2.0
Clojure 1.5.1
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)

bcrepl=> (def repl-env (reset! cemerick.austin.repls/browser-repl-env     (cemerick.austin/repl-env)))
Browser-REPL ready @ http://localhost:51098/5677/repl/start
#'bcrepl/repl-env

Clearly, "M-x nrepl" is not setting up something correctly. What should I read up on / try?

Thanks!

txrev319 commented 10 years ago

This has also been resolved. Answer:

https://github.com/cemerick/piggieback