Skip to content
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

Make the extension look for the compiler in the PATH environment variable as well #12779

Open
luizfernandonb opened this issue Sep 27, 2024 · 2 comments
Labels
bug compiler support Feature: Configuration An issue related to configuring the extension or IntelliSense Language Service
Milestone

Comments

@luizfernandonb
Copy link

luizfernandonb commented Sep 27, 2024

Feature Request

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?

Example: "compilerPath": "C:/Program Files/Clang/bin/clang.exe" -> "compilerPath": "clang"

@Colengms
Copy link
Collaborator

Hi @luizfernandonb . I'm going to consider this a bug. I believe this did work at one time and may have regressed.

@Colengms Colengms added bug Language Service Feature: Configuration An issue related to configuring the extension or IntelliSense compiler support labels Sep 27, 2024
@Colengms Colengms added this to the 1.22.7 milestone Sep 27, 2024
@luizfernandonb
Copy link
Author

@Colengms

Just to add, the same goes for clang-tidy, it's on my path
image

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

And I didn't fill anything in the extension settings
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug compiler support Feature: Configuration An issue related to configuring the extension or IntelliSense Language Service
Projects
Status: No status
Development

No branches or pull requests

2 participants