Checker dartanalyzer: "--machine" has been renamed in 1.23.0.
This commit is contained in:
parent
5d9a0bc387
commit
a882ecbc80
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.8.0-38'
|
let g:_SYNTASTIC_VERSION = '3.8.0-39'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -30,7 +30,10 @@ function! SyntaxCheckers_dart_dartanalyzer_GetHighlightRegex(error)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SyntaxCheckers_dart_dartanalyzer_GetLocList() dict
|
function! SyntaxCheckers_dart_dartanalyzer_GetLocList() dict
|
||||||
let makeprg = self.makeprgBuild({ 'args_after': '--machine' })
|
if !exists('s:format_machine')
|
||||||
|
let s:format_machine = syntastic#util#versionIsAtLeast(self.getVersion(), [1, 23]) ? '--format=machine' : '--machine'
|
||||||
|
endif
|
||||||
|
let makeprg = self.makeprgBuild({ 'args_after': s:format_machine })
|
||||||
|
|
||||||
" Machine readable format looks like:
|
" Machine readable format looks like:
|
||||||
" SEVERITY|TYPE|ERROR_CODE|FILENAME|LINE_NUMBER|COLUMN|LENGTH|MESSAGE
|
" SEVERITY|TYPE|ERROR_CODE|FILENAME|LINE_NUMBER|COLUMN|LENGTH|MESSAGE
|
||||||
|
Loading…
Reference in New Issue
Block a user