以下 Tasks.json 问题匹配器正则表达式应匹配以下典型警告。但事实并非如此。ctc W505:[“somedirectory/somefile.c”350/18] 隐式声明等等等等
问题是什么?我验证了内置解析器匹配 gcc 输出错误和警告。
谢谢,
萨蒂什·K
"tasks": [
{
"label": "build.bat",
"type": "shell",
"command": "build.bat",
"problemMatcher": {
"owner": "cpptools",
"fileLocation": [
"relative",
"${env:PWD}"
],
"pattern": {
"regexp": "^ctc W(\\d+): \\[\\\"(.*)\\\" (\\d+)\\\/(\\d+)\\] (.*)$",
"file": 2,
"line": 3,
"column": 4,
"message": 5
}
},
"group": {
"kind": "build",
"isDefault": true
}
}
]