redhat-developer / redhat-developer/vscode-java
Intellisense breaks for JDK types when certain (scala) libs are on the classpath
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
When triggering autocomplete (ctrl+space) targeting JDK type java.lang.reflect.Field or java.util.List and certain (scala) libs are on the classpath, expected suggestions are not coming.
I've observed that List and Function are broken by the scala lib itself and Field is broken by Akka HTTP
Environment
- Operating System: Windows
- JDK version: 21.0.3 (Adoptium)
- Visual Studio Code version: 1.90.2
- Java extension version: 1.32.1
Steps To Reproduce
- Attempt auto complete on variable type
Reproducer with dev container: https://github.com/spangaer/vscode-javals-completion-issue
(Dev container because SBT generated eclipse files, but my guess is that doesn't matter)
Current Result
Expected Result
Additional info
It looks to be really specific to the code completions. e.g creating a local var using Quick Fix... type inference does find the JDK types.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 dev-container reproducer 开始,在 classpath 中加入 Scala 和 Akka HTTP 库,复现 java.lang.reflect.Field 和 java.util.List 的补全。比较有无这些库时的补全行为;当预期的 JDK 类型建议出现且 Quick Fix 类型推断仍能正常工作时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, scala, typescript
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100