This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-21
Channels
- # announcements (6)
- # bangalore-clj (1)
- # beginners (46)
- # cider (21)
- # cljs-dev (30)
- # cljsjs (3)
- # clojure (131)
- # clojure-dev (20)
- # clojure-europe (2)
- # clojure-italy (12)
- # clojure-nl (11)
- # clojure-russia (4)
- # clojure-spec (55)
- # clojure-uk (57)
- # clojurebridge (1)
- # clojured (1)
- # clojurescript (55)
- # cursive (11)
- # data-science (1)
- # datomic (23)
- # duct (1)
- # emacs (1)
- # events (1)
- # figwheel-main (2)
- # fulcro (219)
- # graphql (16)
- # immutant (1)
- # jackdaw (3)
- # java (6)
- # juxt (30)
- # kaocha (8)
- # mount (3)
- # nyc (1)
- # off-topic (16)
- # pathom (48)
- # pedestal (1)
- # re-frame (71)
- # reagent (17)
- # ring-swagger (3)
- # shadow-cljs (96)
- # spacemacs (21)
- # specter (8)
- # speculative (20)
- # sql (21)
- # test-check (2)
- # tools-deps (12)
- # vim (6)
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
yeah, the inner string is not going to end up getting quoted right
so it just needs more quoting? {:main-opts ["-e" "\"(require 'dev) (dev/seed-db)\""]}
that doesn’t work either
no, that probably won't work either due to how this gets propagated. this is a known issue
you can try the "corfield comma" (comma instead of spaces)
{:main-opts ["-e" "(require,'dev)(dev/seed-db)"]}
yes, that does work, thank you very much — I don’t think I would have found it myself!
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
I’ve been slowly figuring out many of these myself, so many thanks for this treasure trove!