This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-07
Channels
- # beginners (73)
- # boot (20)
- # chestnut (8)
- # cider (36)
- # clara (37)
- # cljs-dev (21)
- # cljs-experience (1)
- # cljsrn (2)
- # clojure (163)
- # clojure-austin (3)
- # clojure-dusseldorf (6)
- # clojure-finland (1)
- # clojure-ireland (4)
- # clojure-italy (45)
- # clojure-russia (9)
- # clojure-spec (47)
- # clojure-uk (20)
- # clojurescript (107)
- # cursive (24)
- # data-science (4)
- # datomic (4)
- # defnpodcast (1)
- # fulcro (1)
- # heroku (3)
- # jobs-discuss (4)
- # juxt (52)
- # lein-figwheel (1)
- # leiningen (4)
- # lumo (37)
- # midje (5)
- # off-topic (16)
- # onyx (15)
- # portkey (11)
- # re-frame (112)
- # reagent (12)
- # rum (1)
- # specter (35)
- # uncomplicate (6)
I use boot in a very basic way, mostly just "boot dev/prod/repl", when working with hoplon/castra projects. I've been getting inconsistent results from the same starting point, filewise. I can run "boot dev" 3 times in a row, getting 2 different errors and then get a clean run. What's boot doing in the background that might lead to this?
@john_tollison what are the errors you’re seeing?
"Unable to resolve var: XX" "No such var: XX" "namespace 'XX' not found" "Wrong number of args () passed to: XX" "namespace 'XX' not found", with all sorts of variation with the XX's
@john_tollison is there any chance you can reproduce this in a shareable project?
Hi, I am preparing a PR for a CLJSJS package, and just ran boot package install target
… I see a package-named directory and version directory in ~/.m2
, but no jar file. Does anyone have any ideas as to why a package wasn’t moved there? I’m using these instructions: https://github.com/cljsjs/packages/wiki/Creating-Packages#7-install-your-package-locally-and-try-it-out
And, this boot file: https://github.com/cljsjs/packages/blob/master/phoenix/build.boot
The jar file ends up in a target
dir, and the .m2/repository/phoenix/phoenix/1.3.0/
dir is empty.
@mudphone the jar should end up at .m2/repository/cljsjs/phoenix/
@martinklepsch ah, okay, thank you
@john_tollison I've seen that on projects where there's a non-deterministic namespace loading order, due to missing :require
and use of fully qualified namespaces. In both boot & lein.
sorry for the delay, been keeping weird hours. I place a bare bones project that creates the problem here, https://github.com/jtollison78/hoplon-redis-frame
I'll see if I can find any missing requires, but I have no idea what I'm looking for. As far as I can tell, I have all the same things as it took to make a previous project work, although I had the same problems early on
Thanks for the feedback
I’m having a hard time trying to figure out why I can’t reload my clj source files using tools.namespace/refresh inside a boot task (using boot-refresh). The (app/start)
function I call to restart my app after the refresh has completed is stale.
Is anyone able to shed some light on why the changes to the reloaded namespaces aren’t reachable inside boot tasks? And perhaps a workaround?
I've heard of this before, I can add that. I'd read the source to boot refresh, it can't be long.
No it’s tiny:
(boot/with-pass-thru _
(apply tns/set-refresh-dirs (boot/get-env :directories))
(with-bindings {#'*ns* *ns*}
(let [result (tns/refresh)]
(when (instance? Throwable result)
(throw result))))))
This may also be a useful reference: https://github.com/danielsz/system/blob/2ccf5a3c5a44ca016103ac732388ae377dc93941/src/system/boot.clj#L46