-
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
Bug with IntelliSense - <algorithm> with c++20 and gcc-10.2.0 #5897
Comments
Is this a regression, i.e. does it repro with 0.29.0? How are you obtaining gcc-10.2.0? Setting |
It doesn't repro with 0.29.0.
After I set |
I'm getting the same issue. Just a note: changing from c++20 to c++17, the issue goes away. I've isolated it to an issue parsing For some reason, There's probably more to it, but this is most likely a good starting point. |
@Prism019 Are you also using gcc-10.2.0 ? Does the issue repro with a different version of gcc or only gcc-10.2.0? |
I'm using gcc 10.1.0, obtained from the arch linux repository. |
@Prism019 Could you provide logs from running the command |
Hi, I'm getting the same issue here. And toggling from c++20 to c++17 doesn't work for me... I'm using gcc10.2.0 on WSL(built from source) and MSYS2(installed by package manager) separately. And both generate exactly same bugs more details I've got:1. everything is ok if you just include only
|
c++20
c++17
Also: I got the |
I got a repro with VS (recent changes fixed the errors in this issue, but there are still crashes or "No IL available"). I've filed a bug at https://developercommunity.visualstudio.com/content/problem/1154128/c-intellisense-doesnt-work-with-the-gcc-102-algori.html . UPDATE: Appears like this will be fixed in our next release. |
Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/0.30.0-insiders3 . Please file a new issue if you still hit other crashes in other scenarios. |
Type: LanguageService
Describe the bug
Include
<vector>
but IntelliSense shows 'No vector in std' andPCH 警告: 头停止点不在文件范围内。未生成 IntelliSense PCH 文件。
Also, after change the order of the includes, it won't shows
PCH 警告: 头停止点不在文件范围内。未生成 IntelliSense PCH 文件。
but 'No vector in std'Steps to reproduce
Expected behavior
Logs
Screenshots
Additional context
c_cpp_properties.json
The text was updated successfully, but these errors were encountered: