Hi, I'm noodling around with NREPL and such. For some reason I can't get clojure.tools.nrepl to load from deps-clr.edn unless it's in an alias and I explicitly pass that alias to cljr. Putting it in top-level deps does nothing, whereas in extra-deps it downloads the library from git and loads it, as expected.
@bhlieberman93 Sorry it took so long. Got a little busy with AOT-compile.
Not sure what the problem is. I set up a directory with the following for deps-clr.edn:
{:deps {io.github.clojure/clr.tools.nrepl {:git/tag "v0.1.2-alpha2" :git/sha "a58009f"} }
:paths ["src"] }
From that directly, I ran cljr and loaded nrepl
PS C:\work\temp\testnrepl> cljr -Sforce
Clojure core loaded in 351 milliseconds.
Clojure core loaded in 369 milliseconds.
Clojure 1.12.1-alpha1
user=> (require 'clojure.tools.nrepl)
nil
user=> (clojure.tools.nrepl/start-server! {:host "127.0.0.1" :port 12345})
Started nREPL server at 127.0.0.1:12345
{:socket #object[TcpListener 0xeeb57f "System.Net.Sockets.TcpListener"], :future #object[Future 0x1d997ef {:status :pending, :val nil}]}
(I'm running the ClojureCLR 1.12.1-alpha1. I had left in a print message on core load time. The double load is from the -Sforce -- one run of ClojureCLR to compute the classpath and other info, the second from starting the REPL.)
Are you on Windows or another OS?Linux. I've been off for a month so I'll give this another look and see if I was just doing something dumb. Thanks for checking it out!
It could well be a Linux compatibility problem. I'll fire up WSL later today and give it a try.
Incidentally, inf-clojure-mode seems to work with cljr with no modifications. A felicitous coincidence.
Works for me under WSL.
I'll take a look.