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)
Change History (8)
by , 9 years ago
Attachment: | 0114_02.TRP added |
---|
by , 9 years ago
Attachment: | 0137_02.TRP added |
---|
by , 9 years ago
Attachment: | 0139_02.TRP added |
---|
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Owner: | set to |
---|---|
Status: | new → accepted |
comment:3 by , 9 years ago
Version: | Release_1.0 → PreRelease_1.0 |
---|
comment:4 by , 9 years ago
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 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
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]
The attachments are an example of each of the three traps