Lombok: Duplicate annotation of non-repeatable type @JsonProperty.
I went from 1.41 to 1.49. Downgraded to 1.48, 1.47, 1.46 with same issue, so not sure when that started. I cannot go back too far since I think it becomes incompatible with Cursor.
It seems that this is the issue: https://github.com/projectlombok/lombok/issues/3946
And theres this PR that supposedly would fix it: https://github.com/projectlombok/lombok/pull/3963
To reproduce (taken from other issue, same error in vscode):
Set up lombok.config with lombok.copyJacksonAnnotationsToAccessors=true. Create a class like the one below in Eclipse with Lombok plugin installed.
@Datapublic class Person {@JsonProperty("name") private String name;}
This seems like a fairly important fix. Any way to fasttrack that fix on the other side ?
Thanks!
We have no more sway than anyone else here. Can't do more than giving a nudge to that PR
Same issue here it broke my flow on vscode with a lot of Duplicate annotation of non-repeatable type @JsonProperty. Only annotation types marked @Repeatable can be used multiple times at one target. errors
For anyone ending up because of the same issue I'm sharing my workaround.
Add into a lombok.config this line lombok.copyJacksonAnnotationsToAccessors = false