cjprecord / editra-plugins

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

[Launch] Invalid code language ID prevents Editra startup #153

Closed GoogleCodeExporter closed 9 years ago

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

What steps will reproduce the problem?
1. Create a new launch.xml file and apply the following XML
<launch version="1">
   <handler name="XHTML" id="ID_LANG_XHML">
   </handler>
</launch>

What is the expected output? What do you see instead?
Editra should start up correctly.

What version of Editra are you using? On what operating system?
#---- System Information ----#
Editra Version: 0.5.99
Operating System: Windows XP (build 2600, Service Pack 3)
Python Version: 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit 
(Intel)]
wxPython Version: 2.8.11.0 (msw-unicode)
wxPython Info: (__WXMSW__, wxMSW, unicode, wx-assertions-on, SWIG-1.3.29)
Python Encoding: Default=ascii  File=mbcs
wxPython Encoding: cp1252
System Architecture: 32bit x86
Byte order: little
Frozen: windows_exe
#---- End System Information ----#

Please provide any additional information below.
#---- Traceback Info ----#
*** Tue Dec 21 15:22:55 2010 ***
Traceback (most recent call last):
  File "Editra.py", line 1128, in <module>
  File "Editra.py", line 1020, in Main
  File "Editra.py", line 1060, in _Main
  File "ed_main.pyo", line 293, in __init__
  File "ed_shelf.pyo", line 133, in Init
  File "ed_shelf.pyo", line 515, in StockShelf
  File "ed_shelf.pyo", line 474, in PutItemOnShelf
  File "c:\program files\editra\plugins\launch-1.8-py2.6.egg\launch\__init__.py", line 58, in CreateItem
  File "c:\program files\editra\plugins\launch-1.8-py2.6.egg\launch\launch.py", line 100, in __init__
  File "c:\program files\editra\plugins\launch-1.8-py2.6.egg\launch\handlers.py", line 124, in InitCustomHandlers
  File "syntax\synxml.pyo", line 197, in LoadFromDisk
  File "xml\sax\__init__.pyo", line 33, in parse
  File "xml\sax\expatreader.pyo", line 107, in parse
  File "xml\sax\xmlreader.pyo", line 123, in parse
  File "xml\sax\expatreader.pyo", line 207, in feed
  File "xml\sax\expatreader.pyo", line 301, in start_element
  File "c:\program files\editra\plugins\launch-1.8-py2.6.egg\launch\launchxml.py", line 87, in startElement
AttributeError: 'module' object has no attribute 'ID_LANG_VOIDCPP'

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

Original issue reported on code.google.com by a.cocka...@gmail.com on 21 Dec 2010 at 3:29

GoogleCodeExporter commented 9 years ago
Hi,

Was this the exact xml you used?
"""
<launch version="1">
   <handler name="XHTML" id="ID_LANG_XHML">
   </handler>
</launch>
"""

I only ask because the error mentions "ID_LANG_VOIDCPP" which I am not sure 
where that could be coming from other than a launch extension.

Thanks,
Cody

Original comment by CodyPrec...@gmail.com on 21 Dec 2010 at 3:56

GoogleCodeExporter commented 9 years ago
Hi,

Looked into this and the error is actually on purpose to inform you that the 
XML you created has an error in it.

The 'id' attribute must specify a valid language ID value. 

Crashing is probably a little harsh though now that I look at it, so I am 
planning to just change it to an error message in the Log.

Cody

Original comment by CodyPrec...@gmail.com on 21 Dec 2010 at 4:58

GoogleCodeExporter commented 9 years ago
Sorry about the inconstancy, I originally used VOIDCPP, but felt that was a 
little odd to use in a bug. So I retested it with XHTML, but forgot to copy the 
error data.

I agree that a log would be much nicer, since the crash doesn't do much to help 
the user identify where the issue is and a log could do so.

Original comment by a.cocka...@gmail.com on 21 Dec 2010 at 5:10

GoogleCodeExporter commented 9 years ago
Done for Launch 1.9

XML parsing Assertions are now logged as error messages in the editra log 
file/output.

Original comment by CodyPrec...@gmail.com on 26 Dec 2010 at 4:35