redhat-developer / redhat-developer/vscode-java
Code completion does not insert parentheses and parameter suggestions
オープン
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
Code completion fails to insert parantheses and parameter suggestions when invoked on a type for the first time.
Environment
- Operating System: Ubuntu 22.04.4 LTS
- JDK version: java-21-openjdk-amd64
- Visual Studio Code version: 1.91.0
- Java extension version: 1.32.0
Steps To Reproduce
- Open minimal Java Maven Project (Sample GitHub Repo)
- Open Java file
App.java - (Make sure that Language Server workspace is cleaned)
- In line 19, enter
set.and wait for completion list to appear - Enter
cloto filter completion list entries - Hit
<Enter>to select entryclone()from completion list
Current Result
set.clo gets expanded to set.clone
Expected Result
set.clo gets expanded to set.clone()
Additional Informations
- When completion item is focussed, completion item details (JavaDoc) cannot be displayed.
- Language client logs report an error every time the cursor keys are used to navigate the completion list (client.log)
- When completion item is selected (hitting
<Enter>), language server reports an error (server.log) - When triggering the completion list a second time, completion works as expected
- Reproduction can be repeated after cleaning Java Language Server workspace
- When reproducing the issue, I only had these extensions enabled:
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
最小限の Java Maven プロジェクトで、App.java を開き、Language Server のワークスペースをクリーンアップし、補完リストを絞り込んだ後に clone() を選択して、問題を再現します。最初の補完呼び出しと併せて client.log と server.log を読みます。最初の呼び出しで clone() が挿入され、補完の詳細が表示され、説明されているナビゲーションまたは選択のエラーが報告されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100