microsoft / microsoft/vscode-cmake-tools

Underscore in config for cmakePath seems to immediately terminate the string.

Open
#3,408 2 comments 0 reactions 0 assignees View on GitHub
bug Feature: settings repro needed
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### Brief Issue Summary

On a linux system, I need to build for Windows. I am using the MinGW toolchain, and that requires me to use a CMake executable built specifically for it. The CMake executable happens to have the wonderful path "/usr/bin/x86_64-w64-mingw32-cmake". The configure UI seems to verify the path fine, however upon trying to configure the project I get the error `Bad CMake executable: "x86_"`

Of course, I have placed a symlink in the .vscode folder in my project dir, and just linked to there, but this is still a pretty frustrating issue.

### CMake Tools Diagnostics

```shell
N/A, CMake doesn't run.
```

### Debug Log

```shell
N/A, CMake doesn't run.
```

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

The issue names the cmakePath configuration and provides a reproducible MinGW path containing underscores. Start by tracing how cmakePath is parsed and validated, then reproduce configuration with /usr/bin/x86_64-w64-mingw32-cmake; done means the complete path is preserved and CMake configuration proceeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.