This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-24
Channels
- # architecture (4)
- # aws (1)
- # beginners (76)
- # boot (172)
- # cider (17)
- # cljs-dev (10)
- # cljs-experience (24)
- # cljsrn (45)
- # clojure (129)
- # clojure-berlin (1)
- # clojure-finland (1)
- # clojure-italy (8)
- # clojure-seattle-old (1)
- # clojure-sg (1)
- # clojure-spec (31)
- # clojure-uk (28)
- # clojurescript (88)
- # cursive (11)
- # data-science (1)
- # datomic (44)
- # fulcro (48)
- # hoplon (5)
- # jobs (3)
- # jobs-discuss (1)
- # leiningen (6)
- # luminus (42)
- # lumo (17)
- # off-topic (9)
- # om (29)
- # onyx (15)
- # pedestal (7)
- # protorepl (20)
- # re-frame (24)
- # reagent (46)
- # ring-swagger (2)
- # specter (2)
- # sql (3)
- # uncomplicate (58)
- # unrepl (29)
- # yada (5)
hi all i'm trying to use shadow's cljs repl with cider
I cider-connect
to shadow's nrepl port, then (require '[shadow.cljs.devtools.api :refer [repl]])
and (repl :my-build)
however I can't type directly into the new cljs repl (brought by the (repl ...)
above)
instead emacs shows up a Stdin:
input dialog
and whatever i typed in that stdin dialog will be evaluated in the browser
shawdow's wiki says something about this at https://github.com/thheller/shadow-cljs/wiki/REPL
Quoted from the above: This DOES NOT WORK while in nREPL unless your nREPL client supports needs-input
but I don't understand what that means
btw, the cljs-repl works nornmally if I just start it from a clj-repl outside of emacs, eg with boot repl -c
@myguidingstar I tried and could not make it work either. One thing that differs that comes to mind is the prompt
: you need another regex
I've just got an answer from shadow-cljs
i should use (shadow/nrepl-select ...) instead of (shadow/repl ...)
Lol I was going to add...btw the wiki
has that: https://github.com/thheller/shadow-cljs/wiki/REPL
I was working on a shadow-mode
a bit a couple of weeks ago, but it was more of an inferior
mode than a fully fledged cider
experience
needs-input is used when something tries to read from *in*
and can't get anything. The client should prompt the user for input at that time.