Fork me on GitHub
#tools-deps
<
2019-02-21
>
stathissideris16:02:25

does this look wrong somehow? It’s an alias in my deps.edn {:main-opts ["-e" "(require 'dev) (dev/seed-db)"]} and it throws a Exception in thread "main" clojure.lang.LispReader$ReaderException: java.lang.RuntimeException: EOF while reading, starting at line 1

Alex Miller (Clojure team)16:02:53

yeah, the inner string is not going to end up getting quoted right

stathissideris17:02:29

so it just needs more quoting? {:main-opts ["-e" "\"(require 'dev) (dev/seed-db)\""]}

stathissideris17:02:20

that doesn’t work either

Alex Miller (Clojure team)17:02:22

no, that probably won't work either due to how this gets propagated. this is a known issue

Alex Miller (Clojure team)17:02:38

you can try the "corfield comma" (comma instead of spaces)

Alex Miller (Clojure team)17:02:01

{:main-opts ["-e" "(require,'dev)(dev/seed-db)"]}

stathissideris17:02:54

yes, that does work, thank you very much — I don’t think I would have found it myself!

seancorfield17:02:48

someone summoned me 🙂 @stathissideris It's usually around this time I point people at my dot-clojure file for examples of :main-opts https://github.com/seancorfield/dot-clojure/blob/master/deps.edn

stathissideris17:02:16

I’ve been slowly figuring out many of these myself, so many thanks for this treasure trove!

Chris08:02:14

This is great! For your rebl-11 alias, does that remove the need to install OpenJFX?

Chris09:02:59

Well, it does! I just tried 🙂