-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Intellisense doesn't parse system includes correctly #12736
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
Comments
Hi @nolankramer . I'm not easily able to repro an issue with the configuration you provided (without the custom configuration provider specified), clang 18.1.3, and the following code:
However, your configuration does include:
So your IntelliSense configuration may be based on whatever CMake Tools has provided (which would require a CMakeLists.txt and have specified the source file there). We are aware of the following issue with clang 18. You might try the work around here: #12618 |
Thanks for the reply @Colengms ! I tried the workaround, but no luck - same issues. How can I provide more information about the CMake setup without pasting the Is there specific CMake values you'd like to know about? If it helps, here's the |
Interestingly, removing the |
If you are using the configuration provider, I believe the workaround also required setting |
Yes it looks like setting This can be closed since there are now two solutions, with backend changes pending to ease setup. |
Type: Bug
System includes are completely broken with clang and libstdc++. Intellisense claims
std::filesystem::path
is not a type, among other things.This obviously causes a massive amount of "errors" to show up in the editor.
Here's my clang -v:
And my Linux configuration in c_cpp_properties.json:
The std version being passed into the compile commands is:
-std=gnu++17
Extension version: 1.21.6
VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS version: Linux x64 6.8.0-45-generic snap
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: