This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-05
Channels
- # adventofcode (246)
- # aleph (5)
- # aws (7)
- # beginners (161)
- # boot (3)
- # calva (42)
- # cider (40)
- # clara (10)
- # cljdoc (7)
- # cljs-dev (40)
- # cljsrn (6)
- # clojure (170)
- # clojure-dev (8)
- # clojure-greece (2)
- # clojure-italy (15)
- # clojure-kc (2)
- # clojure-new-zealand (13)
- # clojure-nl (13)
- # clojure-russia (3)
- # clojure-spec (5)
- # clojure-uk (160)
- # clojurescript (72)
- # clojurex (1)
- # cursive (7)
- # data-science (9)
- # datascript (1)
- # datomic (120)
- # devcards (4)
- # emacs (18)
- # figwheel-main (10)
- # fulcro (34)
- # kaocha (3)
- # luminus (1)
- # lumo (6)
- # music (1)
- # nrepl (23)
- # off-topic (2)
- # pedestal (4)
- # re-frame (42)
- # reagent (36)
- # reitit (10)
- # ring-swagger (21)
- # shadow-cljs (124)
- # spacemacs (6)
- # tools-deps (14)
- # unrepl (3)
- # vim (2)
Still wrestling with my issues from yesterday. I’m running lein repl
and lein figwheel
in a project. I’m connecting to both through spacemacs + cider. Sometimes I can do C-C to send the top-level form under my cursor to the clj repl but in cljs I get that “No CLJS repls in the current session”. Also of note is cider says the cljs repl is indefinitely in a pending state.
In the mean time I’ll read some docs about working with figwheel + cider and see if there’s a step in the process I’m missing. 🙂
That connects to an existing cljs repl. To start a new one you use cider-jack-in-cljs
In the past I was able to start a CLJS Figwheel REPL just fine from Cider (via jack-in), but I’ve never found how to connect to an already running one. I’m not even sure if Figwheel actually starts a nRepl for you by default.
(defun cider-copy-jack-in-command ()
(interactive)
(kill-new (plist-get (cider--update-jack-in-cmd (cider--update-project-dir '()))
:jack-in-cmd)))
@orestis I’m using a luminus template that does start nrepl
Figwheel: Starting nREPL server on port: 7002
:figwheel
{:http-server-root "public"
:server-logfile "log/figwheel-logfile.log"
:nrepl-port 7002
:css-dirs ["resources/public/css"]
:nrepl-middleware
[cider/wrap-cljs-repl cider.piggieback/wrap-cljs-repl]}
After running cider-copy-jack-in-command
I got
/Users/jay/bin/lein update-in :dependencies conj \[nrepl\ \"0.4.5\"\] -- update-in :plugins conj \[com.billpiel/sayid\ \"0.0.17\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.19.0-SNAPSHOT\"\] -- repl :headless :host localhost
but it seemed to have targeted my clj repl and not my cljs repl