Shi Chen
Shi Chen
are you going to get - the plugin information. e.g., { id: "com.diffplug.spotless", version: "5.7.0" } - the using Gradle version. e.g., 7.3 from a specific project?
Which way are you using to import your project, Gradle wrapper, specific Gradle version or local Gradle distribution?
You can check the setting `java.import.gradle.wrapper.enabled`, you're using Gradle wrapper when it's enabled. If so, could you check if you can correctly execute via Gradle CLI (`./gradlew`)? BTW, I noticed...
could you paste your output log in "Gradle for Java" channel? is your PC using proxy?
The current timeout to wait the debugger to launch is 10s. https://github.com/microsoft/vscode-gradle/blob/a3d41be8049d1f60ab251f404862fb4d2dcbd7b4/extension/src/util/index.ts#L11 Does this message appear within this timeout or after this timeout?
@hanct Get it, emmm but I can't reproduce it locally. Could you provide a sample project? I'm guessing it's the bug about the current mechanism of querying debug port.
Thanks for the sample. Unfortunately, I still can't reproduce it on my PC (with 10+ tries). maybe this issue is related to system performance, and I would have another try...
> I try to debug without going thru gradle, and i got error message "Missing Gradle project configuration file: .settings/org.eclipse.buildship.core.prefs". This issue has been raised out at the vscode-java github....
I can reproduce this in @34will's sample project, it seems that the extension try to start the debug session before the Gradle task is going to run. Let me investigate...
@hannah23280 sorry for late response. There was a PR tring to fix this issue via serveral retries, could you try if it works? https://github.com/CsCherrYY/vscode-test/blob/main/vscode-gradle-3.12.5.vsix