Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run Java: Force Java compilation with gradle extension #1595

Open
yuyully opened this issue Aug 29, 2024 · 0 comments · May be fixed by #1596
Open

Failed to run Java: Force Java compilation with gradle extension #1595

yuyully opened this issue Aug 29, 2024 · 0 comments · May be fixed by #1596
Labels
bug Something isn't working

Comments

@yuyully
Copy link

yuyully commented Aug 29, 2024

Extension Name: vscode-gradle
Extension Version: v3.16.4
OS Version: win11
VSCode version: 1.92.2

Describe the bug
Failed to run Java: Force Java compilation with gradle extension.

To Reproduce

  1. Clone and open https://github.com/redhat-developer/vscode-java/tree/master/test/resources/projects/gradle/gradle-11
  2. Install redhat.java v1.34.0 (without vscode-gradle extension) > Run Java: Force Java compilation > Succeed
  3. Continue install vscode-gradle extension > Clean workspace to reload the project > Run Java: Force Java compilation > Failed

Expected behavior
Java: Force Java compilation should be successful with vscode-gradle extension.

server log
!ENTRY org.eclipse.jdt.ls.core 4 0 2024-08-29 14:42:54.859
!MESSAGE Failed to build workspace.
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Errors occurred during the build.
at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:612)
at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:484)
at org.eclipse.jdt.ls.core.internal.handlers.BuildWorkspaceHandler.buildWorkspace(BuildWorkspaceHandler.java:65)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$28(JDTLanguageServer.java:991)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$61(JDTLanguageServer.java:1226)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Contains: Errors running builder 'Build Server Builder' on project 'gradle-11'.
org.eclipse.core.runtime.CoreException: Build Failed.
at com.microsoft.gradle.bs.importer.builder.BuildServerBuilder.build(BuildServerBuilder.java:61)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:1077)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:296)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:352)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:441)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:444)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:555)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:503)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:585)
at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:595)
at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:484)
at org.eclipse.jdt.ls.core.internal.handlers.BuildWorkspaceHandler.buildWorkspace(BuildWorkspaceHandler.java:65)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$28(JDTLanguageServer.java:991)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$61(JDTLanguageServer.java:1226)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Contains: Build Failed.

Output from "Gradle for Java"
[error] [gradle-server] Could not run build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-4.10.2-bin.zip'.

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

Additional context
Add any other context about the problem here.

@yuyully yuyully added the bug Something isn't working label Aug 29, 2024
@jdneo jdneo linked a pull request Aug 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant