Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Very slow to display symbols in CODE OUTLINE #114

Open
derekwallace opened this issue May 2, 2018 · 4 comments
Open

Very slow to display symbols in CODE OUTLINE #114

derekwallace opened this issue May 2, 2018 · 4 comments
Labels
upstream Bugs caused by third-party libraries and extensions

Comments

@derekwallace
Copy link

Hi,
I have small python files and its very slow at displyaing symbols.
If i open a new file the file opens in editor quickly but it takes about 10 sec for CODE OUTLINE.
If i switch between files in Open Editors , it takes about 10 sec to update symbols in CODE OUTLINE.
If i hit the refresh button it also takes 10 sec.

What is it running to parse the symbols? could there be something i have installed that is conflicting?

A colleague of mine does not have the issue working on the same file.
Im using 1.22.2 of VSCode and the latest extension 0.1.1.

I desperatly want to get this working as it a missing key to using VSCode.

Ive attached a screenshot of the profiler. at 2 sec i select a differnet file. at about 10 sec the CODE OUTLINE is updated.
profile

Thanks
Derek

@patrys
Copy link
Owner

patrys commented May 2, 2018

Code Outline uses the SymbolProvider API to call into a language-specific extension. Is the builtin "go to symbol" feature also slow for you? They use the same API internally.

@derekwallace
Copy link
Author

Yes its the same. Ctrl+; and if i type in a Symbol it takes about 10 sec for something to appear.

Any idea what i should look for next to try and debug?

Thx
Derek

@patrys
Copy link
Owner

patrys commented May 2, 2018

You can file a similar issue with the Microsoft's Python extension for VS Code and link this one to it. I suppose it's something specific to how your environment is configured as I write a lot of Python code and never see it get that slow.

@patrys patrys added the upstream Bugs caused by third-party libraries and extensions label May 9, 2018
@derekwallace
Copy link
Author

I opened an issue aainst vscode.
it seems the issue is related to the Python extension and using network drives on windows.

As a test i uninstalled python and installed the pydev extensions.
With this extension the displaying of symbols is instantaneous. exactly what i expect.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
upstream Bugs caused by third-party libraries and extensions
Projects
None yet
Development

No branches or pull requests

2 participants