Fork me on GitHub
#boot
<
2016-09-16
>
michael.heuberger04:09:43

hello folks - i am investigating a boot issue here why our reload procedure is triggered twice when one file has changed.

michael.heuberger04:09:28

would like to output the configurations set through task-options! to check if anything is wrong

micha16:09:34

@michael.heuberger you can add -v or :verbose true to the watch task options

micha16:09:40

to see which files it thinks have changed

micha16:09:54

that would probably be the best way to debug watch weirdness

arohner16:09:16

stupid noob question. I’m just getting set up, and it looks like when I run boot repl, I’m in the boot context. How do I get a repl in my project context?

martinklepsch16:09:43

@arohner you mean another namespace or with your files on the classpath so that you can require them?

arohner16:09:04

my files on the classpath, running the clojure version I asked for, etc

arohner16:09:17

is that boot repl :pod?

martinklepsch16:09:47

for Clojure version do boot -V > boot.properties and then customize that file

micha16:09:55

when you do boot repl the expressions in your build.boot file will be evaluated

micha16:09:10

so you'll be in the context of the build.boot file

martinklepsch16:09:24

For your stuff on the classpath you need to have some set-env! calls in your build.boot that define :source-paths or :resource-paths

martinklepsch16:09:40

alternatively you can do boot -s src repl

micha16:09:47

and require also

martinklepsch16:09:53

which will put the contents of src/ onto the classpath

arohner16:09:10

ok, I have a build.boot with (set-env :dependencies []), but I was confused by the clojure version

martinklepsch16:09:13

@arohner clojure version is handled differently. Because Boot uses Clojure before it ever sees that set-env!call you need to pin it outside of your build.boot — using boot.properties

martinklepsch16:09:38

this file is read at startup by the minimal boot shim and will determine the very basic properties of your boot environment

martinklepsch16:09:51

e.g. you can also use it to customize the version of boot being used etc.

martinklepsch16:09:12

Without the pinning described above you might end up with two versions of Clojure being loaded. Let me know if that explanation makes sense.

arohner17:09:12

yeah, I think it does, thanks

mathiasx20:09:29

I asked over in IRC (and should know better, AND I should've said something way before the event, not during it) but: I'm at Strangeloop this year, if anyone else is there ;)

mathiasx20:09:37

There/here heh