clojure-australia

lsenjov 2021-02-11T00:01:56.027Z

Hmmmm?

lsenjov 2021-02-11T00:02:00.027200Z

Why so?

Hugh Powell 2021-02-11T03:16:33.028200Z

I build and run the thing as a jar, it works. I run the thing in Clojure CLI repl, it works. I run the thing in the Cursive REPL, it fails :thinking-face:

lsenjov 2021-02-11T03:24:21.028400Z

Try connecting to it as a socket repl instead of nrepl

lsenjov 2021-02-11T03:24:43.028800Z

Pretty sure there's a flag on clj to open a socket repl fairly easily

lsenjov 2021-02-11T03:29:17.029200Z

(I'm assuming nrepl is the problem)

Hugh Powell 2021-02-11T05:21:25.033900Z

I have a library (A), inherited from a 3rd party that depends on another library (B) of theirs. Both contain a similarly named file that is read when calling the methods I'm calling. It looks like depending on which library is loaded later in the classpath is the file I get. Clojure CLI loads library A after the dependency, library B (as I would expect). Cursive looks like it's pretty random in what gets loaded when and in this instance loads the dependency, library B, after library A (not what I would expect) and the wrong file gets read.

1
Oliver George 2021-02-11T05:54:41.035100Z

I imagine Colin will be pretty responsive if you posot to the #cursive channel.

Hugh Powell 2021-02-11T06:19:20.037Z

Talking to the folks at work and it seems that classpaths are just a pain. I don't think either approach is correct, just one happened to work in one instance and one didn't. Having a file in our own resources folder forces the issue and that's a good enough fix for us 😄

lsenjov 2021-02-11T22:08:19.037600Z

Good god that's a weird bug. Glad you sorted out

lsenjov 2021-02-11T22:08:24.037900Z

Also, good morning all

👋 2