vscode-cmake-tools
vscode-cmake-tools copied to clipboard
[Bug][Regression] Project cannot stop build after setting "cmake.buildTask" as true
Brief Issue Summary
Environment:
VS Code 1.100.2+ CMake Tools v1.21.27 (pre-release)
More info:
- Repro on Windows, Linux, Mac
- It starts repro from v1.21.5 to latest v1.21.27, so this is a regression issue
- This issue doesn't repro when disable cmake.buildTask
Repro steps:
- Create a folder and open it with VS Code
- Open workspace settings.json, and set
"cmake.buildTask": true - Create project using command "CMake: Quick Start"
- Reopen project
- Open the command palette(F1 or Ctrl+Shift+P)
- Enter and select the command "Tasks: Configure Task"
- Choose "CMake: build"
- Select the Build button from the Status bar and select a build task
Expected Result:
Project should build successfully
Actual Result:
Project cannot stop build
CMake Tools Diagnostics
{
"os": "win32",
"vscodeVersion": "1.100.2",
"cmtVersion": "1.21.27",
"configurations": [
{
"folder": "c:\\Users\\v-amyli3\\Desktop\\Cmake_tools_Monthly\\test_project",
"cmakeVersion": "3.31.5",
"configured": true,
"generator": "Ninja",
"usesPresets": true,
"compilers": {
"C": "C:/msys64/ucrt64/bin/cc.exe",
"CXX": "C:/msys64/ucrt64/bin/c++.exe"
}
}
],
"cpptoolsIntegration": {
"isReady": true,
"hasCodeModel": true,
"activeBuildType": "Debug",
"buildTypesSeen": [
"Debug"
],
"requests": [],
"responses": [],
"partialMatches": [],
"targetCount": 1,
"executablesCount": 1,
"librariesCount": 0,
"targets": [
{
"name": "Helloworld",
"type": "EXECUTABLE"
}
]
},
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "auto",
"configureOnOpen": true
}
]
}
Debug Log
[main] Building folder: C:/Users/v-amyli3/Desktop/Cmake_tools_Monthly/test_project/out/build/MyPresets
[main] Saving open files before configure/build
[build] Starting build
[driver] Start build
[proc] Executing command: chcp
Additional Information
No response
Hi @gcampbell-msft @PILIX123, it seems to have the same root cause as https://github.com/microsoft/vscode-cmake-tools/issues/4424
i will make a fork this weekend with the patch i found the other day and we could try and see if this still happens? @Amy-Li03
@Amy-Li03 https://github.com/PILIX123/vscode-cmake-tools/tree/main this branch has the potential fix i was talking about. can you try and see if it fixes it, if so im going to open a PR
@PILIX123 Thanks for your fix!
After installed the VSIX built from https://github.com/PILIX123/vscode-cmake-tools/tree/main branch, this issue was fixed. But the VSXI version of cmake tools is 1.13.0, is this the correct version number?
The version number should match when the PR is merged correct?
I opened the PR for it https://github.com/microsoft/vscode-cmake-tools/pull/4479
Verified on CMake Tools v1.21.31(pre-release), issue was fixed, so close it.