Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nothing shown in VS Code Outline view #627

Closed
Eskibear opened this issue Apr 16, 2021 · 7 comments
Closed

nothing shown in VS Code Outline view #627

Eskibear opened this issue Apr 16, 2021 · 7 comments
Assignees

Comments

@Eskibear
Copy link
Contributor

Describe the bug
Spring Boot Tools extension provides nothing in outline view.

image

To Reproduce
Open project spring-petclinic, file PetController.java.

Expected Behavior
Previously it was like below:
image

Additional Info
OS: Windows 10
VS Code: 1.55.2
Java Extension: 0.77.0
Spring Boot Tools: 1.25.1
JDK: 11.0.8.10-hotspot

Other features of this extension seem to be working well. No suspicious log from output window.

@martinlippert
Copy link
Member

Here is what I observe when trying this:

  • 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?

@Eskibear
Copy link
Contributor Author

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.
spring-outline

@martinlippert
Copy link
Member

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
Copy link
Contributor Author

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.

spring-outline-local

Logs here: spring.log

@martinlippert
Copy link
Member

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 martinlippert added this to the 4.11.0.RELEASE milestone Apr 28, 2021
@martinlippert
Copy link
Member

martinlippert commented 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
Copy link
Contributor

Fixed with 4f007de

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants