vscode-gradle icon indicating copy to clipboard operation
vscode-gradle copied to clipboard

conflicts with java language extension pack

Open Arteiimis opened this issue 1 year ago • 4 comments

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

  • Install java extension pack and gradle for java.
  • Create a new springboot gradl project with all configuration options as default.
  • Open the created project, open the java status will show that the package is always being installed.

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

Arteiimis avatar Jul 03 '24 07:07 Arteiimis

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

jdneo avatar Jul 03 '24 07:07 jdneo

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

Arteiimis avatar Jul 03 '24 08:07 Arteiimis

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?

jdneo avatar Jul 03 '24 08:07 jdneo

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.

Arteiimis avatar Jul 03 '24 08:07 Arteiimis

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.

codespearhead avatar Jul 10 '24 17:07 codespearhead

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!

Arteiimis avatar Jul 11 '24 16:07 Arteiimis