This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-06
Channels
- # architecture (2)
- # aws (6)
- # bangalore-clj (3)
- # beginners (7)
- # boot (29)
- # cider (26)
- # cljs-dev (52)
- # cljsrn (1)
- # clojure (249)
- # clojure-dev (9)
- # clojure-italy (2)
- # clojure-norway (3)
- # clojure-russia (178)
- # clojure-uk (30)
- # clojureremote (6)
- # clojurescript (91)
- # core-async (4)
- # cursive (8)
- # datascript (3)
- # datavis (1)
- # datomic (6)
- # emacs (3)
- # figwheel (2)
- # hoplon (14)
- # incanter (6)
- # luminus (8)
- # mount (7)
- # off-topic (22)
- # om (25)
- # onyx (41)
- # pedestal (7)
- # re-frame (9)
- # ring (1)
- # spacemacs (4)
- # sql (1)
- # uncomplicate (1)
- # unrepl (37)
- # untangled (90)
- # yada (77)
@kenny Not possible, default options are handled inside Cljs compiler, there is no API to get them
Reposting my earlier question: What do boot users use as a substitute for the lein-ring plugin?
@kumarshantanu boot-http
, boot-serve
come to mind, there are more options…
In deftask dev
(in boot-war-example) I am trying to (require '[foo.bar :as bar]) (bar/baz)
but it errors out saying No such namespace: bar
What’s a better way to require a namespace and call a fn in it?
Fixed it by putting the require
outside of the task
You could use resolve instead
When this PR is merged (https://github.com/boot-clj/boot/pull/597), the new call
task could help as well
(clandestine advocacy for my PR alert)
@pesterhazy wow, thanks! I was looking for a boot alternative to lein run
too
which this PR seems to be addressing
correct 🙂
I’m trying to debug a stack trace in boot dev
run
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: 1938
boot.core/boot/fn core.clj: 1029
boot.core/run-tasks core.clj: 1019
boot.task.built-in/fn/fn/fn/fn built_in.clj: 477
boot.task.built-in/fn/fn/fn/fn built_in.clj: 479
java.lang.NullPointerException:
clojure.lang.ExceptionInfo:
file: "/var/folders/cv/myzdv_vd675g4l7y92jx9bm5lflvxq/T/boot.user6365568036974101588.clj"
line: 19
Can anybody share a pointer on how to debug this?
I’m using boot 2.7.1
@kumarshantanu try boot -b
to print the generated script to see line numbers
@pesterhazy Thanks, line number 19
is as follows:
(clojure.core/let [boot?__1744__auto__ true] (clojure.core/if-not boot?__1744__auto__ (clojure.core/when-let [main__1745__auto__ (clojure.core/resolve (quote boot.user/-main))] (main__1745__auto__)) (boot.core/boot "boot.task.built-in/help")))
looks like boot.user/-main does not exist?
@pesterhazy I have no reference to any boot.user/-main
in my build.boot
file
it's hard to help without seeing the boot file
@pesterhazy I’ve pasted my build.boot file here: https://pastebin.com/09Hc2i9v
@pesterhazy Sorry to bother you, I found the issue was handler-init
returning nil
, which was one of the args to comp
.
no problem, it's a bit tricky to build.boot