Fork me on GitHub
#emacs
<
2021-11-03
>
zackteo06:11:19

Hello! If I'm am getting WARNING: CIDER 1.2.0-snapeshot requires cider-nrepl 0.27.2, but you are currently using cider-nrepl 0.21.1. The versioon mismatch might break some functionality! where should I be checking to fix this? Specifically, cider-jack-in works in one project (does not show this error) but not in another. My suspicions are the project.clj but am not sure. Any suggestions? Or are there any quick fixes?

zackteo07:11:07

okay I added it to my plugins part of my project.clj, seems to work :thinking_face:

zackteo07:11:53

also realised i should ask in the cider channel

jasonbell10:11:48

I’ve got an M1 Mac Mini, loving it but one issue. I need to dig out the reference. I think it was to do with cljr-refactor

vemv10:11:51

let us know, I help out maintaining that one

jasonbell10:11:10

Will do @U45T93RA6 - thanks!

vemv10:11:00

what's the symptom? might ring a bell

jasonbell10:11:14

Are you sure you want to run `cider-jack-in' without a Clojure project? (y or n) y
[nREPL] Starting server via /Users/jasonbell/bin/lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.13\"\ \:exclusions\ \[org.clojure/clojure\]\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.18.0\"\] -- repl :headless :host ::...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: clojure.lang.Compiler$CompilerException: Syntax error compiling var at (cider/nrepl/middleware/pprint.clj:73:3).
#:clojure.error{:phase :compile-syntax-check, :line 73, :column 3, :source "cider/nrepl/middleware/pprint.clj", :symbol var}
 at clojure.lang.Compiler.analyzeSeq (Compiler.java:7119)
    clojure.lang.Compiler.analyze (Compiler.java:6793)
    clojure.lang.Compiler.analyze (Compiler.java:6749)
    clojure.lang.Compiler$InvokeExpr.parse (Compiler.java:3824)
    clojure.lang.Compiler.analyzeSeq (Compiler.java:7113)
    clojure.lang.Compiler.analyze (Compiler.java:6793)
Emacs 26.1 btw

vemv10:11:33

doesn't look related to clj-refactor.el to me Your whole stack is pretty outdated :/ nowadays it's nrepl/nrepl (instead of org.clojure's nrepl), and cider-nrepl is at 0.27.2

jasonbell10:11:50

Fair enough. I’m from the school of “it’s working fine so I won’t break it” 🙂

jasonbell10:11:17

So where do I change the nrepl version please?

vemv10:11:17

if you make cider.el be at latest it will inject the right stuff for you (nrepl and cider-nrepl alike) same for clj-refactor.el (which injects refactor-nrepl)

vemv10:11:58

> Fair enough. I’m from the school of “it’s working fine so I won’t break it” same here tbh, but of course that goes down the unsupported route :) it's a tradeoff.

jasonbell10:11:51

👍 Thank you, appreciate your time @U45T93RA6 most kind.

cider 1
roborbro10:11:41

Hi I found this comment on a issue in lispy’s github that helped me using cider and evaluation with the key e but I honestly have no idea as to why: > > (setq cider-jack-in-dependencies > (delete-dups > (append > cider-jack-in-dependencies > lispy-cider-jack-in-dependencies)))

roborbro10:11:57

could somebody help me understand this?

vemv10:11:12

presumably adding lispy-cider-jack-in-dependencies injects JVM clojure code that is needed for whatever Lispy does

thanks3 1
roborbro22:11:56

doesnt make it much clearer but thanks for the try 🙂

vemv22:11:33

I'd look at the definition of lispy-cider-jack-in-dependencies and then check out that one Clojure package

roborbro23:11:14

Ok, thanks for the pointer 🙂