New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"There are too many JS runtimes, don't know which to eval in." #207
Comments
Which version are you on? There was a bug related to this a while ago (2.0.50ish I think) but it seems to work now?
|
Hi @thheller , I encountered an issue, perhaps also have some relationship with this The shadow-cljs version: 2.1.23 I am following the guide https://github.com/thheller/shadow-cljs/wiki/Cider And this is my shadow-cljs.edn: {:dependencies [[org.clojure/core.async "0.4.474"]
[cider/cider-nrepl "0.17.0-SNAPSHOT"]]
:source-paths ["src"]
:cache-root ".shadow-cljs"
:builds {:main {:target :npm-module
:output-dir "lib"
:compiler-options {:source-map true}}}} user> (shadow.cljs.devtools.api/nrepl-select :main)
To quit, type: :cljs/quit
[:selected :main]
user> (js/console.log "hello")
There is no connected JS runtime.
user> (js/console.log "hello")
There is no connected JS runtime.
user> :cljs/quit
:cljs/quit
user> (shadow.cljs.devtools.api/nrepl-select :main)
To quit, type: :cljs/quit
[:selected :main]
user> (js/console.log "hello")
There is no connected JS runtime.
user> (println "hello")
There is no connected JS runtime.
user> |
REPL for a
You can run |
@thheller Cool! I found |
Not currently. Please open a separate ticket for that. |
Sorry both theller and Lokeh 😂 |
I had an out of date version of shadow-cljs. Closing. |
Currently building for Node.js. If I kill the built Node.js app, start it, and attempt to evaluate something via nREPL, I get the message:
There are too many JS runtimes, don't know which to eval in.
Steps to reproduce:
:nodejs
and starts an nREPL servershadow-cljs watch app
node target/out/app.js
4a. Start the CLJS REPL:
(shadow.cljs.devtools.api/nrepl-select :app)
node target/out/app.js
(+ 1 1)
Expected result: REPL prints the answer
1
Actual resuult: REPL prints the message
There are too many JS runtimes, don't know which to eval in.
The text was updated successfully, but these errors were encountered: