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
Unable to open Java sources after updating 2021-09 to 2021-12 #1319
Comments
Details from the about dialog: Eclipse Groovy Development Tools Version: 4.1.0.v202103311613-e2103-RELEASE Copyright (c) 2009-2021 Pivotal Software, Inc. and others. All rights reserved. Features: Pivotal Software, Inc. Groovy-Eclipse 4.1.0.v202103311613-e2103-RELEASE org.codehaus.groovy25.feature Plug-ins:
|
When you use auto-update to cross major versions of eclipse, the Groovy Development Tools JDT patch gets out of sync. You need a newer update site link for Eclipse 2021-12: https://dist.springsource.org/snapshot/GRECLIPSE/e4.22 If you wish for GDT to never be installed on a particular installation, you'll need to take that up with Eclipse Platform or Oomph teams. |
I agree this is probably a bug somewhere in p2 / Oomph. I created it here because people are going to search for the error message and "Groovy". |
If the Groovy patch depends on specific JDT version, this should be managed on the Groovy side by specifying the expected version ranges of the JDT plugins in the manifest. When ranges are correctly specified, p2 and oomph will correctly handle this case to prevent conflicts in the installation. |
Okey, not my full expertise, but it seems that https://github.com/groovy/groovy-eclipse/blob/master/ide/org.codehaus.groovy.eclipse.ui/src/org/codehaus/groovy/eclipse/GroovyPlugin.java gets installed even when the feature patch is no longer installed. So after an update the feature patch is no longer applied as the JDT feature is upgraded. Somehow it must be ensured in https://github.com/groovy/groovy-eclipse/blob/master/ide/org.codehaus.groovy.eclipse.ui/META-INF/MANIFEST.MF that the groovy patch is present when this plugin is installed. Maybe by depending on the patched version of the jdt or by the enclosed feature, though I don't know if this leads to unexpected side effects and how robust this is. |
Hi @eric-milles, actually it's not enough it seems. I get this after updating using https://dist.springsource.org/snapshot/GRECLIPSE/e4.22
|
Eclipse 4.22: Eclipse 4.21: It seems you have a misalignment between Eclipse IDE and Groovy Development Tools. |
Hi @eric-milles, I use Eclipse 4.22, so I followed your advice:
and got this error. Then I uninstalled Groovy, got back to what Marketplace suggests (ie Version: 4.4.0.v202112311714-e2112-RELEASE) and still got the same error. In our project (Apache OFBiz) we still use Groovy 2.5.11, so I tried to install GDT 3.5.0. Eclipse refused and suggested something else. It worked. I have now a mix of installed versions (3 4.50 and 1 4.40) but at least it works :) |
I've just updated 2021-09 to 2021-12 using Oomph.
After the update, I can't open the Java editor anymore:
There are two problems here:
How do I get rid of Groovy?
How can I make sure that Groovy is never, ever installed without my consent?
As far as I can see, the plugin is complete. Why do I get NoClassDefFoundError???
The text was updated successfully, but these errors were encountered: