Open dmfigol opened 6 years ago
Excactly the same error for me, also using macOS.
I have a workaround here:
create a file /usr/local/bin/black_x.sh
#!/usr/bin/env bash
export LANG='en_us.UTF-8'
/usr/local/bin/black $@
give that a chmod +x /usr/local/bin/black_x.sh
then in PyCharm Preferences | Tools | BlackPycharm Configuration, set the path to /usr/local/bin/black_x.sh
It's ugly but it works.
As a workaround I manually configured an external tool in PyCharm manually and assigned a hot key.
I am investigating, but I need to understand why Pycharm is not propagating the locale to the subprocess invocation.
Thank you all for your patience!
Any news here? Is there anything we can do to help?
I am running PyCharm on macOS and the plugin fails due to click failure. Environmental variables LC_ALL and LANG are set for my user, but I don't think PyCharm uses my user for plugins.
The plugin was working fine before (not sure if it was affected by pycharm, plugin itself or black update)