racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
445 stars 93 forks source link

... is not functional when the interactions is disabled #568

Closed sorawee closed 1 year ago

sorawee commented 1 year ago

Original issue from https://github.com/racket/drracket/issues/564#issuecomment-1180565083

Consider:

#lang racket

(raise-argument-error 'a "a" 0 2 3)

This generates:

a: contract violation
  expected: a
  given: 2
  argument position: 1st
  other arguments...:

in the REPL, where ... is clickable to show more content.

Now, create file.rkt with:

#lang racket

(provide (except-out (all-from-out racket)
                     #%top-interaction))

and change the first program to:

#lang s-exp "file.rkt"

(raise-argument-error 'a "a" 0 2 3)

Suddenly, the ... button no longer works!