Closed dougclayton closed 1 month ago
This bug is still present as of 3.14.1.
Do Simple1 and Simple2 have any kind of relationship, like include build?
Or they are just two independent projects?
They don't have any relationship. It's literally just two files in the entire workspace, each with a single line in them.
This bug is still present as of 3.16.0.
Sorry, it should be related with the project scan mechanism I think: https://github.com/microsoft/vscode-gradle/blob/d45be231432c0feb2f5db8bc87230869f19f3093/extension/jdtls.ext/com.microsoft.gradle.bs.importer/src/com/microsoft/gradle/bs/importer/GradleBuildServerProjectImporter.java#L59
So far, there are some workaround:
Yes, agreed it's probably an issue in the scan code. Neither of your suggestions works for us, so our workaround is to downgrade to 3.13.0 but that won't last forever. Is opening a workspace with multiple Gradle projects officially supported? Because this bug doesn't require any kind of strange setup, just 2 trivial Java projects.
Can confirm this is fixed in the latest version, thanks!
Extension Name: vscode-gradle Extension Version: 3.13.5 OS Version: Win11 VSCode version: 1.90.0
Describe the bug Two Java-based Gradle projects in one workspace make only one Java project show up. This does not occur with 3.13.0 (verified with repeated version toggling). It also only breaks if the
java
plugin is applied.To Reproduce Create a new workspace with these files: simple1/build.gradle simple2/build.gradle
Each build.gradle just consists of the following line:
Switch to 3.13.5 and run "Java: Clean Language Server Workspace".
Expected behavior Both
simple1
andsimple2
Java projects should be listed in "Java Projects". Instead, onlysimple1
shows up.Screenshots
Output from "Gradle for Java"
Does the bug still exist if you disable all other extensions? Yes.
Additional context As mentioned, it works in 3.13.0 and first broke in 3.13.1.