Sublime Forum

How to disable built in syntax checking for python?

#1

Hey guys,

As you know, ST2 uses python 2.6 internally. And when it detects code that is invalid for that version (for instance dict comprehension from 2.7) it marks the line as “invalid syntax” and prevents further syntax checking… this means that if you have such an “invalid syntax error” at the top of your file, you may miss other “real” errors below that line.

What I want to do is use a linter/syntax checker that uses an external python executable (such as https://github.com/dreadatour/Flake8Lint) and disable the internal linting completely.

Please tell me this is possible? I really don’t like to see errors that aren’t really there…

Thanks,
Pavel

0 Likes

#2

SublimeText does not have such “internal linting”, it’s the plugins which just use the built-in Python 2.6 “linter” to check for errors. Your linked package does it this way but provides an option for using an external linter. You should check for plugin that is linting your code.
Also, iirc there was a ticket for this on SublimeLinter.

1 Like