【发布时间】:2019-01-08 19:53:49
【问题描述】:
我在 vscode 中创建了一个任务,但是运行时出错。
构建任务task.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [{
"label": "mypy",
"type": "shell",
"command": "mypy",
"args": [
"($file)"
],
"group": {
"kind": "build",
"isDefault": true
}
}]
}
我收到的错误是
> Executing task: mypy ($file) <
/bin/bash: -c: line 0: syntax error near unexpected token `$file'
/bin/bash: -c: line 0: `mypy ($file)'
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
【问题讨论】: