Bug in Edita Options/Reformat ex.err
- Posted by petelomax Apr 21, 2012
- 1861 views
Just spotted a bug in the ex.err pre-processing of Edita that I'm too busy/lazy to fix right now, so wondered if anyone (with the sources of Edita already to hand) fancied a little challenge...
The offending program (eaerr.e) is 384 lines long. It mentions eaerr.exw but I lost that a long time ago, though if you take a copy of eaerr.e, define constant charsWide=79 (say) and delete 9 lines at the end (linelengths..end for) it compiles cleanly. Not that I claim it is well written or properly commented.
Note that I haven't managed to create an offending ex.err from OpenEu, but here is one:
C:\Program Files\Phix\p1.exw:5 attempt to divide by 0 Global & Local Variables C:\Program Files\Phix\p1.exw: o = {{0,0,0}, {97'a',98'b',99'c'}, {100'd',101'e',102'f'}} x = "{{0,0,0}, {97'a',98'b',99'c'}, {100'd',101'e',102'f'}}"Which, with Options\Reformat ex.err checked, Edita shows as:
C:\Program Files\Phix\p1.exw:5 attempt to divide by 0 Global & Local Variables C:\Program Files\Phix\p1.exw: o = {{0,0,0}, "abc", {1"def"} x = "{{0,0,0}, "abc", {1"def"}"Obviously it got "o" wrong, and it mangled "x" when it should be leaving strings as-is.
If no-one's interested I'll get round to it next month, or the month after that...
Pete