prompt-toolkit / pyvim

Pure Python Vim clone.
BSD 3-Clause "New" or "Revised" License
2.52k stars 161 forks source link

Syntax checking is not working #21

Open lunemec opened 9 years ago

lunemec commented 9 years ago

When I create file with obvious syntax error, or bad import or other such thing, nothing happens. No errors, no warnings. Even after :w save still nothing. I installed pyflakes again with pip install pyflakes --upgrade, but I still have this issue. Any ideas?

jonathanslenders commented 9 years ago

Thanks. I am aware of this. pyflakes can't run if there is a syntax error in the document. But instead it should show a compile error. I still have to do that.

lunemec commented 9 years ago

Maybe you can asynchronously use pylint instead of pyflakes? I think pylint can detect syntax errors. The check I use in vim comes from python-mode and that is using pylama: https://github.com/klen/python-mode/blob/develop/pymode/autopep8.py