coc-python icon indicating copy to clipboard operation
coc-python copied to clipboard

[bug] always prompt linter is not installed

Open Freed-Wu opened this issue 5 years ago • 6 comments

Reproduce Procedures

" FILE: $XDG_CONFIG_HOME/nvim/test.vim
" OS: linux v5.4.13
" VI: nvim v0.4.3
" TERM: guake v3.7.0
" coc-python: v1.2.12
set runtimepath=$VIMRUNTIME,$GITHUBWORKSPACE/neoclide/coc.nvim
" vi -u $XDG_CONFIG_HOME/nvim/test.vim /a/test/python/file.py

Screenshot from 2020-09-07 18-18-31

however, image

any linter (not only pylinter, but also pyflake, etc) will also prompt this error.

thanks!

Freed-Wu avatar Sep 07 '20 10:09 Freed-Wu

Not sure how you've installed pylint and I'm not very familiar with Python's virtual environments but specifying the runtime path solved a similar issue for me:

{
  ...
  "python.linting.mypyPath": "~/.asdf/shims/mypy",
  ...
}

nomasprime avatar Sep 07 '20 16:09 nomasprime

by default, the var of "python.linting.xxxpath" is "xxx". all of them are installed in /usr/bin which is one part of $PATH.

Freed-Wu avatar Sep 08 '20 02:09 Freed-Wu

@Freed-Wu ~/.asdf/shims is part of my $PATH but I still had to specify for some reason. Not sure why coc-python couldn't find it.

Sounds like you can fix your issue by specifying the full path but ultimately coc-python should be able to find it, ie, bug or improvement.

nomasprime avatar Sep 08 '20 10:09 nomasprime

@Freed-Wu ~/.asdf/shims is part of my $PATH but I still had to specify for some reason. Not sure why coc-python couldn't find it.

in my humble opinion, i still think it is a bug. coc-python should find it if ~/.asdf/shims is a part of your $PATH.

Freed-Wu avatar Sep 08 '20 16:09 Freed-Wu

Same experience here. Linter works fine, but each time you open a file in vim it still prompt Linter is not installed.

Fingalzzz avatar Sep 10 '20 09:09 Fingalzzz

I use anaconda and it too always says that pylint is not installed even conda list says that I have pylint

Firestar-Reimu avatar Oct 19 '20 06:10 Firestar-Reimu