Skip to content

"Starting java language server" processing stops before 100% on workspaces with a non-existing project directory (causing "Classpath is incomplete") #1303

Open
@ghuser

Description

@ghuser

The following workspace opens ok and "starting java language server" process finishes at 100%

{
	"folders": [
        {
            "path":"simple-project1"
        },
        {
            "path":"other-existing-dir"
        }
    ]
}

However the one below one stops at 30% because the first project path in the workspace does not exist. This causes also the following error when clicking on the code of Main.java: "Classpath is incomplete: Only syntax errors will be reported":

{
	"folders": [
        {
            "path":"non-existing-dir"
        },    
        {
            "path":"simple-project1"
        },
        {
            "path":"other-existing-dir"
        }
    ]
}
Environment
  • Operating System: Ubuntu 18.04.3 LTS
  • JDK version: 13
  • Visual Studio Code version: 1.42.1
  • Java extension version: 0.57.0 (got from changelog)
Steps To Reproduce
  • First open working-workspace.code-workspace and see the thumbs-up symbol on down-right side.
  • Then open problematic-workspace.code-workspace and see the thumbs-down symbol on down-right side.
Current Result
Expected Result
Additional Informations

code-missing-project-path-issue.tar.gz

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