Skip to content

nothing shown in VS Code Outline view #627

Closed

Description

@Eskibear

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.

Activity

  1. martinlippert commented on Apr 27, 2021

    @martinlippert
    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?

  2. Eskibear commented on Apr 27, 2021

    @Eskibear
    ContributorAuthor

    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

  3. martinlippert commented on Apr 27, 2021

    @martinlippert
    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...

  4. Eskibear commented on Apr 28, 2021

    @Eskibear
    ContributorAuthor

    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

  5. martinlippert commented on Apr 28, 2021

    @martinlippert
    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...

  6. added this to the 4.11.0.RELEASE milestone on Apr 28, 2021
  7. martinlippert commented on May 7, 2021

    @martinlippert
    Member

    @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"

  8. BoykoAlex commented on May 13, 2021

    @BoykoAlex
    Contributor

    Fixed with 4f007de

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions