This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-22
Channels
- # beginners (42)
- # boot (73)
- # cider (17)
- # clara (1)
- # cljs-dev (47)
- # cljsrn (9)
- # clojars (4)
- # clojure (241)
- # clojure-italy (11)
- # clojure-norway (5)
- # clojure-russia (93)
- # clojure-spec (28)
- # clojure-uk (32)
- # clojurescript (170)
- # core-async (20)
- # cursive (62)
- # data-science (2)
- # datomic (47)
- # dirac (4)
- # events (1)
- # funcool (12)
- # gsoc (1)
- # hoplon (59)
- # immutant (8)
- # lambdaisland (4)
- # luminus (3)
- # lumo (11)
- # off-topic (13)
- # om (81)
- # onyx (1)
- # pedestal (47)
- # planck (30)
- # re-frame (2)
- # reactive (1)
- # reagent (2)
- # ring-swagger (15)
- # rum (1)
- # slack-help (5)
- # specter (5)
- # testing (5)
- # uncomplicate (8)
- # untangled (16)
- # vim (71)
- # yada (16)
hello! can someone point me to a quick example of how to execute clojure code via boot (in the context of the project, ie with its dependencies)?
similar to lein run -m my.ns/fn with some args
and from within a boot task if possible
how would I pass the CLI args to -main
? boot seems to want me to specify them for the task
@thheller would you pass CLI args as a single string?
the issue here is probably that the boot
invocation syntax is boot task1 —option value task2
, i.e. if a “word” of the arg-string isn’t following an option it’s interpreted as a task
(deftask run
[o opts OPTIONS str “Your options]
(with-pass-thru _
(my.namespace/-main opts)))
boot run -o “--option value”
@thheller ^ does this help?
@martinklepsch it'll do, not really using boot ... just comparing to lein
and checking that things are possible in boot
as well without too much work
@thheller cool, looking forward to see what you’re cooking up 🙂 feel free to ping me here if you have any questions
How do we know what the boot scopes are? So I can have [spyscope “0.1.5” :scope “dev”]
?
everyone uses maven repositories to distribute artifacts now, even if you don't use maven the build tool
lol barp
has anyone seen this? for whatever reason adzerk/boot-cljs throwing exception java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to clojure.lang.Symbol
. I can’t figure out what change that causing this
agree, vector and symbols, been there many times 😄
oh, right… it does look like that thing, let me see who’s that sucker intelligent person who broke it
@ag Does the exception have any file/line info and stacktrace?
@ag environ.boot/eval2342/fn/environ-middleware/environ-handler/fn boot.clj: 39
It is suspicious
that's probably just because of task middleware stack
But might be totally off actually
@ag What value does your .cljs.edn have for :require
property?
oh, ok… i found the issue… someone trying to add migrations with flyway, changed resources path
Hmm, boot-cljs should work fine without cljs.edn file
Shouldn't at least cause this problem
yah. for whatever reason things broke when :resource-paths #{”resources/public”}
changed to #{”resources”}
for posterity and those of us committed to making all possible mistakes, can you tell us exactly what caused the problem? the masses yearn.
q for the room: I've just implemented my first boot task, which examines my source files and does some special checks on the data within, and i want this task to either 'pass' and or 'fail' much like running a unit test suite. At the moment it just prints out pass/fail, but can you recommend a way to make it truly 'fail' and abort the rest of the pipeline?
yea, i can work w/ that, though i'm still wondering if there's a more canonical way to fail a task
okay cool, well thanks for yho