I've started doing the Kit framework https://kit-clj.github.io/docs/guestbook.html. After installation I'm entering clj -M:dev:cider in eshell then using cider-connect to connect to localhost at the port specified. CIDER starts up but I'm getting this warning:
WARNING: CIDER 1.20.0-snapshot requires cider-nrepl 0.57.0, but you're currently using cider-nrepl 0.45.0. The version mismatch might break some functionality!
Kit's deps.edn file has this line of code:
:cider {:extra-deps {nrepl/nrepl {:mvn/version "1.1.0"}
cider/cider-nrepl {:mvn/version "0.45.0"}}
Should I update the cider/cider-nrepl :mvn/version to "0.57.0"? Is this just an out of date deps.edn file? If so should I submit something on Github? Sorry, I don't have much experience with contributing or posting issues to open source projects.
I could also be way off base and this is something wrong with my Emacs/CIDER configuration.precisely. this is just an older version of cider than your version of emacs is expecting. To lay out a broad explanation, emacs needs code to run the development environment and it needs code on the jvm it can talk to. It’s a server/client setup. This is a mismatch in newer client in emacs vs an older server dependency running in the jvm (0.45).
One other thing that may be of interest to you, CIDER will happily set everything up for you automatically. So if you omit all notions of nrepl and cider-nrepl and then do m-x cider-jack-in it will start the jvm process for you (similar to clj -M:dev:cider) but ensure all the correct versions are used
Thank you, but for me the process isn't starting when I use cider-jack-in. The tutorial says to type the command (go) once the REPL starts and go to this url - http://localhost:3000/api/health - to confirm the server is running. But I get this error when I enter the command (go)
Syntax error compiling at (*cider-repl Clojure/questbook:localhost:49261(clj)*:13:7).
Unable to resolve symbol: go in this context
I must be missing a step?what happens when you use cider-jack-in? What do you observe
I suspect the process did start. But it doesn’t have the dev alias which adds env/dev/user.clj to the classpath.
It asks Which command should be used (default clojure-cli):
If I hit enter the REPL starts in the user namespace but the (go) command doesn't work.
This is probably a gap in my CIDER knowledge. I started reading the docs today after watching Bozhidar Batsov's "Deep Dive into CIDER" today on Youtube.
In the meantime, I'll just update deps.edn .
Thank you for chiming in!
yes. the easiest thing to do is update the cider-nrepl version to the version it was expecting. I wouldn’t bother updating github because this version is different for whatever version of CIDER you have in your editor, and neccessarilly will go out of date as new versions are released (which is what you are experiencing right now)