Skip to content
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

#include errors in C++ despite correct settings in VS Code #241575

Open
namanagrawal007 opened this issue Feb 22, 2025 · 0 comments
Open

#include errors in C++ despite correct settings in VS Code #241575

namanagrawal007 opened this issue Feb 22, 2025 · 0 comments
Assignees

Comments

@namanagrawal007
Copy link

Image

Type: Bug

[📌 Title:
#include errors in C++ despite correct settings in VS Code]

📌 Descriptions
I am experiencing persistent #include errors in VS Code, even after trying all known fixes. The error message appears in the editor, but my code compiles fine.

VS Code Version: 1.97.2(user setup)
C/C++ Extension Version:1.23.6
OS: Windows
Compiler: MSVC
Error Message:
"message": "#include errors detected. Please update your includePath.

📌 Steps to Reproduce:
Open a C++ file in VS Code.
Add an #include (or another standard library).
The editor shows an include error, even though the file exists and compiles successfully.
📌 What I Have Tried (None Worked):
✅ Installed C/C++ Extension
✅ Set correct compilerPath in c_cpp_properties.json
✅ Verified IntelliSense Mode
✅ Used "C_Cpp.default.includePath"
✅ Checked CMake Tools (if using CMake)
✅ Restarted VS Code
✅ Reinstalled VS Code (4 times)
✅ Reinstalled the Latest MinGW-w64 via MSYS2
i have also enabled squiggles still giving errors

VS Code version: Code 1.97.2 (e54c774, 2025-02-12T23:20:35.343Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs AMD Ryzen 5 5600H with Radeon Graphics (12 x 3294)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 7.35GB (0.85GB free)
Process Argv --crash-reporter-id b62bd099-f1c7-4086-8a93-19b6e964d771
Screen Reader no
VM 0%
Extensions (1)
Extension Author (truncated) Version
cpptools ms- 1.23.6
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31242946
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686
cp15370_c:31242498

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants