-
Notifications
You must be signed in to change notification settings - Fork 133
Go to symbol not available for some symbols until I open the file that contains them #556
Comments
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). |
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. |
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. |
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. |
Multi root support for the language server has not yet been implemented. It is being tracked here microsoft/vscode-python#3008 |
That would explain it :) |
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.
The text was updated successfully, but these errors were encountered: