This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
I open a cljs file. I jack into Clojure (NOT ClojureScript). (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl)
Next up will be adding the snippet you mentioned, with the cider-cljs-lein-repl
, and setting up a user.clj
Somewhere I picked up, (setq cider-cljs-lein-repl "(do (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl))”)
For tonight I’ll just be happy that I’m jacked into the browser, though, and figure out how to lessen the number of commands later : )
@mathpunk: Regarding the warning. It may be worth making sure you have updated all your packages. Glad to hear it’s working for you!
@mahinshaw I’ve been @ing the wrong person wheeeee.
@mahinshaw Hm. How do I force an update then? I’ve been just upgrading spacemacs when it becomes available
That should do it. The newer version of cider will actually modify lein deps for you. Are you calling cider-jack-in
or cider-connect
?
It may just be worth bumping the cider-nrepl version in your lein profile anyways so you are up to date
Well, I was reading bhauman’s explanation. First time, I tried lein repl
and starting figwheel inside it, and cljs-repl, then connecting. Second time, I jacked into a clojure repl, started figwheel, started cljs-repl.
What do I need to have in my profile? this is a new machine, it’s got nothin’, and what I gathered from the newer CIDER docs, I don’t need things like alembic
You shouldn’t need anything if you call cider-jack-in
, because it will inject the deps for you. If you call cider-connect
(to connect to an nrepl session from the command line). you need to have the deps in your ~/.lein/profile.clj
I have this { :repl {:plugins [[cider/cider-nrepl "0.13.0-SNAPSHOT”] [refactor-nrepl "2.3.0-SNAPSHOT"]]}}
in my profile.
That should be the emacs package. Which you should get when you update packages in spacemacs/emacs
I added (setq cider-cljs-lein-repl "(do (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl))”)
based on something in cider docs
currently, I do not have figwheel running, and as expected, localhost:3449 doesn’t connect
The idea is, set up Spacemacs to, when jacking in to ClojureScript, to instead start a Clojure repl, load some of sidecar, and start a cljs-repl, right?
@mahinshaw ^Getting there...