Sublime Forum

Autocomplete inserts useless code while typing (Python)

#1

I just upgraded to ST4

I love the idea of more contextual autocomplete etc

However the current implementation is getting in the way and I think I might have to turn it off :frowning:

Imagine I am busy typing out some code and I write a new class def:

class WTF:
    attr = 1

But what happens is that as soon as I type the colon after WTF, the autocomplete pops up, and then hitting enter selects the first option.

So the code I end up with is:

class WTF:__init__

…with my cursor positioned after the t in “init”

This is the opposite of helpful, unfortunately.

0 Likes

#2

Does this happen in Safe Mode? Locally, I don’t get an AC prompt after the colon in this situation. Do you perhaps have a package installed for enhanced Python support that might be triggering the AC unintentionally?

0 Likes

#3

I don’t know about Safe Mode but if I list my package control packages the ones that look like they could be active for Python are:

  • SublimeCodeIntel
  • SublimeLinter
  • SublimeLinter-flake8

What it looks like when I type:
39

These look like generic Python language specific suggestions

The autocomplete box is titled “snippets”, they are not snippets that I have created though.

0 Likes

#4

Ok, it doesn’t happen in safe mode

How can I find the culprit?

0 Likes

#5

Start disabling packages and see which one is giving you trouble.

0 Likes

#6

…it’s SublimeCodeIntel

0 Likes