Fork me on GitHub
#cider
<
2019-05-02
>
Risetto08:05:34

Is it possible to somehow in my emacs config make sure a specific version of nrepl is used?

Risetto08:05:51

Not just when jacking in, also on cider-connect

lispyclouds08:05:28

you can put it in your ~/.lein/profiles.clj?

lispyclouds08:05:42

Assuming you're using leiningen

dpsutton12:05:48

Nrepl creates an nrepl server so it needs a hard dependency on nrepl. This means your choice of lein version dictates what version of nrepl you will get

bozhidar12:05:51

Not really. If you put a different (newer) version in your project deps or profiles.clj it will override the built-in lein version.

dpsutton12:05:03

oh. its just unable to use a lower version? I am mistaken sorry 🙂

bozhidar13:05:20

I think you can’t have lower than the base version, but you can certainly override it with a newer version.

mhcat18:05:31

this happens when I start a repl from my project.clj with cider, and also when I run this in my shell, in the project root:

lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.22.0-SNAPSHOT\"\] -- repl
BUT not if I run that same line to start a repl outside a project. Any ideas? Or should I make a gh issue?

mhcat18:05:27

also hi 🙂

bozhidar19:05:37

I assume you’re on JDK 8 and you’re missing src.zip or tools.jar.

mhcat19:05:22

ah interesting - that could be it. I just switched computers and I'm not having the same problem on this one so I will test that solution later. Thanks for the pointer @bozhidar!

tianshu23:05:04

what could be the cause of error Caused by: java.lang.Exception: namespace 'cider.nrepl.inlined-deps.orchard.v0v5v0-beta2.orchard.java' not found when I launch a repl for a shadow-cljs project.

tianshu23:05:11

I'm sure using the lastest cider-nrepl and latest shadow-cljs.

thheller23:05:44

a bad .cljc file that emits invalid CLJS code

tianshu23:05:04

Emmm. @thheller this is happened in a initial project which have only one cljs file with content (println "hello").

thheller23:05:02

oh right nvm thats not a compiler warning. 😛

tianshu23:05:44

maybe this is the cause? Caused by: java.lang.ClassNotFoundException: com.sun.javadoc.ClassDoc

tianshu23:05:57

also found this error

tianshu23:05:13

issue disappear when using oracle jdk-11.🙃 looks like com.sun.javadoc.ClassDoc not exists in openjdk-8. not sure about other java versions.