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
False positives problems (when using Lombok) #458
Comments
I can't reproduce the issue.
|
This bug is still happening, please see: Problems list still show errors of undefined for getters or setters. The issue opener resolved it doing this: microsoft/vscode-lombok#13 (comment) , but that workaround doesn't work for others |
@GabrielBB could you attach a sample project? |
Here's how I managed to solve the problem:
|
I tried @YongJieYongJie 's solution but the problems appeared again as soon as I compiled the project using maven. |
Maybe the extension Lombok Annotations Support for VS Code can help. |
@Koishilll unfortunately that project seems to be inactive for a while, see here |
I saw this issue too, but this goes away if i downgrade vscode-java plugin to 0.79.2 |
Just in my case, the issue was fixed by adding <properties>
<java.version>11</java.version>
</properties> It looks vscode-java generates configs for Java8 and recent versions of jars expect newer Javas. My env is java-0.82.0-369.vsix on Theia in Eclipse/Che. update: vmargs is required. No code completion for setter/getter without vmargs. |
Lombok is supported now. Check https://github.com/redhat-developer/vscode-java/wiki/Lombok-support |
i opened it in nov 2022, lombok support was from july 2022 so i suspect it was already there at the time of this, i will try reload the app to see if the problem persist after updating all... |
When using this plugin with a lombok-project the plugin determines many problems (e. g. for missing getters and setters) that disappear when the corresponding file is opened.
Environment
Steps To Reproduce
Sample Project
Unfortunately, I cannot submit the affected project.
The important bits are:
Java Language Server log
Current Result
A Problem “The method getSerial() is undefined for the type License“ is listed in the problems view. When opening the corresponding file by clicking on the entry the problem disappears after a few seconds.
This behavior is reproducable when restarting vs code.
Expected Result
No problem “The method getSerial() is undefined for the type License“ is listed in the problems view.
The text was updated successfully, but these errors were encountered: