Skip to content

configuration issue with c_cpp_properties.json : Win32/Linux/WSL #9610

@the-moog

Description

@the-moog

Discussed in #9602

Originally posted by the-moog July 19, 2022
In the file c_cpp_properties.json you can have multiple entries in "configurations". Valid 'name' keys are anything, but "Win32" and "Linux" are used to indicate the platform and selected accordingly by default.
(BTW: 32 bit windows pretty much no longer exists so why Win32??) But that's not my issue.

I was working in WSL (using WSL/Remote) and realised that it's pickng up settings from the wrong section. It's picking up path to GCC and Includes from the Win32 section instead of Linux. So the path format is wrong. "C:\...." etc. instead of /mnt/c/.. or /usr/... I can change it but the work is cross platform, so if I open the project in Windows, rather than WSL it would be wrong again.

Surely there should be a 'WSL' setting as the paths could easily be /mnt/c/... etc or at least use the Linux settings as the OS is Linux (WSL) not Windows.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions