For some reason, when using exec-env through cljs.repl/repl
the default namespace isn't initially set-up correctly causing syntax
errors in the generated code.
nREPL server started on port 61111 on host 127.0.0.1 - nrepl://127.0.0.1:61111
REPL-y 0.3.1
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)
Results: Stored in vars *1, *2, *3, an exception in *e
user=> (cljs.repl/repl (cemerick.austin/exec-env))
Browser-REPL ready @ http://localhost:61114/2222/repl/start
To quit, type: :cljs/quit
ClojureScript:cljs.user> (def n 1)
"Error evaluating:" (def n 1) :as ".n = 1"
#<SyntaxError: Parse error>
No stacktrace available.
nil
nREPL server started on port 61126 on host 127.0.0.1 - nrepl://127.0.0.1:61126
REPL-y 0.3.1
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)
Results: Stored in vars *1, *2, *3, an exception in *e
user=> (def env (cljs.repl.rhino/repl-env))
#'user/env
user=> (cljs.repl/repl env)
To quit, type: :cljs/quit
ClojureScript:cljs.user> (def n 1)
1
For some reason, when using exec-env through cljs.repl/repl the default namespace isn't initially set-up correctly causing syntax errors in the generated code.
[com.cemerick/austin "0.1.4"] [org.clojure/clojurescript "0.0-2156"]