clojure-dev

vemv 2022-02-21T19:03:44.441649Z

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?

2022-02-21T19:10:39.406699Z

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

vemv 2022-02-21T19:13:32.490459Z

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.

2022-02-21T19:14:28.794469Z

what do you mean by "plugin" ?

2022-02-21T19:15:09.374339Z

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

vemv 2022-02-21T19:15:44.675009Z

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

2022-02-21T19:16:10.097819Z

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

😆 1
🙂 1