redhat-developer / redhat-developer/vscode-java

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

Open
#2,602 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug compile Maven
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report with a cleaned VS Code workspace containing multiple folders and multimodule Maven projects, using the stated Windows 10, VS Code 1.69.2, and Java extension 1.9.0 environment. Confirm whether imports and types remain unresolved until each file is opened; done means the Problems view and project markers clear without opening every file.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.