pablogsal / black-pycharm

Pycharm plugin for https://github.com/ambv/black
32 stars 11 forks source link

Does not find black unless installed with sudo #1

Open ghost opened 6 years ago

ghost commented 6 years ago

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.

pablogsal commented 6 years ago

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

funkyfuture commented 6 years ago

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.

ghost commented 5 years ago

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.