-
Notifications
You must be signed in to change notification settings - Fork 440
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
lombok.config ignored in 1.14.0 #2887
Comments
Lombok Configuration reference: https://projectlombok.org/features/configuration |
Can confirm, I got these issues as well (CustomLog annotation fails & renaming of log field is not applied). It all boils down to not processing the lombok.config file. Simply downgrading the plugin fixes the issue, whilst playing with the flag for disabling lombok support or picking the lombok jar doesn't help. |
This is an upstream lombok issue related to
Lombok can't load the ResourcePlugin class at https://github.com/projectlombok/lombok/blob/master/src/core/lombok/eclipse/EclipseAST.java#L191 @FlipWarthog Could you try Lombok 1.18.26?
|
@snjeza Trying the jar provided and setting the And using any of these versions of Lombok with the 1.13.0 version of the extension shows it working properly, so I can't wrap my head around how it could be upstream? |
@FlipWarthog https://github.com/snjeza/vscode-test/raw/master/lombok-1.18.26.jar is a patched lombok jar.
Eclipse JDT has been changed. The Eclipse ECJ plugin doesn't include the resources and runtime plugin - https://www.eclipse.org/eclipse/news/4.27/jdt.php#ecj-separated-from-core |
@snjeza Ahh, that worked and thank you for the clarification! Explicitly disabling loading from the project classpath was key, in addition to setting the |
@FlipWarthog I have created projectlombok/lombok#3332 |
Re-opening as we've reverted the change that fixed this due to potentially more serious issues with the lombok edge release. Hopefully we can fix these in subsequent release. |
This issue hasn't been fixed properly. Steps to reproduce:
You will get A workaround
|
any update in this issue? |
yes, I think. A fix in upstream has been released, see projectlombok/lombok#3406 (comment) Next step would be adopting #3031 again and give it a try on the coming pre-release. @jcolladosp you can keep an eye on it. |
After updating the extension to 1.14.0, my
lombok.config
file is being ignored, specifically thelombok.log.fieldName=LOG
setting.Environment
Steps To Reproduce
mvn clean package
from the commandline succeedsSample reproducer:
vscode-java-issue.zip
Issue example:
Current Result
vscode shows that
LOG
cannot be resolved to a variable, andlog
is not used.Expected Result
lombok.config
changeslog
toLOG
so this error/warning combo should not be shown.Additional Information
I did confirm that manually reverting back to 1.13.0 makes the issue go away.
The text was updated successfully, but these errors were encountered: