>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: Small Red Flag Editor Problem
Eric.Lescasse
Small Red Flag Editor Problem
Posted: Wednesday, April 06, 2005 3:49 AM (EST)

It seems there is a small problem with the Red Flag display in the APL+Win Editor.

If I type a line like:

 

Z„'idx'Œwi'*SetInfo' 'label'nodeids(Col keywords[Œav“

 

the red flag normally shows up since the line is incomplete and there is a syntax error.

 

If I comment this line using the lamp symbol, the red flag correctly disappears.

But if I had commented this line using Ctrl+: then the red flag would have incorrectly remained displayed.

 

Eric

PS: this happens with at least 5.0.16 and 5.2.10


Comments:

Author Thread:
Support
Small Red Flag Editor Problem
Posted: Wednesday, April 06, 2005 12:27 PM (EST)
Eric,

Thanks for bringing this problem to our attention. 

I just need you to clarify one point.  You wrote that you used a Ctrl + : (a colon) to comment the line but meant Ctrl + / (backslash), right?  I believe this to be correct because Ctrl + : doesn't do anything while Ctrl + / adds the comment symbol.

APL2000 Support

     

Eric.Lescasse
Small Red Flag Editor Problem
Posted: Wednesday, April 06, 2005 1:23 PM (EST)
Yes, you are right, though remember I have a French keyboard and the key with the : is the same as the one with the / on my keyboard (so, I do press Ctrl+: to get a lamp symbol here).

     

Mark.Osborne
Small Red Flag Editor Problem
Posted: Wednesday, April 06, 2005 4:28 PM (EST)
Eric, Thank you for reporting this bug. I have a fix for it. Although it appears to be a small bug, it uncovered a longstanding problem in the display of the error flag that has been puzzling. A number of similar behaviors where the flag seems to be out of sync with what it should be have been noticed but never resolved. I think this fix should resolve them. Here is a short description of the problem in the code: This bug was caused by some code in CEcon::OnPaint() and void CEcon::Out() in Econdraw.cpp. The OnPaint method is invoked to draw the session. It in turn calls Out() once for each line. Out() was calling AnalyzeSyntax() and SetSyntaxErrorFlag() to calculate syntax colors and set the error flag bit if needed. However, the flags from the previous state of the line in question were already smuggled into the Out() routine as a parameter. This old version of the flags was used to turn the red flag on or off. This bug probably explains a number of anomalous behaviors of the red syntax error flag which have been seen from time to time. /Mark

     



APL2000 Official Web Site

There is no such thing in anyone's life as an unimportant day.
--- Alexander Woollcott

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |