Oh nice thanks, that looks a lot nicer, I'll give it a try 🙂
Yes it worked, thank you very much @seancorfield 🙂 The usage looks much nicer now. Should I let Practicalli know about this as the Practicalli deps.edn has very similar functionality and usage to yours?
@flyingpython Note that the workaround for this is inside of the tool, it's not a general solution for all -X tools
It accepts args as symbols and then calls str
on those internally again to get strings
Ah I see
Yeah I still think the community should come up with a better way of doing this -X stuff that is more beginner friendly
You can just fire up a REPL and execute the function from the REPL to work around limitations of -X.
Oh yeah I saw how you did that just above - I didn't know I could do that 😅
Yeah that looks nicer than relying on commandline
The REPL as a universal shell, who would have thought of that ;)
Still I think at least documentation about this stuff should show how to pass the strings for Windows users or show how to do it with the REPL like you did above
Agreed.
Because there might be a lot of people on Windows interested in learning and they just get up to the chapter on starting your first Clojure project and immediately hit an unsurpassable brickwall simply because they aren't on *nix
I keep learning how awesome the REPL is, soon every problem is going to look like something the REPL can solve 😂
That is true. The REPL should probably be one of the first things everyone entering Clojure should learn. And the REPL can be a good workaround for the -X limitations anyway, so all that needs is good documentation.
The only thing where the REPL isn't such a good fit is when you want to invoke the things from a shell script, but in that case you can just write a .clj
file and execute it with clojure -M script.clj
.
Is that kind of what is going on with the dev.clj file that goes along with seancorfield's deps.edn? One of the aliases there :dev/repl
invokes that file as a JVM option
I don't know that project well, so Sean can probably explain it here better
Ah OK no worries, I can kind of read and get some kind of understanding of much of the deps.edn files but I get lost with the JVM options stuff - I guess I don't have a good understanding of how the JVM can be invoked and the possibility with options