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
Problem with @Criteria.Repository on Eclipse #1175
Comments
It's not the first time we have problems with |
I will take a look. @ralscha what version of Eclipse are you using ? |
The latest version Eclipse IDE 2020‑03 |
@ralscha I'm working on Immutables release now (which should happen this week). |
Any updates on this? I seem to be having a similar issue with Eclipse 2020-09 /w JDK11. Building via Eclipse will generate a Repository with only a constructor as @ralscha shows. However, when I build via command line it seems to properly build the Repository classes. My current work-around seems to be building via command line and refreshing my Eclipse project to see the properly generated classes. Eclipse picks them up and seems to run with them just fine, but it is very annoying to have to constantly build from command line. Any resolution would be awesome!! |
Need to take a look, hopefully can dedicate some time this weekend. Sorry for late responses etc, very busy overall... |
Any updates on this? |
|
This should be fixed in the last commit. Is there a way for you to build your project from immutables |
Hi @asereda-gs , I can confirm, this issue is fixed! I successful tested the criteria Quick Start code in Eclipse |
I'm dabbling a bit with
@Criteria
and it does not work with the Eclipse compiler.I created a demo project to demonstrate the issue:
https://github.com/ralscha/immutables
The project works fine on the command line and the OpenJDK compiler. But when you import that project into Eclipse it generates an "empty" Repository implementation
"Empty" Repository without any methods
As a second test I added the default facets.
With this change the Eclipse compiler no longer generates
PersonRepository
and instead throws this errorNot sure if that is a bug in the Eclipse compiler.
The text was updated successfully, but these errors were encountered: