-
Notifications
You must be signed in to change notification settings - Fork 2k
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
After updating from 2.51.1 to 2.52, my GWT application does not compile #4391
Comments
Issue #4391 RELNOTES=Add GWT dependencies for Jakarta Inject PiperOrigin-RevId: 663855951
Issue #4391 RELNOTES=Add GWT dependencies for Jakarta Inject PiperOrigin-RevId: 663855951
Issue #4391 RELNOTES=Add GWT dependencies for Jakarta Inject PiperOrigin-RevId: 665040399
Also our project suffers from the missing jakarta-inject-api dependency. The maven project can be compiled, but the actual app created with jpackage fails due a
|
Same problem. |
I added what I think are the dependencies needed for GWT, but to be honest, I really have very little experience with GWT. Can you try out the version at head and see if that fixes it? https://dagger.dev/dev-guide/versions for instructions on using the head snapshots. |
The problem Before I never had issues by upgrading dagger.
|
The content of <module>
<inherits name="javax.inject.Inject" />
<inherits name="jakarta.inject.Inject" />
<source path=""/>
</module> |
Adding manually these 2 entries I sill have same issue. just FYI |
Thanks @natros, I've made that change now, so hoping it should now work at head. @gardellajuanpablomodusbox The issue you're running into is a bit different. Right now Dagger doesn't support requesting dependencies with |
I actually have javax.inject.Provider. I replaced with jakarta.inject.Provider to see if that solves the issue. I will try again without these changes and will share the logs, thanks |
There's another problem with the introduction of jspecify annotations in HEAD.
By including jspecify sources in the class path and adding the file
This last error might be caused by the GWT compiler itself for not being able to handle Nullable annotations properly. |
…o 1.0.0 Issue #4391. RELNOTES=n/a PiperOrigin-RevId: 671841611
…o 1.0.0 Issue #4391. RELNOTES=n/a PiperOrigin-RevId: 671841611
…o 1.0.0 Issue #4391. RELNOTES=n/a PiperOrigin-RevId: 671841611
…o 1.0.0 Issue #4391. RELNOTES=n/a PiperOrigin-RevId: 671909308
The issue on the GWT side has been fixed and it is now working for me. |
Using HEAD-SNAPSHOT for GWT and Dagger still shows me the error:
|
@natros did you build GWT locally? |
yes I did. It looks like there is a new build every day at the following URL: https://oss.sonatype.org/content/repositories/snapshots/org/gwtproject/gwt-user/HEAD-SNAPSHOT/ |
Confirmed it works now using latest GWT's HEAD-SNAPSHOT and Dagger HEAD-SNAPSHOT. |
Hi,
After updating from 2.51.1 to 2.52, my GWT application does not compile. It fails with the following error:
I think the problem might be related to the fact that 2.52 does not provide the source dependency of
jakarta.inject-api
in thecom.google.dagger:dagger-gwt:2.52
.Additionally, it may require ajakarta/inject/Inject.gwt.xml
and changes todagger/Dagger.gwt.xml
Thanks.
The text was updated successfully, but these errors were encountered: