jeudi 16 juin 2016

Annoying sublime text autocompletion for Python after period (`self` keyword)

I'm using sublime text 3 for python development. I have autocompletion turned on as I type, which works. I expect, that when I type an object name followed by a period, a list of object's methods/attributes would popup. It does not happen, so I press Tab.

import time
time.[TAB]

What happens now, is just absolutely weird! . is replaced by self., so I end up with

import time
timeself.

I was looking in all setting files, I tried packages python completions, code intel and code complice, but none of them disabled this "feature", which drives me crazy!

Finally, I have found Jedi package, which solved this issue for the text editor. But I still have problems in the interpreter window (package SublimeREPL). By the way, if I install both Jedi and code complice, the autocompletion in the REPL seems to work better, but it offers some irrelevant crap like %%! or %%HTML. And yes, if I press [TAB] twice, I still end up with timeself. instead of time.!

Does anyone know what's going on? Where this . -> self. behavior is coming from? How to disable %%! stuff?

Aucun commentaire:

Enregistrer un commentaire