Closed Jerry-Moo closed 5 years ago
Try checking :CocCommand
the option python.setInterpreter
@stsewd I seted python.setInterpreter ...
Still can not jump to package.
You can found unable import celery
Looks like it's excepted, the module you have imported doesn't exists in that virtual env.
@chemzqm
its exists
You can see when I move line 45 and try ctrl+]
it show me tag not found: ConnectionPool.
virtualenv was exists and I use :CocComand python.setInterpreter
I have install coc-pyls
coc-python
I have install coc-pyls coc-python
You should only use one of them, not both.
The tag not found issue doesn't related to coc.nvim, it doesn't provide tags for you.
Try start python repl with your virtual env then use import
.
@chemzqm I try source to virtualenv and open vim. then it show me source jedi timeout after 1000ms.
here its my tag setting vim-gutentags.vim
1: " gutentags搜索工程目录的标志,碰到这些文件/目录名就停止向上一级目录递归 " │ /Users/jerrymoo/.config/nvim/│ 3 " tagbar默认去这个目录中寻找ctags
2: let g:gutentags_project_root = ['.root', '.svn', '.git', '.project'] │ ▷ colors/ │ 4 " let g:tagbar_ctags_bin='/usr/local/bin/ctags'·
3- │ ▼ core/ │ 5 " 启动 时自动focus
4- " 所生成的数据文件的名称 " │ ▷ dein/ │ 6 let g:tagbar_autofocus = 1
5: let g:gutentags_ctags_tagfile = '.tags' │ ▼ plugins/ │ 7 let g:tagbar_width=25
6- │ allkey.vim │ 8 let g:tagbar_type_go = {
7: " 将自动生成的 tags 文件全部放入 ~/.cache/tags 目录中,避免污染工程目录 " │ coc.vim │ 9 \ 'ctagstype' : 'go',
8: let s:vim_tags = expand('~/.cache/tags') │ ctrlf.vim │ 10 \ 'kinds' : [
9: let g:gutentags_cache_dir = s:vim_tags │ fzf.vim │ 11 \ 'p:package',
10: " 检测 ~/.cache/tags 不存在就新建 " │ neoformat.vim │ 12 \ 'i:imports',
11: if !isdirectory(s:vim_tags) │ nerdtree.vim │ 13 \ 'c:constants',
12: silent! call mkdir(s:vim_tags, 'p') │ startify.vim │ 14 \ 'v:variables',
13- endif │ tagbar.vim │ 15 \ 't:types',
14- │ vim-choosewin.vim │ 16 \ 'n:interfaces',
15: " 配置 ctags 的参数 " │ vim-go.vim │ 17 \ 'w:fields',
16: let g:gutentags_ctags_extra_args = [] │ vim-gutentags.vim │ 18 \ 'e:embedded',
17: let g:gutentags_ctags_extra_args = ['--fields=+niazS', '--extra=+q'] │ vim-multiple-cursors.v→│ 19 \ 'm:methods',
18: let g:gutentags_ctags_extra_args += ['--c++-kinds=+px'] │ vista.vim │ 20 \ 'r:constructor',
19: let g:gutentags_ctags_extra_args += ['--c-kinds=+px'] │ ▷ themes/ │ 21 \ 'f:functions'
20- │ deinrc.vim │ 22 \ ],
21- "----------vim-preview配置----------------------------------------- │ filetype.vim │ 23 \ 'sro' : '.',
22- "P 预览 大p关闭
@chemzqm both my global python and virtualenv install pylint jedi
Why you have #! /bin/bash
at first line of your python file, looks like jedi failed to parse your file.
I am not sure what its problem? Could you give me some idea?
sometimes it work...but still show me source languageserver.python timeout after 1000ms
PYLS is known to have this performance issue, you can increase timeout
@chemzqm thank u very much..I fix it ...I incr timeout to 3000ms.
I use Coc.nvim I set virtualenv success. But not working. there are two problem I found sometimes show me
source pyls timeout after 1000ms
. but sometimes show err assource jedi timeout after 1000ms
emm...I can use function jumpctrl+]
to into my project function..but When I want to check the package function. Seem liketornado
ortornadb
it was failednvim I install vim-gutentags.vim here it's setting
tagbar.vim setting