You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make the extension look for the compiler in the PATH environment variable as well #12779
Currently we have to put the full path of the compiler in the compilerPath property in c_cpp_properties.json, and this breaks portability between systems, since the paths between Windows and Linux are different, would it be possible to put only the name of the compiler and the extension to search for the executable in the PATH environment variable?
I believe the clang-tidy/format issue is tracked by #12718 (it currently doesn't use the environment version if it's older, which was due to many users having an old version on their machine that causes stuff to not work).
Hi Luiz (@luizfernandonb) . I've not been able to reproduce this issue. Do you still have a repro?
Asking copilot to analyze the scenario, it's response was:
compilerPath should already accept an executable name such as "clang" and resolve it from the PATH inherited by VS Code. I have confirmed this behavior in the current implementation.
Hi Luiz (@luizfernandonb) . I've not been able to reproduce this issue. Do you still have a repro?
Asking copilot to analyze the scenario, it's response was:
compilerPath should already accept an executable name such as "clang" and resolve it from the PATH inherited by VS Code. I have confirmed this behavior in the current implementation.
Unfortunately i don't have it anymore. I formatted my computer and lost VS Code, the settings, etc
Activity
Colengms commentedon Sep 27, 2024
Hi Luiz (@luizfernandonb) . I'm going to consider this a bug. I believe this did work at one time and may have regressed.
luizfernandonb commentedon Sep 28, 2024
Colen Garoutte-Carson (@Colengms)
Just to add, the same goes for clang-tidy, it's on my path

However, the extension downloaded a version and uses it instead of the one in the PATH

And I didn't fill anything in the extension settings

sean-mcmanus commentedon Sep 30, 2024
I believe the clang-tidy/format issue is tracked by #12718 (it currently doesn't use the environment version if it's older, which was due to many users having an old version on their machine that causes stuff to not work).
23 remaining items
Colengms commentedon Sep 9, 2026
Hi Luiz (@luizfernandonb) . I've not been able to reproduce this issue. Do you still have a repro?
Asking copilot to analyze the scenario, it's response was:
luizfernandonb commentedon Sep 10, 2026
Unfortunately i don't have it anymore. I formatted my computer and lost VS Code, the settings, etc