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)
Replace your spaces with commas
Commas are white space to Clojure
Ah, forgot about that, but still getting the same error
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/
but that thread probably has the answer in it
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
@jjttjj I tried this and it worked:
clojure "-J-Dclojure.server.repl={:port 5555 :accept clojure.server/repl}"
yup that works, thanks @borkdude!
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.
whoops, I made a typo
clojure "-J-Dclojure.server.repl={:port 5555 :accept clojure.core.server/repl}"
yup, there it is, thanks again
that should do the trick