This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-20
Channels
- # aws (7)
- # bangalore-clj (2)
- # beginners (64)
- # boot (34)
- # cider (1)
- # cljs-dev (8)
- # cljsrn (22)
- # clojure (268)
- # clojure-greece (2)
- # clojure-italy (8)
- # clojure-quebec (1)
- # clojure-russia (5)
- # clojure-spec (7)
- # clojurescript (7)
- # consulting (1)
- # cursive (184)
- # data-science (1)
- # datascript (18)
- # datomic (54)
- # dirac (1)
- # emacs (17)
- # graphql (1)
- # klipse (2)
- # leiningen (1)
- # off-topic (17)
- # onyx (10)
- # pedestal (2)
- # reagent (16)
- # spacemacs (4)
- # untangled (3)
- # vim (28)
- # yada (3)
why does boot insist on loading the snapshot in clojars instead of the one in the local repo???
@mobileink It doesn't. Show the dependency vector and directory listing of the corresponding folder in ~/.m2
(deftask run-socket-server []
(let []
(fn middleware [next-handler]
(fn handler [fileset]
(clojure.core.server/start-server
{:port 5555
:name "repl"
:accept 'clojure.core.server/repl
:server-daemon true
:client-daemon true})
(next-handler fileset)))))
how do I tell boot to start this taxk, then just wait (not running anything, and not exiting)@qqq With wait
task: https://github.com/boot-clj/boot/blob/master/boot/core/src/boot/task/built_in.clj#L355
@juhoteperi thx. problem was a dependency dependency, once I put all the relevant libs in :checkouts and ran watch for each everything worked.
@juhoteperi : precisely what I needed; thanks!
switching some maps to records adhering to a defrecord
definition: can I still instantiate with map syntax (keys and vals) rather than only tersely providing the positional arguments to match the record's arity?
@matan map->TypeName
, as mentioned in defrecord
docstring
@juhoteperi oops thanks and sorry for the wrong channel!
hi folks. how can I ensure that task b does not start until task a is complete? task b depends on a clojure namespace that is generated by task a. if I order them in sequence they seem to run in parallel, and I get FileNotFound for that namespace.
@mobileink tasks are run serially always, BUT some library author sometimes put them in a future and that makes them run in parallel...What I mean is that it really dependends on the task
(this is true unless you use boot.parallel
explicitely)
thanks, that's what i thought. i stepped away so i can't check, but i suspect operator error - i'll bet i put the generated files in :assets instead of resources.
What are the recommended ways to prompt for user input in a Boot task? I can't find any built-in tasks, which surprised me a little bit. Is this a slippery slope?
I want to write a task that will display a TOS to the user which he needs to accept or reject.
hmm, interesting. ditto for stuff like privacy policies, etc. what do you have in mind? given the need for security i would imagine something similar to what one needs to do with deployment creds.
i think you'd need to securely download the TOS. otherwise how to guarantee that what the user accepted was your TOS and not sth else?
prompting a user for input should be easy, methinks. but security, reliability etc. is another story.
a secure TOS task might be useful. but then you run into liability. i think i'd write my own tos function and call it from a task. not that i have any experience in this sort of stuff. 😉
@mobileink : you know what computers are not very good at doing right now? writing documentation for webcomponents
on the bright side: the defpage stuff seems to work, yay! defcomponent, well soon. https://github.com/miraj-project/demos/tree/master/hello-world
oops, this is the boot channel. well, there's https://github.com/miraj-project/boot-miraj