Skip to content

Improvement: Classpath is Incomplete warning should give more context #959

Closed

Description

@marvingreenberg

Issue #193 points out that this message can be less than helpful. The wiki points out that this occurs when opening individual java files. But the cases associated with this message suggest there are various other conditions - missing .project files, misconfigured .classpath, among others. I have an environment where I open multiple project directories in a single vscode window. I don't even know which project to start looking at when this message appears.

It would be helpful if the message could display "Classpath is incomplete" in (File or directory reference)

Environment
  • Operating System: OSX
  • JDK version: jdk 1.8
  • Visual Studio Code version: 1.35.1
  • Java extension version: 0.46.0
Steps To Reproduce
  1. With (say) 3 java project directories in a vscode window, delete .project in one.
  2. Java: Clean the language server environment

"Classpath is Incomplete" warning is displayed

Current Result
Expected Result
Additional Informations

Activity

  1. robstryker commented on Nov 2, 2026

    @robstryker
    Contributor

    The change in #193 is the best we can realistically do here. When a classpath is incomplete, it's incomplete for the entire project, not for a specific file.

    wont-fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions