This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-24
Channels
- # admin-announcements (25)
- # beginners (132)
- # boot (89)
- # cider (26)
- # clara (12)
- # cljs-dev (10)
- # cljsrn (11)
- # clojure (151)
- # clojure-germany (8)
- # clojure-russia (1)
- # clojurescript (137)
- # cursive (33)
- # datavis (28)
- # datomic (3)
- # devcards (8)
- # hoplon (5)
- # immutant (11)
- # jobs (4)
- # ldnclj (58)
- # lein-figwheel (7)
- # off-topic (95)
- # om (114)
- # onyx (91)
- # parinfer (38)
- # portland-or (1)
- # re-frame (26)
- # reagent (1)
hi, a hopefully simple question : I need to setup a clojure env. "offline" (I mean I am behind a proxy and can't install a local repo). So basically I would ike to manage the .jar dependency myself in lib/. I took a look at boot and it seems really nice and flexible, could it be the solution for me here?
@fred: how do you mean you can’t install a local repo?
do you mean you can’t write files to ~/.m2 or you that you cannot download things from clojars?
maybe BOOT_LOCAL_REPO
helps: https://github.com/boot-clj/boot/wiki/Configuring-Boot
running out of battery …:) good luck
@fred: another option is boot.pod/add-classpath
, e.g. (boot.pod/add-classpath "lib/foo.jar")
thanks @micha @alandipert the thing is I am still struggling to start a simple boot.exe repl
because I guess it needs to find everything he wants in .boot and .m2
The good news is now I have those two folders in my home directory (for some reason powershell were telling me I did not have the right but cmd.exe did not complain ??)
morning everyone. i'm trying to get figwheel to run with boot, and i'm having a rather intractable dependency issue
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: No such var: cljs.closure/lib-rel-path, compiling:(figwheel_sidecar/build_middleware/javascript_reloading.clj:26:14)
i see a Warning: version conflict detected: org.clojure/clojurescript version changes from 0.0-3165 to 1.7.170
sounds like a cljs compiler mismatch
which seems to happen if i just include cljs 1.7.170 at all
full block of version changes is
Warning: version conflict detected: org.clojure/clojure version changes from 1.6.0 to 1.7.0
Warning: version conflict detected: org.clojure/google-closure-library version changes from 0.0-20140718-946a7d39 to 0.0-20151016-61277aea
Warning: version conflict detected: org.clojure/clojurescript version changes from 0.0-3165 to 1.7.170
Warning: version conflict detected: org.clojure/google-closure-library-third-party version changes from 0.0-20140718-946a7d39 to 0.0-20151016-61277aea
Warning: version conflict detected: com.google.javascript/closure-compiler version changes from v20150126 to v20151015
Warning: version conflict detected: org.clojure/tools.reader version changes from 0.9.2 to 0.10.0-alpha3
@pleasetrythisathome: does 3165 show up in boot show -d
?
@pleasetrythisathome: besides all that, is there a reason you don’t use boot-reload
?
i do currently. but i have 5 different cljs builds, and the compile time is pushing 10 seconds
and my cljs repl broke sometime recently, so wanted to see if i could get figwheel to work
ah i got it. it was a dependency in my profile.boot i was overlooking, not quite sure which yet
woah what is the -p?
@pleasetrythisathome: for speed improvements you could try building boot from master, there are lots of performance improvements
of course you guys thought about this already
i should've asked earlier
it seems to be a piggieback problem
excluding both clojure and clojurescript seems to fix the issue
this is the first time it's been an issue. i don't really understand why my top level override didn't prevent the issue
@micha: what's your opinion on https://github.com/stuartsierra/component ? as i recall u were not a fan, but i might remember wrong
the info the various services needs that have to be configured per environment come from environment variables
@dm3: have you seen "gilligan's island", the TV show?
it is a US tv show from the 60s
anyway, the premise is a group of people are stranded on an island
one of them, "the professor", is always inventing things in attempts to get them off the island
and he is successfull at inventing things... all kinds of crazy things. flying machines, boats, electricity generators... all made from coconuts and bamboo and lashings
but he is never successful in actually getting them off the island
so something that is "coconut" could be impressive and complex, but doesn't actually get us off the island
http://img.gawkerassets.com/img/19cupthq6p6cljpg/original.jpg professor fueling a jetpack
@onetom: yes, you were asking about Component, danielsz's library lookspretty great for trying it out
im not super convinced that i want to try it out, but im afraid if i want some test coverage and fast test runtimes i better structure our app using component
i guess u r getting by without it, just with boot tasks on their own because u dont have a lot of integration and/or unit tests, or do u?
well, we still don't have much, but we are reaching that size when we can't go fast reliably without tests, especially having 3 pairs working in parallel
@onetom: This is worth investigating I think : http://www.dotkam.com/2015/11/12/managing-clojure-app-state-since-reset/ (article describing why mount - https://github.com/tolitius/mount - was built)
well i abandoned getting figwheel to work, but fixing that dep issue fixed my cljs repl
so everything's swell now
@pleasetrythisathome: if you have a few spare minutes give master a try, would be curious how it affects your build times
@pleasetrythisathome: also are you calling the cljs
task multiple times or do you just have multiple .cljs.edn
files?
multiple .cljs.edn
i'll try master at some point today
still, the difference between a few seconds and sub second is rather large....and i've always been over a second with boot vs figwheel (or cljsbuild)
@pleasetrythisathome: performance has been a problem admittedly. In my experience though things are pretty close most of the time. I’d guess in your case with multiple builds boot-cljs might even be faster than figwhell/lein-cljsbuild
@martinklepsch: yea possible. it'd be great to have a white/blacklist of cljs.edn builds passed into the build task. generally when developing i'm only really working on one at a time
@pleasetrythisathome: there is an ids
option
id
is always path of the .cljs.edn file in classpath/fileset minus extension
and that overrides the set of .cljs.edn files?
awesome got it
Hmm, I'm getting a #object[RangeError RangeError: Maximum call stack size exceeded]
error when I a) require something in clsj repl, b) disconnect, c) reload page, d) connect again. Is this a known issue?
Upgraded to 2.4.2. So happy with this fix https://github.com/boot-clj/boot/issues/298
Oh, nice. Haven't tried Cider snapshot yet but good to know that that problem has been fixed.