microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.52k stars 1.55k forks source link

Detect system include paths when VS Build Tools is installed via Conan #7790

Open stefanweiser opened 3 years ago

stefanweiser commented 3 years ago

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

andreeis commented 3 years ago

@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.