Black: vim shows error after executing Black

Created on 3 Mar 2019  路  1Comment  路  Source: psf/black

Hi,

I installed Black as a vim plugin and it outputs errors whenever I execute :Black (formatting is applied) it's annoying! how can I hide those errors? ("error detected while processing bufwrite") see screenshots

I have this command on my .vimrc
autocmd BufWritePre *.py execute ':Black'

screen shot 2019-03-03 at 1 10 16 am

screen shot 2019-03-03 at 1 00 37 am

Operating system: Ubuntu 18.04
Python version: 3.6.7
Black version: latest (not sure just installed the latest vim plugin from github)

integrations

Most helpful comment

For those looking for a workaround for now:

If you need to do anything special to make your virtualenv work and install Black (for example you want to run a version from master), create a virtualenv manually and point g:black_virtualenv to it. The plugin will use it.

Just install black==18.9b0 for now.

Duplicate of #755.

>All comments

For those looking for a workaround for now:

If you need to do anything special to make your virtualenv work and install Black (for example you want to run a version from master), create a virtualenv manually and point g:black_virtualenv to it. The plugin will use it.

Just install black==18.9b0 for now.

Duplicate of #755.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

feluxe picture feluxe  路  3Comments

testvinder picture testvinder  路  3Comments

dimaqq picture dimaqq  路  3Comments

layoaster picture layoaster  路  3Comments

JelleZijlstra picture JelleZijlstra  路  3Comments