black-pycharm icon indicating copy to clipboard operation
black-pycharm copied to clipboard

Does not find black unless installed with sudo

Open ghost opened this issue 7 years ago • 3 comments

Hey, thanks for creating this. I love black.

I've installed black with python3 -m pip install --user black

It's put black into $HOME/.local/bin/black

This plugin therefore doesn't run.

I don't have root on this machine so I can't resolve this. Sudo pip is also not recommended by PSF.

I don't have experience with idea plugin creation. Does it require an absolute path to work?

EDIT: I managed to symlink it so it works but it's a bit of a hack.

ghost avatar May 25 '18 13:05 ghost

If you use the latest version you should find a menu in the Preferences>Tools menu in Pycharm that allows to configure the path.

pablogsal avatar May 25 '18 15:05 pablogsal

searching the executable in a user's PATH would be preferable.

PyCharm's file dialog at that settings doesn't allow to browse hidden locations.

funkyfuture avatar Jul 06 '18 13:07 funkyfuture

PyCharm's file dialog at that settings doesn't allow to browse hidden locations.

Type .local into the text input and press open, that'll open the the hidden directory.

ghost avatar Oct 17 '18 18:10 ghost