This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-13
Channels
- # atlanta-clojurians (1)
- # beginners (148)
- # boot (13)
- # capetown (1)
- # cider (38)
- # cljs-dev (92)
- # clojure (61)
- # clojure-brasil (1)
- # clojure-dev (6)
- # clojure-italy (21)
- # clojure-losangeles (1)
- # clojure-nl (7)
- # clojure-norway (20)
- # clojure-spec (70)
- # clojure-uk (64)
- # clojurescript (69)
- # core-async (11)
- # cursive (6)
- # data-science (2)
- # datomic (50)
- # docker (2)
- # duct (12)
- # figwheel (1)
- # fulcro (81)
- # graphql (19)
- # jobs (3)
- # jobs-discuss (44)
- # keechma (1)
- # leiningen (1)
- # mount (2)
- # off-topic (10)
- # onyx (19)
- # parinfer (3)
- # portkey (6)
- # re-frame (4)
- # reagent (145)
- # reitit (1)
- # ring (1)
- # ring-swagger (2)
- # specter (1)
- # sql (4)
- # tools-deps (43)
- # unrepl (29)
- # vim (1)
Probably a conditional reader macro that Parinfer moved around. Why won't it tell me which file this occurred in? I could solve the problem instantly if I knew where it was
Well, looking at
https://github.com/boot-clj/boot-cljs/blob/master/src/adzerk/boot_cljs/impl.clj#L24
it's somewhere in your :require
s .. as to why there's no try/catch or logging there, well, I guess no-one bumped up against it yet or deemed it wasn't common enough to add it. Let me know what caused it if you do find the problem!
Managed to debug it by commenting out every require in my main app.cljs file. Then I turned on cljs compile with watch and manually added each line back one at a time until I found the error. The problem was a require from a cljc file that was commented out, so I suspect it didn't say "no such namespace" because the file existed, but I'm not sure. I just wish it would tell me the name of the text that it says isn't a symbol, because it's fast to debug in that case.
Having some trouble with task options of type [str]
. Get an exception every time I provide it:
e.g.
(deftask foo
[x blah BLAH [str] ""]
(prn blah))
running boot foo -x bar
gives:
java.lang.Thread.run Thread.java: 745
java.util.concurrent.ThreadPoolExecutor$Worker.run ThreadPoolExecutor.java: 617
java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java: 1142
java.util.concurrent.FutureTask.run FutureTask.java: 266
...
clojure.core/binding-conveyor-fn/fn core.clj: 2022
boot.core/boot/fn core.clj: 1032
...
boot.core/construct-tasks core.clj: 994
clojure.core/apply core.clj: 657
...
boot.user$eval836$fn__837.doInvoke : 85
java.lang.IllegalArgumentException: option :blah must be of type [str]
clojure.lang.ExceptionInfo: option :blah must be of type [str]
That works for me
(! 595)-> boot foo -x bar
["bar"]
Tue Mar 13 12:42:29
(sean)-(jobs:0)-(~/clojure/lsnape)
(! 596)-> cat build.boot
(deftask foo
[x blah BLAH [str] ""]
(prn blah))
(but tasks should return functions, in general)Looking at that error, I think maybe you're trying to invoke the foo
task elsewhere in your build.boot
@lsnape?
@seancorfield no other tasks named foo. I first saw the problem with boot-new -a
which also takes [str]. Think it might be to do with the boot version.
@lsnape I'm on 2.7.2 -- what are you using?
@seancorfield ah yes 2.7.2 works. I was unknowingly running 2.8.0-SNAPSHOT.
Interesting... I'm surprised there would be a breakage moving up to that!
FWIW, when I run with 2.8.0-SNAPSHOT, it still works
(! 605)-> BOOT_VERSION=2.8.0-SNAPSHOT boot foo -x bar
["bar"]
Tue Mar 13 15:00:10
(sean)-(jobs:0)-(~/clojure/lsnape)
(! 606)-> cat build.boot
(deftask foo
[x blah BLAH [str] ""]
(prn blah))
(and that does run the latest snapshot version as of today)