Skip to content
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 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 opened this issue Dec 11, 2023 · 12 comments

Comments

@Explomatic
Copy link

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
Copy link
Contributor

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
Copy link

eliasbalasis commented Dec 19, 2023

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
Copy link

eliasbalasis commented Dec 21, 2023

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.

keinhaar added a commit to keinhaar/gwt-eclipse-plugin that referenced this issue Dec 23, 2023
@jochenw
Copy link

jochenw commented Jan 4, 2024

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
Copy link

I can confirm it is possible to install the GWT Eclipse plugin using the commit at the forked repo at keinhaar@5510a2a.

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
Copy link
Member

niloc132 commented Feb 1, 2024

@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
Copy link
Contributor

keinhaar commented Feb 2, 2024

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

@JackyDFu
Copy link

JackyDFu commented Feb 2, 2024

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

@rbernadev
Copy link

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

@protoism
Copy link
Contributor

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
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants