redhat-developer / redhat-developer/vscode-java

Problems (red) on Java files/packages mostly after cleaning workspace

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

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

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

説明

I have a problem where Java files and packages in vscode stay red showing a problem. This happens mostly after cleaning workspace.
I use workspaces with many different maven projects in each and it occures in all of them.

The problems shown in the problems view are The import foo.bar cannot be resolved and MyJavaClass cannot be resolved to a type. I can only fix this, if I open every single file once. Then the problmes go away automatically, but this is really annoying to do.

Environment
  • Operating System: Windows 10 20H2
  • JDK version:
  • Visual Studio Code version: 1.69.2
  • Java extension version: 1.9.0
Steps To Reproduce

Clean workspace with multiple folders of multimodule maven projects. At least using my projects this happens.

Current Result

VS Code showing a bunch of problems and red projects

image

Expected Result

No problems in VS Code and no red projects.

Additional Informations

No more hints i can give.

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

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

はじめの一歩

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

調査の方向性

複数のフォルダーとマルチモジュール Maven プロジェクトを含むクリーンな VS Code ワークスペースで、Windows 10、VS Code 1.69.2、Java extension 1.9.0 という記載された環境を使用して報告を再現します。各ファイルを開くまでインポートと型が未解決のままになるか確認します。すべてのファイルを開かなくても Problems view とプロジェクトマーカーがクリアされれば完了です。

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

評価

技術スタック
java, typescript, vscode
領域
developer-experience, tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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