Skip to content

Clicking on Name of Custom Datatype Workaround #19

@maroon-scorch

Description

@maroon-scorch

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions