-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
No Symbols Found #591
Comments
"No Symbols Found" means the current file hasn't been parsed yet. Opening the file should trigger a parse on the main thread. The "Loading" on hover means the main thread is blocked. This is very bad and not expected behavior. Did you change your files.exclude right beforehand? Is the Microsoft.VSCode.Cpp.Extension.darwin process using CPU? Can you tell if it has crashed? |
Yeah, it looks like our process is crashing (the main thread is crashing, but the process remains). Can you get any crash info on the Mac? Windows has an Event Viewer with crashes logged and I remember Mac had something similar. We need to get a call stack or repro. Narrowing down the repro steps would also help. Or if you can repro the bug on Windows we could get a dmp that way. Can you open your folder without opening any files while the Mac config in the bottom right is red and wait till it is white? It's possible that a file is causing our parser to crash due to unexpected characters. If you could open a smaller workspace or add files.exclude for particular file types, that could help narrow down the file that is causing problems. Non-C/C++ files with an extension VS Code expects to be C/C++ could cause it (e.g. .inl). |
Yes, I do have crash logs, here is the section on the thread that crashed:
I'll also also attach the entire crash log if you need to see the entire thing. Interestingly enough on a different computer it's working fine, so it's not the files in the folder. |
Thanks a lot for reporting this bug. We believe we have a fix for the bug and should have it released in the next update (next week?). When the call to nftw fails (unknown repro) we were holding onto an invalidated iterator, which could crash when dereferenced. This should fix the crash, but failing to traverse the workspace/include directories could lead to symbols being missing. |
This issue should be fixed with v0.11.0. Please let us know if you are still having issues. |
I'm wanting to try out Visual Studio Code but am running into a problem with a C++ project where I'm unable to load symbols in my file.
My symptoms are:
Versions:
Visual Studio Code 1.10.2 8076a19fdcab7e1fc1707952d652f0bb6c6db331
cpptools 0.10.5
OSX 10.12.3
Symbols are resolving properly in my PHP projects, so it's something specific with cpptools. I even tried disabling all extensions except for cpptools.
The text was updated successfully, but these errors were encountered: