Opened 9 years ago

Closed 9 years ago

#49 closed defect (fixed)

Trap on change mode.

Reported by: Gregg Young Owned by: Gregg Young
Priority: minor Milestone: Release_1.0
Component: eFTE core Version: PreRelease_1.0
Keywords: Cc:

Description

ASM51 and EBNF modes both trap on switch. It does not appear to be anything in the .fte file as ASM works and I have made the ASM51 .fte look basically the same and it still traps.
In Hilit_SIMPLE (h_simple `16)
EColorize *col = BF->Mode->fColorize;

It also has trapped at the beginning of Hilit_Plain (+21) and Hilit_FTE + 24. These are what was being switch from and is probably this line for both:
HILIT_VARS(BF->Mode->fColorize->Colors, Line);

I also noted that switching to the RESOURCE highlighting on the same Plain text file (.trp) simply fails.

This has probably always trap but never been tried before.

Attachments (3)

0114_02.TRP (29.9 KB) - added by Gregg Young 9 years ago.
0137_02.TRP (26.5 KB) - added by Gregg Young 9 years ago.
0139_02.TRP (24.9 KB) - added by Gregg Young 9 years ago.

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by Gregg Young

Attachment: 0114_02.TRP added

Changed 9 years ago by Gregg Young

Attachment: 0137_02.TRP added

Changed 9 years ago by Gregg Young

Attachment: 0139_02.TRP added

comment:1 Changed 9 years ago by Gregg Young

The attachments are an example of each of the three traps

comment:2 Changed 9 years ago by Gregg Young

Owner: set to Gregg Young
Status: newaccepted

comment:3 Changed 9 years ago by Gregg Young

Version: Release_1.0PreRelease_1.0

comment:4 Changed 9 years ago by Gregg Young

OK it gets stranger. I can change the .trp file extension to .a51 or .ebfn and it opens and is highlighted (it isn't highlighted when named .trp. I then tried open in mode with the file named .trp. Doing this cause efte to open an error dialog that says both these are invalid modes. "Invalid mode a51"

comment:5 Changed 9 years ago by Gregg Young

Resolution: fixed
Status: acceptedclosed

This was caused because the menu commands didn't match the name in the highlight file. The trap is caused because something in the original mode is corrupted -- fixed by setting to PLAIN mode which should make it obvious it failed. Error message is on status bar. CS[142]

Note: See TracTickets for help on using tickets.