cursive icon indicating copy to clipboard operation
cursive copied to clipboard

Parameters in REPL run config should be added before `-i`

Open cursive-ghost opened this issue 2 years ago • 0 comments

From @onetom in slack:

I tried to specify -e (set!,*print-namespace-maps*,false) as Common options / Parameters for a local nREPL run config, but it ends up at the end of the command line, after Cursive's -i form-init.....clj option, eg:

java ... -classpath "..." " clojure.main -i /private/var/folders/4q/fcvqptl53wj8sdb5p1g3w7r40000gn/T/form-init13284348082157382086.clj -e (set!,*print-namespace-maps*,false)

since the form-initXXXX.clj ends with (nrepl.cmdline/-main "--ack" "59666"), which I suppose is blocking, so the -e option will never run. I wonder, if there are any useful clojure.main options, which would still be useful to put after Cursive's -i form-initXXX.clj. If not, would it be more useful to put the value of the Parameters repl run config BEFORE the -i form-initXXX.clj?

cursive-ghost avatar Feb 21 '23 20:02 cursive-ghost