Home Download Buy Blog Forum Support

How to disable built in syntax checking for python?

How to disable built in syntax checking for python?

Postby asfaltboy on Thu Dec 27, 2012 8:03 am

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
asfaltboy
 
Posts: 4
Joined: Sat Oct 17, 2009 8:16 pm

Re: How to disable built in syntax checking for python?

Postby FichteFoll on Sat Dec 29, 2012 2:57 am

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.
FichteFoll
 
Posts: 388
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 29 guests