vim-syntastic / syntastic

Syntax checking hacks for vim
Do What The F*ck You Want To Public License
11.3k stars 1.14k forks source link

Error in C syntax checker #468

Closed chrislongo closed 11 years ago

chrislongo commented 11 years ago

Appeared after pulling c166029fd8af823bf86bf422dfe5a064014f72c5

Error detected while processing /Users/chris/.vim/bundle/syntastic/syntax_checkers/c/gcc.vim: line 170: E126: Missing :endfunction Error detected while processing function <SNR>28_UpdateErrors..<SNR>28_CacheErrors..11..12..16..6..SyntaxCheckers_c_chec kpatch_IsAvailable: line 1: E492: Not an editor command: exists("g:syntastic_c_checker_checkpatch_location") E492: Not an editor command: exists("g:syntastic_c_checker_checkpatch_location")

scrooloose commented 11 years ago

Just pushed a fix. Can you confirm that this works as expected?

chrislongo commented 11 years ago

That error is gone but now I see the following briefly when opening a C file:

Error detected while processing /Users/chris/.vim/bundle/syntastic/syntax_checkers/c/gcc.vim

E126: Missing :endfunction
scrooloose commented 11 years ago

OK, just pushed another fix :)

I recently changed the guts of syntastic and changed the checker->core API... and then updated all of the syntax checkers to use the new API --> e0b8e87c939b96d7cc2548edb177021d4f9e27bf

Just merged it all in to master this morning. Urrrg. Hopefully I didnt fail in too many other places.

chrislongo commented 11 years ago

That did the trick. Works great now. Thank you!