Skip to content

Not nice error in the interactions window #793

@gus-massa

Description

@gus-massa

Reproduction steps (Windows?)

  • Open DrRacket
  • Go to the "Choose Language" Menu. Select "The Racket Language" and "Not debugging or profiling"
  • Click "OK"
  • Close DrRacket
  • Open DrRacket again
  • Go to the interactions windows and run (+ "1" "1")

The error is:

 ..\..\Program Files\Racket\share\pkgs\drracket-core-lib\drracket\private\rep.rkt:1213:22: +: contract violation
   expected: number?
   given: "1"

The error shoud be:

+: contract violation
  expected: number?
  given: "1"

If I click the green "Run" arrow on the top right, I get the nice error.
If I enable debugging, I ge the nice error.

<guess>My guess is that the initial setup of the language in the definition window is not setting some promp or contract, and not-debugging removes enough function frames to get a bad error location. I don't know enough of the details to be sure, this guess may be very wrong or nonsensical.</guess>

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