microsoft / vscode-gradle

Manage Gradle Projects, run Gradle tasks and provide better Gradle file authoring experience in VS Code
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-gradle
MIT License
123 stars 51 forks source link

conflicts with java language extension pack #1513

Closed Arteiimis closed 2 months ago

Arteiimis commented 3 months ago

Extension Name: vscode-gradle Extension Version: OS Version: VSCode version:

Describe the bug after installing both gradle and java extension pack, creating a new springboot project will cause the java status log to keep downloading packages

To Reproduce

Expected behavior No conflict with any plugin, load the whole project normally.

Output from "Gradle for Java"

[info] [gradle-server] Server started, listening on 53512
[info] Gradle client connected to server
[info] Found 0 tasks
[info] Java Home: D:\scoop\apps\openjdk17\current
[info] JVM Args: --add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-XX:MaxMetaspaceSize=384m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country=CN,-Duser.language=zh,-Duser.variant
[info] Gradle User Home: D:\scoop\apps\gradle\current\.gradle
[info] Gradle Version: 8.8
[info] Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

CONFIGURE SUCCESSFUL in 20s

It will not show any errors in the output of gradle, but it will download indefinitely in java build status: image

Does the bug still exist if you disable all other extensions? just disable gradle extension, the entire project will not have any problems

jdneo commented 3 months ago

Is the download jar always the same one, or it's changing?

Arteiimis commented 3 months ago

Is the download jar always the same one, or it's changing?

will change, but it seems to never finish downloading, this morning I put the laptop aside to download for three hours, and still did not finish downloading, my network everything is normal, and after installing the gradle plugin java build status output will be different, will become like the screenshot of the beginning of the null information, while the normal situation is eight hexadecimal numbers

jdneo commented 3 months ago

You can turn off setting java.gradle.buildServer.enabled.

I'll check why it's so slow. Just new springboot problem with default options right?

Arteiimis commented 3 months ago

You can turn off setting java.gradle.buildServer.enabled.

I'll check why it's so slow. Just new springboot problem with default options right?

Yes, all settings are default, just select the springboot web dependency.

codespearhead commented 2 months ago

I cannot reproduce the issue on my end.

I looked into your profile and it seems that you're from China, so I suggest adding these mirrors and trying again.

Arteiimis commented 2 months ago

I cannot reproduce the issue on my end.

I looked into your profile and it seems that you're from China, so I suggest adding these mirrors and trying again.

thanks a lot! i'll try it!