redhat-developer / redhat-developer/vscode-java

Code completion does not insert parentheses and parameter suggestions

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

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

主要言語
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
  1. Open minimal Java Maven Project (Sample GitHub Repo)
  2. Open Java file App.java
  3. (Make sure that Language Server workspace is cleaned)
  4. In line 19, enter set. and wait for completion list to appear
  5. Enter clo to filter completion list entries
  6. Hit <Enter> to select entry clone() 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:
    Selection_180

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

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

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