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.
2020-04-19T19:03:13.003900Z

Anyone know how to properly escape this in powershell

clojure -J-Dclojure.server.repl="{:port 5555 :accept clojure.core.server/repl}" 
It currently seems to change the slash to a backslash:
Execution error (FileNotFoundException) at <http://java.io|java.io>.FileInputStream/open0 (FileInputStream.java:-2).
.server.repl={:port 5555 :accept clojure.core.server\repl} (The filename, directory name, or volume label syntax is incorrect)

alexmiller 2020-04-19T19:07:10.004400Z

Replace your spaces with commas

alexmiller 2020-04-19T19:07:29.004800Z

Commas are white space to Clojure

2020-04-19T19:09:41.005300Z

Ah, forgot about that, but still getting the same error

2020-04-19T19:10:02.005700Z

Looks like it's a pain to use a forward slash apparently: https://www.reddit.com/r/PowerShell/comments/34kvyv/how_do_you_escape_in_powershell/

2020-04-19T19:10:09.006100Z

but that thread probably has the answer in it

2020-04-19T19:13:40.006800Z

Although the ones I tried aren't working either, I'll probably just move the server starting inside the repl process, which seems to work

borkdude 2020-04-19T19:16:24.007200Z

@jjttjj I tried this and it worked:

clojure "-J-Dclojure.server.repl={:port 5555 :accept clojure.server/repl}"

2020-04-19T19:17:05.007600Z

yup that works, thanks @borkdude!

2020-04-19T19:18:19.008800Z

When I try to connect the server repl throws

Exception in thread "Clojure Connection repl 1" <http://java.io|java.io>.FileNotFoundException: Could not locate clojure/server__init.class, clojure/server.clj or clojure/server.cljc on classpath.

borkdude 2020-04-19T19:18:35.009100Z

whoops, I made a typo

borkdude 2020-04-19T19:19:00.009300Z

clojure "-J-Dclojure.server.repl={:port 5555 :accept clojure.core.server/repl}"

2020-04-19T19:19:21.009800Z

yup, there it is, thanks again

borkdude 2020-04-19T19:19:21.009900Z

that should do the trick