Detect system include paths when VS Build Tools is installed via Conan
Brief Issue Summary
Intellisense fails to find C++ system include paths in case the include path of VS Build Tools is provided via the environment variable INCLUDE and the VS Build Tools cannot be found by vswhere (e.g. when installed via a package manager like conan).
Expected:
I would expect, that the environment variable INCLUDE is respected in case cl.exe is used as compiler to find system headers like cl.exe does (like the Visual Studio build prompt does).
Apparent Behavior:
Intellisense does only work to find system headers of the compiler and SDK in case Visual Studio is installed especially if legacy versions are used.
Platform and Versions
- Operating System: Windows
- CMake Version: 3.20.4
- VSCode Version: 1.57.1
- CMake Tools Extension Version: 1.7.3
- Compiler/Toolchain: Visual C++ 2010, Visual C++ 2015, Visual C++ 2017, Visual C++ 2019, GCC 5.2.0
@stefanweiser, thank you for opening this report. I am transferring it to CppTools to track for the case when VS Build Tools is installed via Conan. And I opened a new one regarding the INCLUDE variable, also in the CppTools repository: https://github.com/microsoft/vscode-cpptools/issues/7791.
This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog.