Open shailendraparihar opened 1 year ago
@datho7561 I have never tested vscode-quarkus with gradle, have you played with gradle quarkus project?
I can replicated the failure, but instead, the error popup I get "Cannot read properties of undefined (reading 'filter')".
I can't consistently reproduce the issue. I don't know what the root cause is.
Same problem, I tracked it to this line
Apparently it is returning undefined because there isn't a gradle
label in the workspace labels.
await commands.executeCommand("java.execute.workspaceCommand", JavaVSCodeCommands.WORKSPACE_LABELS_COMMAND_ID);
from here
I don't have experience in VS Code extensions development so I don't know what thatcommand
means
Same problem, I tracked it to this line
Thanks! This is very helpful. This means that the mechanism we are using to detect if a project is a Gradle project is failing. I thought the bug was in the TypeScript code, but it's probably in the Java code, or in the communication between the two.
Old discussion, but finally I resolved by creating a main class for the Quarkus application. Pretty annoying, but works well
Background: Creating projects with >Quarkus: Generate a Quarkus Project in VS code Trying to run/debug Quarkus project using command >Quarkus: Debug current Quarkus project
Issue: Works perfectly fine for maven projects. However, throws following error while running Gradle: Cannot read properties of undefined (reading 'getQuarkusDevTaskName')
Extension version: 1.16.0
Note: Gradle code running perfectly fine using terminal using command: gradlew quarkusDev