-
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
syntax check incorrect for some C++ library #8487
Comments
The bug doesn't repro with 1.7.1 -- a workaround is to change C_Cpp.updateChannel to "Default" instead of "Insiders" to downgrade to 1.7.1. This is most likely a duplicate of #8475 . |
Thanks, v1.7.1 is ok. Hope this extension can support more C++ feature in v1.8 ! |
@yuanyangwangTJ FYI, you can add "-fno-ms-extensions" to compilerArgs with 1.8.0-insiders2 to work around this bug, which was "triggered" by a 1.8.0-insiders bug fix that added -fms-extensions (which is the default for mingw gcc). |
Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/1.8.0-insiders3 or 1.8.0 (via using VS Code's "Pre-Release Version" UI or https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools&ssr=false#version-history ). Unless you're explicitly adding -fms-extensions, in which case that bug fix is still pending (#8353 ). |
The underlying issue is now fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/1.8.1 , i.e. you can add back -fms-extensions -- however you may still hit other bugs when -fms-extensions are used (#8353). |
Bug type: Language Service
Describe the bug
I use a C++
json
library --nlohmann/json
, which is written by modern C++, and I install it bymsys2
on win. But when I use it, vscode can't find all member function of this library, just part of it. Actually, my code can be compiled and run. It's terrible to see errors that do not exist in code. May it's my fault forintelliSense
configuration? It's worth mentioning that when I open my code by vim editor with a autocomplete pluginYouCompleteMe
, there is no error. So where is the problem?Expected behavior
Vscode with C++ extension can find correct API and member function of library.
Code sample and logs
c_cpp_properties.json
C/C++: Log Diagnostics
from the VS Code command paletteScreenshots
Additional context
The text was updated successfully, but these errors were encountered: