Fork me on GitHub
#cider
<
2016-02-19
>
catonano19:02:43

Hello, firstly thank you so much for the awesome work on Cider. After hearing Bug talking about Cider, today I freshly installed it via MELPA and I tested a cool feature that got me interested: the injection of the nREPL middleware in my project. Too bad this is what I get WARNING: CIDER's version (0.11.0-snapshot) does not match cider-nrepl's version (0.9.1). Things will break! user>

arrdem20:02:06

catonano: so the thing you can do is use [clojure-emacs/cider-nrepl "[0.9.1,)"] or whatever the artifact name is sorry I'm forgetting in you profile.clj. It's a version range which will cause Leiningen to pull down the very latest build of cider-nrepl which should be consistent with the melpa snapshot.

arrdem20:02:36

technically speaking this is kinda unstable, practically speaking I've been doing this for three years with maybe one day of downtime.

arrdem20:02:46

alternatively you could use melpa-stable to install CIDER 0.9.1

benedek21:02:03

@catonano can u paste what shows up on ur minibuffer (see it in *Messages*) eg what are the params for lein/boot when you jack-in?

benedek21:02:36

@arrdem there is a new feature in 0.11 which injects the middleware so u don't need to add anything to ur profiles.clj

arrdem22:02:29

@benedek: right I remeber seeing that. sorry.

benedek22:02:34

No worries. Really interested at this point if there is a bug tho ;)

roberto22:02:00

I upgraded to cider 0.10 and now I’m getting this error symbol's function definition is void clojure-project-dir

catonano22:02:48

@benedek: there's a *nrepl-messages my-project-name buffer. It contains the traffic between the Emacs side and the nREPL side. Is taht the one you want ?

catonano22:02:17

Anyway, this is the plain old Messages form Emacs Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/git-init.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Making nrepl-create-client-buffer-function local to nrepl-server openArpa while let-bound! Making nrepl-use-this-as-repl-buffer local to nrepl-server openArpa while let-bound! Starting nREPL server via lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.12\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.11.0-SNAPSHOT\"\] -- repl :headless... You can run the command `cider-jack-in' with C-c M-j Starting nREPL server via lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.12\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.11.0-SNAPSHOT\"\] -- repl :headless... nREPL server started on 46317 nREPL: Establishing direct connection to localhost:46317 ... nREPL: Direct connection established Connected. This REPL is yours to command! delete-backward-char: Text is read-only [2 times] Beginning of buffer [11 times] End of buffer Beginning of buffer [12 times] Mark set End of buffer [11 times] End of buffer

benedek22:02:28

Hmmm that is what I meant

benedek22:02:30

What is in ur profiles.clj? (Although it should be ovverriden by the update-in)

benedek22:02:43

further questions ;) what is ur lein version?

roberto22:02:49

i had to upgrade clojure-mode

roberto22:02:23

it is sort of hit and miss when upgrading packages

roberto22:02:39

i have cider working fine now