lombok-intellij-plugin icon indicating copy to clipboard operation
lombok-intellij-plugin copied to clipboard

No Warning for invalid fields of @EqualsAndHashCode and @ToString

Open svenhaag opened this issue 5 years ago • 3 comments
trafficstars

Short description

Using @EqualsAndHashCode(of = "myField") or @ToString(of = "myField") with invalid field names does not show a warning; neither in IntelliJ nor compiling with Maven.

Expected behavior

The Eclipse plugin works fine. I expect a yellow or red underline on the annotation or invalid field name.

Version information

IntelliJ IDEA 2020.2.3 (Ultimate Edition) Build #IU-202.7660.26, built on October 6, 2020 Runtime version: 11.0.8+10-b944.34 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0

Lombok: v0.33-2020.2, 1.18.14

svenhaag avatar Nov 17 '20 09:11 svenhaag

Warning in Popup

svenhaag avatar Nov 17 '20 09:11 svenhaag

What is your expectation, the warning is already present in editor as also showed on your screenshot?

mplushnikov avatar Dec 29 '20 16:12 mplushnikov

What is your expectation, the warning is already present in editor as also showed on your screenshot?

Hi, the warning is only shown in the popup, but not on the fieldname itself, in the annotation.

svenhaag avatar Jan 02 '21 19:01 svenhaag