Fork me on GitHub
#clj-on-windows
<
2022-05-17
>
jjttjj18:05:01

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"

borkdude18:05:23

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

jjttjj18:05:38

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

borkdude18:05:34

the custom maven repo seems a little weird to me

jjttjj14:05:55
replied to a thread: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