You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a vscode task that I use to change the current configuration preset:
{
"label": "set active config",
"group": "build",
"command": "${command:cmake.selectConfigurePreset}"
}
I can toggle without issues between configurations Release, Debug. The issue arises when I select the already active configuration, then I get this error: Cannot substitute command variable 'cmake.selectConfigurePreset' because command did not return a result of type string.
How to reproduce
Run the task, select "X" configuration
Run the task again, select the same "X" configuration
@FredC-LT Thank you for reporting the problem here! We can reproduce this issue based the above information. We have been changed this issue to bug, please be patient with the results of our investigation and we will notify you of any updates as soon as they are available! @gcampbell-msft We can reproduce the issue on latest CMake Tools version 1.20.36(pre-release) and change the Label to ‘Bug’ for now, if it is wrong could you please change it to the correct label, the reproduction steps are detailed below. Thanks!
Click F1 to run command "CMake: configure" and choose the "Debug"
Click F1 to run command "Tasks: run task"
Click "set active config" and choose the "Debug"
Actual result:
When the same option is selected repeatedly, an error popup appears in the bottom right corner of the page Error message: Cannot substitute command variable 'cmake.selectConfigurePreset' because command did not return a result of type string.
Brief Issue Summary
Hi,
I have a vscode task that I use to change the current configuration preset:
I can toggle without issues between configurations Release, Debug. The issue arises when I select the already active configuration, then I get this error:
Cannot substitute command variable 'cmake.selectConfigurePreset' because command did not return a result of type string.
How to reproduce
CMake Tools Diagnostics
Debug Log
Additional Information
No response
The text was updated successfully, but these errors were encountered: