Fork me on GitHub
#boot
<
2016-04-04
>
seancorfield01:04:27

What I tend to do @qz is to have [a args ARG [str] "the arguments for the application."] as my run task argument specification and then (apply app/-main args) in the task.

seancorfield01:04:51

Then you can do boot run -a foo -a bar -a quux etc

qz02:04:40

@seancorfield: i ended up making shebang script that loads build.boot and then runs app main. do you have to repeat “-a” for every param you want to pass to app?

seancorfield04:04:02

@qz: Yes, because of the way task argument parsing works in Boot.

onetom04:04:34

has anyone encountered this yet?

> boot show -d
             clojure.lang.ExceptionInfo: clojure.lang.ArityException: Wrong number of args (2) passed to: aether/dep-tree

dottedmag08:04:20

Is it expected that boot repl takes 14 seconds to start on a reasonably fast computer?

alandipert13:04:47

@dottedmag: sounds ballpark, you can tinker with BOOT_JVM_OPTIONS to start faster - export BOOT_JVM_OPTIONS='-client -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none' https://github.com/boot-clj/boot/wiki/JVM-Options

alandipert13:04:11

but those options can introduce other problems

richiardiandrea16:04:12

Have you guys ever had the following error (it appeared this morning here with 2.5.5):

Caused by: java.lang.ClassNotFoundException: mranderson046.toolsreader.v0v10v0-alpha3.clojure.tools.reader.impl.utils.TaggedLiteral
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:61)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at clojure.lang.RT.classForName(RT.java:2065)
	at clojure.lang.Compiler.resolveIn(Compiler.java:6921)
	at clojure.lang.Compiler.resolve(Compiler.java:6884)
	at clojure.lang.Compiler.analyzeSymbol(Compiler.java:6845)
	at clojure.lang.Compiler.analyze(Compiler.java:6427)

richiardiandrea16:04:45

I heard they released tools.reader beta1 dunno if it can be related

richiardiandrea16:04:29

it happens with boot -vvv cider repl wait

richiardiandrea16:04:13

if I remove cider everything is fine, so ... sorry but this does not belong here I guess

phreed20:04:25

I have been working on getting 'boot' to play nice with 'Atom:proto-repl'. https://github.com/jasongilman/proto-repl I am having some difficulty due to gaps in my understanding of how boot, leiningen and clojure set things up when they start. https://github.com/jasongilman/proto-repl-demo/issues/5 My immediate question is... What is this 'boot.user' namespace that boot starts with? What is wrong with the clojure 'user' namespace?

phreed21:04:21

@jasongilman: hi, I am wondering if something like (comp (watch) (reload)) might be the way to go.

micha22:04:06

@phreed: the boot.user namespace is created by boot

micha22:04:24

the user namespace has historically been used for other things

micha22:04:32

so boot doesn't clobber that

phreed22:04:13

@micha: what does boot put in the boot.user namespace?

micha22:04:37

type boot -vb foo bar

micha22:04:47

where foo and bar are whatever tasks you like

micha22:04:58

that will print the generated namespace

micha22:04:04

so you can see what it does

richiardiandrea22:04:31

oh nice trick didn't know that!

jasongilman23:04:30

@phreed: I think watch and reload could be one valid approach for use of boot and Proto REPL but I don't think that should be the default. What's the problem you're trying to solve?