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"Update: I realized this was a problem with the latest inf-clojure update:
https://github.com/clojure-emacs/inf-clojure/pull/198#issuecomment-1130121102
@jjttjj How quoting works, heavily depends on which shell you are calling this from. Is this cmd.exe or powershell?
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
ok...
the custom maven repo seems a little weird to me
that's just to counter this other windows issue 😔 https://github.com/littleli/scoop-clojure/wiki/Notes-on-java-Command-Line-Argument-Files#example-of-a-backslash-character-escaped-with-another-backslash-character-in-an-argument-file