You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LCD 47 edited this page Jun 12, 2016
·
8 revisions
This file is no longer maintained
This file exists only as a historic reference. Documentation for syntastic
checkers is now included in the manual, please see :help syntastic-checkers
in Vim.
This checker uses Python's builtin compile() function for detecting syntax errors.
Codecs
In Python you have the ability to specify a particular codec at the top of
the file with a special comment that looks something like
# coding: spec.
Python will see this comment at import time and use the corresponding codec
to transform the file before using it. The python checker has an option
g:syntastic_python_python_use_codec that will make syntastic aware of such
comments before running compiler checks on the file.
Please note that transforming a file like this affects line numbers and
column numbers, and syntastic has no way to make the necessary adjustments.
Consequently, errors might appear on surprising lines if you enable this
feature and the transformed file has code on different lines than the raw
file. For this reason the use of these transformations should be limitted
to codecs that preserve line numbers, such as the spec codec provided by
NoseOfYeti.