-
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
Code generation in Eclipse is broken. #912
Comments
I recommend trying to clean your build and recompile. This appears to me as an eclipse bug. |
Clean & rebuild doesn't work. Since i have added Subcomponents to the project, the eclipse buildsystem is broken. I have tried to hack/fix the codegen part. My changes have removed the build errors but lead to new problems . |
Then I recommend filing a bug with eclipse. |
The stacktrace above shows the error is raised in dagger:
There is a missing isPresent check. |
Is there a sample project? |
Just for reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=526288 |
Somebody asked in that eclipse bug about this bug, but it is actually unrelated. |
Somebody it's me :) I have a very simple project (forked from https://github.com/ibaca/gwt-dagger2-coffee) that use the |
The error reproduced on commit https://bitbucket.org/foal/gwt-dagger2-coffee/commits/5b5505303ece4b87b1e39802a76907aa79e7b7d5 If I will extract the interface |
I thought about it - it could actually be triggered by 526288, in which case it will be fixed in Eclipse 4.7.2. |
Here is my sample project: |
Ok my test project caused not the same error as above. I reproduced it wit my 3 commit. |
Thanks, based on https://github.com/AndreasMager/eclipse-dagger-test if found another bug in eclipse: https://bugs.eclipse.org/bugs/show_bug.cgi?id=527462. |
I've been able to track down the other issue, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=527530 |
I can't claim to be an expert on this but I am seeing this error on one of our projects where some of the modules are themselves generated. Ultimately the root cause appears to be that eclipse is unable to resolve the module type when it first encounters it, and so the I am unsure whether this is a bug in eclipse or whether Dagger ought to check whether the type element is in fact correctly resolved. |
Code generation doesn't complete. The Dagger_XXX Files are missing
Dagger Version 2.12
Eclipse Version: Oxygen.1 Release (4.7.1)
Log:
The text was updated successfully, but these errors were encountered: