nrepl

https://github.com/nrepl/nrepl || https://nrepl.org
2020-12-07T08:46:55.063300Z

I have a strange problem, which I have no idea what it comes from.

2020-12-07T08:48:50.063500Z

cider stopped working for me, but it's probably not his fault

2020-12-07T08:49:31.064100Z

ribelo@ribelo-xps ~/c/sctrl (master)> clj -R:nREPL -m nrepl.cmdline
-R is deprecated, use -A with repl, -M for main, or -X for exec
WARNING: When invoking clojure.main, use -M
Execution error (FileNotFoundException) at clojure.main/main (main.java:40).
Could not locate nrepl/cmdline__init.class, nrepl/cmdline.clj or nrepl/cmdline.cljc on classpath.

dominicm 2020-12-07T08:52:13.064800Z

@huxley what's in the REPL alias in deps.edn?

2020-12-07T08:52:56.065300Z

:nREPL
            {:extra-deps
             {nrepl/nrepl {:mvn/version "0.8.3"}}

2020-12-07T08:53:59.065600Z

I checked different versions of Java, different versions of Clojure and different versions of nREPL. Always the same error.

dominicm 2020-12-07T08:54:15.066100Z

You should definitely be using -M not -R btw

2020-12-07T08:58:21.066400Z

ribelo@ribelo-xps ~/c/sctrl (master) [1]> clj -M:nREPL -m nrepl.cmdline
DEPRECATED: Libs must be qualified, change criterium => criterium/criterium (/home/ribelo/.clojure/deps.edn)
Execution error (FileNotFoundException) at clojure.main/main (main.java:40).
Could not locate nrepl/cmdline__init.class, nrepl/cmdline.clj or nrepl/cmdline.cljc on classpath.

flowthing 2020-12-07T09:15:13.066500Z

That should work. Can you try clj -Srepro ...? Also, just a sanity check: is :nREPL under the :aliases key in your deps.edn?

2020-12-07T09:19:03.066800Z

removing $HOME/.m2 solved the problem