racket / racket/gui

CMD-N does not open a new window on macOS when all windows are closed

Open
#352 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
68
Forks
82
PR merge metrics
No merged PRs in 30d

Description

What version of Racket are you using?
8.16.900

What program did you run?

Open DrRacket. Close all windows using cmd-W. Try to open a new one using cmd-N. Hear a beep, see no window opening

What should have happened?

A new window should have opened.

If you got an error message, please include it here.

Please include any other relevant details

Could easily be macOS specific. I ran this test on Sonoma 14.6.1

@rfindler reports that the bug is also present in v8.8, and that in 8.3 it does something worse, not allowing you to close the last window.

This could easily also have arisen as a result of changes in the OS, rather than changes in DrRacket.

Contributor guide

Open the contributing guide

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 issue in DrRacket on macOS 14.6.1 by closing all windows with cmd-W and pressing cmd-N. Trace the command handling for creating a window and verify that cmd-N opens a new window when none remain, without breaking the ability to close the last window.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.