tomtom / checksyntax_vim

Check a file's syntax when saving a file (php, ruby, tex ...) with vim
http://www.vim.org/scripts/script.php?script_id=1431
GNU General Public License v3.0
94 stars 9 forks source link

CheckSyntax doesn't check anything #30

Open peci1 opened 8 years ago

peci1 commented 8 years ago

I just installed CheckSyntax via pathogen (placed in ~/.vim/bundle/checksyntax). When pressing <F5> or manually calling :CheckSyntax, everything seems to run as it should, except no errors are reported (calling :ll and :cc returns empty lists). Tried with Java (jlint installed) and bash (bash -n correctly reports the errors when run from commandline).

I run Vim 7.4 on Ubuntu 14.04 64bit.

This is a relevant part of my vimrc:

let g:checksyntax#auto_enable_rx='.'
let g:checksyntax_auto=2

execute pathogen#infect()
tomtom commented 8 years ago

I'm sorry but checksyntax is currently unmaintained. It probably wouldn't be too difficult to fix things but I currently don't have the time for maintaining plugins I don't use myself on a daily basis. And since I use vim only for writing nowadays ...

tomtom commented 8 years ago

You could try

set verbosefile=/home/tom/vim.log
15verb CheckSyntax

and then post the relevant lines from vim.log. Most of the time, either the errorformat expression is wrong for your configuration, or checksyntax cannot find the executable.

tomtom commented 7 years ago

Well, I assume this issue isn't relevant anymore. If it is, you could try two new ways to get hold of the problem:

  1. Use let g:checksyntax#debug = 2 which gives you some additional hints.
  2. Install tlib_vim and then type :Tlibtraceset --file=checksyntax.log +checksyntax to get a more detailed trace. Send me checksyntax.log.

If the issue isn't relevant any longer (i.e. if you don't answer), I'll close it in a few weeks.