clj-on-windows

For those interested in making clj on Windows https://dev.clojure.org/jira/browse/TDEPS-67. Also see https://github.com/littleli/scoop-clojure.
MityaSaray 2020-12-16T12:46:50.111800Z

Hello, i`ve installed wsl and put my clojure program inside it. Problem is i cannot access nrepl from windows, but i can access API, open website etc. Anyone dealt with problem like that? I tried opening nrepl with emacs and cursive. Inside wsl nrepl port can be reached by curl

borkdude 2020-12-16T13:03:57.112900Z

@kostyantinsemer wsl or wsl2?

MityaSaray 2020-12-16T13:04:06.113100Z

wsl2, sorry

borkdude 2020-12-16T13:08:13.113900Z

@kostyantinsemer I'm not entirely sure, but I have some info here: https://blog.michielborkent.nl/2020/07/26/remote-wsl2-clojure/ I use the script suggested in this issue for all things ports and firewall: https://github.com/microsoft/WSL/issues/4150#issuecomment-504209723

MityaSaray 2020-12-16T13:12:37.115Z

Thanks, ill look into using emacs from within wsl itself

borkdude 2020-12-16T13:15:53.115300Z

@kostyantinsemer @bozhidar also wrote a blog post on this

👍 1
bozhidar 2020-12-16T16:46:11.116700Z

@kostyantinsemer I'm running Emacs on WSL2 as well, so it's pretty straightforward for me.

bozhidar 2020-12-16T16:46:57.117600Z

I'm assuming that if you can't access nREPL outside of the container it's probably getting bound to localhost instead of the public address of the VM.

MityaSaray 2020-12-16T16:56:26.119400Z

Thanks, ill look into that. Yeah i did lookup with netstat, repl is sitting at designated port

seancorfield 2020-12-16T18:20:07.120400Z

You might need to tell nREPL to bind to 0.0.0.0 instead of the default 127.0.0.1? I seem to remember someone running into something like that... (I don't use lein or nREPL so I may be off-base).

☝️ 1
MityaSaray 2020-12-16T18:30:09.120600Z

Thanks, that was the case.

👍 1