sts4
sts4 copied to clipboard
message: Missing Gradle project configuration folder: .settings;
Describe the bug I can't debug spring boot application on vscode, and am seeing this error on loading
message: Missing Gradle project configuration folder: .settings;
I tried to reproduce this via:
- created a new Spring Boot project via the initializr integration in VSCode and choose to create a Gradle project
- added some code to the project, seems to work all fine
- I can run the app in debug mode just fine, setting breakpoints, stopping at them, etc.
So the issue that you describe might be related to something that is specific to your project or workspace. Can you share a few more details and steps how to reproduce this?
Also adding @Eskibear for awareness, maybe he has some additional insights here, since launching is usually done outside of the Spring tooling extension.
@mwaaas This message is probably from buildship, which is a dependency of JDT.LS to deal with Gradle projects: https://github.com/eclipse/buildship/blob/35d01caad3ab023fdd9fdf4a1b9e9c738bff7fd0/org.eclipse.buildship.core/src/main/java/org/eclipse/buildship/core/internal/configuration/GradleProjectValidationResourceDeltaVisitor.java#L112
Adding @cscherryy who is more familiar with Gradle support.
BTW I think eclipse.jdt.ls or vscode-java would be proper places for this issue, based on where you see this error message. And, if a sample project for us to reproduce the issue would be much more helpful.
IMO this issue is related to some out-of-sync metadata files of the project, please refer to https://github.com/microsoft/vscode-gradle/issues/1258#issuecomment-1211455418 to see if it works.
Closing this one here due to no activity since Aug 2022. If you still come across this issue, please follow-up on the mentioned projects around the Gradle support in the Java tooling for VSCode.