This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-15
Channels
- # arachne (6)
- # aws-lambda (3)
- # beginners (14)
- # boot (56)
- # cider (8)
- # cljs-dev (5)
- # cljsrn (11)
- # clojure (240)
- # clojure-dusseldorf (3)
- # clojure-greece (165)
- # clojure-italy (5)
- # clojure-romania (1)
- # clojure-russia (24)
- # clojure-uk (30)
- # clojure-ukraine (3)
- # clojurescript (29)
- # core-async (6)
- # css (1)
- # cursive (25)
- # datascript (6)
- # datomic (61)
- # dirac (1)
- # events (3)
- # hoplon (1)
- # instaparse (3)
- # jobs (4)
- # juxt (28)
- # lein-figwheel (7)
- # leiningen (19)
- # luminus (1)
- # lumo (2)
- # nyc (1)
- # off-topic (19)
- # om (25)
- # onyx (4)
- # parinfer (2)
- # pedestal (23)
- # perun (20)
- # re-frame (44)
- # reagent (20)
- # remote-jobs (3)
- # ring (3)
- # ring-swagger (5)
- # rum (12)
- # slack-help (3)
- # spacemacs (25)
- # specter (62)
- # sql (16)
- # unrepl (313)
- # yada (4)
how do I run two separate (unrelated) tasks in sequence? e.g. compile cljs, run server and only after that test-clj
Wouldn't it be nice if boot could download multiple dependencies at once? My CI builds don't cache the packages and boot is slow downloading deps... Just a thought ๐
Boot/Pomegranate also uses very old Sonatype-Aether (latest release 2011) instead of Eclipse-Aether or Maven-resolver
Maven has used Eclipse Aether since 3.1 and the next version will use Maven-resolver: http://maven.apache.org/aether.html
Btw I patched pomegranate to use new stuff, but I need some support to the PR I guess ๐ it has not been reviewed yet
I've been fighting with boot credentials for the last day, seemingly none of the documented instructions on the wiki work anymore ๐ ( I've released ~4 things to clojars already, without any issues, but suddenly something is different and defying explanation )
For instance, this advice breaks boot from even working: https://github.com/boot-clj/boot/wiki/Repository-Credentials-and-Deploying#managing-credentials
( makes the maven repos' fall out of the repolist, and it can no longer resolve clojure ! )
(there's something else funky going on, because even when I rewrite the entirtey of push into build.boot just to sniff the repo-map
values, my ~/boot/profile.boot stuff doesn't turn up there either, as if configure-repositories! was silently being ignored )
https://github.com/irresponsible/tentacles/blob/master/build.boot # if anyone can spot anything obvious, that'd be great, because I can't see any glaring differences between this and anything else I've published
as a side note, if there's any magic to make stacktraces from boot usable for anything, that'd be great. Because "oh, some line number in some file that doesn't exist in /tmp/" is really unhelpful, especially when that line number coincides with nothing in any file I've written.
that's helpful-ish I guess. Folding out all the whitespace of course means the granularity of those line numbers will be less helpful ๐
hey guys, I still canโt figure out how to solve this thing: basically, I have a task that compiles clojurescript and runs a jetty server. I have another task that runs bunch of selenium tests that need to open the webpage and do bunch of things, and I can't figure this out. Either I can't get the cljs compilation and server or server is running, but when you open the page it can't find any resources (no css, no js files), I can't figure out how to correctly compose two tasks either: it either throws null exception or does some other flaky stuff. Can someone show me an example or help me to get this to work. Any help would be much appreciated.
and then when it everything looks fine it throws some mysterious exception yelling at Unable to resolve symbol: will-mount in this context
I think my fundamental problem is that I still canโt figure out how to run tasks sequentially task b
should only execute after a
is done with its own shit
@ag tasks are executed sequentially always, and unless the task contains a future this is always true
given the nature of the thing you are trying to do
it seems like you need to come up with a way to coordinate
so this, does not work as I wanted:
(deftask a []
(comp
(serve)
(cljs)))
(deftask b []
(prn "b")
(Thread/sleep 2000))
(deftask run []
(comp
(watch)
(a)
(b)))
@richiardiandrea any way to get it to work?
b
in this case prints and sleeps immediately, because remember, you are returning middleware there
if you want to trigger the body on task execution you need to wrap it with with-pass-thru
I wonder if boot would be more 'dev friendly' if instead of (comp (serve) (cljs)) the fact that (serve) and (cljs) return functions that take-in/return filesets were made ezplicit
it is the nature of middleware, pretty opaque from the outside, but composition looks pretty easy
anyone used spyscope with boot? why do I get No reader function for tag spy/p
how do I properly set data readers?
when should I call load-data-readers!
? Should I require spyscope in build.boot or profile.boot? neither seem to be working