redhat-developer / redhat-developer/vscode-java
Intellisense breaks for JDK types when certain (scala) libs are on the classpath
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされている dev-container reproducer から始め、Scala と Akka HTTP ライブラリを classpath に追加した状態で、java.lang.reflect.Field と java.util.List の補完を再現します。これらのライブラリがある場合とない場合の補完動作を比較します。期待される JDK 型の候補が表示され、Quick Fix の型推論が引き続き機能すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, scala, typescript
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100