Repository navigation
Conversation
The NSImage drawing handler is an escaping closure, and referencing the view's color property without self fails to compile under strict explicit-self capture checking (Xcode 26.2 toolchains): SidebarWorkspaceRowSlotViews.swift:101:21: error: reference to property 'color' in closure requires explicit use of 'self' to make capture semantics explicit
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe closed-state rendering path for ChangesSidebar icon rendering
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Jul 17, 2026
Collaborator
1 similar comment
Collaborator
This was referenced Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
main does not compile on Xcode 26.2 toolchains since #8270: the NSImage drawing handler in SidebarWorkspaceRowSlotViews references the view's color property without self, which strict capture-semantics checking rejects as an error (SidebarWorkspaceRowSlotViews.swift:101). One token: self.color.set().
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by cubic
Fix build on Xcode 26.2 by making the tinting closure explicitly capture
selfin the sidebar PR icon view. Replacescolor.set()withself.color.set()in theNSImagedrawing handler inSidebarWorkspaceRowSlotViews.swift.Written for commit 65e4db0. Summary will update on new commits.
Summary by CodeRabbit