Fork me on GitHub
#boot
<
2016-04-03
>
daplay04:04:05

is there a way load boot’s source in intellij ?

micha14:04:41

@daplay how do you mean?

creese15:04:52

I'm creating my first script with boot. Getting a strange exception when I try to add a local project as a dependency. Here's the exception: https://gist.github.com/creese/fdae03237a0929c0970bf1b64cc2b06c

micha15:04:46

@creese: i see you don't have a clojure dependency in that file

micha15:04:01

the exception you see looks like a clojure version mismatch issue

micha15:04:19

can you try adding the clojure dependency to your script?

micha15:04:28

it should be the same as the BOOT_CLOJURE_VERSION

micha15:04:41

or you can add an exclusion:

micha15:04:09

(set-env!
  :exclusions '[org.clojure/clojure]
  :dependencies '[...

micha15:04:25

the :exclusions method might be more applicable in your case

micha15:04:20

@creese: a good way to debug this would be to do (boot "show" "-d") in your script

micha15:04:29

that will show you the dependency graph

micha15:04:40

if you see a weird version of clojure in there then you know that's the problem

micha15:04:09

also (boot "show" "-p") will help you resolve dependncy conflicts

micha15:04:08

you can also debug things in the repl by doing boot repl and then (load-file "myscript")

micha15:04:28

that lets you work on your script in the repl and stuff

micha15:04:37

which might be helpful to track down the issue

creese16:04:03

@micha: I've tried all sorts of combinations

micha16:04:24

@creese: what's in the-local-project jar?

micha16:04:40

what is it?

micha16:04:19

if it's an uberjar or if it accidentally contains classes that conflict with other dependency jars (especially clojure) you'll see exceptions like this

micha16:04:28

because the classpath is then corrupted

micha16:04:09

so jar tf /path/to/the-local-project.jar should show some things

creese16:04:15

Setting BOOT_CLOJURE_VERSION worked

creese16:04:49

I couldn't set it from within the file though

micha16:04:05

right, because your file is a clojure program

micha16:04:29

it runs inside a clojure runtime that must already exist and have a version

richiardiandrea18:04:05

So boot reload will include auto testing now?

juhoteperi18:04:59

Some tests have existed for a while but I had not set up CI

qz23:04:46

is there any way to pass command line arguments when emulating lein-run task as https://github.com/boot-clj/boot/wiki/Boot-for-Leiningen-Users#lein-run ?