-
Notifications
You must be signed in to change notification settings - Fork 449
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
1.14.29/30 removes entries containing "mingw" from PATH on Windows host #3136
Comments
The fix from #3138 is now publicly available in pre-release channel extension version 1.15.3. Let us know if you're still seeing this issue in the pre-release version. |
I can confirm that the issue is now fixed in 1.15.3. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Brief Issue Summary
We are using MinGW-w64 - winlibs toolchain (gcc-12.2.0-llvm-14.0.6-mingw-w64ucrt-10.0.0-r2)
with gcc.exe located at
D:\devel\toolchains\winlibs-x86_64-posix-seh-gcc-12.2.0-llvm-14.0.6-mingw-w64ucrt-10.0.0-r2\mingw64\bin
The entry above is added to system PATH.
Since vscode-cmake-tools version 1.14.29 when using "Unspecified" kit, or toolchain file using relative paths (CMAKE_C_COMPILER: gcc, CMAKE_CXX_COMPILER: g++, etc.), we are unable to configure cmake project as the compiler cannot be detected.
Brief debugging (see example below), lead me to the discovery that PATH entries containing "mingw" keyword are missing from cmake's ENV{PATH} when invoked using vscode-cmake-tools extension.
We are still able to configure and build applications from powershell, and VSCode terminal using
cmake -B build -G Ninja
.When "scan for kits" is performed, the toolchain is detected correctly. Also when its kit is selected, the entry reappears in ENV{PATH} and we are able to configure and build the project
Minimal reproducible example (on windows host):
C:\mingw
C:\test\mingw\suffix
Expected: mingw string found in path on every plugin version.
Observed: mingw string found in path on 1.13.45, and mingw string not found in path on 1.14.29/30
Log from 1.13.45 build: log_1_13_45.txt
Log from 1.14.30 build: log 1_14_30.txt
Thanks!
CMake Tools Diagnostics
Debug Log
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: