Open Maddimax opened 11 months ago
When using "cmake.buildTask" a debug run is started even if the build failed.
How to reproduce:
=> The build will fail, but the debug will still start
{ "os": "darwin", "vscodeVersion": "1.83.0", "cmtVersion": "1.16.10", "configurations": [ { "folder": "/Users/mtillmanns/projects/qt/qtc-work/master", "cmakeVersion": "3.27.1", "configured": true, "generator": "Ninja", "usesPresets": false, "compilers": { "C": "/usr/bin/clang", "CXX": "/usr/bin/clang++" } } ], "cpptoolsIntegration": { "isReady": false, "hasCodeModel": false, "activeBuildType": "", "buildTypesSeen": [], "requests": [], "responses": [], "partialMatches": [], "targetCount": 0, "executablesCount": 0, "librariesCount": 0, "targets": [] }, "settings": [ { "communicationMode": "automatic", "useCMakePresets": "never", "configureOnOpen": false } ] }
n/a
My launch.json:
{ "version": "0.2.0", "configurations": [ { "type": "lldb", "request": "launch", "name": "Debug Current Target", "program": "${command:cmake.launchTargetPath}", "args": [], "cwd": "${workspaceFolder}", } ] }
My tasks.json
{ "version": "2.0.0", "tasks": [ { "type": "cmake", "label": "CMake: Build the active target", "command": "build", "group": { "kind": "build", "isDefault": true }, "detail": "CMake template build task", "presentation": { "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": true, "clear": true }, "problemMatcher": { "base": "$gcc", "fileLocation": "absolute" }, "options": { "environment": { "CMAKE_COLOR_DIAGNOSTICS": "1", "CLICOLOR_FORCE": "1" } } } ] }
@Maddimax This is a good call-out, and thanks for the reproduction steps! Marking this as a bug and we will assess it when we can. Thanks!
Any chance this may be worked on? Its quite annoying :)
Brief Issue Summary
When using "cmake.buildTask" a debug run is started even if the build failed.
How to reproduce:
=> The build will fail, but the debug will still start
CMake Tools Diagnostics
Debug Log
Additional Information
My launch.json:
My tasks.json