-
Notifications
You must be signed in to change notification settings - Fork 272
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
compilation fails after switching from 2.5.6 to 2.6.1 #783
Comments
@archieby if your get loads of seemingly irrelevant errors, it may be that the root cause is buried somewhere in there. And it may even be that it's not displayed, if there are more errors than are emitted by |
thank you for your response, @Stephan202 . |
The error will have to be buried somewhere in the generated code; in case of a complex project/classpath setup it's not so trivial to compile the files one-by-one (if cyclic references don't prevent this outright, that is). I'd suggest an alternative approach: generate the code with version 2.5 and 2.6, then diff the output directories. I'd expect that the 2.6 dir contains fewer files (as the annotation processor may not have completed all its rounds), but one of the files that was generated should contain a salient deviation. Once identified this ticket becomes more actionable from a bug fixing perspective :) (@elucash, if you have some other neat debugging trick for this case, I'd love to hear it. My colleagues and I have hit similar issues, where a small error in our own code is crowded out by a mountain of other errors.) |
@archieby thank you for reporting this. @Stephan202 thank you for detailed troubleshooting hints. I don't know what exactly caused the issue. It's definitely buried down there among other irrelevant errors, I can only hope you'll found the one. This is one of the major pain points with annotation processing in big (enough) modules is that some compilation error stops annotation processing and, as result, many classes are not generated along with many cannot-find-symbol errors which shadow the one caused this. 2.6.0 tried to maintain compatibility, but we cannot 100% guarantee it, especially if some breakage is due to a bug.
In addition, vavr encoding is still in it's 0.x versions and may also affected some incompatibility. I would suggest trying to do what Stephan suggested to detect the changes in generated files or try to dissect/create minimal repro. Sorry for any inconveniences, nothing like that is really intended. |
We are using
org.immutables
value
andorg.immutables.vavr
vavr-encodings
in our project.While versions
2.5.6
and0.4.0
of that dependencies let the code compile as expected,2.6.1
and0.6.0
ones fail.The only output we get is lots of
cannot find symbol
errors, which is not that helpful.What might be causing this? Isn't version 2.6 backward compatible with 2.5?
Is there any way to get some additional information about the failure reasons?
The text was updated successfully, but these errors were encountered: