From 3fb8281a6d24c29ba69e49027ccaddd117855ea4 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Thu, 6 Aug 2015 08:27:42 +0300 Subject: [PATCH] Bug fix: missing a couple of executable() checks. --- plugin/syntastic.vim | 2 +- syntax_checkers/javascript/jsxhint.vim | 4 ++++ syntax_checkers/typescript/tsc.vim | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) 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\