Whenever a custom datatype such as the following is rendered in the program:
data Posn:
| posn(x :: Number, y :: Number)
| nice(s :: String)
end
The block node of the title of the datatype "Posn" is rendered as "blocks-node-undefined" with an undefined id, and consequently clicking on the name also crashes the program. The workaround currently is to instead render the title using the String of the title instead. The tradeoff is that custom datatype names are currently uneditable.
The relevant constructor is the class Data in "ast.tsx" and the class s-data in "PyretParser.ts"
Whenever a custom datatype such as the following is rendered in the program:
The block node of the title of the datatype "Posn" is rendered as "blocks-node-undefined" with an undefined id, and consequently clicking on the name also crashes the program. The workaround currently is to instead render the title using the String of the title instead. The tradeoff is that custom datatype names are currently uneditable.
The relevant constructor is the class Data in "ast.tsx" and the class s-data in "PyretParser.ts"