Closed shhyou closed 3 years ago
Turns out that the code that parsed the file's contents and build the editor data structures was indeed broken but the error doesn't happen until the resulting snip is drawn. So that's why DrR get so heavily wedged; the code that does that drawing is special, trusted code. The commit fixes the parser so that we don't have bogus values in the structs (and thus the drawing code won't crash anymore).
Version
Welcome to Racket v7.9.0.900 [bc] Welcome to Racket v7.9.0.900 [cs]
(the release candidate)
Steps to Reproduce the Issue
The following WXME file triggers a contract violation error in DrRacket: color-red.rkt.tar.gz
Running this file from the command line does not trigger any error.
Expected Behavior
gui-lib
.Error Messages