Open slpenn13 opened 3 years ago
I'm not familiar with Cygwin, but is there anything Black could do to fix this? It sounds more like an issue with vim and/or Cygwin.
Thank you for your reply. I ran across multiple people with base error and wanted to expose one cause and possible first resolution steps. .The issue corresponds to black.vim. Black.vim neds to recognize recognize vim specific python and install black in correct python path structure. Cheers, slp.
When using black,vim with gvim / vim (8.0+) on cygwin. The install completes (receive success notification, see existence of .vim/black with 3.8 specific executables). But upon opening file (from command line, e.g. cygwin-X + terminal) any file receive black module not found. Error occurred irrelevantly of how (or where) install black (specific to 3.8.3).
Reproduce Install using PluginInstall psf/black after downloading into .vim/bundle open file (will see initial install) open additional file -- error will appear on command line
Expected behaviour
Environment (please complete the following information):
Status
At command line determined vim was referencing 3.7.7.1 (dynamic linking did not work). All files in system path corresponded to 3.7.7.1 not 3.8.3. This was also confirmed by pyven.cfg. The install in .vim/black corresponded to Python3 (3.8.3). Cygwin by default installed 3.7 in addition to 3,8, Updated python 3.7.7.1 adding pip, vitrualvenv (from cygwin). Then installed black using python3.7 -m pip install black (into system site-packages). Now vim / gvim loads black and runs :BlackVersion w/ no issue. Thanks, slp.