You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running :Black in a fresh install of Neovim (via Homebrew), with black installed via vim-plug, results in the following error:
Error detected while processing function provider#python3#Call:
line 18:
Error invoking 'python_execute' on channel 3 (python3-script-host):
Traceback (most recent call last):
File "<string>", line 97, in <module>
ModuleNotFoundError: No module named 'black'
Error detected while processing function black#Black[1]..provider#python3#Call
:
line 18:
Error invoking 'python_execute' on channel 3 (python3-script-host):
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'Black' is not defined
To Reproduce
Install neovim via brew install neovim.
Install pynvim via conda install -c conda-forge pynvim.
Describe the bug
Running
:Black
in a fresh install of Neovim (via Homebrew), withblack
installed viavim-plug
, results in the following error:To Reproduce
neovim
viabrew install neovim
.pynvim
viaconda install -c conda-forge pynvim
.vim-plug
.Plug 'psf/black', { 'branch': 'stable' }
to~/.config/nvim/init.vim
.nvim -c PlugInstall
, or inside of neovim, running:PlugInstall
.neovim
, then run Black via:Black
.Expected behavior
black
formats Python code without the errors.Environment (please complete the following information):
Plug 'psf/black', { 'branch': 'stable' }
in myinit.vim
Does this bug also happen on main?
No.
Additional context
The text was updated successfully, but these errors were encountered: