racket / racket/drracket

Tab opened in a wrong window

Open
#439 3 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

Consider the following sequence of actions:

  1. Start DrRacket
  2. Open a Racket file (say, a.rkt) in a tab via File > Open (with "Open files in separate tabs" on)
  3. Open a new window
  4. Switch back to the previous window (that has a.rkt)
  5. Open a Racket file (say, b.rkt)

I expect that b.rkt will be be in the same window as a.rkt, but it's not.

IIUC, this is due to how open-drscheme-window tries to open a new tab in newest-frame, which is set to the most recent created window. I don't understand why that's a desirable behavior however.

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 five-step sequence in the issue, then inspect the open-drscheme-window entry point and how newest-frame is selected. Confirm the behavior when switching between windows, and consider the issue complete when opening b.rkt places it in the active window with a.rkt.

Written by the indexing model from the issue text.

Assessment

Domain
desktop, devtools
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.