Skip to content

In multi-root workspace, if there is one project cannot be build, then other projects cannot see gradle tasks. #1784

@leolcao

Description

@leolcao

Extension Name: vscode-gradle
Extension Version: 3.17.2
OS Version: Windows 11 25h2
VSCode version: 1.111.0

Describe the bug
Let's assume:

E:\a.git
E:\b.git
E:\a-b.code-workspace

In the workspace settings:

{
  "folders": [
    {
      "path": "a.git",
    },
    {
      "path": "b.git",
    },
  ],
  "settings": {
    "java.gradle.buildServer.enabled": true,
    "java.import.gradle.enabled": true,
    "gradle.nestedProjects": [
      "${workspaceFolder:a.git}",
      "${workspaceFolder:b.git}",
    ],
  },
}

Now, b.git will build failed, a.git will build successfully.
Open the gradle sidebar, I cannot see the gradle tasks and depedencies for the a.git project.

To Reproduce
Like above description.

Expected behavior
I want to see gradle tasks and depedencies from the a.git project even b.git is failed to build.

Screenshots
If applicable, add screenshots to help explain your problem.

Output from "Gradle for Java"
I can see the build failed for the b.git because some reason.

Does the bug still exist if you disable all other extensions?
Yes/No

Additional context
Add any other context about the problem here.

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