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

  • You may need to check your installation of pyflakes. Is it installed with python3 -m pip – D. Ben Knoble Jul 04 '19 at 00:09
  • Yeah, I installed it as apt install pyflakes first and then did both pip3 install pyflakes and pip2 install pyflakes to make sure – Your move creep Jul 04 '19 at 00:21
  • But... pip2 is python2... and check the pyflakes in your path – D. Ben Knoble Jul 04 '19 at 00: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 – Your move creep Jul 04 '19 at 00:35

1 Answers1

1

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