Skip to content

Fix macOS system font fallback cascade append - #58020

Merged
Veykril merged 2 commits into
zed-industries:mainfrom
douo:fix-macos-system-font-fallback-cascade
Jun 5, 2026
Merged

Fix macOS system font fallback cascade append#58020
Veykril merged 2 commits into
zed-industries:mainfrom
douo:fix-macos-system-font-fallback-cascade

Conversation

@douo

@douo douo commented May 29, 2026

Copy link
Copy Markdown
Contributor

Fixes #57916.

append_system_fallbacks used .map(...) for the CFArrayAppendValue side effect, but the iterator was never consumed.

This changes it to a for loop so the fallback descriptors are actually appended.

Copilot AI review requested due to automatic review settings May 29, 2026 03:47
@cla-bot

cla-bot Bot commented May 29, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @douo on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Fixes a bug where system font fallbacks were never appended because .map() produces a lazy iterator that was never consumed. Replaces it with a for loop that actually executes the side effect.

Changes:

  • Replace lazy .map() iterator with a for loop to ensure CFArrayAppendValue is invoked for each fallback descriptor.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label May 29, 2026
@douo

douo commented May 29, 2026

Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 29, 2026
@cla-bot

cla-bot Bot commented May 29, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@smitbarmase smitbarmase added platform:macOS Platform-specific feedback for macOS behaviors, features, design, etc area:ui/font Font feedback for readability, size, style, etc area:gpui GPUI rendering framework support and removed area:ui/font Font feedback for readability, size, style, etc labels May 29, 2026

@Veykril Veykril left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Veykril Veykril self-assigned this Jun 5, 2026
@Veykril
Veykril enabled auto-merge June 5, 2026 15:11
@zed-industries-bot

Copy link
Copy Markdown
Contributor
Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against eb0c952

@Veykril
Veykril added this pull request to the merge queue Jun 5, 2026
Merged via the queue into zed-industries:main with commit 486cf9e Jun 5, 2026
59 checks passed
TomPlanche pushed a commit to TomPlanche/zed that referenced this pull request Jun 8, 2026
Fixes zed-industries#57916.

`append_system_fallbacks` used `.map(...)` for the `CFArrayAppendValue`
side effect, but the iterator was never consumed.

This changes it to a `for` loop so the fallback descriptors are actually
appended.
This was referenced Jun 18, 2026
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
Fixes zed-industries#57916.

`append_system_fallbacks` used `.map(...)` for the `CFArrayAppendValue`
side effect, but the iterator was never consumed.

This changes it to a `for` loop so the fallback descriptors are actually
appended.
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
Fixes zed-industries#57916.

`append_system_fallbacks` used `.map(...)` for the `CFArrayAppendValue`
side effect, but the iterator was never consumed.

This changes it to a `for` loop so the fallback descriptors are actually
appended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:gpui GPUI rendering framework support cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions platform:macOS Platform-specific feedback for macOS behaviors, features, design, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gpui_macos: system font fallbacks never appended due to unconsumed iterator

5 participants