Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cannot start a second ClojureScript REPL
la-mer:cljs chas$ script/repl
Clojure 1.4.0
user=> (require '[cljs.repl :as repl])
nil
user=> (require '[cljs.repl.rhino :as rhino])
nil
user=> (repl/repl (rhino/repl-env))
"Type: " :cljs/quit " to quit"
ClojureScript:cljs.user> (+ 1 2 3)
6
ClojureScript:cljs.user> :cljs/quit
nil
user=> (repl/repl (rhino/repl-env))
"Type: " :cljs/quit " to quit"
ClojureScript:cljs.user> (+ 1 2 3)
"Error evaluating:" (+ 1 2 3) :as "((1 + 2) + 3);\n"
org.mozilla.javascript.EcmaError: TypeError: Cannot read property "StringBuffer" from undefined (cljs/core.cljs#6154)
at cljs/core.cljs:6154 (pr_sb)
at cljs/core.cljs:6168 (pr_str_with_opts)
at cljs/core.cljs:6212 (anonymous)
at cljs/core.cljs:6219 (anonymous)
at <cljs repl>:7
nil
ClojureScript:cljs.user>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.