3 ms·
Does SublimeLinter work correctly now with different versions of Python? In ST2, SL parses code as Python 2.6, which gets some 2.7 syntax marked as invalid (e.g
by lucian1900 13y ago
Does SublimeLinter work correctly now with different versions of Python? In ST2, SL parses code as Python 2.6, which gets some 2.7 syntax marked as invalid (e.g. with statement with more than one bind).
I would imagine this gets worse with ST3 embedding Python 3.
- lucian1900 13y agoTo answer my own question, no SublimeLinter is not fixed. It parses as Python 3 and there doesn't seem to be a way to change it.
- morphyn 13y agoIt would probably be possible to make the extension use the system's installation of python if available instead of the one embedded with Sublime, but that would require some coding.
- lucian1900 13y agoI think it would have to be a per-project setting, since one might reasonably work on projects written in all of Python 2.6, 2.7 and 3.
- benyami 13y agoI use the sublimelinter_executable_map to point to a specific ruby version. Does that setting work for Python as well? My config: https://gist.github.com/benyami/5593162 https://gist.github.com/benyami/5593162