racket / racket/drracket

DrRacket Log fails to load due to an exception

Open
#429 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Racket
Stars
516
Forks
103
PR merge metrics
No merged PRs in 30d

Description

Unable to open the log due to the following error:

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: 
      <pkgs>/gui-lib/framework/main.rkt
  blaming: <pkgs>/drracket/drracket/private/unit.rkt
   (assuming the contract is correct)
  at: <pkgs>/gui-lib/framework/main.rkt:2095.2

Instructions to repeat:

  1. Launch DrRacket
  2. Menu: View -> Show Log
  3. Error occurs

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure in DrRacket with View -> Show Log, then inspect /gui-lib/framework/main.rkt around line 2095 and the caller in /drracket/drracket/private/unit.rkt. Confirm the fix by opening the log without the color-prefs contract exception.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.