redhat-developer / redhat-developer/vscode-java

Lombok: Duplicate annotation of non-repeatable type @JsonProperty.

未关闭
#4,263 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug Lombok upstream
主要语言
TypeScript
星标
2.3k
派生
546
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

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.

@Data
public 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!

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在将 lombok.config 设置为 lombok.copyJacksonAnnotationsToAccessors=true 的情况下,使用带有 @Data 和 @JsonProperty 的 Person 示例复现问题。查看相关的 Lombok issue #3946 和 pull request #3963,然后确定 vscode-java 是否有明确的集成变更需要实施。由于该报告主要请求 Lombok upstream 的修复,因此尚不清楚何时算作完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, vscode
领域
developer-experience, tooling
Issue 类型
缺陷
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。