cjprecord / editra-plugins

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

Undefined variable 'err' #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What Plugin does this relate to? What version of the Plugin?

Launch 1.6

What steps will reproduce the problem?

This occurs with a bad EDXML/launch.xml file. Can't provide specific
steps... I think this is just a problem of variable initialization.

#---- Notes ----#
Please provide additional information about the crash here

#---- System Information ----#
Editra Version: 0.5.33
Operating System: Linux 2.6.27-14-generic x86_64
Python Version: 2.5.2 (r252:60911, Oct  5 2008, 19:29:17) 
[GCC 4.3.2]
wxPython Version: 2.8.8.0 (gtk2-unicode)
wxPython Info: (__WXGTK__, wxGTK, unicode, gtk2, wx-assertions-off,
SWIG-1.3.29)
Python Encoding: Default=ascii  File=ANSI_X3.4-1968
wxPython Encoding: ANSI_X3.4-1968
System Architecture: 64bit x86_64
Byte order: little
Frozen: False
#---- End System Information ----#

#---- Traceback Info ----#
*** Fri Feb  5 17:06:28 2010 ***
Traceback (most recent call last):
  File "/opt/local/perso/Editra/src/eclib/outbuff.py", line 591, in
_OnProcessExit
    self.DoProcessExit(evt.GetValue())
  File "build/bdist.linux-x86_64/egg/launch/launch.py", line 692, in
DoProcessExit
    self.Stop()
  File "/opt/local/perso/Editra/src/eclib/outbuff.py", line 560, in Stop
    self.OnTimer(None)
  File "/opt/local/perso/Editra/src/eclib/outbuff.py", line 441, in OnTimer
    self.__FlushBuffer()
  File "/opt/local/perso/Editra/src/eclib/outbuff.py", line 264, in
__FlushBuffer
    self.ApplyStyles(start, txt)
  File "build/bdist.linux-x86_64/egg/launch/launch.py", line 649, in
ApplyStyles
    style = handler.StyleText(self, start, txt)
  File "build/bdist.linux-x86_64/egg/launch/handlers.py", line 968, in
StyleText
    return max(err, sty)
UnboundLocalError: local variable 'err' referenced before assignment

#---- End Traceback Info ----#

Original issue reported on code.google.com by sebastie...@gmail.com on 5 Feb 2010 at 4:10

GoogleCodeExporter commented 9 years ago
Was a typo, should be fixed in svn

Original comment by CodyPrec...@gmail.com on 5 Feb 2010 at 5:04

GoogleCodeExporter commented 9 years ago
Issue 144 has been merged into this issue.

Original comment by CodyPrec...@gmail.com on 11 Sep 2011 at 7:40