FAQ: add a note about $PATH.
This commit is contained in:
parent
231a78f5de
commit
da1ecc0bb8
@ -196,6 +196,20 @@ which checkers are enabled. You can tell syntastic which checkers (among the
|
|||||||
available ones) you want to run by setting `g:syntastic_<filetype>_checkers` in
|
available ones) you want to run by setting `g:syntastic_<filetype>_checkers` in
|
||||||
your `vimrc` (see [below](#faqcheckers)).
|
your `vimrc` (see [below](#faqcheckers)).
|
||||||
|
|
||||||
|
A third possible reason is that the `$PATH` seen by syntastic might not be same
|
||||||
|
as the `$PATH` in your login shell. Syntastic runs checkers using the shell
|
||||||
|
pointed to by Vim's `shell` (or by `g:syntastic_shell`, if set), and that's the
|
||||||
|
one you need to configure to set the proper `$PATH` and environment variables
|
||||||
|
for your checkers. You can see syntastic's idea of `$PATH` by running
|
||||||
|
```vim
|
||||||
|
:echo syntastic#util#system('echo "$PATH"')
|
||||||
|
```
|
||||||
|
on UNIX and Mac OS-X systems, or
|
||||||
|
```vim
|
||||||
|
:echo syntastic#util#system('echo %PATH%')
|
||||||
|
```
|
||||||
|
on Windows.
|
||||||
|
|
||||||
Another reason it could fail is that either the command line options or the
|
Another reason it could fail is that either the command line options or the
|
||||||
error output for a syntax checker may have changed. In this case, make sure you
|
error output for a syntax checker may have changed. In this case, make sure you
|
||||||
have the latest version of the syntax checker installed. If it still fails then
|
have the latest version of the syntax checker installed. If it still fails then
|
||||||
|
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.6.0-55'
|
let g:_SYNTASTIC_VERSION = '3.6.0-56'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user