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
the outline doesn't show any symbols from the Spring Tools as long as you keep the editor active/open for the file that was open while the tooling started up in the background
if you switch to another Java file, the symbols show up in the outline
if you switch back to the same file that you had open in the first place, the symbols show up again
Can you verify this? Do you see the same behavior? Or do the symbols never show up in the outline view for you?
if you switch to another Java file, the symbols show up in the outline
if you switch back to the same file that you had open in the first place, the symbols show up again
No, that's not my case. I switch between files, close and re-open, Spring-specific outline just doesn't show.
Below is a quick example I just tried, please let me know if any detailed information is needed.
Hm, okay, that is indeed different - and weird. Do the symbols show up when you search for symbols in workspace?
And can you enable the log files for the language server ("spring-boot.ls.logfile": "<somepath>/vscode-logs")? Would be interesting to see what the Spring language server says here...
Do the symbols show up when you search for symbols in workspace?
I just tested on my local Windows machine, no they didn't show.
PS: The first screenshot above #627 (comment) was tried on Codespaces (vscode-remote), and after I configured spring-boot.ls.logfile and reloaded the window serveral times just now, the issue was gone. So I switched to my local machine, and the same issue occurred, see below for more details.
Thanks for attaching the log file, that helps. It looks like the mechanism between the Java Language Server and the Spring Boot Language Server to send over information about projects and their class paths didn't happen here. Could this be related to #628?
Somehow it seems that the Spring Boot Language Server doesn't receive any project/classpath information from the Java Language Server...
@Eskibear There is also a preference that you can set to let the Spring Boot Language Server dump its logs into a file that you specify. Maybe the logs of the language server will reveal more details here:
Activity
martinlippert commentedon Apr 27, 2021
Here is what I observe when trying this:
Can you verify this? Do you see the same behavior? Or do the symbols never show up in the outline view for you?
Eskibear commentedon Apr 27, 2021
No, that's not my case. I switch between files, close and re-open, Spring-specific outline just doesn't show.
Below is a quick example I just tried, please let me know if any detailed information is needed.

martinlippert commentedon Apr 27, 2021
Hm, okay, that is indeed different - and weird. Do the symbols show up when you search for symbols in workspace?
And can you enable the log files for the language server (
"spring-boot.ls.logfile": "<somepath>/vscode-logs")? Would be interesting to see what the Spring language server says here...Eskibear commentedon Apr 28, 2021
I just tested on my local Windows machine, no they didn't show.
PS: The first screenshot above #627 (comment) was tried on Codespaces (vscode-remote), and after I configured spring-boot.ls.logfile and reloaded the window serveral times just now, the issue was gone. So I switched to my local machine, and the same issue occurred, see below for more details.
Logs here: spring.log
martinlippert commentedon Apr 28, 2021
Thanks for attaching the log file, that helps. It looks like the mechanism between the Java Language Server and the Spring Boot Language Server to send over information about projects and their class paths didn't happen here. Could this be related to #628?
Somehow it seems that the Spring Boot Language Server doesn't receive any project/classpath information from the Java Language Server...
martinlippert commentedon May 7, 2021
@Eskibear There is also a preference that you can set to let the Spring Boot Language Server dump its logs into a file that you specify. Maybe the logs of the language server will reveal more details here:
"spring-boot.ls.logfile": "~/Desktop/vscode-spring-boot-ls-logs.txt"BoykoAlex commentedon May 13, 2021
Fixed with 4f007de