Hi,
I noticed that my installation of Sublime Text 2 on Windows XP does not handle CTags jumps anymore (ctrl+t ctrl+t was jumping to definition of C code), probably due to a recent update (or maybe user settings, I don’t know). Looking at the console, when pressing this key combination, the following error is logged:
I don’t know the Python language… what I can say is that the log refers to the mmap.mmap() line of the class TagFile (ctags.py) below:
def get(self, *tags):
with open(self.p, 'r+') as fh:
if tags:
self.fh = mmap.mmap(fh.fileno(), 0)
for tag in (t.encode() for t in tags):
b4 = bisect.bisect_left(self, tag)
fh.seek(b4)
for l in self.match_as(fh, tag):
yield l
self.fh.close()
else:
for l in fh.readlines():
yield l
Could someone give me clues? Is it a Windows-only issue? Which lines of code could I insert to debug that stuff?
Thanks,
– Teuxe