Bug 1190187 - Standard installation of vim-jedi is broken
Summary: Standard installation of vim-jedi is broken
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: vim-jedi
Version: 21
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Petr Hracek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-06 15:33 UTC by Dylan R. Semler
Modified: 2015-03-26 21:34 UTC (History)
11 users (show)

Fixed In Version: vim-jedi-0.7.0-7.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-26 21:31:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dylan R. Semler 2015-02-06 15:33:48 UTC
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

Comment 1 Tomas 'Sheldon' Radej 2015-02-11 15:03:58 UTC
I can confirm this error happens exactly the same on my machine.

Comment 2 Sergio Basto 2015-02-11 17:29:36 UTC
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

Comment 3 Toure Dunnon 2015-02-13 19:02:47 UTC
I can confirm the same error.

Comment 4 nucleo 2015-02-14 16:54:02 UTC
Downgrading to python-jedi-0.7.0-5.fc21 can be temporary fix.

Comment 5 Petr Hracek 2015-02-20 15:08:56 UTC
Upstream has a reported issue on this problem 
https://github.com/davidhalter/jedi-vim/issues/284

Comment 6 Sergio Basto 2015-02-24 16:56:42 UTC
(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

Comment 7 Bohuslav "Slavek" Kabrda 2015-03-19 12:43:41 UTC
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.

Comment 8 Petr Hracek 2015-03-19 13:14:01 UTC
I am gonna to do that. Thanks.

Comment 9 Petr Hracek 2015-03-19 13:44:04 UTC
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.

Comment 10 Petr Hracek 2015-03-19 13:49:28 UTC
The bug is fixed in version vim-jedi-0.7.0-7 .

Comment 11 Fedora Update System 2015-03-19 14:05:59 UTC
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

Comment 12 Fedora Update System 2015-03-19 14:23:21 UTC
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

Comment 13 lnie 2015-03-20 05:45:45 UTC
vim-jedi-0.7.0-7.fc22 works

Comment 14 Fedora Update System 2015-03-21 04:54:50 UTC
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).

Comment 15 Giulio 'juliuxpigface' 2015-03-21 10:03:35 UTC
I can confirm it works as expected on Fedora 21.x86_64. I just gave my karma, thank you so much for the fix.

Comment 16 Fedora Update System 2015-03-26 21:31:30 UTC
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.

Comment 17 Fedora Update System 2015-03-26 21:34:11 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.