Home Download Buy Blog Forum Support

Slow Autocomplete at Python file

Slow Autocomplete at Python file

Postby SeTeM on Mon Jun 11, 2012 4:02 pm

For example i have some code:
Code: Select all
class Countdown(object):
    num_counters = 0
    def __init__(self, delay):
        self.counter = 5
        self.delay = delay
        Countdown.num_counters += 1
    def count(self):
        if self.counter == 0:
            Countdown.num_counters -= 1
        else:
            print "%s... ( %.1f )" % (self.counter, self.delay)
            self.counter -= 1
            reactor.callLater(self.delay, self.count)
        if Countdown.num_counters == 0:
            reactor.stop()
from twisted.internet import reactor
reactor.callWhenRunning(Countdown(1).count)
print 'Start!'
reactor.run()
print 'Stop!'

and if i try to write "reac..." in the of the file then ST2 brakes for ~30s and only then it offers number of variants to autocomplete.
SeTeM
 
Posts: 1
Joined: Mon Jun 11, 2012 3:55 pm

Re: Slow Autocomplete at Python file

Postby quarnster on Mon Jun 11, 2012 4:39 pm

Do you have any plugins installed? Does it still happen if you revert to a freshly installed state?
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 30 guests