Skip to content
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

Cider Documentation #111

Open
Conaws opened this issue Mar 27, 2016 · 3 comments
Open

Cider Documentation #111

Conaws opened this issue Mar 27, 2016 · 3 comments

Comments

@Conaws
Copy link

Conaws commented Mar 27, 2016

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

@Frozenlock
Copy link
Contributor

You basically have 2 choices if you want to use Figwheel with Cider:

  • Start Figwheel using 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)
  • Start Cider and then, from within the repl, start figwheel:
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

@ladz
Copy link

ladz commented Aug 11, 2017

In Emcas you could also set

(setq cider-cljs-lein-repl "(do (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl))")

in your config.

@codeasone
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants