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

Trouble connecting CIDER to the repl #104

Open
favetelinguis opened this issue Dec 19, 2015 · 6 comments
Open

Trouble connecting CIDER to the repl #104

favetelinguis opened this issue Dec 19, 2015 · 6 comments

Comments

@favetelinguis
Copy link

Im using luminus with +cljs and it is my understanding that this gives me two repls, one from lein figwheel wich gives my ClojureScript and one from lein run for Clojure.

For Clojure the documentation is found here:
http://www.luminusweb.net/docs/repl.md

For CLJS it is found here:
On yogthos.net blog.

However Im not able to use this documentation and get it working with my CIDER Emacs configuration.
The steps i do is:

  1. C-c M-c
  2. select localhost
  3. select one of two running .lein:45128 (how can i connect the names here to the correct repl, for example figwheel vs clj repl?)

The error im getting is:
nREPL: Direct connection failed

I have included the nrepl-cider plugin under dev plugins.

Is there any documentation on using luimus with cider repl that im missing or can the existing documentation be updated to help me get this working?

@yogthos
Copy link
Member

yogthos commented Dec 19, 2015

Yeah, Figwheel changed a bit since that post unfortunately. Here's the official wiki for getting the REPL working.

@favetelinguis
Copy link
Author

Thanks for the reply, however I want to use CIDER for this not inf-clojure, I always use cider for my day to day Clojure stuff.

Correct me if im wrong, but there are two nREPL sessions avaliable when working with a +cljs project. The figwheel one is only for the ClojureScript part and then I also have an ordinary CLJ REPL. As a default I should be able to connect to the CLJ one with localhost:7000 and figwheen localhost:7002?

@yogthos
Copy link
Member

yogthos commented Dec 19, 2015

Yeah, the repl on 7000 is the one started by the app when you do lein run and the one on 7002 is started by the figwheel plugin. The second one is the one you want to use for cljs.

I use cursive myself, so I don't actually know much about CIDER setup for figwheel unfortunately.

@manandearth
Copy link

manandearth commented Sep 11, 2018

It is quite straight forward to add cider-nrepl, I could add it to the documentation and ask for a PR if it is required. basically embedding the Cider nREPL is well documented in the cider doc

It involves adding the dependency and a handler.

as for figwheel and cljs see this SO link

@stardiviner
Copy link

Any updates on this?

@ragone
Copy link

ragone commented Nov 13, 2020

This resolved my issue. clojure-emacs/cider#2547 (comment)

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

5 participants