Fork me on GitHub
#boot
<
2017-07-25
>
leira03:07:16

Do I have to specify a version for every dependencies? Is it possible to express certain version and up?

alandipert04:07:25

Using them makes dep resolution non-deterministic which is why people tend to avoid

leira04:07:04

Thanks No Java background here... so the version format is from Maven, that's the reason I didn't find any boot doc talking about this

leira04:07:02

I agree, it's not a good idea to have version range in projects I'm adding some tool task into profile.boot, like boot-new

alandipert04:07:14

No problem. Feel free to add to wiki in the place you expected to find 😀

alandipert04:07:32

And yeah, that makes sense

donyorm05:07:57

so the refresh task seems to be randomly failing. Certain namespaces simply stop updating, even if I add a whole new symbol. Running (boot (refresh)) shows that the namespaces are being updated, but the boot repl still has the old values. Is this a known issue?

dominicm07:07:18

Heard of something similar if you refresh really quickly without a debounce, e.g. Automatically in file write.

dominicm07:07:34

Which refresh task are you using?

donyorm09:07:46

samestep.boot-refresh, the one suggested by the boot wiki. How should I fix the issue?

dominicm10:07:52

I haven't seen that one before. I'm not sure what the cause could be here.

donyorm10:07:17

Is there anyway to run a watch task "in the background" from a boot repl? I've started a repl and I wanted to start a file watcher but in the same jvm as the repl

richiardiandrea10:07:02

@donyorm I assume you don't want to use watch, so what you can do is to run whatever task (even the repl) in a future so that you "free up" the main thread and can launch a second pipeline. Alternatively boot.parallel provides a way to launch tasks in parallel

donyorm10:07:27

right, that works well. I wasn't think of using boot tasks as code. I did want to use watch, I just needed to stick it in a future. Thanks!

donyorm11:07:10

Is there anyway to make the watch task run arbitrary code as opposed to another task?

martinklepsch12:07:20

@donyorm wrap it in a task

martinklepsch12:07:33

(with-pass-thru _
  (run-things))

tmtwd17:07:52

for this task https://github.com/boot-clj/boot/wiki/Using-Boot-in-a-Leiningen-Project would it be the same if you wrapped the body in the with-pass-thru instead of returning the identity fn?

richiardiandrea18:07:24

now that we have https://github.com/clojure/tools.deps.alpha we should port boot's better reporting I guess 😉

martinklepsch18:07:38

@richiardiandrea what are you referring to with boot’s better reporting?

richiardiandrea19:07:13

I mean that boot has a very nice way of reporting dep download (on -v or -vv)...