I have included the following lines in my vimrc file to run syntastic plugin.[closed]
let g:syntastic_mode_map = { 'mode': 'active',
\ 'active_filetypes': [],
\ 'passive_filetypes': ['html'] }
" To enable this plugin, edit the .vimrc like this:
let g:syntastic_javascript_checker = "closurecompiler"
" and set the path to the Google Closure Compiler:
let g:syntastic_javascript_closure_compiler_path = '~/.vim/closure-compier/compiler.jar'
let g:syntastic_enable_signs=1
let g:syntastic_auto_loc_list=1
But it doesnt seems to work,I tried debuging the closurecompiler.vim script .Inside it function SyntaxCheckers_javascript_GetLocList() has the makeprg variable when i echo the variable it prints the following line
java -jar ~/.vim/closure/closure.jar --js 'workspace/abc.js'
but does not show any error ,however if i enter same line in console i get all errors What am i doing wrong in my setup. you can see my setup on github
I think i found your mistake. I just downloaded your setup via github and this line had a typo in your .vimrc file:
let g:syntastic_javascript_closure_compiler_path = '~/.vim/closure-compier/compiler.jar'
When I changed this line to this:
let g:syntastic_javascript_closure_compiler_path = '~/.vim/closure-compiler/compiler.jar'
And launched gvim abc.js I get this:
Seems to be working now.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.