Closed argentum2f closed 3 years ago
This might have been fixed on latest Jedi master. Pretty sure I fixed some docstring stuff in combination with decorators. Feel free to checkout the Jedi submodule to the latest master and let me know.
I'm not really sure how to do that. (I don't know that much about git). I tried:
git clone --recurse-submodules https://github.com/davidhalter/jedi-vim
cd jedi-vim/pythonx/jedi/
python setup.py install --user
(--user
cause I don't jave root access)
Then ran vim again, but still have the same problem.
you don't need to install it. Just use cd jedi-vim/pythonx/jedi/; git checkout master
. jedi-vim looks for the path itself.
Can you just check the latest jedi-vim master? (No need to use jedi master)
Issue
Docstring is missing for some functions, but not others even in the same module. In
matplotlib.pyplot
pause()
shows full docstring, whereasimshow()
does not. The thing in common that I've found seems to be that the functions that don't show the docstring (in vim-jedi) all have something like this in place of a docstring (right before the function):@_autogen_docstring(Axes.imshow)
Steps to reproduce
Create file, input
Put cursor over imshow, press K -> function definition only (no docstring) Put cursor over pause, press K -> full docstring displayed
pydoc matplotlib.pyplot.imshow
does give full docstring.Output of “:verbose JediDebugInfo”
Global Python
Using Python version 2 to access Jedi.
2.7.5 (default, Jun 11 2019, 12:19:05), [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
/usr/lib64/python2.7/site.pyc
Jedi
/home/*/.vim/plugged/jedi-vim/pythonx/jedi/jedi/__init__.pyc
Jedi environment: <SameEnvironment: 2.7.5 in /usr>
/home/*/.local/lib/python2.7/site-packages/jedi-0.14.1-py2.7.egg
/home/*/.local/lib/python2.7/site-packages/parso-0.5.1-py2.7.egg
/home/*/.local/lib/python2.7/site-packages/pip-19.2.1-py2.7.egg
/usr/lib64/python27.zip
/usr/lib64/python2.7
/usr/lib64/python2.7/plat-linux2
/usr/lib64/python2.7/lib-tk
/usr/lib64/python2.7/lib-old
/usr/lib64/python2.7/lib-dynload
/home/*/.local/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/gtk-2.0
/usr/lib/python2.7/site-packages
Known environments