redhat-developer / redhat-developer/vscode-java

False positive warnings and errors

Open
#3,807 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When loading a java project, the extension reports hundreds of warnings and errors. once those files are opened, the nonsenese warnings and errors disappear.
If at any point all java files are closed, the nonsense warnings and errors reappear.

The only way to get rid of them is to open every file they appear in.

Environment
  • Operating System: MacOS 14.5
  • Visual Studio Code version: 1.95.0
  • Java extension version: 1.35.1
$ java -version
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment Zulu22.32+15-CA (build 22.0.2+9)
OpenJDK 64-Bit Server VM Zulu22.32+15-CA (build 22.0.2+9, mixed mode, sharing)
Steps To Reproduce
  1. Open a relatively large java project
  2. observe nonsense errors and warnings

Dozens of warnings for file ArrayList.java

No issues found in file after opening

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

Start by reproducing the issue with the reported macOS, VS Code, Java extension, and OpenJDK versions on a relatively large Java project. Compare diagnostics before and after opening the affected files, including ArrayList.java; done means false warnings and errors do not reappear when all Java files are closed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.