vim-jedi autocomplete not working
Asked Answered
C

2

12

I just installed jedi-vim with vundle My vim version is 7.3.429. I installed jedi vi pip

every time I hit . or <C-Space> I get this error.

Omni completion (^O^N^P) Pattern not found

when I searched here for this pattern I found a solution to use vim-jedi instead. But unfortunatelly this occours with jedi-vim.

Here is some output of some registers:

:set omnifunc

omnifunc=jedi#complete


:messages

Messages maintainer: Bram Moolenaar <[email protected]>
"models.py" 31L, 1052C
<emptyline>
Coronary answered 23/10, 2012 at 7:15 Comment(7)
Could you rephrase the part with "everytime I hit"Rebarebah
Please report back :set omnifunc and post the output of :messages (after a failed completion).Austine
I installed jedi-vim also on my work machine and reproduced this error. I updated my question with the output. Hope this will help.Coronary
what's the content of :messages? That's much more important :-)Austine
I updated the question, do you need something more?Coronary
This is really strange... have you tried another machine? Maybe start with a fresh vimrc to debug? Nobody has experienced such issues beside you (afaik).Austine
For the record, I have this issue also :)Annalee
N
8

Because this line was in my .vimrc:

autocmd FileType python setlocal omnifunc=pythoncomplete#Complete

I could not use jedi for a long time. When removed it, it's OK.

:set omnifunc
omnifunc=jedi#completions
Nuncia answered 11/3, 2014 at 12:45 Comment(0)
I
1

IIRC, jedi-vim was publicly released one or two weeks ago. I doubt you will get much help outside of its issue tracker.

Anyway, the plugin seems to be using Vim's omni completion under the hood, specifically the <C-x><C-o> shortcut which, in your case, doesn't seem to return anything because it can't recognize the keyword before the ..

Either jedi-vim doesn't work or your code is wrong or the plugin is badly installed.

Inanna answered 23/10, 2012 at 7:34 Comment(3)
Actually there hasn't been an offical "release". I wanted to do a little beta (but how do you do that with open source products :-)).Austine
"Open source" doesn't mean "do everything publicly from day one": you could develop your project in stealth mode and put it on Github once you have gone through a couple of alpha testing rounds and you feel it's ready for scrutiny. That way you are limiting the risks accidental release on reddit/HN.Inanna
You're certainly right. It wasn't that unplanned. I just didn't want to attract as many people as it did. That's what you cannot control that well. However, Jedi is working fairly well. There are only a few minor problems.Austine

© 2022 - 2024 — McMap. All rights reserved.