clj-on-windows

2022-05-17T18:24:01.965349Z

Did anything change in the recent scoop clojure shims? I hadn't updated in awhile and now I just updated to the latest and am getting errors. Can't figure out where on the stack this is though. I have an elisp config var set as

'(inf-clojure-custom-startup
   "cmd-clojure -Sdeps '{:mvn/local-repo \"\"/r\"\"}' -Sforce -Sverbose -M:dev:windows")
yet somewhere along the line the quotes are being removed because when I go to start a repl I get
Error while parsing option \"--config-data {:mvn/local-repo  /r  }\": java.lang.RuntimeException: Invalid token: /r\n"
Calling this from powershell works for me:
clojure -Sdeps '{:mvn/local-repo ""/r""}' -Sforce -Sverbose -M:dev:windows
But when I add the cmd- prefix to clojure I get
The string is missing the terminator: ".
Also this:
cmd-clojure -Sdeps '{:mvn/local-repo \"\"/r\"\"}' -Sforce -Sverbose -M:dev:windows
# crashes with:
Unknown option: "-i"
Unknown option: "-n"
Unknown option: "-p"
Unknown option: "-u"
Unknown option: "-t"
Unknown option: "-F"
Unknown option: "-o"
Unknown option: "-r"
Unknown option: "-m"
Unknown option: "-a"
Unknown option: "-t"
Unknown option: "-o"
Unknown option: "-u"
Unknown option: "-t"
Unknown option: "-p"
Unknown option: "-u"
Unknown option: "-t"
Unknown option: "-F"
Unknown option: "-o"
Unknown option: "-r"
Unknown option: "-m"
Unknown option: "-a"
Unknown option: "-t"

2022-05-18T14:55:55.457229Z

Update: I realized this was a problem with the latest inf-clojure update: https://github.com/clojure-emacs/inf-clojure/pull/198#issuecomment-1130121102

borkdude 2022-05-17T18:28:23.378169Z

@jjttjj How quoting works, heavily depends on which shell you are calling this from. Is this cmd.exe or powershell?

2022-05-17T18:34:38.391399Z

It's what inf-clojure in emacs to start the process, I had always assumed that was the same as powershell can't immediately track that down though

borkdude 2022-05-17T18:36:01.610009Z

ok...

borkdude 2022-05-17T18:36:34.188529Z

the custom maven repo seems a little weird to me