When I open a javascript or typescript file, I do not get any errors or warnings.
I have added checkers to my config file:
let g:syntastic_typescript_checkers = ['tslint']
let g:syntastic_javascript_checkers = ['eslint']
But, when I open a javascript/typescript file - none are enabled:
Available checkers: -
Currently enabled checkers: -
Version
:ver
NVIM v0.2.2
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DNDEBUG
-DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLU
DE_GENERATED_DECLARATIONS -I/tmp/neovim-20171118-53412-9ielcr/neovim-0.2.2/build/config -I/tmp/neovim-20171118-53412-9ielcr/neovim-0.2.2/src -I/usr/local/include -I/usr/local/includ
e -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim-20171118-53412-9ielcr/neovim-0.2.
2/build/src/nvim/auto -I/tmp/neovim-20171118-53412-9ielcr/neovim-0.2.2/build/include
Compiled by [email protected]
Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.2.2/share/nvim"
Run :checkhealth for more info
SyntasticInfo
Syntastic version: 3.8.0-110 (Vim 800, Neovim, Darwin)
Info for filetype: typescript
Global mode: active
Filetype typescript is active
The current file will be checked automatically
Available checkers: -
Currently enabled checkers: -
Please read the first entry in the FAQ.
@lcd047 Thank you, what is the best way to add the checks (from :help syntastic-checkers) to your PATH?
After adding them to my PATH - they now show up as enabled:
Available checkers: eslint tslint
Currently enabled checker: tslint
But, There is still no error/warning highlighting.
Please read :h syntastic-recommended.
I have the recommend settings enabled - Sorry if that was unclear.
Then please explain what did you do, what did you expect to happen, and what happened instead. Don't assume I can look over your shoulder to find out. :smile:
Sorry about that.
Here is my config file:
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_typescript_checkers = ['tslint']
(When in a JS file) Here is what I get from :SyntasticInfo
Syntastic version: 3.8.0-110 (Vim 800, Neovim, Darwin)
Info for filetype: javascript.jsx
Global mode: active
Filetype javascript.jsx is active
The current file will be checked automatically
Available checker: javascript/eslint
Currently enabled checker: javascript/eslint
It should highlight errors
It does not highlight errors
@lcd047 Is that the information you wanted? If there is something I left out just let me know.
Not really. Syntastic doesn't highlight errors "automatically". It runs the configured linters against your files either when you _save_ the current file, or when you run :SyntasticCheck, and _then_ highlight errors, provided said linters find any. All checks are run against the files on disk, not against Vim's buffers. And no checks are run on the fly.