You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
java.lang.IllegalArgumentException: Project is not a Gradle build server project: demo #1860
When I try to run the test with delegate to gradle I get this exception.
[Error - 8:27:10 PM] Apr 26, 2026, 8:27:10 PM Error in calling delegate command handler
java.lang.IllegalArgumentException: Project is not a Gradle build server project: demo
at com.microsoft.gradle.bs.importer.handler.GradleDelegateCommandHandler.executeCommand(GradleDelegateCommandHandler.java:40)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$1.run(WorkspaceExecuteCommandHandler.java:230)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler.executeCommand(WorkspaceExecuteCommandHandler.java:220)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$4(JDTLanguageServer.java:639)
at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:87)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:667)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:504)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:511)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1450)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2019)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
Hi @milic-marko, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
The error “Project is not a Gradle build server project: demo” indicates the Java language server isn’t recognizing your folder as a Gradle‐imported build. To resolve:
Ensure you’ve opened the Gradle root (the folder with settings.gradle or build.gradle) and then use Gradle: Refresh All in the Gradle sidebar so that the build server importer picks it up.
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!
Activity
github-actions commentedon Apr 26, 2026
Hi @milic-marko, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
The error “Project is not a Gradle build server project: demo” indicates the Java language server isn’t recognizing your folder as a Gradle‐imported build. To resolve:
Run Java: Clean Java Language Server Workspace from the Command Palette and reload VS Code
Cannot see Delegate Test to Gradle option in VS Code vscode-gradle#1606 (comment)
Ensure you’ve opened the Gradle root (the folder with settings.gradle or build.gradle) and then use Gradle: Refresh All in the Gradle sidebar so that the build server importer picks it up.
This is a known issue:
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!