Fork me on GitHub
#boot
<
2017-10-19
>
ag01:10:26

if I have something like (def p (future (boot (watch ,,, etc how can I "unbind" it, so it kills the watch?

ag01:10:07

so I don't have to restart the repl

minikomi07:10:47

any way i can debug slow (jar) task? see what's going on?

minikomi08:10:26

Writing <projectname>.jar... takes forever!

minikomi08:10:01

ooh. scoping out cljs / boot dependencies sped it up hugely

Mudge17:10:03

Anybody know of a good clojure library for manipulating jar files, making custom jar files etc?

dominicm17:10:25

@minikomi which ones exactly, I'm curious

minikomi08:10:23

excluding clojurescript itself was by far the biggest difference

Mudge18:10:27

when I execute jar with boot the jar file does not include the source code of my project

Mudge18:10:31

Anybody run into this before?

richiardiandrea18:10:18

@nick319 the source code usually does not get included because of its role in boot. https://github.com/boot-clj/boot/wiki/Filesets#roles-of-files

richiardiandrea18:10:41

so for the to be included, you need to add them to :resource-paths

Mudge18:10:13

@richiardiandrea I see, so that is why people use the aot task when using jar usually?

richiardiandrea18:10:51

uhm...no well that's a separate requirement I guess, aot should just compile to Java

richiardiandrea19:10:03

I personally rarely use aot

Mudge19:10:19

So do you usually add the src directory to :resource-paths?

richiardiandrea19:10:21

yep if the code is reshared in a lib

Mudge19:10:22

Is there a list of best resources to study to learn boot? Any books?

richiardiandrea19:10:55

@nick319 the wiki is good enough I'd say

Mudge19:10:34

Why does build.boot have no namespace?

Mudge19:10:47

Does it make sense to add a namespace to build.boot?

richiardiandrea19:10:02

@nick319 the default namespace is boot.user so every def in build.boot should go there

Mudge19:10:48

build.boot does have a namespace? It is boot.user

richiardiandrea19:10:22

is it a question? 😄

Mudge19:10:45

Yea I guess, so you are saying that the namespace for build.boot is boot.user?

phreed21:10:44

I asked a question yesterday that did not get a response. Let me try to ask more carefully. There are pre-tasks, post-tasks, pre-post-tasks and control-tasks. https://github.com/boot-clj/boot/wiki/Tasks Do these designations cover all cases? In particular, are there tasks that continue running after they have finished their post phase?

mccraigmccraig21:10:32

do you need such a task @phreed?

mccraigmccraig21:10:45

there's nothing stopping you making such a task if you need to, except perhaps the termination of the vm

phreed21:10:52

I am interested in producing an intermediate watcher. `(deftask foo [] (comp (wait) (watch :source #{"build.boot"}) (reload-boot) (watch :source #{"src/antlr-lexer/"}) (antlr4 :lexer ["Lexer.g4"]) (watch :source #{"src/antlr-parserer/"}) (antlr4 :parser ["Parser.g4"]) (watch :source #{"src/java/"}) (javac) (test-rig :parser "org.aql.AqlParser") (target :dir #{"target"}))) ` For this example it is not that important but in some cases the tasks can be expensive.

phreed21:10:08

@mccraigmccraig Does't repl do something like that? (leave something running past the post phase, namely the server) Does it matter where in the pipeline the repl task is placed? I am trying to get some insight into how the repl interacts with other tasks, realizing it has a server mode that gets activated on the pre pass and a client mode that gets activated on the post pass.

mccraigmccraig21:10:35

i don't think i understand @phreed - gtg too, so maybe someone else can help

phreed21:10:25

What I am trying to do is avoid unnecessary computational work done (improve liveness). I see what looks to be fingerprints for the source files. Is there a way to tell if a file in the fileset has changed since the last pass?