carlhuda/janus — Issue #383: Silence errors caused by missing pep8.
Author: apetresc
Created: 2012-01-26 20:15:27+00:00
State: open

I love the pep8 plugin and I certainly don't want to disable it. However, sometimes I'm running in a virtualenv where I don't have pep8 installed for whatever reason. In those situations, janus' pep8 plugin throws an exception _on every single keystroke_, of the form:

Error detected while processing CursorMoved Auto commands for "":
E117: Unknown function: 98_GetMessage

This makes vim completely unusable, since you have to acknowledge an error message with each character you type.

Is there any way we can have the pep8 plugin silently fail if pep8 is not on the current PYTHONPATH?

Again, I don't want to disable it, it's useful most of the time, it's just that PYTHONPATHs can be a very volatile thing.