Wee 0.45 bug in parser.e?
- Posted by andi49 Jan 13, 2016
- 1461 views
Hallo
the following reduced example crashes wee, while editing the includeline example.e (say change it to exampl.e)
name of the include needs to be the same as the namespace. (e.g. include work.e as work).
And it crashes also if the include does not even exist
-- file bug.exw include example.e as example example:blahblah()
-- include file example.e public procedure blahblah() puts(1,"blahblah") getc(0) end procedure
Result:
C:\develop\portable_eu\testpool\EuPortable\WEE\parser.e:2471 in function public_ includes() subscript value -1 is out of bounds, reading from a sequence of length 60 ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\parser.e:2501 in function check_name() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\parser.e:2580 in procedure check_proc() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\parser.e:2748 in procedure check_ast() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\parser.e:2863 in function parse_errors() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\wee.exw:2029 in p rocedure do_error_indicators() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\wee.exw:2895 in f unction sci_notify() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\ui_win.e:1222 in function WndProc() ^^^ call-back from Windows ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\ui_win.e:1861 in procedure ui_main() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\ui_win.e:1868 --> See ex.err C:\develop\portable_eu\testpool\EuPortable\WEE\parser.e:2471 in function public_ includes() subscript value -1 is out of bounds, reading from a sequence of length 60 ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\parser.e:2501 in function check_name() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\parser.e:2580 in procedure check_proc() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\parser.e:2748 in procedure check_ast() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\parser.e:2863 in function parse_errors() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\wee.exw:2029 in p rocedure do_error_indicators() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\wee.exw:2895 in f unction sci_notify() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\ui_win.e:1222 in function WndProc() ^^^ called to handle run-time crash ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\ui_win.e:293 in f unction ui_message_box_error() ... called from C:\develop\portable_eu\testpool\EuPortable\WEE\wee.exw:330 in fu nction crash_cleanup() ^^^ called to handle run-time crash Runtime error (Traceback unavailable) Press Enter...
ex.err is here: http://euphoria.indonesianet.de/ex.zip
Same result for 32bit and 64bit. OS is Win10 64bit.
Andreas