vscode-gradle: VS Code Gradle Extension Duplicates and Repeats Tasks
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
- Open a project that has nested /sub-projects like Liferay projects.
- 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
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,
}
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 15
@CsCherrYY I tried the latest version
3.12.2022051800
actually, the bug is fixed in my git repos.Feel happy for the recognization with my sample repo. this extension is a great work to let me stay on vscode. btw, this bug aslo appear in the nested projects which be included in my sample repo too.
Thank you @CsCherrYY
Actually the same … and the number has not been changed. [info] Found 46468 tasks