Fork me on GitHub
#cider
<
2016-12-11
>
radon21:12:14

I’m getting

Warning: refactor-nrepl requires org.clojure/clojure 1.7.0 or greater.
Warning: refactor-nrepl middleware won't be activated due to missing dependencies.
when I cider-jack-in outside a Clojure project, as described at https://github.com/clojure-emacs/cider-nrepl/issues/384. Does anyone know offhand how to fix that?

benedek23:12:47

what is your leiningen version @radon?

radon23:12:02

Leiningen 2.6.1 on Java 1.8.0_31 Java HotSpot(TM) 64-Bit Server VM

benedek23:12:08

anything in your ~/.lein/profiles.clj ?

radon23:12:43

Lots, but the problem reproduces even after I rm ~/.lein/profiles.clj.

benedek23:12:39

haha ok. strange. i can jack in noprobs outside a project...

radon23:12:02

What if you just run

/usr/local/bin/lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.12\"\ \:exclusions\ \[org.clojure/clojure\]\] -- update-in :plugins conj \[refactor-nrepl\ \"2.3.0-SNAPSHOT\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.15.0-SNAPSHOT\"\] -- repl :headless
in a terminal?

radon23:12:21

This is what I get…

% /usr/local/bin/lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.12\"\ \:exclusions\ \[org.clojure/clojure\]\] -- update-in :plugins conj \[refactor-nrepl\ \"2.3.0-SNAPSHOT\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.15.0-SNAPSHOT\"\] -- repl
Warning: refactor-nrepl requires org.clojure/clojure 1.7.0 or greater.
Warning: refactor-nrepl middleware won't be activated due to missing dependencies.
Warning: refactor-nrepl requires org.clojure/clojure 1.7.0 or greater.
Warning: refactor-nrepl middleware won't be activated due to missing dependencies.
Warning: refactor-nrepl requires org.clojure/clojure 1.7.0 or greater.
Warning: refactor-nrepl middleware won't be activated due to missing dependencies.
nREPL server started on port 51941 on host 127.0.0.1 - 
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_31-b13
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=>

radon23:12:48

Wow, when I wiped my .m2 it’s still downloading all the dependencies from my profiles.clj, even though I deleted that file. This probably has something to do with the problem.

benedek23:12:53

strangely i get the same when running from cli

radon23:12:32

When you M-x cider-jack-in, what is the command that CIDER uses to launch the REPL? It shows up in *Messages*.

benedek23:12:56

you can try to set cider-jack-in-auto-inject-clojure as a workaround?!

benedek23:12:26

lein or boot depending on the project

radon23:12:12

Well, that fixes it. But I’m still rather disturbed by the error.

benedek23:12:41

something pulls in a wrong clojure version most likely

radon23:12:52

Well, it still launches a Clojure 1.8 REPL.