clr

liebs 2025-02-23T21:21:50.290569Z

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.

dmiller 2025-03-31T04:28:15.962139Z

@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?

liebs 2025-03-31T12:47:12.098709Z

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!

dmiller 2025-03-31T12:48:19.927949Z

It could well be a Linux compatibility problem. I'll fire up WSL later today and give it a try.

liebs 2025-03-31T12:48:20.437249Z

Incidentally, inf-clojure-mode seems to work with cljr with no modifications. A felicitous coincidence.

dmiller 2025-04-01T13:21:45.715459Z

Works for me under WSL.

dmiller 2025-02-25T04:43:33.969069Z

I'll take a look.