-
Notifications
You must be signed in to change notification settings - Fork 7
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
DEBUG: unknown status need-input when trying to REPL ClojureScript #358
Comments
Hmm, that's interesting - I suspect this is an artefact of how the CLJS REPL works. That status means that the REPL server is asking for input from in, which isn't currently supported. I'll take a look at this, I'm fixing a bunch of CLJS issues for the next release. |
The same with (clojure.main/repl). Code from http://crossclj.info/ns/marosoft-clj/latest/marosoft.debug.html Works fine from lein repl but not in Cursive. |
You can use piggieback to launch a cljs repl on top of an nREPL session! This currently works with the Cursive clojure plugin in IntelliJ. |
I type this once I've started a regular REPL and it works perfectly : (require 'weasel.repl.websocket)
(cemerick.piggieback/cljs-repl
:repl-env (weasel.repl.websocket/repl-env
:ip "0.0.0.0" :port 9001)) then in your cljs file : (ns my.cljs.core
(:require [weasel.repl :as ws-repl]))
(ws-repl/connect "ws://localhost:9001" :verbose true) It's all explained here : https://github.com/tomjakubowski/weasel |
Just for reference, today I saw this video from Tim Baldridge: https://tbaldridge.pivotshare.com/media/cursive-and-clojurescript/12952 It's not free, but it's nice content (as the rest of the videos, it worth it). So, if someone else gets into this trouble, I recommend this video. |
@cursiveclojure It might be possible for Cursive to support input with nREPL. The reason: If you run
and in this case REPL-y is being used with nREPL, if I am understanding correctly from the prelude when starting
This may have to do with this bit of code in REPL-y properly handling this bit of code in nREPL. These are all just guesses. I'm thinking "if REPL-y can support reading from |
Yes, it's definitely possible, I've just never got around to doing it. There's some trickiness around how to get that input (a popup? Or remove the restriction that input should be a valid form before sending it?), but it's all solvable. I'll try to do this soon. |
Thanks @mfikes, both options work beautifully, i just had to update the commands for the second option to (require
'[cljs.repl :as repl]
'[cemerick.piggieback]
'[ambly.core :as ambly]) and (cemerick.piggieback/cljs-repl
(ambly.core/repl-env :choose-first-discovered true)) Great work btw ! |
@gphilipp Thanks. Updated the Ambly Wiki. |
You're welcome. I've noticed another typo in this page, |
For posterity, Mike replied on twitter that it was on purpose. |
+1 |
Hi, I'm trying to REPL my browser, and I do like I do on the terminal, first I launch the default REPL and go with:
When I do that it correct starts the REPL server, the browser is able to connect, but I'm unable to send any other commands after that... here follows an example (a new unknow status input happens everytime I try to Interrupt the Current execution)
The text was updated successfully, but these errors were encountered: