# I can not close window completely created by racket on macOS 13 beta

**URL:** <https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166>\
**Category:** Questions & Answers\
**Tags:** drracket\
**Created:** [July 22, 2022, 2:08am UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166 "2022-07-22T02:08:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ixnij](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/ixnij/32/622_2.png) [@ixnij](https://racket.discourse.group/u/ixnij)\
**Post date:** [July 22, 2022, 2:08am UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/1 "2022-07-22T02:08:59Z")

</div>

My racket version is 8.5.

 ![截屏2022-07-22 10.04.49](https://global.discourse-cdn.com/free1/uploads/racket/original/1X/c9b118f1e1654ea3cbbb33d6eb6f138665716904.jpeg)  
For example, when I opened the about window, I can't close it neither by clicking the red button nor by press C-w. other windows have the same problem.

[GUI - problem with delete-child - #5 by alexh](https://racket.discourse.group/t/gui-problem-with-delete-child/1160/5) related?

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [July 22, 2022, 11:16am UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/2 "2022-07-22T11:16:15Z")

</div>

Anyone else running macOS 13 beta? I'd love to hear about failures to reproduce this as well as successes....

---

<div class="post-metadata">

**Author:** ![slbtty](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/slbtty/32/28_2.png) [@slbtty](https://racket.discourse.group/u/slbtty)\
**Post date:** [July 24, 2022, 1:52am UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/3 "2022-07-24T01:52:35Z")

</div>

On macOS 13 beta, nothing is closeable unless quitting drracket entirely.

video with minimum code: [Imgur: The magic of the Internet](https://imgur.com/a/wOqmizW)

```scheme
#lang racket/gui

(define main-frame
  (new frame%
       [label "OK"]))
       
(send main-frame show #t)

```

However, if I run the same code in terminal by `racket file.rkt`, the window is closable. It might be a drracket specific issue.

 ![Screenshot 2022-07-23 at 9.51.05 PM](https://global.discourse-cdn.com/free1/uploads/racket/original/1X/41f8671dea3a60f34a8e48c46f2ca98956616bd3.jpeg)

edit: It's also reproducible on snapshot 8.6.0.2--2022-07-23(cbd42bf/a) [cs] downloaded from utah.

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [July 25, 2022, 9:34pm UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/4 "2022-07-25T21:34:54Z")

</div>

Yep, that's pretty much completely broken. Sigh.

---

<div class="post-metadata">

**Author:** ![mflatt](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/mflatt/32/6_2.png) [@mflatt](https://racket.discourse.group/u/mflatt)\
**Post date:** [July 27, 2022, 12:45pm UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/5 "2022-07-27T12:45:07Z")

</div>

@ixnij and @slbtty: Thanks for the report!

The candidate for the upcoming v8.6 release now includes a repair for this problem:

[https://pre-release.racket-lang.org/](https://pre-release.racket-lang.org/)

Can you check whether it works correctly on your machine?

---

<div class="post-metadata">

**Author:** ![ixnij](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/ixnij/32/622_2.png) [@ixnij](https://racket.discourse.group/u/ixnij)\
**Post date:** [July 27, 2022, 1:58pm UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/6 "2022-07-27T13:58:46Z")

</div>

Ok! I'm downloading the dmg. By the way, I'm in China mainland, there is no official racket mirror. It's quite slow for me to download racket packages.

---

<div class="post-metadata">

**Author:** ![ixnij](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/ixnij/32/622_2.png) [@ixnij](https://racket.discourse.group/u/ixnij)\
**Post date:** [July 27, 2022, 2:42pm UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/7 "2022-07-27T14:42:41Z")

</div>

Great! The windows are closable. But there is another problem: I can't launch DrRacket by click the icon in the launchpad, but I can launch it by ./DrRacket directly in terminal

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [July 27, 2022, 4:44pm UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/8 "2022-07-27T16:44:51Z")

</div>

I'm not sure I know what you mean when you refer to clicking the icon "in the launchpad".

Here's a set of sort of ridiculously fine-grained steps, I'm curious to know what happens when you do this:

- Go to the Finder
- Open a new window using cmd-N
- Click "Applications" on the left side in the Favorites list
- Scroll down to Racket v8.5.900
- Double-click the Racket v8.5.900 folder
- Double-click the DrRacket icon

---

<div class="post-metadata">

**Author:** ![soegaard](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/soegaard/32/19_2.png) [@soegaard](https://racket.discourse.group/u/soegaard)\
**Post date:** [July 27, 2022, 4:55pm UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/9 "2022-07-27T16:55:02Z")

</div>

@jbclements The launchpad is this thing:

> **[Use Launchpad on your Mac](https://support.apple.com/en-us/HT202635)**
>
> Launchpad helps you open, find, and organize your apps.

---

<div class="post-metadata">

**Author:** ![ixnij](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/ixnij/32/622_2.png) [@ixnij](https://racket.discourse.group/u/ixnij)\
**Post date:** [July 28, 2022, 12:05am UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/10 "2022-07-28T00:05:09Z")

</div>

Yes, I mean that @jbclements: I also followed the steps you said, DrRacket can't be opened either.

---

<div class="post-metadata">

**Author:** ![slbtty](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/slbtty/32/28_2.png) [@slbtty](https://racket.discourse.group/u/slbtty)\
**Post date:** [July 28, 2022, 12:40am UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/11 "2022-07-28T00:40:16Z")

</div>

The fix works for me.

I have no problem using the launchpad.

---

<div class="post-metadata">

**Author:** ![ixnij](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/ixnij/32/622_2.png) [@ixnij](https://racket.discourse.group/u/ixnij)\
**Post date:** [July 28, 2022, 1:02am UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/12 "2022-07-28T01:02:58Z")

</div>

I tried restarting my computer, but can't solve the problem.

---

<div class="post-metadata">

**Author:** ![sorawee](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@sorawee](https://racket.discourse.group/u/sorawee)\
**Post date:** [July 28, 2022, 1:18am UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/13 "2022-07-28T01:18:26Z")

</div>

I assume that DrRacket is installed at `/Applications/Racket v8.x`. What will happen when you run `open /Applications/Racket v8.x`? Does it produce any error?

---

<div class="post-metadata">

**Author:** ![ixnij](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/ixnij/32/622_2.png) [@ixnij](https://racket.discourse.group/u/ixnij)\
**Post date:** [July 28, 2022, 1:29am UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/14 "2022-07-28T01:29:10Z")

</div>

`open Racket\ v8.5.900`  
Finder was launched with the directory of Racket v8.5.900

---

<div class="post-metadata">

**Author:** ![ixnij](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/ixnij/32/622_2.png) [@ixnij](https://racket.discourse.group/u/ixnij)\
**Post date:** [July 28, 2022, 1:31am UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/15 "2022-07-28T01:31:23Z")

</div>

I also tried `open Racket\ v8.5.900/DrRacket.app/`, nothing happened.

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [July 30, 2022, 12:13pm UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/16 "2022-07-30T12:13:36Z")

</div>

There are situations wherein macOS decides that because of how an application was installed, that it should not be allowed to refer to paths relative to the application's installation.

In some versions, I believe that the solution in these situations (this sounds bizarre, I know) is to drag the DrRacket application icon out of the folder that it's in, and then drag it back in again. I believe this is the same issue mentioned in the GitHub issue below, and that thread suggests running

```scheme
xattr -r -d Racket\ v8.5.900/DrRacket.app

```

You may want to take a look at other parts of that thread, though, to do some diagnostics and figure out what's going on before fixing it...

> <https://github.com/racket/racket/issues/3666>
>
> \*\*What version of Racket are you using?\*\*
> e.g., 8.0.0.1
> DrRacket, version 8.0….0.1--2021-01-16(b09e10d/a) \[cs\].
> \*\*What program did you run?\*\*
> Just double click on DrRacket or from terminal \`open DrRacket.app\`
> 
> \*\*What should have happened?\*\*
> DRRacket opens and you can run things
> 
> \*\*If you got an error message, please include it here.\*\*
> If I do 
> \`open --stderr ~/tmp/err --stdout ~/tmp/out 'DrRacket.app'\`
> ~/t.err contains
> \`\`\`
> standard-module-name-resolver: collection not found
> for module path: (lib "drracket/drracket.rkt")
> collection: "drracket"
> in collection directories:
> /Users/mark/Library/Racket/8.0.0.1/collects
> \`\`\`
> 
> 
> \*\*Please include any other relevant details\*\*
> macOS 11.1 Apple Silicon similar non starting for other apps in the release.
> 
> However if I run from the terminal the executable inside DrRacket.app e.g.
> \`'/Applications/Racket v8.0.0.1/DrRacket.app/Contents/MacOS/DrRacket'\`
> 
> It all works

---

<div class="post-metadata">

**Author:** ![ixnij](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/ixnij/32/622_2.png) [@ixnij](https://racket.discourse.group/u/ixnij)\
**Post date:** [July 31, 2022, 2:18pm UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/17 "2022-07-31T14:18:27Z")

</div>

> [@jbclements](#):
>
> In some versions, I believe that the solution in these situations (this sounds bizarre, I know) is to drag the DrRacket application icon out of the folder that it's in, and then drag it back in again. I believe this is the same issue mentioned in the GitHub issue below, and that thread suggests running

it didn't help, and the command below has some problems either.

> <https://github.com/racket/racket/issues/3666#issuecomment-1200434465>
>
> \*\*What version of Racket are you using?\*\*
> e.g., 8.0.0.1
> DrRacket, version 8.0….0.1--2021-01-16(b09e10d/a) \[cs\].
> \*\*What program did you run?\*\*
> Just double click on DrRacket or from terminal \`open DrRacket.app\`
> 
> \*\*What should have happened?\*\*
> DRRacket opens and you can run things
> 
> \*\*If you got an error message, please include it here.\*\*
> If I do 
> \`open --stderr ~/tmp/err --stdout ~/tmp/out 'DrRacket.app'\`
> ~/t.err contains
> \`\`\`
> standard-module-name-resolver: collection not found
> for module path: (lib "drracket/drracket.rkt")
> collection: "drracket"
> in collection directories:
> /Users/mark/Library/Racket/8.0.0.1/collects
> \`\`\`
> 
> 
> \*\*Please include any other relevant details\*\*
> macOS 11.1 Apple Silicon similar non starting for other apps in the release.
> 
> However if I run from the terminal the executable inside DrRacket.app e.g.
> \`'/Applications/Racket v8.0.0.1/DrRacket.app/Contents/MacOS/DrRacket'\`
> 
> It all works

---

<div class="post-metadata">

**Author:** ![capfredf](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/capfredf/32/935_2.png) [@capfredf](https://racket.discourse.group/u/capfredf)\
**Post date:** [July 31, 2022, 3:00pm UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/18 "2022-07-31T15:00:31Z")

</div>

I think the command is

> `sudo xattr -r -d com.apple.quarantine <Racket directory>`

see [Configure Command Line for Racket · racket/racket Wiki · GitHub](https://github.com/racket/racket/wiki/Configure-Command-Line-for-Racket)

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [July 31, 2022, 7:23pm UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/19 "2022-07-31T19:23:13Z")

</div>

I like the text in the wiki, but it's not clear how the OP here would have known that this was a signing problem...

I will link the wiki to the github issue, though!

---

<div class="post-metadata">

**Author:** ![ixnij](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/ixnij/32/622_2.png) [@ixnij](https://racket.discourse.group/u/ixnij)\
**Post date:** [August 1, 2022, 2:05am UTC](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166/20 "2022-08-01T02:05:34Z")

</div>

Good. It helps for me.

[Next page](https://racket.discourse.group/t/i-can-not-close-window-completely-created-by-racket-on-macos-13-beta/1166.md?page=2)
