Fork me on GitHub
#boot
<
2017-12-14
>
zilti08:12:48

@martinklepsch well, that works. I think the problem is that the library uses a dependency that isn't defined in the library, but in the main project. ClojureFX accesses org.controlsfx, but it's a dependency of the main project. Apparently Boot can't handle that?

zilti09:12:13

Boot must be doing some weird classpath magic

martinklepsch09:12:30

@zilti If you could provide a minimal repro that’d be very helpful in figuring out the problem

martinklepsch09:12:35

@zilti doesn’t need to be with minimal dependencies but a build.boot of any length that can be used to reproduce the problem would definitely be very helpful

zilti10:12:38

@martinklepsch like this? https://bitbucket.org/snippets/zilti/zenroL Gives another class not found error though, but same principle: lein run works, boot run doesn't.

martinklepsch10:12:41

What I meant was one build.boot file which contains all the clojure code to reproduce the problem but this is ok too I guess

martinklepsch10:12:01

unfortunately I can’t clone the snippet without installing hg though?

zilti10:12:07

Well, that's kinda a given since I work with resolve. Ah, here, a git version: https://bitbucket.org/snippets/zilti/zenrAb

martinklepsch10:12:51

> Well, that’s kinda a given since I work with resolve. right but eliminating all these kinds of things really helps identifying the actual problem

zilti10:12:19

I can't do it without resolve because the main clj file depends on a .java file that has to be compiled first.

martinklepsch10:12:36

Caused by: java.lang.NoClassDefFoundError: clojure/java/api/Clojure
@zilti is that the exception you’re seeing as well?

zilti12:12:55

@martinklepsch yes, that's the one I'm seeing as well.

martinklepsch12:12:24

@tcrawley Hey Toby, I was wondering if I could ask you for help on this issue? It seems related to classloaders(?) and you always seem to know those really well 🙂 There’s instructions for reproduction in this comment https://github.com/boot-clj/boot/issues/665#issuecomment-351699701

tcrawley13:12:59

@martinklepsch I took a quick look and dropped a comment on the issue with my thoughts. I'm happy to chat more about it if needed.

martinklepsch13:12:48

@tcrawley Thanks. Think the difference in errors might be caused by the lack of a boot.properties in the repro. this is the one I used:

BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.9.0
BOOT_VERSION=2.7.2

martinklepsch13:12:03

@zilti if possible please update the repro to include that file

martinklepsch13:12:19

Sorry for missing that in the description @tcrawley 😏

tcrawley13:12:14

Ah, with that I see the same issue, yeah

tcrawley13:12:19

I'll take a closer look

tcrawley13:12:02

@zilti What's the proper way to clone clojurefx? It's not clear from bitbucket how to do that

tcrawley13:12:18

ah, is it using hg?

martinklepsch13:12:50

@tcrawley I think it’s using hg yes

tcrawley13:12:16

k, I've got it checked out

zilti14:12:13

@tcrawley @martinklepsch Added it to the repo. Mine was simply "BOOT_CLOJURE_VERSION=1.9.0".

zilti14:12:29

@tcrawley jup, Mercurial

martinklepsch17:12:29

If you’re interested in the development of Boot, I created a new channel #boot-dev — everybody welcome to hang out & contribute 🙂