gwt-plugins / gwt-eclipse-plugin

GWT Eclipse Plugin Documentation
http://gwt-plugins.github.io/documentation/
Eclipse Public License 1.0
115 stars 49 forks source link

Unable to install plugin version 4.0.0 in Eclipse 2023-12 (requires 'osgi.bundle; javax.inject 1.0.0' but it could not be found) #474

Closed Explomatic closed 9 months ago

Explomatic commented 11 months ago

I recently had to do a fresh install of Eclipse and GWT on my desktop and thus decided to install the newest version of Eclipse, the 2023-12 edition. However, when trying to install the GWT plugin, either directly through the marketplace or through those drag&drop links then I am unable to finish the installation. The error message I get is

Missing requirement: GWT Eclipse Plugin 4.0.0.202302020242 (com.gwtplugins.gdt.eclipse.suite 4.0.0.202302020242) requires 'osgi.bundle; javax.inject 1.0.0' but it could not be found

Am I doing something wrong or is there something more to the installation process? I tried looking at the installation process described here and on gwtproject.org, but neither seem to run into this specific issue. I've attached a photo of the full error during the installation process. Note that I am unable to proceed by clicking the Confirm button, simply nothing happens if I try.

image

keinhaar commented 11 months ago

Looks like javax.inject has been dropped and replaced by jakarta.inject in eclipse 2023-12. Please use 2023-09 or 2023-06 until we can fix the issue. Both of them work.

eliasbalasis commented 11 months ago

I have stumbled upon the same problem. Unfortunately, 2023-09 is missing some other fixes and may not be suitable for everyone.

I will personally wait for the plugin fix before introducing Eclipse 2023-12 to my teams which are still stuck with 2021-03 due to other incompatibilities of 2023-09.

eliasbalasis commented 11 months ago

I was pleasantly surprised to discover that Eclipse 2023-09 with m2e 2.4.0 seems to be working.

However, the plugin still needs to be fixed at some point.

jochenw commented 10 months ago

The solution, that @keinhaar suggests above seems fairly simple, so I'd expect it to be applicable. Still the problem is present in the nightly build 4.0.1.202305162146. Does this mean, that there hasn't be a nightly build over the last 7 months?

JackyDFu commented 9 months ago

I can confirm it is possible to install the GWT Eclipse plugin using the commit at the forked repo at https://github.com/keinhaar/gwt-eclipse-plugin/commit/5510a2a195ebd2783884b302fd0534b3cc1ed617.

The following steps are necessary to do so:

  1. Clone the repo
  2. Execute mvn verify with JDK 17
  3. Install the plugin in Eclipse using the ZIP-archive "repo/target/targetPlatformRepository/repo-4.0.1-SNAPSHOT.zip"

Note this should be used for test purposes only, as there are possibly further steps necessary.

niloc132 commented 9 months ago

@jochenw the fix that was suggested is still a pending PR, and not having been reviewed/merged, it won't appear in "nightly" builds - which indeed do not run nightly, but on merge to main (and only apply to changes landed on main).

keinhaar commented 9 months ago

What needs to be done, to get this at least into the nightly?

JackyDFu commented 9 months ago

So until now I could not see any issues using the suggested fix of @keinhaar. It seems to work as expected.

rbernadev commented 9 months ago

i have the same problem , is possible to go in night? thanks

protoism commented 9 months ago

Hi all, the PR has been approved and merged. Please note that installing the plugin from CI artifacts is supersimple. The build was here: https://github.com/gwt-plugins/gwt-eclipse-plugin/actions/runs/7307950625 and the "repository" file can be simply downloaded and installed

rbernadev commented 9 months ago

excuse me , I have always installed the plugins normally, never done as you are saying... can you explain to me how to do it?

thanks thanks (anche io sono italiano)

protoism commented 9 months ago

Hi @rbernadev, Ciao.

This link has what you're looking for (no need to uncompress!!!!) :

https://stackoverflow.com/questions/5482554/how-to-install-plugin-for-eclipse-from-zip