Skip to content

vscode diagnosis problems issue after clean java language server workspace problems #4068

@HKChen

Description

@HKChen

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)

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions