Pikchr

wraparound bug in /pikchrshow sandbox error display
Login

wraparound bug in /pikchrshow sandbox error display

(1) By Dan Shearer (danshearer) on 2021-01-31 16:20:16 [source]

The following syntax error in line 4 of the diagram is correctly highlighted in the Forum:

/*    1 */  A: box "box A"
/*    2 */  C: box "box C"
/*    3 */  
/*    4 */  box same "Coordinates" "Error" with .e at A.e.x+C.e.x
                                                                 ^
ERROR: syntax error

However copy/pasting the same incorrect code into /pikchrshow highlights the line 1 not line 4, and does not show a carrot "^" symbol under the supposed error in line 1. The visible result is approximately like this:

/*    1 */  A: box "box A" _ ERROR: syntax error
box "/*    1 */  A: box \"box A\"" ljust "_" "ERROR: syntax error"  ljust wid 12 fill yellow color darkred 

I looked at pikchrshow.c but didn't see an obvious cause.

Dan Shearer

(2) By drh on 2021-01-31 17:58:13 in reply to 1 [link] [source]

Should be fixed now.

(3) By Dan Shearer (danshearer) on 2021-02-01 02:28:36 in reply to 2 [link] [source]

Yes it is thanks Richard.

Now I'll get back to the problem I was trying to solve when I noticed that :-)

Dan Shearer