A standard installation of vim-jedi is broken. I've installed vim-jedi, python-jedi, and python3-jedi. If I try to open a python file with vim, I get the following error in vim: Error detected while processing /usr/share/vim/vimfiles/autoload/jedi.vim: line 283: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/share/vim/vimfiles/initialize.py", line 24, in <module> vim.command('echoerr "Please install Jedi if you want to use jedi_vim."') vim.error: Vim(echoerr):Please install Jedi if you want to use jedi_vim. E171: Missing :endif Error detected while processing /usr/share/vim/vimfiles/ftplugin/python/jedi.vim : line 8: E121: Undefined variable: g:jedi#auto_initialization E171: Missing :endif Version-Release number of selected component (if applicable): vim-enhanced-7.4.475-2.fc21.x86_64 vim-jedi-0.7.0-4.fc21.noarch python-jedi-0.8.1-1.fc21.noarch python3-jedi-0.8.1-1.fc21.noarch How reproducible: Always Steps to Reproduce: 1. yum install vim-jedi python-jedi python3-jedi 2. vi test.py Actual results: The above error is shown in vim Expected results: vim opens normally with jedi autocompletion working
I can confirm this error happens exactly the same on my machine.
me too yum remove vim-jedi-0.7.0-4.fc21.noarch python-jedi-0.8.1-1.fc21.noarch python3-jedi-0.8.1-1.fc21.noarch fix this warning
I can confirm the same error.
Downgrading to python-jedi-0.7.0-5.fc21 can be temporary fix.
Upstream has a reported issue on this problem https://github.com/davidhalter/jedi-vim/issues/284
(In reply to nucleo from comment #4) > Downgrading to python-jedi-0.7.0-5.fc21 can be temporary fix. ---> Package python-jedi.noarch 0:0.7.0-5.fc21 will be a downgrade ---> Package python-jedi.noarch 0:0.8.1-1.fc21 will be erased yeah fix this bug
jedi-vim has several problems with new version of python-jedi, all of them are fixed upstream; these are the relevant commits: - https://github.com/davidhalter/jedi-vim/commit/4724e18b633e54dbaac39759770601cc1979893a - https://github.com/davidhalter/jedi-vim/commit/bb5c473633921bdff522ff25e1839c4f90ea4ebe - https://github.com/davidhalter/jedi-vim/commit/d9a43db019da0390406e34cb161a61fba43bf250 Applied in this order, they seem to fix jedi-vim and it works once again with python-jedi >= 0.8. Could you please provide a new jedi-vim build for rawhide, f22 and f21 with these patches? Thanks.
I am gonna to do that. Thanks.
scm-commit for rawhide (https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20150316/1541247.html). I have checked the patch and all seems to be working. Updates are ongoing today.
The bug is fixed in version vim-jedi-0.7.0-7 .
vim-jedi-0.7.0-7.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/vim-jedi-0.7.0-7.fc22
vim-jedi-0.7.0-7.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/vim-jedi-0.7.0-7.fc21
vim-jedi-0.7.0-7.fc22 works
Package vim-jedi-0.7.0-7.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing vim-jedi-0.7.0-7.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-4274/vim-jedi-0.7.0-7.fc21 then log in and leave karma (feedback).
I can confirm it works as expected on Fedora 21.x86_64. I just gave my karma, thank you so much for the fix.
vim-jedi-0.7.0-7.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
vim-jedi-0.7.0-7.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.