vscode-cpptools
vscode-cpptools copied to clipboard
Intellisense Suddenly Stopped Working For Standard Headers & Included Directories
Brief Issue Summary
A couple of days ago my intellisense just suddenly stopped working across all projects on one of my machines. It still works without issue on two of my other machines.
There are no compilation problems.
The error across projects is one, or both of these:
#include errors detected based on information provided by the configurationProvider setting. Squiggles are disabled for this translation unit (D:\home\Documents\workspace\test\main.cpp).C/C++(1696)
cannot open source file "iostream"C/C++(1696)
CMake Tools Diagnostics
{
"os": "win32",
"vscodeVersion": "1.89.1",
"cmtVersion": "1.17.17",
"configurations": [
{
"folder": "d:\\home\\Documents\\workspace\\test",
"cmakeVersion": "3.27.0",
"configured": false,
"generator": "Visual Studio 17 2022",
"usesPresets": false,
"compilers": {}
}
],
"cpptoolsIntegration": {
"isReady": false,
"hasCodeModel": false,
"activeBuildType": "",
"buildTypesSeen": [],
"requests": [],
"responses": [],
"partialMatches": [],
"targetCount": 0,
"executablesCount": 0,
"librariesCount": 0,
"targets": []
},
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "auto",
"configureOnOpen": null
}
]
}
Debug Log
[main] Building folder: test clean
[expand] expanding cmake
[main] Saving open files before configure/build
[expand] expanding cmake
[expand] expanding cmake
[main] Configuring project: test
[main] Saving open files before configure/build
[expand] expanding D:/home/Documents/workspace/test
[expand] expanding ${workspaceFolder}/build
[driver] Start configure
[driver] Running pre-configure checks and steps
[expand] expanding --no-warn-unused-cli
[expand] expanding -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE
[expand] expanding D:/home/Documents/workspace/test
[expand] expanding ${workspaceFolder}/build
[cmakefileapi-driver] Configuring using kit
[cmakefileapi-driver] Invoking CMake D:\Program Files\CMake\bin\cmake.EXE with arguments ["--no-warn-unused-cli","-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE","-SD:/home/Documents/workspace/test","-Bd:/home/Documents/workspace/test/build","-G","Visual Studio 17 2022","-T","host=x64","-A","x64"]
[proc] Executing command: "D:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -SD:/home/Documents/workspace/test -Bd:/home/Documents/workspace/test/build -G "Visual Studio 17 2022" -T host=x64 -A x64
[proc] with environment: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\alexm\\AppData\\Roaming","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_8100_YFNGTIPOYHXUPYKD","COMPUTERNAME":"DESKTOP-AT7I1EQ","CUDA_PATH":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7","CUDA_PATH_V11_7":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","GIT_INSTALL_ROOT":"C:\\Users\\alexm\\scoop\\apps\\git\\current","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\alexm","LOCALAPPDATA":"C:\\Users\\alexm\\AppData\\Local","LOGONSERVER":"\\\\DESKTOP-AT7I1EQ","NUMBER_OF_PROCESSORS":"16","NVTOOLSEXT_PATH":"C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","OculusBase":"D:\\Oculus\\","OneDrive":"C:\\Users\\alexm\\OneDrive","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","POSH_INSTALLER":"ws","POSH_THEMES_PATH":"C:\\Users\\alexm\\AppData\\Local\\Programs\\oh-my-posh\\themes","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 25 Model 33 Stepping 2, AuthenticAMD","PROCESSOR_LEVEL":"25","PROCESSOR_REVISION":"2102","PSModulePath":"C:\\Users\\alexm\\scoop\\modules;C:\\Users\\alexm\\Documents\\WindowsPowerShell\\Modules","PUBLIC":"C:\\Users\\Public","Path":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7\\libnvvp;D:\\Oculus\\Support\\oculus-runtime;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\dotnet\\;D:\\Program Files\\Git\\cmd;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2022.2.0\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;D:\\Program Files\\CMake\\bin;C:\\Users\\alexm\\scoop\\apps\\mpv\\current;C:\\Users\\alexm\\scoop\\apps\\gsudo\\current;C:\\Users\\alexm\\.cargo\\bin;C:\\Users\\alexm\\scoop\\shims;C:\\Users\\alexm\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\alexm\\.dotnet\\tools;C:\\Users\\alexm\\AppData\\Local\\Programs\\oh-my-posh\\bin;C:\\Users\\alexm\\AppData\\Local\\Programs\\Microsoft VS Code\\bin","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","TEMP":"C:\\Users\\alexm\\AppData\\Local\\Temp","TMP":"C:\\Users\\alexm\\AppData\\Local\\Temp","USERDOMAIN":"DESKTOP-AT7I1EQ","USERDOMAIN_ROAMINGPROFILE":"DESKTOP-AT7I1EQ","USERNAME":"alexm","USERPROFILE":"C:\\Users\\alexm","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\alexm\\AppData\\Roaming\\Code\\CachedData\\dc96b837cf6bb4af9cd736aa3af08cf8279f7685","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\alexm\\AppData\\Local\\Programs\\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\314a266c-1.89.1-main-sock","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"osLocale\":\"en-gb\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"8100","windir":"C:\\WINDOWS"}
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
[cmake] -- Configuring done (0.0s)
[cmake] -- Generating done (0.0s)
[cmake] -- Build files have been written to: D:/home/Documents/workspace/test/build
[cmakefileapi-parser] Read reply folder: d:\home\Documents\workspace\test\build\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-e0f330c2cc55407660a2.json","cmakeFiles-v1-90bd3c1b4326a1e67d16.json","codemodel-v2-07d580433e355fb35a33.json","directory-.-Debug-d0094a50bb2071803777.json","directory-.-MinSizeRel-d0094a50bb2071803777.json","directory-.-Release-d0094a50bb2071803777.json","directory-.-RelWithDebInfo-d0094a50bb2071803777.json","index-2024-05-20T10-23-09-0490.json","target-ALL_BUILD-Debug-1d799d7c8ad4f3dfd0ce.json","target-ALL_BUILD-MinSizeRel-1d799d7c8ad4f3dfd0ce.json","target-ALL_BUILD-Release-1d799d7c8ad4f3dfd0ce.json","target-ALL_BUILD-RelWithDebInfo-1d799d7c8ad4f3dfd0ce.json","target-cpp_calculator-Debug-5fab62b26c5e54e00c72.json","target-cpp_calculator-MinSizeRel-9d5fd37290e004d750ce.json","target-cpp_calculator-Release-721c392063aa8aa10718.json","target-cpp_calculator-RelWithDebInfo-78587a903ab309c09417.json","target-ZERO_CHECK-Debug-e762b46fe473d63bdeb8.json","target-ZERO_CHECK-MinSizeRel-e762b46fe473d63bdeb8.json","target-ZERO_CHECK-Release-e762b46fe473d63bdeb8.json","target-ZERO_CHECK-RelWithDebInfo-e762b46fe473d63bdeb8.json","toolchains-v1-f37fa449fbe2cdf34182.json"]
[expand] expanding cmake
[expand] expanding cmake
[cache] Reading CMake cache file d:/home/Documents/workspace/test/build/CMakeCache.txt
[cache] Parsing CMake cache string
[expand] expanding cmake
[expand] expanding cmake
[expand] expanding cmake
[build] Starting build
[driver] Start build clean
[expand] expanding --build
[expand] expanding d:/home/Documents/workspace/test/build
[expand] expanding --config
[expand] expanding Debug
[expand] expanding --target
[expand] expanding clean
[expand] expanding -j
[expand] expanding 18
[expand] expanding --
[proc] Executing command: chcp
[proc] Executing command: "D:\Program Files\CMake\bin\cmake.EXE" --build d:/home/Documents/workspace/test/build --config Debug --target clean -j 18 --
[proc] with environment: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\alexm\\AppData\\Roaming","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_8100_YFNGTIPOYHXUPYKD","COMPUTERNAME":"DESKTOP-AT7I1EQ","CUDA_PATH":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7","CUDA_PATH_V11_7":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","GIT_INSTALL_ROOT":"C:\\Users\\alexm\\scoop\\apps\\git\\current","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\alexm","LOCALAPPDATA":"C:\\Users\\alexm\\AppData\\Local","LOGONSERVER":"\\\\DESKTOP-AT7I1EQ","NUMBER_OF_PROCESSORS":"16","NVTOOLSEXT_PATH":"C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","OculusBase":"D:\\Oculus\\","OneDrive":"C:\\Users\\alexm\\OneDrive","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","POSH_INSTALLER":"ws","POSH_THEMES_PATH":"C:\\Users\\alexm\\AppData\\Local\\Programs\\oh-my-posh\\themes","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 25 Model 33 Stepping 2, AuthenticAMD","PROCESSOR_LEVEL":"25","PROCESSOR_REVISION":"2102","PSModulePath":"C:\\Users\\alexm\\scoop\\modules;C:\\Users\\alexm\\Documents\\WindowsPowerShell\\Modules","PUBLIC":"C:\\Users\\Public","Path":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7\\libnvvp;D:\\Oculus\\Support\\oculus-runtime;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\dotnet\\;D:\\Program Files\\Git\\cmd;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2022.2.0\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;D:\\Program Files\\CMake\\bin;C:\\Users\\alexm\\scoop\\apps\\mpv\\current;C:\\Users\\alexm\\scoop\\apps\\gsudo\\current;C:\\Users\\alexm\\.cargo\\bin;C:\\Users\\alexm\\scoop\\shims;C:\\Users\\alexm\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\alexm\\.dotnet\\tools;C:\\Users\\alexm\\AppData\\Local\\Programs\\oh-my-posh\\bin;C:\\Users\\alexm\\AppData\\Local\\Programs\\Microsoft VS Code\\bin","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","TEMP":"C:\\Users\\alexm\\AppData\\Local\\Temp","TMP":"C:\\Users\\alexm\\AppData\\Local\\Temp","USERDOMAIN":"DESKTOP-AT7I1EQ","USERDOMAIN_ROAMINGPROFILE":"DESKTOP-AT7I1EQ","USERNAME":"alexm","USERPROFILE":"C:\\Users\\alexm","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\alexm\\AppData\\Roaming\\Code\\CachedData\\dc96b837cf6bb4af9cd736aa3af08cf8279f7685","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\alexm\\AppData\\Local\\Programs\\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\314a266c-1.89.1-main-sock","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"osLocale\":\"en-gb\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"8100","windir":"C:\\WINDOWS","NINJA_STATUS":"[%s/%t %p :: %e] "}
[build] MSBuild version 17.9.8+b34f75857 for .NET Framework
[build]
[driver] Build completed: 00:00:00.352
[cmakefileapi-parser] Read reply folder: d:\home\Documents\workspace\test\build\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-e0f330c2cc55407660a2.json","cmakeFiles-v1-90bd3c1b4326a1e67d16.json","codemodel-v2-07d580433e355fb35a33.json","directory-.-Debug-d0094a50bb2071803777.json","directory-.-MinSizeRel-d0094a50bb2071803777.json","directory-.-Release-d0094a50bb2071803777.json","directory-.-RelWithDebInfo-d0094a50bb2071803777.json","index-2024-05-20T10-23-09-0490.json","target-ALL_BUILD-Debug-1d799d7c8ad4f3dfd0ce.json","target-ALL_BUILD-MinSizeRel-1d799d7c8ad4f3dfd0ce.json","target-ALL_BUILD-Release-1d799d7c8ad4f3dfd0ce.json","target-ALL_BUILD-RelWithDebInfo-1d799d7c8ad4f3dfd0ce.json","target-cpp_calculator-Debug-5fab62b26c5e54e00c72.json","target-cpp_calculator-MinSizeRel-9d5fd37290e004d750ce.json","target-cpp_calculator-Release-721c392063aa8aa10718.json","target-cpp_calculator-RelWithDebInfo-78587a903ab309c09417.json","target-ZERO_CHECK-Debug-e762b46fe473d63bdeb8.json","target-ZERO_CHECK-MinSizeRel-e762b46fe473d63bdeb8.json","target-ZERO_CHECK-Release-e762b46fe473d63bdeb8.json","target-ZERO_CHECK-RelWithDebInfo-e762b46fe473d63bdeb8.json","toolchains-v1-f37fa449fbe2cdf34182.json"]
[expand] expanding cmake
[expand] expanding D:/home/Documents/workspace/test
[expand] expanding ${workspaceFolder}/build
[build] Build finished with exit code 0
[expand] expanding cmake
[cache] Reading CMake cache file d:/home/Documents/workspace/test/build/CMakeCache.txt
[cache] Parsing CMake cache string
[expand] expanding cmake
[main] Building folder: test
[expand] expanding cmake
[main] Saving open files before configure/build
[expand] expanding cmake
[expand] expanding cmake
[expand] expanding cmake
[build] Starting build
[driver] Start build ALL_BUILD
[expand] expanding --build
[expand] expanding d:/home/Documents/workspace/test/build
[expand] expanding --config
[expand] expanding Debug
[expand] expanding --target
[expand] expanding ALL_BUILD
[expand] expanding -j
[expand] expanding 18
[expand] expanding --
[proc] Executing command: "D:\Program Files\CMake\bin\cmake.EXE" --build d:/home/Documents/workspace/test/build --config Debug --target ALL_BUILD -j 18 --
[proc] with environment: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\alexm\\AppData\\Roaming","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_8100_YFNGTIPOYHXUPYKD","COMPUTERNAME":"DESKTOP-AT7I1EQ","CUDA_PATH":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7","CUDA_PATH_V11_7":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","GIT_INSTALL_ROOT":"C:\\Users\\alexm\\scoop\\apps\\git\\current","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\alexm","LOCALAPPDATA":"C:\\Users\\alexm\\AppData\\Local","LOGONSERVER":"\\\\DESKTOP-AT7I1EQ","NUMBER_OF_PROCESSORS":"16","NVTOOLSEXT_PATH":"C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","OculusBase":"D:\\Oculus\\","OneDrive":"C:\\Users\\alexm\\OneDrive","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","POSH_INSTALLER":"ws","POSH_THEMES_PATH":"C:\\Users\\alexm\\AppData\\Local\\Programs\\oh-my-posh\\themes","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 25 Model 33 Stepping 2, AuthenticAMD","PROCESSOR_LEVEL":"25","PROCESSOR_REVISION":"2102","PSModulePath":"C:\\Users\\alexm\\scoop\\modules;C:\\Users\\alexm\\Documents\\WindowsPowerShell\\Modules","PUBLIC":"C:\\Users\\Public","Path":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7\\libnvvp;D:\\Oculus\\Support\\oculus-runtime;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\dotnet\\;D:\\Program Files\\Git\\cmd;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2022.2.0\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;D:\\Program Files\\CMake\\bin;C:\\Users\\alexm\\scoop\\apps\\mpv\\current;C:\\Users\\alexm\\scoop\\apps\\gsudo\\current;C:\\Users\\alexm\\.cargo\\bin;C:\\Users\\alexm\\scoop\\shims;C:\\Users\\alexm\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\alexm\\.dotnet\\tools;C:\\Users\\alexm\\AppData\\Local\\Programs\\oh-my-posh\\bin;C:\\Users\\alexm\\AppData\\Local\\Programs\\Microsoft VS Code\\bin","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","TEMP":"C:\\Users\\alexm\\AppData\\Local\\Temp","TMP":"C:\\Users\\alexm\\AppData\\Local\\Temp","USERDOMAIN":"DESKTOP-AT7I1EQ","USERDOMAIN_ROAMINGPROFILE":"DESKTOP-AT7I1EQ","USERNAME":"alexm","USERPROFILE":"C:\\Users\\alexm","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\alexm\\AppData\\Roaming\\Code\\CachedData\\dc96b837cf6bb4af9cd736aa3af08cf8279f7685","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\alexm\\AppData\\Local\\Programs\\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\314a266c-1.89.1-main-sock","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"osLocale\":\"en-gb\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"8100","windir":"C:\\WINDOWS","NINJA_STATUS":"[%s/%t %p :: %e] "}
[build] MSBuild version 17.9.8+b34f75857 for .NET Framework
[build]
[build] 1>Checking Build System
[build] Building Custom Rule D:/home/Documents/workspace/test/CMakeLists.txt
[build] main.cpp
[build] cpp_calculator.vcxproj -> D:\home\Documents\workspace\test\build\Debug\cpp_calculator.exe
[build] Building Custom Rule D:/home/Documents/workspace/test/CMakeLists.txt
[driver] Build completed: 00:00:01.282
[cmakefileapi-parser] Read reply folder: d:\home\Documents\workspace\test\build\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-e0f330c2cc55407660a2.json","cmakeFiles-v1-90bd3c1b4326a1e67d16.json","codemodel-v2-07d580433e355fb35a33.json","directory-.-Debug-d0094a50bb2071803777.json","directory-.-MinSizeRel-d0094a50bb2071803777.json","directory-.-Release-d0094a50bb2071803777.json","directory-.-RelWithDebInfo-d0094a50bb2071803777.json","index-2024-05-20T10-23-09-0490.json","target-ALL_BUILD-Debug-1d799d7c8ad4f3dfd0ce.json","target-ALL_BUILD-MinSizeRel-1d799d7c8ad4f3dfd0ce.json","target-ALL_BUILD-Release-1d799d7c8ad4f3dfd0ce.json","target-ALL_BUILD-RelWithDebInfo-1d799d7c8ad4f3dfd0ce.json","target-cpp_calculator-Debug-5fab62b26c5e54e00c72.json","target-cpp_calculator-MinSizeRel-9d5fd37290e004d750ce.json","target-cpp_calculator-Release-721c392063aa8aa10718.json","target-cpp_calculator-RelWithDebInfo-78587a903ab309c09417.json","target-ZERO_CHECK-Debug-e762b46fe473d63bdeb8.json","target-ZERO_CHECK-MinSizeRel-e762b46fe473d63bdeb8.json","target-ZERO_CHECK-Release-e762b46fe473d63bdeb8.json","target-ZERO_CHECK-RelWithDebInfo-e762b46fe473d63bdeb8.json","toolchains-v1-f37fa449fbe2cdf34182.json"]
[expand] expanding cmake
[expand] expanding D:/home/Documents/workspace/test
[expand] expanding ${workspaceFolder}/build
[build] Build finished with exit code 0
[expand] expanding cmake
[cache] Reading CMake cache file d:/home/Documents/workspace/test/build/CMakeCache.txt
[cache] Parsing CMake cache string
[expand] expanding cmake
[extension] [9683] cmake.cleanRebuild finished (returned 0)
Additional Information
I've reinstalled VS Build Tools, tried Visual Studio Community Edition, reinstalled both the C/C++ plugins and cmake-tools, with not much change in result. It does seem to pick up the standard library headers when I'm using the base C/C++ intellisense rather than the cmake-tools one.
The issue persists with the most basic of cmake projects, with just a "hello, world" main.cpp added to an executable:
CMakeLists.txt
cmake_minimum_required(VERSION 3.6)
project(hello_world CXX)
add_executable(hello_world main.cpp)
target_include_directories(hello_world PRIVATE ".")
main.cpp
#include <iostream>
int main() {
std::cout << "hello, world" << std::endl;
}
Seems to work when launching through the Developer command prompt, but I've not previously launched it through that and it's worked fine up until recently.
@AlexMainstone Currently we are trying to reproduce your issue but we are not able to reproduce it based on the information you provided, the exact steps are below, if it is wrong can you provide us with the correct project and steps to reproduce it? Thank you!
ENV: C/C++ version: v1.20.5 VSCode version: v1.89.1 CMake tools version: v1.18.40(pre-release)
Repro steps:
- Create a folder on desktop and open it with VSCode
- Create the CMakeLists.txt file cmake_minimum_required(VERSION 3.6)
project(hello_world CXX)
add_executable(hello_world main.cpp)
target_include_directories(hello_world PRIVATE ".")
- Create the main.cpp file
#include <iostream>
int main() {
std::cout << "hello, world" << std::endl;
}
- Click F1 to run the "CMake: configure" command
Actual result:
The configuration will fail
Use the extension "C/C++" with version 19.9 will fix this
@AlexMainstone What version of C/C++ are you currently using? If the problem is still reproducible, could you switch the C/C++ version to v1.19.9 and try again to see if the problem is reproducible?
Methods for switching versions
Reverting to the previous version seemed to work, thank you.
Is this an issue that needs to be brought up in the C/C++ repo? Is anyone aware if this is now intended behaviour for this extension?
@sean-mcmanus Transferring to the cpptools extension, FYI.
This issue has been closed because it needs more information and has not had recent activity.
I also had this same issue, and it also went away by reverting to version 19.9
I don't repro the issue with 1.21.6 of the C/C++ extension and v1.19.47 (pre-release) of CMake Tools. Is anyone able to provide any more repro info?
This issue has been closed because it needs more information and has not had recent activity.