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

VSCode busy building symbols and stops the auto complete from working #14848

Closed
dtasev opened this issue Nov 2, 2016 · 14 comments
Closed

VSCode busy building symbols and stops the auto complete from working #14848

dtasev opened this issue Nov 2, 2016 · 14 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@dtasev
Copy link

dtasev commented Nov 2, 2016

  • VSCode Version: 1.6.1
  • OS Version: Windows 7

Hello, I've been having issues with using an extension that builds symbols. I can replicate the issue with both the official C++ and Python extensions.

Some info about the project:

  • It's large (10k+ files)
  • It's mostly on cpp and python, but there's a wide variety of file types
  • I've added loads of file extensions to be ignored (not sure if this affects which files are processed)

Regardless of extension, the auto complete is stuck on Loading... most of the time, I imagine that is because the symbols are being built? The symbols also seem to be lost on editor change, resulting in another ~30sec symbol building.

However Reloading the window from the command prompt actually refreshes all the symbols and auto complete and builds/loads them in nearly instantly.. until the editor is changed again.

I am not sure whether this is an extension specific issue, however getting exactly the same problem with 2 completely different extension leads me to believe that there could be a deeper problem in VSCode.

I'll provide any additional info you want if I can.

Steps to Reproduce:

  1. Load very large project (the one Im working on is 10k+ files)
  2. Need an extension that builds symbols for the language, the problem does not exist if symbols are not being built.
  3. Play around with the files and editors, the auto complete will stop working and most of the time will be spent building symbols.
@rebornix
Copy link
Member

rebornix commented Nov 2, 2016

Not quite sure who is the owner but see @joaomoreno had perf fix for #1923 so assign to him first.

@dtasev
Copy link
Author

dtasev commented Nov 2, 2016

The problem that was in the previous issue has not reappeared, the big test file loads all the intellisense symbols quickly.

I did some profiling and it seems that for the most part VSCode just hangs idle

@joaomoreno
Copy link
Member

It would be great to know which extension you refer to. This is very likely an issue for that extension.

@joaomoreno joaomoreno added the info-needed Issue requires more information from poster label Nov 3, 2016
@dtasev
Copy link
Author

dtasev commented Nov 3, 2016

@joaomoreno The C/C++ microsoft extension and the Don Jayamanne Python extension both get stuck loading symbols, used on the same project

@joaomoreno
Copy link
Member

Do they get stuck also when used exclusively? Disable one, try the other. And vice versa.

@dtasev
Copy link
Author

dtasev commented Nov 3, 2016

@joaomoreno Yes they do get stuck when installed exclusively. Regardless of having just the C++ or just Python extension the auto complete/symbol building is stuck.

However with 1.7 the building of the symbols still takes years, but the symbols are no longer lost on each editor change.

@joaomoreno
Copy link
Member

@jrieken Any thoughts on this?

@jrieken
Copy link
Member

jrieken commented Nov 3, 2016

@DIMITARTASEV When you say is stuck do you mean high CPU load of main process, the editor is unresponsive or do you mean it is just slow, shows loading forever but you can switch to another file, you can still type?

@dtasev
Copy link
Author

dtasev commented Nov 6, 2016

I'm sorry for not being more clear, by stuck i mean shows loading forever but you can switch to another file, you can still type, the editor is still as responsive as usual, just symbols show the animated line that moves and auto complete shows Loading... for a long time. The CPU usage doesn't increase for Code.exe.

I had the same problem yesterday on a small project as well, just a few files, with the same two extensions (both installed at the same time and each one individually)

@dtasev
Copy link
Author

dtasev commented Nov 16, 2016

This seems to be less of an issue in Windows now, as on Windows all the symbols are usually kept after being built (even though that still takes a while). On Ubuntu 14.04 however the issue persists and the symbols keep being lost, making the default visual studio auto complete unusable

@joaomoreno
Copy link
Member

@DIMITARTASEV Is it possible to show us a screencast recording of the behaviour you observe?

@dtasev
Copy link
Author

dtasev commented Nov 23, 2016

I'll try and have a screencast done and up over the weekend at the latest!

@dtasev
Copy link
Author

dtasev commented Nov 29, 2016

The C++ extension works on Windows now, it takes a bit to build symbols, but afterwards they are kept. The Python extension doesn't finish building symbols, leaving me to think that the issue is related to the extensions. On Linux both extensions fail to build the symbols and block any auto-complete until that has happened (if it ever finishes). I'm closing this issue until I have a recording so I can show you the behaviour.

@dtasev dtasev closed this as completed Nov 29, 2016
@dtasev
Copy link
Author

dtasev commented Dec 6, 2016

If anyone happens upon a similar problem, look into your extensions and find if they have specific directories to be included (the C/C++ extension) in the search or excluded (the Python extension).

Setting those up could help them process your project faster.

Watch out for including big directories as they might just parse them recursively (the C/C++ extension), in that case it's better to specify the specific folders containing the C/C++ files.

In the Python extension, you can exclude those big directories from being parsed.

Hope that helps.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants