[Eric] Wrong autocompletion behaviour

Detlev Offenbach detlev at die-offenbachs.de
Wed Oct 26 18:37:17 BST 2011


Hi,

it works for me. What autocompletion provider are you using (QScintilla or 
Eric Assistant). Please give version info as well.

Detlev

Am Mittwoch, 26. Oktober 2011, 15:20:06 schrieb Leonardo Giordani:
> Hi all,
> 
> I noticed this wrong behavoiur of autocompletion; I'm changing an already
> written line (i.e. on the right of the cursor there other letters, not blank
> space), for example
> 
> models.(UserProfileAccounts, blank=True, null=True)
> 
> I begin typing
> 
> models.Many(UserProfileAccounts, blank=True, null=True)
> 
> and the autocompletion gives me some (correct) hints. I choose one (this
> time "ManyToManyField") and I find myself with
> 
> models.ManyToField(UserProfileAccounts, blank=True, null=True)
> 
> I suspect the problem is in the duplicated "Many" in "ManyToManyField".
> 
> You can exploit it with this code
> 
> -----------------------------------------8<---------------------------------
> -----------------
> 
> class Thing(object):
>     word_and_word_too = 5
> 
> t = Thing()
> t.wor[AUTOCOMPLETE HERE]
> 
> you get
> 
> t.word_and_d_too
> -----------------------------------------8<---------------------------------
> -----------------
> 
> Is it an Eric or QScintilla bug?
> 
> Thanks
> 
> Leo
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list