redhat-developer / redhat-developer/vscode-java
vscode diagnosis problems issue after clean java language server workspace problems
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
Environment
- Operating System: win11 & macOS 15
- JDK version: JDK 17
- Language Support for Java(TM) by Red Hat :v1.4x.x (v.1.40-v.1.42 also)
While developing Java in VS Code, I occasionally run into resolution issues. I used to resolve them by executing the "Clean Java Language Server Workspace" command. However, I've recently observed that after using this command and restarting VS Code, the diagnostics (errors, warnings, infos) count always resets to 0.
Furthermore, diagnostics appear to only analyze files that are currently open in the editor. As a result, if a change breaks a reference in another file that isn’t opened, no error is shown—unless the affected file is explicitly opened.
The only workaround I’ve found so far is to clone the project into a new directory. Cloning into the same original path doesn't solve the issue, and clearing cache has no effect either.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、Java プロジェクトで "Clean Java Language Server Workspace" コマンドを使用し、報告された Windows および macOS 環境の VS Code で問題を再現します。再起動後に診断が消えるかどうか、また開いていないファイルが解析されるかどうかを確認します。各対象ファイルを開かなくても診断が引き続き利用でき、壊れた参照が報告されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100