This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-11
Channels
- # announcements (6)
- # babashka (61)
- # beginners (85)
- # calva (21)
- # cider (6)
- # clara (9)
- # clj-http (1)
- # clj-kondo (35)
- # cljfx (6)
- # clojure (91)
- # clojure-australia (11)
- # clojure-europe (23)
- # clojure-italy (7)
- # clojure-losangeles (2)
- # clojure-nl (27)
- # clojure-uk (107)
- # clojurescript (4)
- # community-development (1)
- # cursive (69)
- # emacs (12)
- # fulcro (29)
- # graalvm (25)
- # honeysql (10)
- # hugsql (3)
- # integrant (13)
- # jobs (4)
- # kaocha (3)
- # keechma (1)
- # lambdaisland (3)
- # leiningen (2)
- # meander (17)
- # mount (3)
- # observability (1)
- # off-topic (86)
- # pathom (3)
- # polylith (2)
- # practicalli (14)
- # reitit (14)
- # shadow-cljs (61)
- # startup-in-a-month (1)
- # tools-deps (9)
- # vim (54)
- # xtdb (16)
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
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.

I imagine Colin will be pretty responsive if you posot to the #cursive channel.
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 😄