pythonvimjedi-vim

Autocomplete for parent objects with jedi-vim


I use jedi-vim for completion and it does the thing pretty well. But for some reason I have troubles with completion for parent objects.

For example:

class A:
    variable = 1

class B(A):
    # Won't find any pattern here, only __builtin__.vars
    var # here I hit <C-space>

Is there any settings I should add in my .vimrc or it's just how jedi works? I also dig some issue tracker and didn't find something useful.


Solution

  • Speaking as the author of Jedi: This is something that has never really been supported in Jedi. It might have worked, but it was definitely never tested. Please add an issue to the tracker.

    It's a bit similar to https://github.com/davidhalter/jedi/issues/585. This is something that isn't completable in a "normal" way. It's rather something that, because of its semantics, can (should?) be enabled.