-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autoload vim script uses non-specific path to python binary #3507
Comments
The root cause of the issue seems to be that unlike 3.10, 3.11 doesn't symlink |
Yes, it is and it's ok.
Other versions of python, such as 3.8 and 3.9, also have no symlink. The
The
Since Vim's python should not match a default python, Black should not expect the existence of a |
From what I can see in the plugin, autoload/black.vim hasn't ever used any thing but 'python3' as the executable name: https://github.com/psf/black/blame/main/autoload/black.vim#L37 It may be worth updating |
See #3508
Since my Vim is compiled with In my opinion, the problem is not related to a Python version. If Vim's Python version and symlink |
Then you can close this ticket, as it's covered by that PR. |
I was having this same problem. I pointed my vimrc to @kephircheek's branch and the fix works. |
Describe the bug
Following with the official docs
but failed with
Explanations
My default
python3
has version3.10.9
butpython3.11
also installed.Path
'/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/bin/
exists and fit look likeThere is no
python3
.bin
of other non-default python version also not includepython3
.It not seems to be
homebrew
bug, but may.Reasons
My version of MacVim uses non-default python version
==3.11
.How to fix
python3
hard-coded here.In my opinion, it should be like
f'python{pyver[0]}.{pyver[1]}'
.Environment
The text was updated successfully, but these errors were encountered: