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:
parent
9aa1a19699
commit
7bd9b98342
@ -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\ %#,'.
|
||||
|
@ -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,' .
|
||||
|
Loading…
Reference in New Issue
Block a user