mapstruct / mapstruct/mapstruct-eclipse

No Code completions anymore?

未关闭
#50 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

help wanted
主要语言
Java
星标
12
派生
10
PR 合并指标
30 天内没有已合并 PR

描述

I'm hesitant to post this as issues like this tend to be a misconfig somewhere...

I'm no longer getting any code completions at all from MapStruct. I initially thought this was because we used records almost exclusively everywhere, but now I tried to create a simple POJO and that offers no code completions for `@Mapping` either.

Eclipse 2023-09, MapStruct Tools 0.1.0.201701192129. The error log seems clear. Enabling or disabling "Enable non-blocking completions" makes no difference.

Example code:

```java
@Mapper
public interface AhaMapper {
@Mapping(target = "name", source = "name2")
Aha fromDto2(Aha2 ahaaa);
}

public static class Aha {
private final String name;

public Aha(String name) {
this.name = name;
}

public String getName() { return name; }
}

public static class Aha2 {
private final String name2;

public Aha2(String name2) {
this.name2 = name2;
}

public String getName2() { return name2; }
}
```

贡献指南

这个仓库没有索引到贡献指南

从这里开始

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

调研方向

未指定任何 repository 文件、测试或入口点。在 Eclipse 2023-09 中使用 MapStruct Tools 0.1.0.201701192129 重现该示例,检查报告的错误日志,并比较启用和禁用非阻塞补全时的补全行为。当 @Mapping 代码补全能够用于所提供的 mapper 示例时,即视为完成。

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

评估

技术栈
java
领域
developer-experience, tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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