Fork me on GitHub
#nrepl
<
2020-12-07
>
ribelo08:12:55

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

ribelo08:12:50

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

ribelo08:12:31

[email protected] ~/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.

dominicm08:12:13

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

ribelo08:12:56

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

ribelo08:12:59

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

dominicm08:12:15

You should definitely be using -M not -R btw

ribelo08:12:21

[email protected] ~/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.

flowthing09:12:13

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

ribelo09:12:03

removing $HOME/.m2 solved the problem