vim-syntastic / syntastic

Syntax checking hacks for vim
Do What The F*ck You Want To Public License
11.31k stars 1.14k forks source link

Add python3 checker #2378

Closed OmnipotentEntity closed 3 years ago

OmnipotentEntity commented 3 years ago

What it says on the tin. This adds an explicit "python3" syntax checker, that explicitly calls "python3" instead of "python," allowing an easy, system-wide workaround for distributions that are still shipping python2 as the default system python for legacy reasons.

lcd047 commented 3 years ago

Please post patches only for problems that can't be solved without changing the code. Also solutions that bypass the existing mechanisms and duplicate code are not accepted. Sorry, but no.

OmnipotentEntity commented 3 years ago

Fair enough. But I don't see how the existing mechanism you linked (which I understand to be "one checker for multiple filetypes") applies to this situation ("multiple checkers for one filetype").

Ultimately, I created this PR because I couldn't see a way to fix my issue without editing the code, but you are certainly more familiar with it than I am, so if you say there's a way I believe you. However, I am still largely as confused as before.

lcd047 commented 3 years ago

I don't see how the existing mechanism you linked (which I understand to be "one checker for multiple filetypes") applies to this situation ("multiple checkers for one filetype").

It doesn't: the solution here is to use virtual environments outside Vim, as described by the FAQ. My point was that if you ever find yourself duplicating checkers there's a better way around that. And that still applies to duplicate checkers within the same filetype (the redirect mechanism still works).