-
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
C_Cpp.intelliSenseCacheSize initially empty, causing language server crashes #11426
Comments
What exactly do you mean by "empty"? Also, what does the red warning say? I'm not able to get a crash or red error and I don't see where in the code it could be crashing. |
@npnkhoi Can you click the Open JSON settings button in the top right of the settings UI? That will show what is actually being used. |
@npnkhoi I just reproed the crash via setting it to a string instead of a number. |
@npnkhoi But if your setting is set to something other than a string, let us know so we can handle that case too. |
@npnkhoi Also, I assume you or something else must have set that to a string? I don't know how it could default to an invalid value. Maybe the workspace you opened had that setting already set? |
Yes, it is possible that I might set it to some illegal values in JSON while messing around with the settings some time ago, but I cannot be sure because once I set it back to a valid number via GUI, I cannot set it to anything else. To repro, I tried deleting the JSON setting file of the extension, and reinstall it (not a good repro in hindsight). The crashes went way then. So it is very likely that my existing JSON settings already had that invalid value. |
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
When I download this extention (
ms-vscode.cpptools
) and open a simple .C file, the language server says it crashes for 5 times in 3 minutes. After that, nothing about this extention works.Looking at the settings of the extension, I saw that
C_Cpp.intelliSenseCacheSize
was empty. However, this field is required (VsCode show a red warning). When I fill the value5120
to it and reload VsCode, the error disappears and everything works normally.Steps to reproduce:
ms-vscode.cpptools
..C
file (e.g., hello world)Expected behavior:
The language server should not crash by default like that.
Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: