2

pyflakes (with ALE) automatically defaults to python2 instead of python3 and gives me false errors and there are no variables in ALE documentation letting me change python versions. Thanks for any help in advance.

P.S I just switched to MyPy linter, it defaults to python3

P.S (2) Got it! Add let g:ale_python_pyflakes_executable = 'pyflakes3' to your .vimrc

4
  • You may need to check your installation of pyflakes. Is it installed with python3 -m pip
    – D. Ben Knoble
    Jul 4, 2019 at 0:09
  • Yeah, I installed it as apt install pyflakes first and then did both pip3 install pyflakes and pip2 install pyflakes to make sure Jul 4, 2019 at 0:21
  • But... pip2 is python2... and check the pyflakes in your path
    – D. Ben Knoble
    Jul 4, 2019 at 0:22
  • paths...paths..of course, turns out there is a separate pyflakes executable for python3, that is called pyflakes3 so to get python3 syntax support I had to add 'let g:ale_python_pyflakes_executable = 'pyflakes3' to .vimrc. Amen Jul 4, 2019 at 0:35

1 Answer 1

1

Add let g:ale_python_pyflakes_executable = 'pyflakes3' to your .vimrc and be at peace

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.