-
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
cannot open source file "iostream". Please run the 'Select IntelliSense Configuration...' - #include errors detected. Please update your includePath #12978
Comments
@JustinC333 What version of the C/C++ extension are you using? 1.22.11 is the latest and 1.23.1 is the latest pre-release. |
v1.22.11, I just checked @sean-mcmanus |
@JustinC333 Can you open a .cpp file and run C/C++: Log Diagnostics? The system includes paths should be printed and if you don't see c++ system include paths then it's possible they might not be installed. It's also possible you may need to run the xcode-select command to switch to the correct system libraries that have C++ installed. You might also try changing |
-------- Diagnostics - 11/19/2024, 2:53:52 PM ------- Workspace parsing diagnostics ------- @sean-mcmanus This is what it says when I ran C/C++: Log Diagnostics |
and I also changed my Compiler path to /usr/bin/clang++ and it did not work |
@JustinC333 Did you run the C/C++: Select IntelliSense Configuration command from the command palette and select /usr/bin/clang++? Your log diagnostics system includes seem correct to me. What happens if you type |
@sean-mcmanus And yes, I've tried selecting /usr/bin/clang++ from the Configuration but nothing seemed to change |
Environment
Bug Summary and Steps to Reproduce
This problem popped up out of nowhere in the middle of October.
" cannot open source file "iostream". Please run the 'Select IntelliSense Configuration...' command to locate your system headers.C/C++(1696)"
I'm getting this error in all of my .cpp files.
I am on a MacBook Air btw and I have Clang version 16. The same problem happened on my PC, but I was able to fix that by following the instructions on the VSC website. But nothing seems to work for my Mac. Can some one please help?
I've tried clean uninstalling and reinstalling, changing the compiler path, and the Include path, and I've tried changing the "c_cpp_properties.json" file, but nothing seems to work. I've watched countless youtube videos trying to fix this issue but nothing seemed to work so far. I've spent at least 4+ hours trying to fix this :( .`
(I've included a simple code to show the problem)
(When I type in #include , usually the option for "iostream would pop up but it isn't even showing anymore)
Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: