syntastic git · master
syntastic vim plugin (fork)
Vim Script 99%git clone https://git.christianimmanuel.de/mirrors-forks/syntastic.gitwget https://git.christianimmanuel.de/mirrors-forks/syntastic/archive/syntastic.tar.gzChecker python/mypy: use absolute paths.
plugin/syntastic.vim | 2 +- syntax_checkers/python/mypy.vim | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 4a113eee..e66c0d32 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,7 +19,7 @@ if has('reltime') lockvar! g:_SYNTASTIC_START endif -let g:_SYNTASTIC_VERSION = '3.10.0-5' +let g:_SYNTASTIC_VERSION = '3.10.0-6' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/python/mypy.vim b/syntax_checkers/python/mypy.vim index 9429a6f5..15cd6579 100644 --- a/syntax_checkers/python/mypy.vim +++ b/syntax_checkers/python/mypy.vim @@ -20,7 +20,10 @@ function! SyntaxCheckers_python_mypy_GetLocList() dict let s:mypy_new = syntastic#util#versionIsAtLeast(self.getVersion(), [0, 4, 5]) endif - let makeprg = self.makeprgBuild({ 'args_after': (s:mypy_new ? '--show-column-numbers' : '') }) + let buf = bufnr('') + let makeprg = self.makeprgBuild({ + \ 'args_after': (s:mypy_new ? '--show-column-numbers' : ''), + \ 'fname': syntastic#util#shescape(fnamemodify(bufname(buf), ':p')) }) let errorformat = \ '%f:%l:%c:%t:%m,' .