vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

Calling of build task doesn't work properly

Open Felix-devel opened this issue 1 year ago • 1 comments

Brief Issue Summary

I want to use a task to run the cmake build since I want to use some specific problem matcher. If I start the task over Menu->Terminal->Run Build Task every thing works fine. But the buttons of the cmake extension don't call my speciffic build task but calls the default (template) build task.

After press the build button here: image or here: image VSCode asks for the build task but only suggest the CMake template build task. image

Even if I name the task "detail": CMake template build task, it doesn't use the one written in tasks.json. Also if i modify the template task which is added to the tasks.json if there is no. When I press the build Button it doen't use my modified one.

If enabled the "Build Task" option for "User, Workspace and the Project" image

There is a similar if I use the clean button, here it even doen't ask for the clean task, but for the build task. image image

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

tasks.json

Felix-devel avatar Mar 01 '24 10:03 Felix-devel

@Felix-devel Thanks for letting us know. We recently have found that we may have some bugs in our tasks integration experience. I'll add this to the backlog of bugs related to that.

@qarni FYI.

gcampbell-msft avatar Mar 04 '24 16:03 gcampbell-msft

@Felix-devel this is now fixed pending release! Also for clean, it says build tasks because clean is considered a part of build.

moyo1997 avatar Jul 12 '24 17:07 moyo1997

We verified the issue on CMake tools: v1.19.45 and it has been fixed.

ENV: CMake Tools:v1.19.45 vscode: 1.92.2

Actual result: image

v-frankwang avatar Aug 26 '24 06:08 v-frankwang