GoogleCloudPlatform / google-cloud-eclipse

Google Cloud Platform plugin for Eclipse
Apache License 2.0
86 stars 49 forks source link

error after upgrading eclipse #3659

Open Rob46 opened 2 years ago

Rob46 commented 2 years ago

After upgrading eclipse I am getting this error and don't know how to resolve it:

An internal error occurred during: "Initializing Java Tooling". Cannot invoke "com.google.cloud.tools.eclipse.appengine.libraries.persistence.LibraryClasspathContainerSerializer.loadContainer(org.eclipse.jdt.core.IJavaProject, org.eclipse.core.runtime.IPath)" because "this.serializer" is null

What did you do?

What did you expect to see?

What did you see instead?

craigmit commented 2 years ago

Eclipse 2021-12 has this problem. Rolling back to Eclipse 2021-09 fixes it (obviously not ideal).

zhumin8 commented 2 years ago

@Rob46 and @craigmit, Thank you for reporting and adding extra info, we'll investigate more into this.

vbresan commented 2 years ago

Any news or other workaround except rolling back to Eclipse 2021-09?

With this error it is impossible to even open an existing project.

Shawn-in-Tokyo commented 2 years ago

The following worked fine for me:

Eclipse Version: 2021-12 (4.22) Build id: I20211124-1800 Google Cloud Platform for Eclipse 1.8.5.202108061424 Google Cloud SDK 368.0.0

If I install Eclipse m2e - Maven support in Eclipse IDE (from the Eclipse Marketplace) then I do get the reported error that ... An internal error occurred during: "Initializing Java Tooling". Cannot invoke "com.google.cloud.tools.eclipse.appengine.libraries.persistence.LibraryClasspathContainerSerializer.loadContainer(org.eclipse.jdt.core.IJavaProject, org.eclipse.core.runtime.IPath)" because "this.serializer" is null

vbresan commented 2 years ago

Unfortunately I can not uninstall m2e as Google Cloud Platform plugin depends on it. Perhaps GCP is not compatible with the latest version of m2e?

Clipboard01

chanseokoh commented 2 years ago

Please use Eclipse 2021-09 while we are working on #3661. If anyone can help fixing failures in #3661, we'd greatly appreciate it.

Shawn-in-Tokyo commented 2 years ago

Unfortunately I can not uninstall m2e as Google Cloud Platform plugin depends on it. Perhaps GCP is not compatible with the latest version of m2e?

Clipboard01

Eclipse EE 2021-12 will add in M2E 1.19 which is the problem. An Eclipse install of 2021-12 and then the Google Cloud Platform for Eclipse 1.8.5. will use M2E 1.18.1.20210618-2246 which works fine.

Then you can install Git, Mylyn, Eclipse Java EE Developer Tools etc to get the EE functionality. Just don't update M2E.

chanseokoh commented 2 years ago

@briandealwis M2E 1.19 causing the failure while 1.18.1 is OK is an integrating report.

vbresan commented 2 years ago

I can confirm that the plugin is not working with eclipse 2022-03.