code-google-com / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

CommentBrowser - invalid index error #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Received via error reporter:

Should check if index is still valid before calling GetPage as the notebook may 
have been in the process of being destroyed or otherwise closed.

*** Mon Nov 15 14:46:34 2010 ***
Traceback (most recent call last):
 File "/home/gerard/local/opt/Editra-0.5.86/src/ed_main.py", line 359, in OnActivate
   (nb, nb.GetSelection()))
 File "/home/gerard/local/opt/Editra-0.5.86/src/ed_msg.py", line 273, in PostMessage
   Publisher().sendMessage(msgtype, msgdata, context=context)
 File "/home/gerard/local/opt/Editra-0.5.86/src/extern/pubsub.py", line 798, in sendMessage
   self.__topicTree.sendMessage(aTopic, message, onTopicNeverCreated)
 File "/home/gerard/local/opt/Editra-0.5.86/src/extern/pubsub.py", line 483, in sendMessage
   deliveryCount += node.sendMessage(message)
 File "/home/gerard/local/opt/Editra-0.5.86/src/extern/pubsub.py", line 321, in sendMessage
   listener(message)
 File "/home/gerard/.Editra/plugins/CommentBrowser-0.3-py2.6.egg/commentbrowser/cbrowser.py", line 347, in OnPageChange
   ctrl = nbook.GetPage(page)
 File "/home/gerard/local/opt/Editra-0.5.86/src/extern/aui/auibook.py", line 3862, in GetPage
   return self._tabs.GetWindowFromIdx(page_idx)
 File "/home/gerard/local/opt/Editra-0.5.86/src/extern/aui/auibook.py", line 1097, in GetWindowFromIdx
   return self._pages[idx].window
IndexError: list index out of range

Original issue reported on code.google.com by CodyPrec...@gmail.com on 16 Nov 2010 at 6:41