Skip to content

Lombok @Data formatting error #243

@markckimball

Description

@markckimball

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
  • Operating System: Windows 10 and MacOS Sierra
  • JDK version: 1.8.0_131-b11
  • Visual Studio Code version:
  • Java extension version: 1.13.1
Steps To Reproduce
  1. Enable lombok per vs-code wiki
  2. import lombok.Data
  3. use the @DaTa annotation
  4. attempt to format document

[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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions