clr

mauricio.szabo 2023-07-31T19:09:04.949689Z

Hi folks - what's the easiest, fastest way to start a nREPL server on Clojure CLR? I'm trying to run it on a CI server for a tool I'm developing

mauricio.szabo 2023-08-01T14:36:09.062259Z

Potion worked for me, thanks 🙂

👍 1
pez 2023-07-31T21:14:44.101869Z

Something like (clojure.tools.nrepl/start-server! {:port 1667})

mauricio.szabo 2023-08-01T01:49:19.861969Z

But how do I actually install/make clojure.tools.nrepl visible?

mauricio.szabo 2023-08-01T01:49:38.801549Z

(Literally first time I'm trying to run ClojureCLR 😅 )

jamesd3142 2023-08-01T03:01:19.670339Z

Do you have the dotnet command line tool in your environment? If so then you could use potion: https://github.com/Dangercoder/potion

seancorfield 2023-08-01T04:33:14.359929Z

@mauricio.szabo You can use an env var to provide a path of places to load code from, if that helps:

$Env:CLOJURE_LOAD_PATH='src'; Clojure.Main -m starter.hello
I can't remember what separator you need for multiple paths (it's been a while and July has been... distracting).

pez 2023-08-01T06:30:01.743049Z

Maybe having a look at this mini repo can help: https://github.com/PEZ/clojure-clr-starter