neoclide/coc-python

No module named 'isort'

Opened this issue · 1 comments

Based on the documentation, it seems like isort should be bundled into this plugin.

However, when I run isort via "python.sortImports", I'm told that isort is not found. It works fine if I install isort as a local dependency in my project. However, given I work in multiple virtual environments, it does become slightly tedious to have to do so every time (compared to black, for example, which seems to be setup to work as expected).

Perhaps I missed something in the long list of config flags, but curious to see if I'm misinterpreting the expected base behaviour.

Hi,

Coc-python automatically looks for python modules inside the virtualenv but you can set "python.sortImports.path": "/path/to/system/isort".

Disclaimer: I'm not sure if it works, I've just found it into the readme