Skip to content

Instantly share code, notes, and snippets.

@linw1995
Created August 4, 2017 05:45
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save linw1995/225a8d0e1cd32a51e44b2aab3af3f1dc to your computer and use it in GitHub Desktop.
Save linw1995/225a8d0e1cd32a51e44b2aab3af3f1dc to your computer and use it in GitHub Desktop.
VSCode Task.json for Python Traceback.
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [{
"taskName": "Run Python",
"group": {
"kind": "build",
"isDefault": true
},
"command": "${config:python.pythonPath}",
"type": "shell",
"args": [
"${file}"
],
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": {
"fileLocation": "absolute",
"pattern": [{
"regexp": "^\\s+File \"(.*?)\", line ([0-9]+)[,]?.+?$",
"line": 2,
"file": 1,
"message": 0
}, {
"regexp": "^\\s+(.+?)$",
"code": 1
}]
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment