You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[5.4.1 backport] Resolve linked source folders when building the classpath- #1984 #2052
That is correct only while a source folder is a real directory inside the project. When the source
folder is a linked resource, the computed directory does not exist, createSourceCPE hands that
path to the client anyway, and SpringIndexerJava.getFiles() - Files.walk over IClasspathUtil.getProjectJavaSourceFolders(...) - walks nothing. The project then contributes no
symbols at all: no beans, no request mappings, not even handwritten ones.
and whose .classpath has <classpathentry kind="src" path="main"/>, with no main directory in
the project folder. The CPE that reaches the language server is <project location>/main, which does
not exist.
Projects shaped like this are not exotic:
the invisible project the Java language server creates for a plain folder links the workspace
folder in under ProjectUtils.WORKSPACE_LINK;
project importers contributed by other extensions keep the project metadata in the language
server's storage and link each source root - which is how I ran into this.
Measured on such a workspace of 116 generated projects: 228 of 244 source classpath entries pointed
at directories that do not exist, and the Spring index was empty for every project.
Fix
Ask the resource model first, and keep the existing arithmetic as a fallback for paths it does not
know about. Eight lines, no behaviour change for projects whose source folders are real directories.
Verification
I compiled the modified class against the jars shipped in vmware.vscode-spring-boot 2.3.0 together
with the jdt.ls plugins from redhat.java, and confirmed the emitted bytecode calls findMember
before the fallback. I have not run the project's own build or test suite (Tycho/target
platform), so please treat the change as needing your CI.
Activity
BoykoAlex commentedon Oct 13, 2026
Fixed via e6887b0