vscode-cmake-tools
vscode-cmake-tools copied to clipboard
[Flaky]Duplicate information appeared in output when Add CMakePreset.json
Brief Issue Summary
Environment: VSCode 1.90.1+ CMake Tools v1.19.13(pre-release)
More info:
- Repro Language: ENU and loc languages
- This is a flaky issue: repro rate 30%
Repro steps:
- Open VScode
- Create a new folder named 'Test' and open it with vscode.
- Create a file named CMakeLists.txt under test with the following content:
cmake_minimum_required (VERSION 3.8)
project ("test")
add_executable (test "test.cpp" )
- Create a file named test.cpp under test with the following content:
#include <iostream>
int main(int argc, char **argv)
{
std::cout << "Hello World" << std::endl;
return 0;
}
- Create "CMakePresets.json" file and copy the following code into the file, then save it
{
"version": 3,
"configurePresets": [
{
"name": "windows-base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
}
]
}
- Launch output window and navigate to "CMake/Build" category
- Check the output info
Expected result: Without duplicate output info
Actual result:
Duplicate output info appeared
Whole process:
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response