Gradle multi-module project breaks on reload, requires cleaning Java Language Server workspace every time
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 50/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- java, vscode
調査の方向性
まず、Gradle for Java 拡張機能と Java Language Server を使用して、Java のマルチモジュール Gradle プロジェクトで VS Code 上の失敗を再現します。"Java: Clean Java Language Server Workspace" を実行した後の初回ロードと再ロードまたは再オープンを比較します。ワークスペースを再度クリーンアップせずにプロジェクトの一貫性が保たれれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
I am working with a Java Gradle multi-module project in VS Code.
On the first load, the project fails with an error like:
The project was not built due to "xxx does not exist". Fix the problem, then try refreshing this project and building it since it may be inconsistent.
The suggested workaround is:
- Disable Gradle for Java extension
- Run "Java: Clean Java Language Server Workspace"
- Reload the project
This workaround does fix the problem, but only temporarily.
Problem
Every time I:
- reload the window, or
- close and reopen the project
I have to run "Java: Clean Java Language Server Workspace" again, otherwise the same error appears.
This makes working with the project very inconvenient.
Expected behavior
Once the project is cleaned and loaded successfully:
- It should stay in a consistent state
- Reloading or reopening the project should not require cleaning the Java Language Server workspace again
Actual behavior
- Project breaks again after reload
- Same error repeats
- Manual workspace cleaning is required every time
Environment
- VS Code
- Java multi-module Gradle project
- Java Language Server
- Gradle for Java extension enabled
Additional notes
This looks like a workspace cache or Gradle project import inconsistency issue.
It seems the Java Language Server does not correctly persist the resolved multi-module Gradle state across reloads.
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 547
- 平均マージ
- 5時間 36分
- マージ済み PR(30日)
- 10
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
redhat-developer/vscode-java のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
redhat-developer/vscode-java#4511 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
redhat-developer/vscode-java#4426 ·
メンテナーはふだん 4 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
redhat-developer/vscode-java#4506 · コメント 6 件 · リアクション 4 件 ·
メンテナーはふだん 4 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
redhat-developer/vscode-java#4505 · コメント 5 件 · リアクション 2 件 ·
メンテナーはふだん 4 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
redhat-developer/vscode-java#4504 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 4 日以内に返信
redhat-developer/vscode-java の issue をすべて見る
似ている issue
-
ADD openalgoオープンtemplate
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
factory-active factory-automatic task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
bug Needs: Triage :mag:
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
microsoft/fluentui-contrib#671 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
sveltejs/acorn-typescript#150 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100