Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Go to symbol not available for some symbols until I open the file that contains them #556

Description

@ericbiewener

It seems like not all the symbols get indexed, regardless of whether the initial language server analysis has completed. But once I open the file that contains the symbol I'm looking for, that symbol thereafter is available.

Activity

  1. jakebailey commented on Jan 26, 2019

    @jakebailey
    Member

    What version of the language server are you on? Can you provide an example workspace/repo we could test on? Is the file not being indexed in an excluded path, like a virtual environment?

    #521, new in v0.1.77+, changes the way symbols are indexed. All symbols should be available immediately after the language server has parsed the workspace, which is soon after it starts (and can be much earlier than the analysis takes to complete).

  2. ericbiewener commented on Jan 26, 2019

    @ericbiewener
    Author

    I'm on VS Code 1.30.2 and Microsoft Python Language Server version 0.1.72.0.

    I'm not able to recreate it with an example workspace/repo because I don't know what conditions are required to make it happen. I have a multiroot workspace, but hard to identify anything else unique about it.

  3. MikhailArkhipov commented on Jan 26, 2019

    @MikhailArkhipov

    0.1.78 has new indexer and will be available shortly. It is in beta channel at the moment if you are willing to try.

  4. ericbiewener commented on Jan 27, 2019

    @ericbiewener
    Author

    Gave it a shot, but I get the same behavior. In fact, I've been able to identify now that symbols are exclusively getting indexed when the file containing them first gets opened. This is the case in both versions of VS Code.

    However, a single root workspace appears to work fine. My multiroot workspace is our main repo and along with a personal "scratchpad" directory. Opening the main repo directly as a single root workspace causes all symbols to get indexed correctly.

  5. DonJayamanne commented on Jan 27, 2019

    @DonJayamanne

    Multi root support for the language server has not yet been implemented. It is being tracked here microsoft/vscode-python#3008

  6. ericbiewener commented on Jan 27, 2019

    @ericbiewener
    Author

    That would explain it :)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions