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

Searching Intepreter is extreamly slow.

Open you-n-g opened this issue 4 years ago • 4 comments

Hi, I'm using coc.nvim in neovim. I installed the coc-python extention. The process of "Searching Intepreter" is extemely slow. It even stopped me from exiting neovim until it finished. image

I set the python.pythonPath in the .vim/coc-settings.json and hope it will use the default python interpreter instead of searching every time. But it doesn't work image

Here is some environment info

NVIM v0.5.0-379-gdc0e534a9
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-5 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/travis/build/neovim/bot-ci/build/neovim/build/config -I/home/travis/build/neovim/bot-ci/build/neovim/src -I/home/travis/build/neovim/bot-ci/build/neovim/.deps/usr/include -I/usr/include -I/home/travis/build/neovim/bot-ci/build/neovim/build/src/nvim/auto -I/home/travis/build/neovim/bot-ci/build/neovim/build/include
Compiled by travis@travis-job-d90dbf0c-d489-4bcd-acae-03fb4525e3a2

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "
/home/travis/build/neovim/bot-ci/build/neovim/build/nvim.AppDir/usr/share/nvim
"

image

Thanks in advance for your help.

you-n-g avatar May 04 '20 03:05 you-n-g

I run htop when it get stuck at 'Searching interpreter'. I found there is a command node --no-warnings /home/xiaoyang/.vim/plugged/coc.nvim/build/index.js is running, which is the culprit of the issue.

This seems not a issue of coc-python. Due to a folder with huge amount of data, the coc.nvim is scaning files in the project. This make it extreamly slow. Move the folder out of the project will solve this issue.

BTW. Can I make node --no-warnings /home/xiaoyang/.vim/plugged/coc.nvim/build/index.js ignore some folder and be faster?

you-n-g avatar May 04 '20 07:05 you-n-g

I am suffering from the exact same issue here. Have you found any workaround? @you-n-g

szsdk avatar Nov 10 '20 06:11 szsdk

@szsdk I just move the folder which contains huge amount of files out of the project and make a soft link.

you-n-g avatar Nov 10 '20 12:11 you-n-g

@you-n-g I found that coc-jedi works well. So this issue might be still caused by coc-pythong.

szsdk avatar Nov 10 '20 13:11 szsdk