Closed uhafner closed 7 months ago
After I installed the final 2024.1, it offered update to plugin 1.8.18. After updating, it show the same error as above. That 1.8.18 version seem very old based on the releases tagged here, but IntelliJ is not offering any further updates.
There is an incompatibility with 2024.1 Intellij api. I use plugin version 1.8.28, which is also not working with 2024.1. Investigating.
Does it help to collect all of the different exceptions here? Because mine looks different:
Error instantiating a rule
java.lang.ClassNotFoundException: net.sourceforge.pmd.lang.java.rule.bestpractices.PrimitiveWrapperInstantiationRule PluginClassLoader(plugin=PluginDescriptor(name=PMDPlugin, id=PMDPlugin, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\IntelliJIdea2024.1\plugins\PMD-Intellij, version=1.8.18, package=null, isBundled=false), packagePrefix=null, state=active)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.kt:156)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
Idea 2024.1 seems to have lot of changes - I've a simple fix that might work even though many API calls are deprecated. We probably need to fix those at some time and also support PMD 7.0 to keep this project alive
The code changes are merged, but release is blocked by https://github.com/JetBrains/intellij-platform-gradle-plugin/issues/1255
Was able to get a release out!
In IntelliJ 2024.1 RC I get the following exceptions: