Skip to content

Multiroot workspace not working correctly with two invisibile projects #1183

@Vigilans

Description

@Vigilans

When adding more than one invisible projects to a multi-root workspace, only one project can be configured properly.

Environment
  • Operating System: Mac OS
  • JDK version: AdoptOpenJDK build 1.8.0_212-b04
  • Visual Studio Code version: 1.40.2
  • Java extension version:
Steps To Reproduce
  1. Open an invisible project in vscode
  2. Use Add Folder to Workspace to add another invisible project along with current project
  3. Wait for two projects to setup.

Sample project: https://github.com/santiontanon/microrts

Language server log

!ENTRY org.eclipse.jdt.ls.core 1 0 2019-12-06 13:19:17.854
!MESSAGE Creating the Java project jdt.ls-java-project

!ENTRY org.eclipse.jdt.ls.core 1 0 2019-12-06 13:19:17.961
!MESSAGE >> initialized

!ENTRY org.eclipse.jdt.ls.core 1 0 2019-12-06 13:19:18.979
!MESSAGE Finished creating the Java project jdt.ls-java-project

!ENTRY org.eclipse.jdt.ls.core 1 0 2019-12-06 13:19:20.045
!MESSAGE Try to create an invisible project for the workspace /Users/vigilans/microrts

!ENTRY org.eclipse.jdt.ls.core 1 0 2019-12-06 13:19:20.046
!MESSAGE Creating the Java project microrts_8212b777

!ENTRY org.eclipse.jdt.ls.core 1 0 2019-12-06 13:19:20.081
!MESSAGE Finished creating the Java project microrts_8212b777

!ENTRY org.eclipse.jdt.ls.core 1 0 2019-12-06 13:19:20.490
!MESSAGE Successfully created a workspace invisible project microrts_8212b777

!ENTRY org.eclipse.jdt.ls.core 1 0 2019-12-06 13:19:20.675
!MESSAGE Workspace initialized in 2912ms

!ENTRY org.eclipse.jdt.ls.core 1 0 2019-12-06 13:19:20.745
!MESSAGE >> initialization job finished

and

!ENTRY org.eclipse.jdt.ls.core 1 0 2019-12-06 13:19:44.972
!MESSAGE Classpath is incomplete. Only syntax errors will be reported for file:///Users/vigilans/microrts_copy/src/rts/GameSettings.java

Current Result

Here, microrts and microrts_copy are both invisibile projects, and they can properly work when opened individually.

But when grouping them into one multi-root workspace, only one of the projects can work, the other will not be shown in dependency viewer along with Classpath is incomplete. Only syntax errors will be reported.

Expected Result

Two invisibile projects can be correctly configured in multi-root workspace.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions