-
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 inside Vim does not work #3672
Comments
Looking at Lines 35 to 37 in eb32729
~/.local/share/nvim/black or ~/.vim/black ?
|
It turns out the problem happens on Ubuntu, but not on Mac OS (just tried on OSX and it works).
|
The psf/black plugin uses a separate virtual environment while my environment already has Black installed. |
Closing as a duplicate of #2547 |
Describe the bug
Installed psf/black Vim plugin using Vundle.
Installation went smoothly.
However, I get a bug upon formatting a Python file.
Tried with and without the following line in .vimrc:
Both variants give the same error.
To Reproduce
The resulting error is:
Expected behavior
Expect file formatted.
Environment
Black 23.3.0
Ubuntu 20.04
Python 3.9 (note, default Python is 3.8 but 3.9 is also installable)
Vim is launched in terminal inside my virtual environment.
Black is installed in that virtual environment:
Currently, I am using the following command in .vimrc:
assuming that no additional virtual environment is installed by psf plugin,
rather mine environment is being used.
Additional context
The text was updated successfully, but these errors were encountered: