If I’m not mistaken, then the LSP4J dependency would have to be relocated, too.
Adding this to my Gradle plugin should be possible. I’ll test the setup when I find some time…
Alternatively, I could relocate and bundle LSP4J into my JARs, but that’s probably the less preferred solution.
@insyncwithfoo I tested this with a plugin with both my LSP and JetBrains LSP active at the same time. With 2024.2 and 2025.1 I’m not seeing this exception.
It’s either not happening with these major versions or it’s not showing because classes bundled with a plugin are preferred.
Please note that I’m only supporting 2024.2+
But different versions of the same library all available at runtime at the same time is often creating problems. A fix would be to shadow/relocate LSP4J in the plugin using my library or into LSP4IJ if that client is used.