我的任务配置为使用$gcc
problemMatcher。这曾经工作得很好,但现在vscode抱怨道:
{
"resource": "/home/src/example/.vscode/tasks.json",
"owner": "_generated_diagnostic_collection_name_#0",
"code": "1",
"severity": 4,
"message": "Value is not accepted. Valid values: \"$msCompile\", \"$lessCompile\", \"$gulp-tsc\", \"$jshint\", \"$jshint-stylish\", \"$eslint-compact\", \"$eslint-stylish\", \"$go\", \"$lessc\", \"$node-sass\", \"$tsc\", \"$tsc-watch\".",
"startLineNumber": 11,
"startColumn": 31,
"endLineNumber": 11,
"endColumn": 37
}
如您所见,$gcc
不在有效值列表中。怎么会这样呢?
这是我的VSCode版本:
Version: 1.38.1
Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0
Date: 2019-09-11T13:30:08.229Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 5.0.0-29-generic
发布于 2019-10-28 14:31:28
当我启用ms-code.cpptools
时,我注意到了同样的错误,它消失了。
https://stackoverflow.com/questions/58095231
复制相似问题