This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-22
Channels
- # admin-announcements (7)
- # beginners (56)
- # boot (69)
- # cider (168)
- # cljs-dev (2)
- # clojure (170)
- # clojure-austin (25)
- # clojure-beijing (3)
- # clojure-belgium (2)
- # clojure-france (3)
- # clojure-poland (17)
- # clojure-russia (115)
- # clojure-uk (40)
- # clojurebridge (3)
- # clojurescript (87)
- # cursive (9)
- # datomic (30)
- # dirac (18)
- # editors (3)
- # emacs (14)
- # hoplon (195)
- # immutant (14)
- # jobs (3)
- # jobs-discuss (4)
- # leiningen (11)
- # melbourne (5)
- # mount (42)
- # off-topic (5)
- # om (24)
- # onyx (48)
- # parinfer (53)
- # proton (1)
- # protorepl (2)
- # re-frame (3)
- # reactive (2)
- # reagent (29)
- # rum (5)
- # spacemacs (4)
- # untangled (91)
- # yada (1)
what’s the search order for resources? I’m trying to add a test/resources directory where boot will find files and use those first but that doesn’t appear to be working.
@brianosaurus: the files are loaded onto the classpath, so it's last one wins
hmm. I have a property file for a java framework we’re using and I want to use a different one for test. How would one accomplish that?
so the classpath is comprised of :source-paths and :resource-paths, but also of files in the fileset
hmm...
@micha: thanks. that’s very helpful.
@brianosaurus: there are some examples, one sec
@brianosaurus: i don't have an example handy but @richiardiandrea uses this technique
@micha: thanks again.
yes, you need to pass a param using -e
, in my case boot -e flavor=backend dev
and handle deps at the top level: https://github.com/Lambda-X/lambdax-web/blob/devel/build.boot#L46
that part is needed becasue deps are then set with set-env!
right after
then in my case I have choosen a options
multimethod for dispatching https://github.com/Lambda-X/lambdax-web/blob/devel/build.boot#L89
I am using (repl)
in my task. When the task is running and I (exit)
it doesn’t return to the prompt. Neither Ctrl-C nor Ctrl-D stops the process. I need to manually kill it. Am I missing something?
@slotkenov: can you explain the situation a little more?
When starting this task on the command line with boot dev
it starts everything up and I end up in the repl.
Then I type (exit)
in the repl (or use Ctrl-d) to exit the repl. It doesn’t return me to the command line however
As you can see in the snippet I’m using repl
because I’m trying to set it up with the dirac
middleware
See also the [Dirac](https://github.com/binaryage/dirac) project
I also need to run (dirac.agent/boot!)
in the repl. I’m trying to automate all that in the boot task
When I add the :server
flag to the repl
call it doesn’t open the client and I can stop the task without any problem by pressing Ctrl-c
I need to open a client repl in another command line window with boot repl -c
and then issue (dirac.agent/boot!)
inside that repl client
is it not possible to include .clj
files via boot-cljs
or am I missing something obvious?
@slotkenov: ah i think i see now, as @dm3 said, the watch
task will block (or the repl client will block)
@slotkenov: so what you might want to do is run your pipeline from in the repl
I do find the blocking/non-blocking slightly confusing. I don't have a better alternative (except maybe that tasks can indicate that they're going async, and the pipeline should block at the end?)
It's easy when you know, but it makes it hard to compose sometimes, if you remove a task, suddenly you need to add a new one to block.
@micha it looks like boot-cljs can’t find any clj file that’s not .cljc
for some reason (maybe by design?)
@lwhorton: ClojureScript by design can't read clj files
Nothing to do with boot-cljs
Ah right, macros. But that is a special case 😄
But if the namespace only has clj file and no cljs file, one needs to use :require-macros instead of :require
:require with :load-macros will load both cljs and clj files, but fail if cljs doesn't exist
i’ve wasted all morning trying to convert cljs.test to more friendly when given it
which just points to the appropriate testing
macro
is that a caching issue, a compile issue, a goog.require issue? I’m not sure where to start
@richiardiandrea: I just got around to looking at your build.boot for lambda-x. Nicely done. Thanks for forwarding that.
hey thanks! @brianosaurus the thanks are for the authors and contributors of this wonderful tool
@richiardiandrea: took me a second to figure out why you have lambs on your website. 😄
ahahah
well that's part of the brand, lambs-da-x...well..I am not choosing the marketing strategy here 😄
I like it. Makes your team seem approachable. The contact us image is particularly good.
thanks for the feedback, indeed maybe my picture is the most formal 😄