Open Conaws opened 8 years ago
You basically have 2 choices if you want to use Figwheel with Cider:
lein figwheel
and then M-x cider-connect
to the port 7002 (default). At this point you can switch to the clojurescript repl with this:(use 'figwheel-sidecar.repl-api)
(cljs-repl)
user> (use 'figwheel-sidecar.repl-api)
nil
user> (start-figwheel!)
You can see more details there :
https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl
In Emcas you could also set
(setq cider-cljs-lein-repl "(do (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl))")
in your config.
The template is working well with cider 0.17.0
using plain-old C-c M-J
Note regarding cider-cljs-lein-repl
that this variable is being obsoleted with 0.17.0
.
Also, when using the template with cider 0.17.0
today, I did have to disable refactor-nrepl "2.3.1"
due to an incompatibility.
Cider-jack-in doesn't seem to start up figwheel, and the figwheel docs claim cider integration is 'very advanced'.
Does inclusion of the cider option handle figwheel/cider integration -- or does it just assume you won't use figwheel or devcards while using cider?
I'm normally an inf-clojure user -- but seeing the +cider was too tempting not to try out