redhat-developer / redhat-developer/vscode-java

[Bug] Autocompletion/Importing not working in 3 scenarios

オープン
#3,585 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

upstream
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
11

説明

There are 3 scenarions where autocompletion/importing does not work.

  1. @NamedQueries({ @NamedQuery(name = InnerClass, query = "SELECT t FROM Test t WHERE t.id = :id") })
    The InnerClass is recognized, but can not be imported into java class. The ineer class is defined within same class where annotation is present.
  2. @NamedQueries({ @NamedQuery(name = "test", query = "SELECT t FROM Test t WHERE t.id = :id"), @NamedQuery(name = "testOne", query = "SELECT t FROM Test t WHERE t.id = :id") })
    @NamedQueries can not be autocompleted and imported. The only way it is working is when there is only one item in array.
  3. `public @interface Test {
    Class<?>[] groups() default {};

List
}`
The List can not be autocompleted, the only way it is working is when Class<?>[] groups() default {}; is commented.

Also, all scenarios are within project attached and well documented. Please take a look.
vs-code-test.zip

Environment
  • Operating System: Arch Linux
  • JDK version: 21
  • Visual Studio Code version: 1.88
  • Java extension version: 1.29

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず添付された vs-code-test.zip を開き、記載された環境で Java extension におけるアノテーションと補完の3つのケースを再現します。各 snippet について補完と import の動作を追跡します。InnerClass、複数の @NamedQuery エントリ、List のすべてで補完と import が正常に行われれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, vscode
領域
developer-experience, devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。