vscode: The specified task cannot be tracked
VSCode Version: 1.29.1 OS Version: Win10 1809 x64
Sorry,my English is not good.
After I updated the VSCode and the OS,when I run the debugger, it throws this exception:
my launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "cmd",
"args": [
"/c",
"${file}/../${fileBasenameNoExtension}.exe",
"&echo.",
"&pause"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"preLaunchTask": "gcc",
},
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${file}/../${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "D:/Compiler/MinGW/bin/gdb.exe",
"preLaunchTask": "gccdbg",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
my task.json:
{
"version": "2.0.0",
"tasks": [
{
"label": "gccdbg",
"type": "shell",
"command": "gcc",
"args": [
"-std=c++98",
"-g",
"-Wall",
"-Wextra",
"-v",
"-H",
"${relativeFile}",
"-o",
"${relativeFile}/../${fileBasenameNoExtension}.exe"
],
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
{
"label": "gcc",
"type": "shell",
"command": "gcc",
"args": [
"-std=c++98",
"-Wall",
"-Wextra",
"${relativeFile}",
"-o",
"${relativeFile}/../${fileBasenameNoExtension}.exe"
],
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
]
}
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (10 by maintainers)
@isidorn @weinand Based on what Tyriar says, can you remove the “caused by extension” tag for people who come across this issue?