jedi-vim seems to work fine for all libraries but not for numpy.
All libraries are installed in the same place though: /home/ubuntu/.local/lib/python3.8/site-packages
I´m fairly new to vim, so thank you for your patience and for such an amazing tool!
Best,
Sergio
Steps to reproduce
.vimrc
" other stuff
let g:jedi#usages_command = "<leader>N"
let g:jedi#popup_on_dot = 0
let g:jedi#force_py_version = 3
let g:jedi#show_call_signatures = 1
" other stuff
Jedi environment: <SameEnvironment: 3.8.10 in /usr>
executable: /usr/bin/python3
sys_path:
/usr/lib/python38.zip
/usr/lib/python3.8
/usr/lib/python3.8/lib-dynload
/home/ubuntu/.local/lib/python3.8/site-packages
/usr/local/lib/python3.8/dist-packages
/usr/lib/python3/dist-packages
Known environments
<Environment: 3.8.10 in /usr> (/usr/bin/python3.8)
Settings
g:jedi#force_py_version = 3 (default: 'auto')
g:jedi#popup_on_dot = 0 (default: 1)
g:jedi#usages_command = '<leader>N' (default: '<leader>n')
omnifunc=jedi#completions
Last set from ~/.vim/plugged/jedi-vim/autoload/jedi.vim line 714
completeopt=menuone,longest,preview
Last set from ~/.vim/plugged/jedi-vim/plugin/jedi.vim line 36
Messages maintainer: Bram Moolenaar <Bram@vim.org>
"test.py" 5L, 53C
Traceback (most recent call last):
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi_vim.py", line 360, in completions
completions = script.complete(*get_pos(column))
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/api/helpers.py", line 487, in wrapper
return func(self, line, column, *args, **kwargs)
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/api/__init__.py", line 214, in complete
return completion.complete()
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/api/completion.py", line 170, in complete
cached_name, completion_names = self._complete_python(leaf)
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/api/completion.py", line 284, in _complete_python
cached_name, n = self._complete_trailer(dot.get_previous_leaf())
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/api/completion.py", line 399, in _complete_trailer
return cached_name, self._complete_trailer_for_values(values)
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/api/completion.py", line 404, in _complete_trailer_for_values
return complete_trailer(user_context, values)
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/api/completion.py", line 550, in complete_trailer
completion_names += filter.values()
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/inference/filters.py", line 117, in values
return self._convert_names(
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/inference/filters.py", line 114, in _convert_names
return [self.name_class(self.parent_context, name) for name in names]
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/inference/filters.py", line 114, in <listcomp>
return [self.name_class(self.parent_context, name) for name in names]
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/inference/filters.py", line 120, in <genexpr>
for name in self._filter(
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/inference/filters.py", line 144, in _filter
names = [n for n in names if self._is_name_reachable(n)]
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/inference/filters.py", line 144, in <listcomp>
names = [n for n in names if self._is_name_reachable(n)]
File "/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/inference/gradual/stub_value.py", line 89, in _is_name_reachable
if definition.type in ('import_from', 'import_name'):
AttributeError: 'NoneType' object has no attribute 'type'
Pattern not found
VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 01 2022 09:16:32)
Issue
Hi,
jedi-vim seems to work fine for all libraries but not for numpy. All libraries are installed in the same place though:
/home/ubuntu/.local/lib/python3.8/site-packages
I´m fairly new to vim, so thank you for your patience and for such an amazing tool!Best, Sergio
Steps to reproduce
.vimrc
Output of “:verbose JediDebugInfo”
Jedi-vim debug information
jedi-vim version
Global Python
Using Python version 3 to access Jedi.
/usr/bin/python3
3.8.10 (default, Mar 15 2022, 12:22:08), [GCC 9.4.0]
/usr/lib/python3.8/site.py
Jedi
/home/ubuntu/.vim/plugged/jedi-vim/pythonx/jedi/jedi/__init__.py
Jedi environment: <SameEnvironment: 3.8.10 in /usr>
/usr/lib/python38.zip
/usr/lib/python3.8
/usr/lib/python3.8/lib-dynload
/home/ubuntu/.local/lib/python3.8/site-packages
/usr/local/lib/python3.8/dist-packages
/usr/lib/python3/dist-packages
Known environments
Settings
:version
:messages
:scriptnames
``` 1: /usr/share/vim/vimrc 2: /usr/share/vim/vim81/debian.vim 3: /usr/share/vim/vim81/syntax/syntax.vim 4: /usr/share/vim/vim81/syntax/synload.vim 5: /usr/share/vim/vim81/syntax/syncolor.vim 6: /usr/share/vim/vim81/filetype.vim 7: ~/.vimrc 8: ~/.vim/autoload/plug.vim 9: /usr/share/vim/vim81/ftoff.vim 10: /usr/share/vim/vim81/ftplugin.vim 11: /usr/share/vim/vim81/indent.vim 12: /usr/share/vim/vim81/syntax/nosyntax.vim 13: ~/.vim/plugged/onedark.vim/colors/onedark.vim 14: ~/.vim/plugged/onedark.vim/autoload/onedark.vim 15: ~/.vim/plugged/vim-sensible/plugin/sensible.vim 16: /usr/share/vim/vim81/macros/matchit.vim 17: /usr/share/vim/vim81/pack/dist/opt/matchit/plugin/matchit.vim 18: ~/.vim/plugged/lightline.vim/plugin/lightline.vim 19: ~/.vim/plugged/vim-buftabline/plugin/buftabline.vim 20: ~/.vim/plugged/vim-gitgutter/plugin/gitgutter.vim 21: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter/utility.vim 22: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter/highlight.vim 23: ~/.vim/plugged/nerdtree/plugin/NERD_tree.vim 24: ~/.vim/plugged/nerdtree/autoload/nerdtree.vim 25: ~/.vim/plugged/nerdtree/lib/nerdtree/path.vim 26: ~/.vim/plugged/nerdtree/lib/nerdtree/menu_controller.vim 27: ~/.vim/plugged/nerdtree/lib/nerdtree/menu_item.vim 28: ~/.vim/plugged/nerdtree/lib/nerdtree/key_map.vim 29: ~/.vim/plugged/nerdtree/lib/nerdtree/bookmark.vim 30: ~/.vim/plugged/nerdtree/lib/nerdtree/tree_file_node.vim 31: ~/.vim/plugged/nerdtree/lib/nerdtree/tree_dir_node.vim 32: ~/.vim/plugged/nerdtree/lib/nerdtree/opener.vim 33: ~/.vim/plugged/nerdtree/lib/nerdtree/creator.vim 34: ~/.vim/plugged/nerdtree/lib/nerdtree/flag_set.vim 35: ~/.vim/plugged/nerdtree/lib/nerdtree/nerdtree.vim 36: ~/.vim/plugged/nerdtree/lib/nerdtree/ui.vim 37: ~/.vim/plugged/nerdtree/lib/nerdtree/event.vim 38: ~/.vim/plugged/nerdtree/lib/nerdtree/notifier.vim 39: ~/.vim/plugged/nerdtree/autoload/nerdtree/ui_glue.vim 40: ~/.vim/plugged/nerdtree/nerdtree_plugin/exec_menuitem.vim 41: ~/.vim/plugged/nerdtree/nerdtree_plugin/fs_menu.vim 42: ~/.vim/plugged/nerdtree/nerdtree_plugin/vcs.vim 43: ~/.vim/plugged/vim-nerdtree-tabs/nerdtree_plugin/vim-nerdtree-tabs.vim 44: ~/.vim/plugged/nerdtree-git-plugin/nerdtree_plugin/git_status.vim 45: ~/.vim/plugged/nerdtree-git-plugin/autoload/gitstatus.vim 46: ~/.vim/plugged/nerdtree-git-plugin/autoload/gitstatus/log.vim 47: ~/.vim/plugged/nerdtree-git-plugin/autoload/gitstatus/listener.vim 48: ~/.vim/plugged/auto-pairs/plugin/auto-pairs.vim 49: ~/.vim/plugged/ale/plugin/ale.vim 50: ~/.vim/plugged/ale/autoload/ale/events.vim 51: ~/.vim/plugged/tagbar/plugin/tagbar.vim 52: ~/.vim/plugged/vim-closetag/plugin/closetag.vim 53: ~/.vim/plugged/jedi-vim/plugin/jedi.vim 54: ~/.vim/plugged/vim-doge/plugin/doge.vim 55: ~/.vim/plugged/vim-doge/autoload/doge/helpers.vim 56: /usr/share/vim/vim81/plugin/getscriptPlugin.vim 57: /usr/share/vim/vim81/plugin/gzip.vim 58: /usr/share/vim/vim81/plugin/logiPat.vim 59: /usr/share/vim/vim81/plugin/manpager.vim 60: /usr/share/vim/vim81/plugin/matchparen.vim 61: /usr/share/vim/vim81/plugin/netrwPlugin.vim 62: /usr/share/vim/vim81/plugin/rrhelper.vim 63: /usr/share/vim/vim81/plugin/spellfile.vim 64: /usr/share/vim/vim81/plugin/tarPlugin.vim 65: /usr/share/vim/vim81/plugin/tohtml.vim 66: /usr/share/vim/vim81/plugin/vimballPlugin.vim 67: /usr/share/vim/vim81/plugin/zipPlugin.vim 68: ~/.vim/plugged/jedi-vim/ftplugin/python/jedi.vim 69: ~/.vim/plugged/jedi-vim/autoload/jedi.vim 70: ~/.vim/plugged/vim-doge/ftplugin/python.vim 71: ~/.vim/plugged/vim-doge/autoload/doge/buffer.vim 72: /usr/share/vim/vim81/ftplugin/python.vim 73: ~/.vim/plugged/jedi-vim/after/ftplugin/python/jedi.vim 74: ~/.vim/plugged/indentpython.vim/indent/python.vim 75: /usr/share/vim/vim81/indent/python.vim 76: /usr/share/vim/vim81/syntax/python.vim 77: ~/.vim/plugged/jedi-vim/after/syntax/python.vim 78: ~/.vim/plugged/vim-doge/autoload/doge.vim 79: ~/.vim/plugged/ale/autoload/ale.vim 80: ~/.vim/plugged/ale/autoload/ale/util.vim 81: ~/.vim/plugged/ale/autoload/ale/linter.vim 82: ~/.vim/plugged/ale/ale_linters/python/bandit.vim 83: ~/.vim/plugged/ale/ale_linters/python/cspell.vim 84: ~/.vim/plugged/ale/autoload/ale/handlers/cspell.vim 85: ~/.vim/plugged/ale/ale_linters/python/flake8.vim 86: ~/.vim/plugged/ale/ale_linters/python/flakehell.vim 87: ~/.vim/plugged/ale/ale_linters/python/jedils.vim 88: ~/.vim/plugged/ale/ale_linters/python/mypy.vim 89: ~/.vim/plugged/ale/ale_linters/python/prospector.vim 90: ~/.vim/plugged/ale/ale_linters/python/pycodestyle.vim 91: ~/.vim/plugged/ale/ale_linters/python/pydocstyle.vim 92: ~/.vim/plugged/ale/ale_linters/python/pyflakes.vim 93: ~/.vim/plugged/ale/ale_linters/python/pylama.vim 94: ~/.vim/plugged/ale/ale_linters/python/pylint.vim 95: ~/.vim/plugged/ale/ale_linters/python/pylsp.vim 96: ~/.vim/plugged/ale/ale_linters/python/pyre.vim 97: ~/.vim/plugged/ale/ale_linters/python/pyright.vim 98: ~/.vim/plugged/ale/ale_linters/python/unimport.vim 99: ~/.vim/plugged/ale/ale_linters/python/vulture.vim 100: ~/.vim/plugged/ale/autoload/ale/engine.vim 101: ~/.vim/plugged/ale/autoload/ale/semver.vim 102: ~/.vim/plugged/ale/autoload/ale/command.vim 103: ~/.vim/plugged/ale/autoload/ale/job.vim 104: ~/.vim/plugged/ale/autoload/ale/history.vim 105: ~/.vim/plugged/lightline.vim/autoload/lightline.vim 106: ~/.vim/plugged/lightline.vim/autoload/lightline/tab.vim 107: ~/.vim/plugged/onedark.vim/autoload/lightline/colorscheme/onedark.vim 108: ~/.vim/plugged/lightline.vim/autoload/lightline/colorscheme.vim 109: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter.vim 110: ~/.vim/plugged/ale/autoload/ale/cursor.vim 111: ~/.vim/plugged/ale/autoload/ale/python.vim 112: ~/.vim/plugged/ale/autoload/ale/path.vim 113: ~/.vim/plugged/ale/autoload/ale/lsp_linter.vim 114: ~/.vim/plugged/ale/autoload/ale/sign.vim 115: ~/.vim/plugged/ale/autoload/ale/list.vim 116: ~/.vim/plugged/ale/autoload/ale/highlight.vim 117: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter/async.vim 118: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter/debug.vim 119: ~/.vim/plugged/vim-doge/autoload/doge/comment.vim ```