Fork me on GitHub
#clojure-dev
<
2022-02-21
>
vemv19:02:44

A plugin I'm developing can cause this section to fail https://github.com/clojure/clojure/blob/clojure-1.10.3/src/clj/clojure/core.clj#L7057-L7074 since clojure/version.properties would be absent apparently (not my project; hard to repro) Does that sound familiar at all?

hiredman19:02:39

"plugins" often have weird classloader stuff going on, baseLoader may be returning a classloader that doesn't have access to clojure

vemv19:02:32

My plugin deliberately avoids classloader stuff. It adds stuff to the classpath by simpler means. But I don't see how it could make clojure.core be loaded while clojure/version.properties would be absent or otherwise malformed i.e. all jars are left as-is of course, I expect a .jar to be "atomic" so this issue catches me off-guard.

hiredman19:02:28

what do you mean by "plugin" ?

hiredman19:02:09

if you are using a plugin for an existing java based system, those often doing weird things with classloaders to try and isolate plugins with each other

vemv19:02:44

Lein plugin, also it's a clojure program, zero classloaders involved Also I don't want to excessively put the focus on my plugin, either the issue sounds familiar to someone or not

hiredman19:02:10

ah, got it, I assumed the worst from "plugin"

🙂 1
😆 1