Skip to content

DrRacket log window broken when typing in filter box #165

@jbclements

Description

@jbclements

It looks to me like this is one more location that didn't get updated for the changes to the gui framework that happened to support WOB. Let me know if it's hard to reproduce this.

Steps to reproduce on macOS:

  1. remove preferences file org.racket-lang.*
  2. start DrRacket.
  3. Choose View > Show Log
  4. click in the filters box, type a character (not delete)
    See this internal error message:
    color-prefs:lookup-in-color-scheme: contract violation
    expected: known-color-scheme-name?
    given: 'framework:failed-background-color
    in: the name argument of
    (->i
    ((name known-color-scheme-name?))
    (result
    (name)
    (if (... name)
    (is-a?/c style-delta%)
    (is-a?/c color%))))
    contract from:
    /gui-lib/framework/main.rkt
    blaming: /drracket/drracket/private/unit.rkt
    (assuming the contract is correct)
    at: /gui-lib/framework/main.rkt:2095.2
    context...:
    /Users/clements/racket/racket/collects/racket/contract/private/blame.rkt:347:0: raise-blame-error
    ...b/framework/main.rkt:2096:2
    /Users/clements/racket/racket/share/pkgs/drracket/drracket/private/unit.rkt:1530:6: show/hide-log method in frame-mixin
    /Users/clements/racket/racket/share/pkgs/drracket/drracket/private/unit.rkt:1365:6: toggle-log method in tab%
    /Users/clements/gui/gui-lib/mred/private/mrmenu.rkt:250:14: command method in basic-selectable-menu-item%
    /Users/clements/racket/racket/collects/racket/private/more-scheme.rkt:148:2: call-with-break-parameterization
    /Users/clements/racket/racket/collects/racket/private/more-scheme.rkt:265:2: call-with-exception-handler
    /Users/clements/gui/gui-lib/mred/private/wx/common/queue.rkt:435:6
    /Users/clements/gui/gui-lib/mred/private/wx/common/queue.rkt:486:32
    /Users/clements/gui/gui-lib/mred/private/wx/common/queue.rkt:634:3

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