Open nmiculinic opened 7 years ago
Hi,
This exception happens because of error when invoking the YAPF command.
You have to make sure that this command: /usr/local/bin/yapf <file path>
succeeds without any error.
UPDATE:
The reason that I have to fix yapf
path is when Java executes a process, it uses default shell environment variables. Which mean if you install yapf to other location instead of the one defined in default $PATH
variable, the plugin won't work.
There may be a way to fix it, but I haven't had enough time to do it.
You could try invoking yapf as python -m yapf ...
, and use whatever python is setup as the project interpreter. That way people who use conda or virtualenv could use this plugin.
It's my first attempt at formatting any file, and this big exception pops up