-
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
Black in Vim on Ubuntu 22.04 does not work #2876
Comments
Exact same issue here with Debian bookworm (testing) :/ |
I had the same issue and it seems that the problem comes from how the installation script is detecting python's version. To fix it I just replaced this line with the following: |
That worked for me (ver 3.9.12) ! |
For anyone else running into this problem, you can get the correct python version by running: cd ~/.vim/black/bin
./python --version |
Use `stable` branch as recommended in Black repo + needed to work around psf/black#2876.
Closing as a duplicate of #2547 |
I've moved from Ubuntu 21.10 to 22.04 and Black stopped working then. The configuration is fallowing
OS: Ubuntu 22.04
Python: Anaconda with Python 3.8
vim version: 8.2.3582
Package manager: Vundle
I did the fallowing to solve the problem as advised in the previous issues (e.g. #2547):
The effect is fallowing:
Furthermore, I've tried to activate the env created by Black by sourcing ~/.vim/black/bin/activate and checking if Black is installed. If I will do
Everything seems to be okay and black seems to be installed. But in VIM it doesn't work.
The text was updated successfully, but these errors were encountered: