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

Running/Debugging quarkus application with Gradle throws error #634

Open
shailendraparihar opened this issue Oct 31, 2023 · 5 comments
Open

Comments

@shailendraparihar
Copy link

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

@angelozerr
Copy link
Contributor

@datho7561 I have never tested vscode-quarkus with gradle, have you played with gradle quarkus project?

@datho7561
Copy link
Contributor

I can replicated the failure, but instead, the error popup I get "Cannot read properties of undefined (reading 'filter')".

@datho7561
Copy link
Contributor

I can't consistently reproduce the issue. I don't know what the root cause is.

@lpicchi
Copy link

lpicchi commented Nov 29, 2023

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

@datho7561
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants