2 ms·
pytest also has helpful tracebacks; though only for test runs. With nose-progressive, you can specify --progressive-editor or update the .noserc so that traceb
by westurner 8y ago
pytest also has helpful tracebacks; though only for test runs.
With nose-progressive, you can specify --progressive-editor or update the .noserc so that traceback filepaths are prefixed with your preferred editor command.
vim-unstack parses paths from stack traces / tracebacks (for a number of languages including Python) and opens each in a split at that line number.
https://github.com/mattboehm/vim-unstack https://github.com/mattboehm/vim-unstack
Here's the Python regex from my hackish pytb2paths.sh script:
'\s+File "(?P<file>.*)", line (?P<lineno>\d+), in (?P<modulestr>.*)$'
https://github.com/westurner/dotfiles/blob/develop/scripts/pytb2paths.sh https://github.com/westurner/dotfiles/blob/develop/scripts/p...