Created
August 4, 2017 05:45
-
-
Save linw1995/225a8d0e1cd32a51e44b2aab3af3f1dc to your computer and use it in GitHub Desktop.
VSCode Task.json for Python Traceback.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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