Skip to content

VS Code Gradle Extension Duplicates and Repeats Tasks #1194

@Yahya-Allam

Description

@Yahya-Allam

Extension Name: vscode-gradle
Extension Version: v3.11.0
OS Version: Windows 10 Enterprise 64-bit (10.0, Build 19042)
VSCode version: 1.65.1 (system setup)

Describe the bug
This bug started with version 3.10.0 it was not happening in previous versions.
When the extension starts to search for tasks it duplicates the tasks extensively.

To Reproduce

  1. Open a project that has nested /sub-projects like Liferay projects.
  2. the Gradle extension will start scanning the project automatically for tasks,

Expected behavior
For nested projects, Gradle extension will duplicate their tasks, in the output snaps it has produced 46468 tasks!

Screenshots
image
image

Output from "Gradle for Java"

[debug] [gradle-server] Starting server
[debug] [gradle-server] Gradle Server cmd: c:\Users\user.name\.vscode\extensions\vscjava.vscode-gradle-3.11.0\lib\gradle-server.bat 51621
[info] [gradle-server] Server started, listening on 51621
[info] Gradle client connected to server
[info] Java Home: C:\Program Files\Java\jdk1.8.0_301
[info] JVM Args: -XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant
[info] Gradle User Home: C:\Users\user.name\.gradle
[info] Gradle Version: 6.6.1
[info] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings

CONFIGURE SUCCESSFUL in 1m 49s
[debug] Refreshing tasks
[info] Found 46468 tasks

Additional context
from Settings.json:

{
 "java.jdt.ls.java.home": "C:\\Program Files\\Amazon Corretto\\jdk11.0.12_7",
 "java.configuration.runtimes": [  
        {
            "name": "JavaSE-1.8",
            "path": "C:\\Program Files\\Java\\jdk1.8.0_301",
            "sources": "C:\\Program Files\\Java\\jdk1.8.0_301\\src.zip",
            "javadoc": "https://docs.oracle.com/javase/8/docs/api",
            "default": true
        },

        {
            "name": "JavaSE-11",
            "path": "C:\\Program Files\\Amazon Corretto\\jdk11.0.12_7",
            "sources": "C:\\Program Files\\Amazon Corretto\\jdk11.0.12_7\\lib\\src.zip"
        }

    ],
     "gradleLang.trace.server": "verbose",
    "gradle.debug": true,
    "java.import.gradle.java.home": "C:\\Program Files\\Java\\jdk1.8.0_301",
    "gradle.nestedProjects": true,
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions