diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 4d827ef4..bc990102 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.6.0-143' +let g:_SYNTASTIC_VERSION = '3.6.0-144' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/javascript/jsxhint.vim b/syntax_checkers/javascript/jsxhint.vim index 480c62c7..608fa6ef 100644 --- a/syntax_checkers/javascript/jsxhint.vim +++ b/syntax_checkers/javascript/jsxhint.vim @@ -18,6 +18,10 @@ let s:save_cpo = &cpo set cpo&vim function! SyntaxCheckers_javascript_jsxhint_IsAvailable() dict + if !executable(self.getExec()) + return 0 + endif + let version_output = syntastic#util#system(self.getExecEscaped() . ' --version') let parsed_ver = !v:shell_error && (version_output =~# '\m^JSXHint\>') ? syntastic#util#parseVersion(version_output) : [] if len(parsed_ver) diff --git a/syntax_checkers/typescript/tsc.vim b/syntax_checkers/typescript/tsc.vim index 0aa2b114..3b81e266 100644 --- a/syntax_checkers/typescript/tsc.vim +++ b/syntax_checkers/typescript/tsc.vim @@ -18,6 +18,10 @@ let s:save_cpo = &cpo set cpo&vim function! SyntaxCheckers_typescript_tsc_IsAvailable() dict + if !executable(self.getExec()) + return 0 + endif + let version_output = split(syntastic#util#system(self.getExecEscaped() . ' --version'), '\n', 1) let ver = filter(copy(version_output), 'v:val =~# ''\m\