leiningen

oyakushev 2024-09-06T13:56:42.382899Z

Hello! I ran into some inconsistent behavior regarding update-in :jvm-opts:

$ lein update-in :jvm-opts conj -Dhi.there -- trampoline repl
;; Works correctly

$ lein update-in :jvm-opts conj -Dhi.there -- repl                                                                               
array element type mismatch

$  lein update-in :jvm-opts conj '"-Dhi.there"' -- repl
;; Works correctly   
I assume the second example fails because without the double-quoting -Dhi.there is read as a symbol, not as a string. But then why does the trampoline example work differently?

seancorfield 2024-09-06T17:14:50.617549Z

Trampoline writes options to a file and then the second process reads them back in so I guess that's how it gets quoted?

oyakushev 2024-09-06T18:22:33.333439Z

Sounds believable. Thank you!