-
Notifications
You must be signed in to change notification settings - Fork 454
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 @Data formatting error #243
Comments
I managed to reproduce the error. The underlying exception is
|
@markckimball can you reproduce the issue in Eclipse proper? |
So there's a known bug between lombok and Eclipse's formatter, see projectlombok/lombok#879 |
is there any progress on this? I think my issue is the same. When I add this to my settings
I consistently get the error
|
Got the same issue today. I resolved it using the latest snapshot release 1.16.21 of lombok. User settings: |
@mrrobworks thanks for the tip. It works for me too. I've updated the wiki about using the lombok-edge solution. Since the issue is fixed by updating lombok itself, I'm closing this issue. |
@fbricon Modifying the change on windows works just fine. On linux the change gets reverted back within 5 secs. Now i have duplicate entries in linux user settings file. lombok-edge.jar is what i added and the older settings lombok.jar gets reverted in user settings file. "java.jdt.ls.vmargs": "-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication -javaagent:"/home/user/.vscode/extensions/GabrielBB.vscode-lombok-0.9.2/server/lombok-edge.jar" -Xbootclasspath/a:"/home/user/.vscode/extensions/GabrielBB.vscode-lombok-0.9.2/server/lombok-edge.jar" -javaagent:"/home/user/.vscode/extensions/GabrielBB.vscode-lombok-0.9.2/server/lombok.jar" -Xbootclasspath/a:"/home/user/.vscode/extensions/GabrielBB.vscode-lombok-0.9.2/server/lombok.jar"", |
@gitorko this is obviously caused by the GabrielBB.vscode-lombok extension. Try disabling it. And open a ticket in https://github.com/GabrielBB/vscode-lombok/issues. CC @GabrielBB |
@fbricon Just updated the extension to use Lombok 1.16.21. @gitorko Please, clean the entire java.jdt.ls.vmargs from your user settings on your linux machine and update or re-install the Lombok Extension. |
Hi guys, it's possible I'm missing something. I searched for the problem, but couldn't find anything that seemed to be directly related.
When I go to format a file that has lombok.Data imported and use the @DaTa annotation (after following the wiki entry for Lombok support), an error gets sent to the output and the file doesn't get formatted. Otherwise Lombok does seem to work.
Environment
Steps To Reproduce
[Trace - 8:50:41 PM] Sending request 'textDocument/formatting - (1393)'.
Params: {
"textDocument": {
"uri": "file:///.../Message.java"
},
"options": {
"tabSize": 4,
"insertSpaces": true
}
}
[Trace - 8:50:41 PM] Received response 'textDocument/formatting - (1393)' in 35ms. Request failed: Internal error, please look at the server's logs. (-32603).
[Error - 8:50:41 PM] Request textDocument/formatting failed.
Message: Internal error, please look at the server's logs.
Code: -32603
[Trace - 8:50:41 PM] Sending notification 'workspace/didChangeWatchedFiles'.
Params: {
"changes": [
{
"uri": "file://.../Message.java",
"type": 2
}
]
}
Nothing seems to be sent to the debug console.
Current Result
file doesn't get formatted and error gets sent to output
Expected Result
file gets formatted, no error
Additional Informations
I've been able to reproduce this on both Windows 10 and Sierra. Maybe I'm just missing something.
The text was updated successfully, but these errors were encountered: