-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility between Groovy Eclipse Plugin and PMD Plugin #134
Comments
I can't reproduce it. I installed first PMD from https://dl.bintray.com/pmd/pmd-eclipse-plugin/updates/ and Groovy from https://dist.springsource.org/release/GRECLIPSE/e4.17 . I tried the other way round as well. No crash. But I used a empty workspace. If it has to do with OSGI bundle wiring, you can try to start eclipse once with "-clean": |
@rimuln Can you click "Show original error and build my own solution" and share a screenshot/logs? I'd like to know, why eclipse wants to uninstall PMD Plugin.... |
Hi, when uncheck Install fewer and Remove items already installed then this output: Then I click back and see that really all 5 PMD plugins version are seletected by default. Select only 4.20 and run it again and got: then back and selected 4.24 and similar Update site is: https://pmd.github.io/pmd-eclipse-plugin-p2-site/ |
Ok, PMD Plugin depends on logback, but Groovy Eclipse Plugin does not work with logback - so they configured a explicit incompatibility. When you install Groovy Eclipse Plugin, you need to deinstall e.g. "m2e - slf4j over logback logging (Optional)" or any other plugin, that depends on logback (such as PMD). Logback classic itself depends on some groovy packages (optionally). But when Groovy Eclipse Plugin is installed, eclipse wires them together. Now the Groovy Eclipse Plugin does some OSGI magic for switching between different Groovy versions (it unloads the bundles with the old groovy version and loads the bundles with the new version - and OSGI in turn should refresh all dependent bundles - including logback). This somehow does not work reliably anymore and one reason was/is logback. So they declared a explicit incompatibility with that bundle. If you want to know the whole story, read: groovy/groovy-eclipse#1237 and groovy/groovy-eclipse#981 and groovy/groovy-eclipse#317 I'll change the PMD Plugin to not depend on the logback/slf4j bundles anymore and instead bring in these dependencies on my own (via bundle classpath). That fixes the installation problem and probably also the crash of the original issue. |
After a fresh install of the latest eclipse release (4.17.0.I20200902-1800) I've figured out that PMD plugin causes eclipse crash at startup if Goovy Eclipse Plugin is also installed (obtained either directly from the market place or from https://dist.springsource.org/release/GRECLIPSE/e4.17, I tested those two ones).
Actually, when eclipse starts it asks for the workspace to be used and just after validating the workspace it crashes with the folowing message: "An error has occured. See the log file /home/...."
Here is the content of the log file:
It is quite difficult for me the figure out from this log output if the crash comes from the groovy Eclipse plugin or from the PMD plugin but it's clear that the error append when they are installed together.
The text was updated successfully, but these errors were encountered: