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

Error running gradle local installation #1613

Open
nonicknamelala opened this issue Oct 6, 2024 · 4 comments
Open

Error running gradle local installation #1613

nonicknamelala opened this issue Oct 6, 2024 · 4 comments
Labels

Comments

@nonicknamelala
Copy link

I set up Gradle home and disabled gradle.wrapper in vscode settings like below:

"java.import.gradle.home": "C:\ktapp\gradle",
"java.import.gradle.user.home": "C:\ktapp\repo\gradle",
"java.import.gradle.wrapper.enabled": false,
"java.import.gradle.java.home": "C:\ktapp\jdk",

The Gradle Springboot project could be loaded successffly, and most of the gradle functions work well except for below two:

1, error message prompt while clicking "GRADLE DAEMONS" the Gradle plugin from the left bar.

++++++++Error Message++++++++
Error running gradle local installation: Command failed: "C:\ktapp\gradle" "--status" "quiet" '"C:\ktapp\gradle"' is not recognized as an internal or external command, operable program or batch file.
+++++++++++++++++++++++++

If I clear gradle.home and enable gradle.wrapper, then the Gradle program could be downloaded to gradle.user.home and the Gradle daemons would be shown.

2, The Java class could not be compiled automatically, I'm not sure whether it is a bug, I have to run compile or build task every time. It is a little inconvenient.

@testforstephen testforstephen transferred this issue from microsoft/vscode-maven Oct 8, 2024
@testforstephen
Copy link
Contributor

transferred it from vscode-maven repo since the issue is related to the features of vscode-gradle extension.

@jdneo jdneo added the bug Something isn't working label Oct 8, 2024
@jdneo
Copy link
Member

jdneo commented Oct 8, 2024

Root cause is here:

const command = `${this.gradleHomePath} ${quotedArgs}`;

Should find the gradle executable from the gradle home folder instead of directly using it.

@nonicknamelala
Copy link
Author

Root cause is here:

const command = `${this.gradleHomePath} ${quotedArgs}`;

Should find the gradle executable from the gradle home folder instead of directly using it.

yes, thank you!

@jdneo
Copy link
Member

jdneo commented Oct 9, 2024

BTW, I was recently busy with other work. It would be great if community contribution can be made for this issue.

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

No branches or pull requests

3 participants