Always give absolute paths to syntax checkers 'hdevtools' and 'hlint'

Especially for 'hdevtools' this results into a more robust behaviour,
because 'hdevtools' starts a background process and changing the
current directory doesn't affect the current directory of the background
process.
This commit is contained in:
Daniel Trstenjak 2014-04-05 15:47:20 +02:00
parent 9aa1a19699
commit 7bd9b98342
2 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ set cpo&vim
function! SyntaxCheckers_haskell_hdevtools_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'exe': self.getExecEscaped() . ' check',
\ 'fname': syntastic#util#shexpand('%:p'),
\ 'args': get(g:, 'hdevtools_options', '') })
let errorformat= '\%-Z\ %#,'.

View File

@ -14,7 +14,8 @@ let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_haskell_hlint_GetLocList() dict
let makeprg = self.makeprgBuild({})
let makeprg = self.makeprgBuild({
\ 'fname': syntastic#util#shexpand('%:p')})
let errorformat =
\ '%E%f:%l:%c: Error: %m,' .