Fork me on GitHub
#tools-deps
<
2018-04-19
>
zentrope00:04:54

If I have :main-opts ["-e" "(println 'hello)"] I get an EOF while reading error. Is there something I’m missing with the “-e” option?

gfredericks00:04:31

do you get that with (println :hello) as well?

zentrope00:04:47

Hm. If there’s any whitespace in the expression at all, the error happens?

zentrope00:04:11

Yeah, :hello causes the issue, too.

zentrope00:04:50

However, :main-opts ["-e" "(println,'hello)"] succeeds (note the , for white space).

gfredericks00:04:29

I would call that a bug but I Am Not A Clojure Lawyer

zentrope00:04:43

It’s certainly principle of greatest surprise. ;)

zentrope00:04:02

I can’t find it in Jira, if it already exists. Not that I have any skill searching Jira.

zentrope00:04:57

Yes, it seems major to me, too.

mfikes00:04:54

Sweet , whitespace hack though. Awesome.

zentrope00:04:14

If found that in a @seancorfield example for deps.edn somewhere. I wondered why he had that in there. ;)

seancorfield00:04:41

Yeah, I spent a while bashing my head on the whitespace errors before thinking of , in a drunken moment of defiance, late at night! 🍻

gfredericks00:04:20

I have also used , to avoid quoting issues at some point in my life