Build Information
Successful build of MarkdownEngine, reference main (04f3db), with Swift 6.1 for macOS (SPM) on 9 Nov 2026 02:55:16 UTC.
Swift 6 data race errors: 29
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
478 | tv.setSelectedRange(NSRange(location: clamped, length: 0))
| `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
479 | }
480 | // The snap-back's didChangeText restyles the CARET's paragraph, not the LINK's, so
AppKit.NSTextView.setSelectedRange:2:22: note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func setSelectedRange(_ charRange: NSRange)}
| |- note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:484:39: warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
384 | }
385 |
386 | public func textViewDidChangeSelection(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'textViewDidChangeSelection' part of global actor 'MainActor'
387 | guard let tv = notification.object as? NSTextView else { return }
388 | // Raw mode: plain source — no reveal, snap-back, or inline previews.
:
482 | // link's own paragraph (token.range.location is before the in-name edit, so it's
483 | // stable) — the caret is now outside, so its markers collapse to a rendered link.
484 | let healedNS = tv.string as NSString
| `- warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
485 | if healedNS.length > 0 {
486 | let linkPara = healedNS.paragraphRange(for: NSRange(location: min(token.range.location, healedNS.length - 1), length: 0))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: property declared here
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: property declared here
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:630:24: warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
384 | }
385 |
386 | public func textViewDidChangeSelection(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'textViewDidChangeSelection' part of global actor 'MainActor'
387 | guard let tv = notification.object as? NSTextView else { return }
388 | // Raw mode: plain source — no reveal, snap-back, or inline previews.
:
628 | let selectRange = token.contentRange
629 | if selectRange.length > 0 {
630 | tv.setSelectedRange(selectRange)
| `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
631 | break
632 | }
AppKit.NSTextView.setSelectedRange:2:22: note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func setSelectedRange(_ charRange: NSRange)}
| |- note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:638:30: warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
384 | }
385 |
386 | public func textViewDidChangeSelection(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'textViewDidChangeSelection' part of global actor 'MainActor'
387 | guard let tv = notification.object as? NSTextView else { return }
388 | // Raw mode: plain source — no reveal, snap-back, or inline previews.
:
636 | // Text unchanged past this point (the snap-back branch returned above);
637 | // only the selection may have moved.
638 | let selLocation = tv.selectedRange().location
| `- warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
639 | let inlineContext = PerfTrace.measure("selCtx") {
640 | inlineTokenContext(
AppKit.NSTextView.selectedRange:2:22: note: calls to instance method 'selectedRange()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func selectedRange() -> NSRange}
| |- note: calls to instance method 'selectedRange()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:682:34: warning: call to main actor-isolated instance method 'viewRect(forCharacterRange:using:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
384 | }
385 |
386 | public func textViewDidChangeSelection(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'textViewDidChangeSelection' part of global actor 'MainActor'
387 | guard let tv = notification.object as? NSTextView else { return }
388 | // Raw mode: plain source — no reveal, snap-back, or inline previews.
:
680 | ? storageRange(containingDisplayLocation: selLocation) ?? storageRange(forDisplayRange: displayRange)
681 | : nil
682 | let previewRect = tv.viewRect(forCharacterRange: displayRange, using: layoutBridge)
| `- warning: call to main actor-isolated instance method 'viewRect(forCharacterRange:using:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
683 | ?? tv.viewRect(forCharacterRange: tv.selectedRange(), using: layoutBridge)
684 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:496:10: note: calls to instance method 'viewRect(forCharacterRange:using:)' from outside of its actor context are implicitly asynchronous
494 |
495 | extension NSTextView {
496 | func viewRect(forCharacterRange range: NSRange, using bridge: LayoutBridge?) -> CGRect? {
| |- note: calls to instance method 'viewRect(forCharacterRange:using:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
497 | guard range.location != NSNotFound,
498 | let bridge = bridge,
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:683:23: warning: call to main actor-isolated instance method 'viewRect(forCharacterRange:using:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
681 | : nil
682 | let previewRect = tv.viewRect(forCharacterRange: displayRange, using: layoutBridge)
683 | ?? tv.viewRect(forCharacterRange: tv.selectedRange(), using: layoutBridge)
| `- warning: call to main actor-isolated instance method 'viewRect(forCharacterRange:using:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
684 |
685 | // Only autocomplete while TYPING — not when the caret merely lands in an existing link via
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:496:10: note: calls to instance method 'viewRect(forCharacterRange:using:)' from outside of its actor context are implicitly asynchronous
494 |
495 | extension NSTextView {
496 | func viewRect(forCharacterRange range: NSRange, using bridge: LayoutBridge?) -> CGRect? {
| |- note: calls to instance method 'viewRect(forCharacterRange:using:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
497 | guard range.location != NSNotFound,
498 | let bridge = bridge,
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:683:54: warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
681 | : nil
682 | let previewRect = tv.viewRect(forCharacterRange: displayRange, using: layoutBridge)
683 | ?? tv.viewRect(forCharacterRange: tv.selectedRange(), using: layoutBridge)
| `- warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
684 |
685 | // Only autocomplete while TYPING — not when the caret merely lands in an existing link via
AppKit.NSTextView.selectedRange:2:22: note: calls to instance method 'selectedRange()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func selectedRange() -> NSRange}
| |- note: calls to instance method 'selectedRange()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:839:32: warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
833 | }
834 |
835 | public func textView(_ textView: NSTextView, shouldChangeTextIn affectedCharRange: NSRange, replacementString: String?) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:shouldChangeTextIn:replacementString:)' part of global actor 'MainActor'
836 | // ONE bridge of the pre-edit text — every `textView.string` read is an
837 | // O(doc) copy of the mutable backing store; this function used to take
838 | // four of them per keystroke.
839 | let preText = textView.string
| `- warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
840 | let preNS = preText as NSString
841 | // Open the keystroke's PERF frame HERE: the pre-edit parse and the
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: property declared here
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: property declared here
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:852:35: warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
833 | }
834 |
835 | public func textView(_ textView: NSTextView, shouldChangeTextIn affectedCharRange: NSRange, replacementString: String?) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:shouldChangeTextIn:replacementString:)' part of global actor 'MainActor'
836 | // ONE bridge of the pre-edit text — every `textView.string` read is an
837 | // O(doc) copy of the mutable backing store; this function used to take
:
850 | let outOfBounds = affectedCharRange.location > preNS.length
851 | || affectedCharRange.location + affectedCharRange.length > preNS.length
852 | let isUndoRedo = textView.undoManager?.isUndoing == true
| `- warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
853 | || textView.undoManager?.isRedoing == true
854 | let interactive = !isProgrammaticEdit && !isWritingToolsActive
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:308:55: note: property declared here
306 |
307 | @interface NSResponder(NSUndoSupport)
308 | @property (nullable, readonly, strong) NSUndoManager *undoManager;
| `- note: property declared here
309 | @end
310 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:853:25: warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
851 | || affectedCharRange.location + affectedCharRange.length > preNS.length
852 | let isUndoRedo = textView.undoManager?.isUndoing == true
853 | || textView.undoManager?.isRedoing == true
| `- warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
854 | let interactive = !isProgrammaticEdit && !isWritingToolsActive
855 | && !configuration.rawSourceMode && !outOfBounds && !isUndoRedo
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:308:55: note: property declared here
306 |
307 | @interface NSResponder(NSUndoSupport)
308 | @property (nullable, readonly, strong) NSUndoManager *undoManager;
| `- note: property declared here
309 | @end
310 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:919:33: warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
833 | }
834 |
835 | public func textView(_ textView: NSTextView, shouldChangeTextIn affectedCharRange: NSRange, replacementString: String?) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:shouldChangeTextIn:replacementString:)' part of global actor 'MainActor'
836 | // ONE bridge of the pre-edit text — every `textView.string` read is an
837 | // O(doc) copy of the mutable backing store; this function used to take
:
917 | pendingPreEditActiveTokenIndices = activeTokenIndices(
918 | parsed: parsed,
919 | selection: textView.selectedRange(),
| `- warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
920 | in: preNS,
921 | suppressed: !textView.isEditable
AppKit.NSTextView.selectedRange:2:22: note: calls to instance method 'selectedRange()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func selectedRange() -> NSRange}
| |- note: calls to instance method 'selectedRange()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:921:35: warning: main actor-isolated property 'isEditable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
833 | }
834 |
835 | public func textView(_ textView: NSTextView, shouldChangeTextIn affectedCharRange: NSRange, replacementString: String?) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:shouldChangeTextIn:replacementString:)' part of global actor 'MainActor'
836 | // ONE bridge of the pre-edit text — every `textView.string` read is an
837 | // O(doc) copy of the mutable backing store; this function used to take
:
919 | selection: textView.selectedRange(),
920 | in: preNS,
921 | suppressed: !textView.isEditable
| `- warning: main actor-isolated property 'isEditable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
922 | )
923 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:414:36: note: property declared here
412 |
413 | @property (nullable, weak) id<NSTextViewDelegate> delegate;
414 | @property (getter=isEditable) BOOL editable;
| `- note: property declared here
415 | @property (getter=isSelectable) BOOL selectable;
416 | @property (getter=isRichText) BOOL richText;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:980:27: warning: call to main actor-isolated instance method 'startLineMoveFromHangingCaret' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
957 | }
958 |
959 | public func textView(_ textView: NSTextView, doCommandBy commandSelector: Selector) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:doCommandBy:)' part of global actor 'MainActor'
960 | // Raw mode: default key handling (no ⇧⇥ outdent, no preview routing).
961 | if configuration.rawSourceMode { return false }
:
978 | }
979 | if let nativeTextView = textView as? NativeTextView,
980 | nativeTextView.startLineMoveFromHangingCaret(commandSelector) {
| `- warning: call to main actor-isolated instance method 'startLineMoveFromHangingCaret' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
981 | return true
982 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView+HangingCaret.swift:148:10: note: calls to instance method 'startLineMoveFromHangingCaret' from outside of its actor context are implicitly asynchronous
146 | /// margin TextKit clamps it to: the caret moves onto that row and AppKit
147 | /// performs the command from there. True when the move is already complete.
148 | func startLineMoveFromHangingCaret(_ command: Selector) -> Bool {
| |- note: calls to instance method 'startLineMoveFromHangingCaret' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
149 | let vertical = command == #selector(NSResponder.moveUp(_:))
150 | || command == #selector(NSResponder.moveDown(_:))
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:989:40: warning: main actor-isolated property 'linkClickDidFire' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
984 | }
985 |
986 | public func textView(_ textView: NSTextView, clickedOnLink link: Any, at charIndex: Int) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:clickedOnLink:at:)' part of global actor 'MainActor'
987 | // Record that the delegate ran this press, so mouseDown's fallback knows
988 | // AppKit didn't drop the dispatch.
989 | (textView as? NativeTextView)?.linkClickDidFire = true
| `- warning: main actor-isolated property 'linkClickDidFire' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
990 | // Edit zone: a click on the outer ~30% of a link's first/last visible char places the caret
991 | // just outside the markers (before '[[' / '[' , after ']]' / ')') to reveal the source for
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView.swift:35:9: note: mutation of this property is only permitted within the actor
33 | // mouseDown can re-dispatch a click AppKit dropped), and did it navigate
34 | // (so the pre-click caret is restored — a link click isn't caret placement).
35 | var linkClickDidFire = false
| `- note: mutation of this property is only permitted within the actor
36 | var linkClickDidNavigate = false
37 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:994:21: warning: main actor-isolated property 'isEditable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
984 | }
985 |
986 | public func textView(_ textView: NSTextView, clickedOnLink link: Any, at charIndex: Int) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:clickedOnLink:at:)' part of global actor 'MainActor'
987 | // Record that the delegate ran this press, so mouseDown's fallback knows
988 | // AppKit didn't drop the dispatch.
:
992 | // editing instead of navigating. Applies to both wiki links [[…]] and web links [text](url).
993 | // Editable views only — read-only links must stay navigable.
994 | if textView.isEditable, let storage = textView.textStorage {
| `- warning: main actor-isolated property 'isEditable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
995 | var linkRange = NSRange(location: NSNotFound, length: 0)
996 | let editZoneMinNameLength = 3 // 1–2 char names stay fully clickable for navigation
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:414:36: note: property declared here
412 |
413 | @property (nullable, weak) id<NSTextViewDelegate> delegate;
414 | @property (getter=isEditable) BOOL editable;
| `- note: property declared here
415 | @property (getter=isSelectable) BOOL selectable;
416 | @property (getter=isRichText) BOOL richText;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:994:56: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
984 | }
985 |
986 | public func textView(_ textView: NSTextView, clickedOnLink link: Any, at charIndex: Int) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:clickedOnLink:at:)' part of global actor 'MainActor'
987 | // Record that the delegate ran this press, so mouseDown's fallback knows
988 | // AppKit didn't drop the dispatch.
:
992 | // editing instead of navigating. Applies to both wiki links [[…]] and web links [text](url).
993 | // Editable views only — read-only links must stay navigable.
994 | if textView.isEditable, let storage = textView.textStorage {
| `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
995 | var linkRange = NSRange(location: NSNotFound, length: 0)
996 | let editZoneMinNameLength = 3 // 1–2 char names stay fully clickable for navigation
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
| `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1005:58: warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
984 | }
985 |
986 | public func textView(_ textView: NSTextView, clickedOnLink link: Any, at charIndex: Int) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:clickedOnLink:at:)' part of global actor 'MainActor'
987 | // Record that the delegate ran this press, so mouseDown's fallback knows
988 | // AppKit didn't drop the dispatch.
:
1003 | // .link attribute only spans the visible text, so without the full token range a web
1004 | // link would drop the caret between its brackets instead of just outside them.
1005 | let token = parsedDocument(for: textView.string).tokens
| `- warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1006 | .first { ($0.kind == .wikiLink || $0.kind == .link) && NSLocationInRange(charIndex, $0.range) }
1007 | let edgeFraction: CGFloat = 0.3
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: property declared here
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: property declared here
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1011:30: warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
984 | }
985 |
986 | public func textView(_ textView: NSTextView, clickedOnLink link: Any, at charIndex: Int) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:clickedOnLink:at:)' part of global actor 'MainActor'
987 | // Record that the delegate ran this press, so mouseDown's fallback knows
988 | // AppKit didn't drop the dispatch.
:
1009 | if charIndex == linkRange.location, frac.map({ $0 <= edgeFraction }) ?? true {
1010 | let caret = token?.range.location ?? linkRange.location // before '[[' / '['
1011 | textView.setSelectedRange(NSRange(location: caret, length: 0))
| `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1012 | return true
1013 | }
AppKit.NSTextView.setSelectedRange:2:22: note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func setSelectedRange(_ charRange: NSRange)}
| |- note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1016:30: warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
984 | }
985 |
986 | public func textView(_ textView: NSTextView, clickedOnLink link: Any, at charIndex: Int) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:clickedOnLink:at:)' part of global actor 'MainActor'
987 | // Record that the delegate ran this press, so mouseDown's fallback knows
988 | // AppKit didn't drop the dispatch.
:
1014 | if charIndex == NSMaxRange(linkRange) - 1, frac.map({ $0 >= 1 - edgeFraction }) ?? true {
1015 | let caret = token.map { NSMaxRange($0.range) } ?? NSMaxRange(linkRange) // after ']]' / ')'
1016 | textView.setSelectedRange(NSRange(location: caret, length: 0))
| `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1017 | return true
1018 | }
AppKit.NSTextView.setSelectedRange:2:22: note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func setSelectedRange(_ charRange: NSRange)}
| |- note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1025:44: warning: main actor-isolated property 'linkClickDidNavigate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
984 | }
985 |
986 | public func textView(_ textView: NSTextView, clickedOnLink link: Any, at charIndex: Int) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:clickedOnLink:at:)' part of global actor 'MainActor'
987 | // Record that the delegate ran this press, so mouseDown's fallback knows
988 | // AppKit didn't drop the dispatch.
:
1023 | // (the mouseDown fallback mirrors that). Opening a link is navigation
1024 | // too — flag it so mouseDown restores the pre-click caret.
1025 | (textView as? NativeTextView)?.linkClickDidNavigate = true
| `- warning: main actor-isolated property 'linkClickDidNavigate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1026 | return false
1027 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView.swift:36:9: note: mutation of this property is only permitted within the actor
34 | // (so the pre-click caret is restored — a link click isn't caret placement).
35 | var linkClickDidFire = false
36 | var linkClickDidNavigate = false
| `- note: mutation of this property is only permitted within the actor
37 |
38 | // MARK: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1029:40: warning: main actor-isolated property 'linkClickDidNavigate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
984 | }
985 |
986 | public func textView(_ textView: NSTextView, clickedOnLink link: Any, at charIndex: Int) -> Bool {
| `- note: add '@MainActor' to make instance method 'textView(_:clickedOnLink:at:)' part of global actor 'MainActor'
987 | // Record that the delegate ran this press, so mouseDown's fallback knows
988 | // AppKit didn't drop the dispatch.
:
1027 | }
1028 | // Direkt deaktivieren, bevor der Navigation-Callback läuft.
1029 | (textView as? NativeTextView)?.linkClickDidNavigate = true
| `- warning: main actor-isolated property 'linkClickDidNavigate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1030 | self.isWikiLinkActive = false
1031 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView.swift:36:9: note: mutation of this property is only permitted within the actor
34 | // (so the pre-click caret is restored — a link click isn't caret placement).
35 | var linkClickDidFire = false
36 | var linkClickDidNavigate = false
| `- note: mutation of this property is only permitted within the actor
37 |
38 | // MARK: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1040:33: warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1037 | /// Horizontal fraction (0 = leading, 1 = trailing) of the current click through the glyph at
1038 | /// `charIndex`, or nil if unresolved. Coordinates mirror NativeTextView+CursorRects.
1039 | private func clickFractionThroughGlyph(_ textView: NSTextView, charIndex: Int) -> CGFloat? {
| `- note: add '@MainActor' to make instance method 'clickFractionThroughGlyph(_:charIndex:)' part of global actor 'MainActor'
1040 | guard let event = NSApp.currentEvent,
| `- warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1041 | let tlm = textView.textLayoutManager,
1042 | let tcm = tlm.textContentManager,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:349:49: note: property declared here
347 | - (void)sendEvent:(NSEvent *)event;
348 | - (void)postEvent:(NSEvent *)event atStart:(BOOL)atStart;
349 | @property (nullable, readonly, strong) NSEvent *currentEvent;
| `- note: property declared here
350 | - (nullable NSEvent *)nextEventMatchingMask:(NSEventMask)mask untilDate:(nullable NSDate *)expiration inMode:(NSRunLoopMode)mode dequeue:(BOOL)deqFlag;
351 | - (void)discardEventsMatchingMask:(NSEventMask)mask beforeEvent:(nullable NSEvent *)lastEvent;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1040:27: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1037 | /// Horizontal fraction (0 = leading, 1 = trailing) of the current click through the glyph at
1038 | /// `charIndex`, or nil if unresolved. Coordinates mirror NativeTextView+CursorRects.
1039 | private func clickFractionThroughGlyph(_ textView: NSTextView, charIndex: Int) -> CGFloat? {
| `- note: add '@MainActor' to make instance method 'clickFractionThroughGlyph(_:charIndex:)' part of global actor 'MainActor'
1040 | guard let event = NSApp.currentEvent,
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1041 | let tlm = textView.textLayoutManager,
1042 | let tcm = tlm.textContentManager,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1041:34: warning: main actor-isolated property 'textLayoutManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1037 | /// Horizontal fraction (0 = leading, 1 = trailing) of the current click through the glyph at
1038 | /// `charIndex`, or nil if unresolved. Coordinates mirror NativeTextView+CursorRects.
1039 | private func clickFractionThroughGlyph(_ textView: NSTextView, charIndex: Int) -> CGFloat? {
| `- note: add '@MainActor' to make instance method 'clickFractionThroughGlyph(_:charIndex:)' part of global actor 'MainActor'
1040 | guard let event = NSApp.currentEvent,
1041 | let tlm = textView.textLayoutManager,
| `- warning: main actor-isolated property 'textLayoutManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1042 | let tcm = tlm.textContentManager,
1043 | let start = tcm.location(tlm.documentRange.location, offsetBy: charIndex),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:116:59: note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
116 | @property (nullable, readonly, weak) NSTextLayoutManager *textLayoutManager API_AVAILABLE(macos(12.0));
| `- note: property declared here
117 |
118 | // The text view's text layout storage, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1046:34: warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1037 | /// Horizontal fraction (0 = leading, 1 = trailing) of the current click through the glyph at
1038 | /// `charIndex`, or nil if unresolved. Coordinates mirror NativeTextView+CursorRects.
1039 | private func clickFractionThroughGlyph(_ textView: NSTextView, charIndex: Int) -> CGFloat? {
| `- note: add '@MainActor' to make instance method 'clickFractionThroughGlyph(_:charIndex:)' part of global actor 'MainActor'
1040 | guard let event = NSApp.currentEvent,
1041 | let tlm = textView.textLayoutManager,
:
1044 | let end = tcm.location(start, offsetBy: 1),
1045 | let range = NSTextRange(location: start, end: end) else { return nil }
1046 | let viewPoint = textView.convert(event.locationInWindow, from: nil)
| `- warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1047 | let containerX = viewPoint.x - textView.textContainerOrigin.x
1048 | var glyphFrame: CGRect?
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ point: NSPoint, from view: NSView?) -> NSPoint}
| |- note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1047:49: warning: main actor-isolated property 'textContainerOrigin' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1037 | /// Horizontal fraction (0 = leading, 1 = trailing) of the current click through the glyph at
1038 | /// `charIndex`, or nil if unresolved. Coordinates mirror NativeTextView+CursorRects.
1039 | private func clickFractionThroughGlyph(_ textView: NSTextView, charIndex: Int) -> CGFloat? {
| `- note: add '@MainActor' to make instance method 'clickFractionThroughGlyph(_:charIndex:)' part of global actor 'MainActor'
1040 | guard let event = NSApp.currentEvent,
1041 | let tlm = textView.textLayoutManager,
:
1045 | let range = NSTextRange(location: start, end: end) else { return nil }
1046 | let viewPoint = textView.convert(event.locationInWindow, from: nil)
1047 | let containerX = viewPoint.x - textView.textContainerOrigin.x
| `- warning: main actor-isolated property 'textContainerOrigin' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1048 | var glyphFrame: CGRect?
1049 | tlm.enumerateTextSegments(in: range, type: .standard, options: []) { _, segFrame, _, _ in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:106:30: note: property declared here
104 |
105 | // The container's origin in the view is determined from the current usage of the container, the container inset, and the view size. textContainerOrigin returns this point.
106 | @property (readonly) NSPoint textContainerOrigin;
| `- note: property declared here
107 |
108 | // invalidateTextContainerOrigin is sent automatically whenever something changes that causes the origin to possibly move. You usually do not need to call invalidate yourself.
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1058:36: warning: main actor-isolated property 'string' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
1056 |
1057 | func updateSelectionStates(_ tv: NSTextView, nsText: NSString? = nil) {
1058 | let nsText = nsText ?? (tv.string as NSString)
| `- warning: main actor-isolated property 'string' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
1059 | let selRange = tv.selectedRange()
1060 | let bus = configuration.services.bus
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: property declared here
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: property declared here
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1059:27: warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1055 | }
1056 |
1057 | func updateSelectionStates(_ tv: NSTextView, nsText: NSString? = nil) {
| `- note: add '@MainActor' to make instance method 'updateSelectionStates(_:nsText:)' part of global actor 'MainActor'
1058 | let nsText = nsText ?? (tv.string as NSString)
1059 | let selRange = tv.selectedRange()
| `- warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1060 | let bus = configuration.services.bus
1061 | let center = NotificationCenter.default
AppKit.NSTextView.selectedRange:2:22: note: calls to instance method 'selectedRange()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func selectedRange() -> NSRange}
| |- note: calls to instance method 'selectedRange()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1083:31: warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1080 | }
1081 |
1082 | func handleBacktab(_ textView: NSTextView) -> Bool {
| `- note: add '@MainActor' to make instance method 'handleBacktab' part of global actor 'MainActor'
1083 | let nsText = textView.string as NSString
| `- warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1084 | let caretLoc = textView.selectedRange().location
1085 | let lineRange = nsText.lineRange(for: NSRange(location: caretLoc, length: 0))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: property declared here
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: property declared here
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1084:33: warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1080 | }
1081 |
1082 | func handleBacktab(_ textView: NSTextView) -> Bool {
| `- note: add '@MainActor' to make instance method 'handleBacktab' part of global actor 'MainActor'
1083 | let nsText = textView.string as NSString
1084 | let caretLoc = textView.selectedRange().location
| `- warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1085 | let lineRange = nsText.lineRange(for: NSRange(location: caretLoc, length: 0))
1086 | let line = nsText.substring(with: lineRange)
AppKit.NSTextView.selectedRange:2:22: note: calls to instance method 'selectedRange()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func selectedRange() -> NSRange}
| |- note: calls to instance method 'selectedRange()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1107:30: warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1080 | }
1081 |
1082 | func handleBacktab(_ textView: NSTextView) -> Bool {
| `- note: add '@MainActor' to make instance method 'handleBacktab' part of global actor 'MainActor'
1083 | let nsText = textView.string as NSString
1084 | let caretLoc = textView.selectedRange().location
:
1105 | if wsString.hasPrefix("\t") {
1106 | MarkdownLists.performEdit(textView, replace: NSRange(location: wsDocStart, length: 1), with: "")
1107 | textView.setSelectedRange(NSRange(location: max(0, caretLoc - 1), length: 0))
| `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1108 | return true
1109 | } else {
AppKit.NSTextView.setSelectedRange:2:22: note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func setSelectedRange(_ charRange: NSRange)}
| |- note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1116:30: warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1080 | }
1081 |
1082 | func handleBacktab(_ textView: NSTextView) -> Bool {
| `- note: add '@MainActor' to make instance method 'handleBacktab' part of global actor 'MainActor'
1083 | let nsText = textView.string as NSString
1084 | let caretLoc = textView.selectedRange().location
:
1114 | if removeCount == 0 { removeCount = min(2, wsRangeLocal.length) }
1115 | MarkdownLists.performEdit(textView, replace: NSRange(location: wsDocStart, length: removeCount), with: "")
1116 | textView.setSelectedRange(NSRange(location: max(0, caretLoc - removeCount), length: 0))
| `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1117 | return true
1118 | }
AppKit.NSTextView.setSelectedRange:2:22: note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func setSelectedRange(_ charRange: NSRange)}
| |- note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1126:22: warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1080 | }
1081 |
1082 | func handleBacktab(_ textView: NSTextView) -> Bool {
| `- note: add '@MainActor' to make instance method 'handleBacktab' part of global actor 'MainActor'
1083 | let nsText = textView.string as NSString
1084 | let caretLoc = textView.selectedRange().location
:
1124 | if line.hasPrefix("\t") {
1125 | MarkdownLists.performEdit(textView, replace: NSRange(location: lineRange.location, length: 1), with: "")
1126 | textView.setSelectedRange(NSRange(location: max(0, caretLoc - 1), length: 0))
| `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1127 | return true
1128 | }
AppKit.NSTextView.setSelectedRange:2:22: note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func setSelectedRange(_ charRange: NSRange)}
| |- note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WikiLinkSnapback.swift:26:46: warning: call to main actor-isolated instance method 'hasMarkedText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | /// location the caller should re-settle to (delta-adjusted), or nil if it did nothing.
24 | @discardableResult
25 | func resyncWikiLinkNameOnLeave(_ textView: NSTextView, token: MarkdownToken, caretLoc: Int) -> Int? {
| `- note: add '@MainActor' to make instance method 'resyncWikiLinkNameOnLeave(_:token:caretLoc:)' part of global actor 'MainActor'
26 | guard !isProgrammaticEdit, !textView.hasMarkedText(), !isWritingToolsActive else { return nil }
| `- warning: call to main actor-isolated instance method 'hasMarkedText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | guard token.kind == .wikiLink || token.kind == .imageEmbed else { return nil }
28 | guard let storage = textView.textStorage else { return nil }
AppKit.NSTextView.hasMarkedText:2:22: note: calls to instance method 'hasMarkedText()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func hasMarkedText() -> Bool}
| |- note: calls to instance method 'hasMarkedText()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WikiLinkSnapback.swift:28:38: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | /// location the caller should re-settle to (delta-adjusted), or nil if it did nothing.
24 | @discardableResult
25 | func resyncWikiLinkNameOnLeave(_ textView: NSTextView, token: MarkdownToken, caretLoc: Int) -> Int? {
| `- note: add '@MainActor' to make instance method 'resyncWikiLinkNameOnLeave(_:token:caretLoc:)' part of global actor 'MainActor'
26 | guard !isProgrammaticEdit, !textView.hasMarkedText(), !isWritingToolsActive else { return nil }
27 | guard token.kind == .wikiLink || token.kind == .imageEmbed else { return nil }
28 | guard let storage = textView.textStorage else { return nil }
| `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | let contentRange = token.contentRange
30 | let docLen = storage.length
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
| `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WikiLinkSnapback.swift:45:18: warning: call to main actor-isolated instance method 'breakUndoCoalescing()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | /// location the caller should re-settle to (delta-adjusted), or nil if it did nothing.
24 | @discardableResult
25 | func resyncWikiLinkNameOnLeave(_ textView: NSTextView, token: MarkdownToken, caretLoc: Int) -> Int? {
| `- note: add '@MainActor' to make instance method 'resyncWikiLinkNameOnLeave(_:token:caretLoc:)' part of global actor 'MainActor'
26 | guard !isProgrammaticEdit, !textView.hasMarkedText(), !isWritingToolsActive else { return nil }
27 | guard token.kind == .wikiLink || token.kind == .imageEmbed else { return nil }
:
43 | guard live != currentName else { return nil } // no churn + loop terminator
44 |
45 | textView.breakUndoCoalescing()
| `- warning: call to main actor-isolated instance method 'breakUndoCoalescing()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | isProgrammaticEdit = true
47 | defer { isProgrammaticEdit = false }
AppKit.NSTextView.breakUndoCoalescing:2:22: note: calls to instance method 'breakUndoCoalescing()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func breakUndoCoalescing()}
| |- note: calls to instance method 'breakUndoCoalescing()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WikiLinkSnapback.swift:48:24: warning: call to main actor-isolated instance method 'shouldChangeText(in:replacementString:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | /// location the caller should re-settle to (delta-adjusted), or nil if it did nothing.
24 | @discardableResult
25 | func resyncWikiLinkNameOnLeave(_ textView: NSTextView, token: MarkdownToken, caretLoc: Int) -> Int? {
| `- note: add '@MainActor' to make instance method 'resyncWikiLinkNameOnLeave(_:token:caretLoc:)' part of global actor 'MainActor'
26 | guard !isProgrammaticEdit, !textView.hasMarkedText(), !isWritingToolsActive else { return nil }
27 | guard token.kind == .wikiLink || token.kind == .imageEmbed else { return nil }
:
46 | isProgrammaticEdit = true
47 | defer { isProgrammaticEdit = false }
48 | guard textView.shouldChangeText(in: contentRange, replacementString: live) else { return nil }
| `- warning: call to main actor-isolated instance method 'shouldChangeText(in:replacementString:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | storage.replaceCharacters(in: contentRange, with: live)
50 | let newContentRange = NSRange(location: contentRange.location, length: (live as NSString).length)
AppKit.NSTextView.shouldChangeText:2:22: note: calls to instance method 'shouldChangeText(in:replacementString:)' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func shouldChangeText(in affectedCharRange: NSRange, replacementString: String?) -> Bool}
| |- note: calls to instance method 'shouldChangeText(in:replacementString:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WikiLinkSnapback.swift:54:40: warning: main actor-isolated property 'suppressAutoRevealOnce' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
23 | /// location the caller should re-settle to (delta-adjusted), or nil if it did nothing.
24 | @discardableResult
25 | func resyncWikiLinkNameOnLeave(_ textView: NSTextView, token: MarkdownToken, caretLoc: Int) -> Int? {
| `- note: add '@MainActor' to make instance method 'resyncWikiLinkNameOnLeave(_:token:caretLoc:)' part of global actor 'MainActor'
26 | guard !isProgrammaticEdit, !textView.hasMarkedText(), !isWritingToolsActive else { return nil }
27 | guard token.kind == .wikiLink || token.kind == .imageEmbed else { return nil }
:
52 | // Suppress the auto-reveal that didChangeText's writeback can trigger (a tall image embed
53 | // would otherwise scroll-jump on snap-back). The caller suppresses the final setSelectedRange too.
54 | (textView as? NativeTextView)?.suppressAutoRevealOnce = true
| `- warning: main actor-isolated property 'suppressAutoRevealOnce' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
55 | textView.didChangeText()
56 | textView.undoManager?.setActionName("Update Link Name")
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView.swift:31:9: note: mutation of this property is only permitted within the actor
29 | /// Coalesces table restyles to the latest width once per run-loop turn.
30 | var pendingTableWidthChangeUpdate = false
31 | var suppressAutoRevealOnce: Bool = false
| `- note: mutation of this property is only permitted within the actor
32 | // Set by clickedOnLink during a mouseDown: did the delegate fire (so
33 | // mouseDown can re-dispatch a click AppKit dropped), and did it navigate
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WikiLinkSnapback.swift:55:18: warning: call to main actor-isolated instance method 'didChangeText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | /// location the caller should re-settle to (delta-adjusted), or nil if it did nothing.
24 | @discardableResult
25 | func resyncWikiLinkNameOnLeave(_ textView: NSTextView, token: MarkdownToken, caretLoc: Int) -> Int? {
| `- note: add '@MainActor' to make instance method 'resyncWikiLinkNameOnLeave(_:token:caretLoc:)' part of global actor 'MainActor'
26 | guard !isProgrammaticEdit, !textView.hasMarkedText(), !isWritingToolsActive else { return nil }
27 | guard token.kind == .wikiLink || token.kind == .imageEmbed else { return nil }
:
53 | // would otherwise scroll-jump on snap-back). The caller suppresses the final setSelectedRange too.
54 | (textView as? NativeTextView)?.suppressAutoRevealOnce = true
55 | textView.didChangeText()
| `- warning: call to main actor-isolated instance method 'didChangeText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 | textView.undoManager?.setActionName("Update Link Name")
57 | textView.breakUndoCoalescing()
AppKit.NSTextView.didChangeText:2:22: note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func didChangeText()}
| |- note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WikiLinkSnapback.swift:56:18: warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | /// location the caller should re-settle to (delta-adjusted), or nil if it did nothing.
24 | @discardableResult
25 | func resyncWikiLinkNameOnLeave(_ textView: NSTextView, token: MarkdownToken, caretLoc: Int) -> Int? {
| `- note: add '@MainActor' to make instance method 'resyncWikiLinkNameOnLeave(_:token:caretLoc:)' part of global actor 'MainActor'
26 | guard !isProgrammaticEdit, !textView.hasMarkedText(), !isWritingToolsActive else { return nil }
27 | guard token.kind == .wikiLink || token.kind == .imageEmbed else { return nil }
:
54 | (textView as? NativeTextView)?.suppressAutoRevealOnce = true
55 | textView.didChangeText()
56 | textView.undoManager?.setActionName("Update Link Name")
| `- warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | textView.breakUndoCoalescing()
58 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:308:55: note: property declared here
306 |
307 | @interface NSResponder(NSUndoSupport)
308 | @property (nullable, readonly, strong) NSUndoManager *undoManager;
| `- note: property declared here
309 | @end
310 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WikiLinkSnapback.swift:57:18: warning: call to main actor-isolated instance method 'breakUndoCoalescing()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | /// location the caller should re-settle to (delta-adjusted), or nil if it did nothing.
24 | @discardableResult
25 | func resyncWikiLinkNameOnLeave(_ textView: NSTextView, token: MarkdownToken, caretLoc: Int) -> Int? {
| `- note: add '@MainActor' to make instance method 'resyncWikiLinkNameOnLeave(_:token:caretLoc:)' part of global actor 'MainActor'
26 | guard !isProgrammaticEdit, !textView.hasMarkedText(), !isWritingToolsActive else { return nil }
27 | guard token.kind == .wikiLink || token.kind == .imageEmbed else { return nil }
:
55 | textView.didChangeText()
56 | textView.undoManager?.setActionName("Update Link Name")
57 | textView.breakUndoCoalescing()
| `- warning: call to main actor-isolated instance method 'breakUndoCoalescing()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 |
59 | let delta = (live as NSString).length - contentRange.length
AppKit.NSTextView.breakUndoCoalescing:2:22: note: calls to instance method 'breakUndoCoalescing()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func breakUndoCoalescing()}
| |- note: calls to instance method 'breakUndoCoalescing()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:17:28: warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | extension NativeTextViewCoordinator {
15 | @available(macOS 15.0, *)
16 | public func textViewWritingToolsWillBegin(_ textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'textViewWritingToolsWillBegin' part of global actor 'MainActor'
17 | let sel = textView.selectedRange()
| `- warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 | resetWritingToolsSession()
19 | isWritingToolsActive = true
AppKit.NSTextView.selectedRange:2:22: note: calls to instance method 'selectedRange()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func selectedRange() -> NSRange}
| |- note: calls to instance method 'selectedRange()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:21:48: warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
14 | extension NativeTextViewCoordinator {
15 | @available(macOS 15.0, *)
16 | public func textViewWritingToolsWillBegin(_ textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'textViewWritingToolsWillBegin' part of global actor 'MainActor'
17 | let sel = textView.selectedRange()
18 | resetWritingToolsSession()
19 | isWritingToolsActive = true
20 | wtInitialSelectionRange = sel.length > 0 ? sel : nil
21 | observeUndoNotifications(for: textView.undoManager)
| `- warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | scheduleChildWindowFix(textView: textView, attemptsRemaining: 20)
23 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:308:55: note: property declared here
306 |
307 | @interface NSResponder(NSUndoSupport)
308 | @property (nullable, readonly, strong) NSUndoManager *undoManager;
| `- note: property declared here
309 | @end
310 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:27:40: warning: call to main actor-isolated instance method 'endWritingToolsHide()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 |
25 | @available(macOS 15.0, *)
26 | public func textViewWritingToolsDidEnd(_ textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'textViewWritingToolsDidEnd' part of global actor 'MainActor'
27 | (textView as? NativeTextView)?.endWritingToolsHide()
| `- warning: call to main actor-isolated instance method 'endWritingToolsHide()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | let wasActive = isWritingToolsActive
29 | let postUndo = wtPostUndoSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView+WritingTools.swift:153:10: note: calls to instance method 'endWritingToolsHide()' from outside of its actor context are implicitly asynchronous
151 |
152 | /// Session end or document switch: nothing may stay hidden, no context survives.
153 | func endWritingToolsHide() {
| |- note: calls to instance method 'endWritingToolsHide()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
154 | showWritingToolsRemainder()
155 | writingToolsContextStarts = [:]
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:37:47: warning: main actor-isolated property 'string' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
35 | // ⌘Z mid-session on 15.1–26: Apple's stale accept action corrupts the text and
36 | // leaves 0.1pt marker fonts behind; the post-undo snapshot is the true state.
37 | let sourceText = postUndo ?? textView.string
| `- warning: main actor-isolated property 'string' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
38 | let storageState = WikiLinkService.makeStorageState(
39 | from: sourceText,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: property declared here
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: property declared here
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:41:35: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 |
25 | @available(macOS 15.0, *)
26 | public func textViewWritingToolsDidEnd(_ textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'textViewWritingToolsDidEnd' part of global actor 'MainActor'
27 | (textView as? NativeTextView)?.endWritingToolsHide()
28 | let wasActive = isWritingToolsActive
:
39 | from: sourceText,
40 | existingMetadata: wikiLinkMetadata,
41 | textStorage: textView.textStorage
| `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | )
43 | wikiLinkMetadata = storageState.metadata
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
| `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:64:38: warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | /// back as written (the zones spell checking skips too).
61 | @available(macOS 15.0, *)
62 | public func textView(_ textView: NSTextView,
| `- note: add '@MainActor' to make instance method 'textView(_:writingToolsIgnoredRangesInEnclosingRange:)' part of global actor 'MainActor'
63 | writingToolsIgnoredRangesInEnclosingRange enclosingRange: NSRange) -> [NSValue] {
64 | parsedDocument(for: textView.string).tokens.compactMap { token in
| `- warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 | switch token.kind {
66 | case .codeBlock, .inlineCode, .inlineLatex, .blockLatex, .link, .wikiLink, .imageEmbed, .imageLink, .table:
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: property declared here
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: property declared here
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:90:41: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
86 | }
87 |
88 | private func captureChildWindowIfNeeded(textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'captureChildWindowIfNeeded(textView:)' part of global actor 'MainActor'
89 | guard wtChildWindow == nil,
90 | let mainWindow = textView.window,
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
91 | let childWin = mainWindow.childWindows?.first(where: { $0.isVisible }) else { return }
92 | wtChildWindow = childWin
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:91:41: warning: main actor-isolated property 'childWindows' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
86 | }
87 |
88 | private func captureChildWindowIfNeeded(textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'captureChildWindowIfNeeded(textView:)' part of global actor 'MainActor'
89 | guard wtChildWindow == nil,
90 | let mainWindow = textView.window,
91 | let childWin = mainWindow.childWindows?.first(where: { $0.isVisible }) else { return }
| `- warning: main actor-isolated property 'childWindows' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
92 | wtChildWindow = childWin
93 | wtInitialChildOrigin = childWin.frame.origin
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:610:68: note: property declared here
608 | - (void)addChildWindow:(NSWindow *)childWin ordered:(NSWindowOrderingMode)place;
609 | - (void)removeChildWindow:(NSWindow *)childWin;
610 | @property (nullable, readonly, copy) NSArray<__kindof NSWindow *> *childWindows;
| `- note: property declared here
611 |
612 | @property (nullable, weak) NSWindow *parentWindow;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:91:73: warning: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
89 | guard wtChildWindow == nil,
90 | let mainWindow = textView.window,
91 | let childWin = mainWindow.childWindows?.first(where: { $0.isVisible }) else { return }
| `- warning: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
92 | wtChildWindow = childWin
93 | wtInitialChildOrigin = childWin.frame.origin
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:435:45: note: property declared here
433 |
434 | @property (getter=isDocumentEdited) BOOL documentEdited;
435 | @property (getter=isVisible, readonly) BOOL visible;
| `- note: property declared here
436 | @property (getter=isKeyWindow, readonly) BOOL keyWindow;
437 | @property (getter=isMainWindow, readonly) BOOL mainWindow;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:93:41: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
86 | }
87 |
88 | private func captureChildWindowIfNeeded(textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'captureChildWindowIfNeeded(textView:)' part of global actor 'MainActor'
89 | guard wtChildWindow == nil,
90 | let mainWindow = textView.window,
91 | let childWin = mainWindow.childWindows?.first(where: { $0.isVisible }) else { return }
92 | wtChildWindow = childWin
93 | wtInitialChildOrigin = childWin.frame.origin
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
94 | }
95 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:359:29: note: property declared here
357 | @property (readonly) NSRect cascadingReferenceFrame API_AVAILABLE(macos(15.0));
358 |
359 | @property (readonly) NSRect frame;
| `- note: property declared here
360 |
361 | /*! Subclasses can override \c animationResizeTime: to control the total time for the frame change.
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:119:27: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
117 | wtUndoObserverTokens = [
118 | center.addObserver(forName: .NSUndoManagerDidUndoChange, object: um, queue: .main) { [weak self] _ in
119 | guard let self, let tv = self.textView, self.isWritingToolsActive else { return }
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
120 | // On 27 AppKit's end of the session throws on the undone text; ending it
121 | // here leaves that text as the result. 15.1–26 recover in didEnd.
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:20:20: note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:122:69: warning: main actor-isolated property 'writingToolsCoordinator' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
120 | // On 27 AppKit's end of the session throws on the undone text; ending it
121 | // here leaves that text as the result. 15.1–26 recover in didEnd.
122 | if #available(macOS 15.2, *), let writingTools = tv.writingToolsCoordinator {
| `- warning: main actor-isolated property 'writingToolsCoordinator' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
123 | writingTools.stopWritingTools()
124 | } else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:639:49: note: property declared here
637 | API_AVAILABLE(macos(15.2))
638 | @interface NSView (NSWritingToolsCoordinator)
639 | @property (nullable) NSWritingToolsCoordinator *writingToolsCoordinator;
| `- note: property declared here
640 | @end
641 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:123:34: warning: call to main actor-isolated instance method 'stopWritingTools()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
121 | // here leaves that text as the result. 15.1–26 recover in didEnd.
122 | if #available(macOS 15.2, *), let writingTools = tv.writingToolsCoordinator {
123 | writingTools.stopWritingTools()
| `- warning: call to main actor-isolated instance method 'stopWritingTools()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | } else {
125 | self.wtPostUndoSnapshot = tv.string
AppKit.NSWritingToolsCoordinator.stopWritingTools:2:22: note: calls to instance method 'stopWritingTools()' from outside of its actor context are implicitly asynchronous
1 | class NSWritingToolsCoordinator {
2 | @MainActor open func stopWritingTools()}
| `- note: calls to instance method 'stopWritingTools()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:125:50: warning: main actor-isolated property 'string' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
123 | writingTools.stopWritingTools()
124 | } else {
125 | self.wtPostUndoSnapshot = tv.string
| `- warning: main actor-isolated property 'string' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
126 | }
127 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: property declared here
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: property declared here
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:140:30: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | }
135 |
136 | func fixWritingToolsChildWindowIfNeeded(textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'fixWritingToolsChildWindowIfNeeded(textView:)' part of global actor 'MainActor'
137 | guard let childWin = wtChildWindow,
138 | let correctOrigin = wtInitialChildOrigin else { return }
139 |
140 | let frame = childWin.frame
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
141 | let needsFix = abs(frame.origin.x - correctOrigin.x) > 0.5 || abs(frame.origin.y - correctOrigin.y) > 0.5
142 | if needsFix {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:359:29: note: property declared here
357 | @property (readonly) NSRect cascadingReferenceFrame API_AVAILABLE(macos(15.0));
358 |
359 | @property (readonly) NSRect frame;
| `- note: property declared here
360 |
361 | /*! Subclasses can override \c animationResizeTime: to control the total time for the frame change.
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:145:22: warning: call to main actor-isolated instance method 'setFrame(_:display:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 | }
135 |
136 | func fixWritingToolsChildWindowIfNeeded(textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'fixWritingToolsChildWindowIfNeeded(textView:)' part of global actor 'MainActor'
137 | guard let childWin = wtChildWindow,
138 | let correctOrigin = wtInitialChildOrigin else { return }
:
143 | var fixed = frame
144 | fixed.origin = correctOrigin
145 | childWin.setFrame(fixed, display: false)
| `- warning: call to main actor-isolated instance method 'setFrame(_:display:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
146 | }
147 | }
AppKit.NSWindow.setFrame:2:22: note: calls to instance method 'setFrame(_:display:)' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setFrame(_ frameRect: NSRect, display flag: Bool)}
| |- note: calls to instance method 'setFrame(_:display:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:155:22: warning: call to main actor-isolated instance method 'stopWritingTools()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
150 | /// and replays the latest switch once the coordinator leaves `.interactiveStreaming`.
151 | @available(macOS 15.2, *)
152 | func deferNodeSwitch(until writingTools: NSWritingToolsCoordinator, replay: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'deferNodeSwitch(until:replay:)' part of global actor 'MainActor'
153 | deferredNodeSwitch = replay
154 | guard deferredNodeSwitchTimer == nil else { return }
155 | writingTools.stopWritingTools()
| `- warning: call to main actor-isolated instance method 'stopWritingTools()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
156 | let timer = Timer(timeInterval: 0.05, repeats: true) { [weak self, weak writingTools] timer in
157 | MainActor.assumeIsolated {
AppKit.NSWritingToolsCoordinator.stopWritingTools:2:22: note: calls to instance method 'stopWritingTools()' from outside of its actor context are implicitly asynchronous
1 | class NSWritingToolsCoordinator {
2 | @MainActor open func stopWritingTools()}
| `- note: calls to instance method 'stopWritingTools()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:158:27: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
156 | let timer = Timer(timeInterval: 0.05, repeats: true) { [weak self, weak writingTools] timer in
157 | MainActor.assumeIsolated {
158 | guard let self else { return timer.invalidate() }
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
159 | if let writingTools, writingTools.state == .interactiveStreaming { return }
160 | let replay = self.deferredNodeSwitch
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:20:20: note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:247:55: warning: main actor-isolated property 'isContinuousSpellCheckingEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
244 | /// cache so the next caret move doesn't immediately overwrite it, and
245 | /// notifies the embedder.
246 | func didToggleSpellCheckingPolicy(textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'didToggleSpellCheckingPolicy(textView:)' part of global actor 'MainActor'
247 | userPrefersContinuousSpellChecking = textView.isContinuousSpellCheckingEnabled
| `- warning: main actor-isolated property 'isContinuousSpellCheckingEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
248 | userPrefersGrammarChecking = textView.isGrammarCheckingEnabled
249 | userPrefersAutomaticSpellingCorrection = textView.isAutomaticSpellingCorrectionEnabled
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:363:58: note: property declared here
361 | @property BOOL usesInspectorBar API_AVAILABLE(macos(10.7));
362 |
363 | @property (getter=isContinuousSpellCheckingEnabled) BOOL continuousSpellCheckingEnabled;
| `- note: property declared here
364 | - (void)toggleContinuousSpellChecking:(nullable id)sender;
365 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:248:47: warning: main actor-isolated property 'isGrammarCheckingEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
244 | /// cache so the next caret move doesn't immediately overwrite it, and
245 | /// notifies the embedder.
246 | func didToggleSpellCheckingPolicy(textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'didToggleSpellCheckingPolicy(textView:)' part of global actor 'MainActor'
247 | userPrefersContinuousSpellChecking = textView.isContinuousSpellCheckingEnabled
248 | userPrefersGrammarChecking = textView.isGrammarCheckingEnabled
| `- warning: main actor-isolated property 'isGrammarCheckingEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
249 | userPrefersAutomaticSpellingCorrection = textView.isAutomaticSpellingCorrectionEnabled
250 | userPrefersAutomaticQuoteSubstitution = textView.isAutomaticQuoteSubstitutionEnabled
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:369:50: note: property declared here
367 |
368 | // If grammar checking is enabled, then it is performed whenever spellchecking is performed, whether continuously or manually.
369 | @property (getter=isGrammarCheckingEnabled) BOOL grammarCheckingEnabled API_AVAILABLE(macos(10.5));
| `- note: property declared here
370 | - (void)toggleGrammarChecking:(nullable id)sender API_AVAILABLE(macos(10.5));
371 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:249:59: warning: main actor-isolated property 'isAutomaticSpellingCorrectionEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
244 | /// cache so the next caret move doesn't immediately overwrite it, and
245 | /// notifies the embedder.
246 | func didToggleSpellCheckingPolicy(textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'didToggleSpellCheckingPolicy(textView:)' part of global actor 'MainActor'
247 | userPrefersContinuousSpellChecking = textView.isContinuousSpellCheckingEnabled
248 | userPrefersGrammarChecking = textView.isGrammarCheckingEnabled
249 | userPrefersAutomaticSpellingCorrection = textView.isAutomaticSpellingCorrectionEnabled
| `- warning: main actor-isolated property 'isAutomaticSpellingCorrectionEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
250 | userPrefersAutomaticQuoteSubstitution = textView.isAutomaticQuoteSubstitutionEnabled
251 | // Invalidate the "didn't change" short-circuit so the next selection
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:462:62: note: property declared here
460 | @property (getter=isAutomaticTextReplacementEnabled) BOOL automaticTextReplacementEnabled API_AVAILABLE(macos(10.6));
461 | - (void)toggleAutomaticTextReplacement:(nullable id)sender API_AVAILABLE(macos(10.6));
462 | @property (getter=isAutomaticSpellingCorrectionEnabled) BOOL automaticSpellingCorrectionEnabled API_AVAILABLE(macos(10.6));
| `- note: property declared here
463 | - (void)toggleAutomaticSpellingCorrection:(nullable id)sender API_AVAILABLE(macos(10.6));
464 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:250:58: warning: main actor-isolated property 'isAutomaticQuoteSubstitutionEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
244 | /// cache so the next caret move doesn't immediately overwrite it, and
245 | /// notifies the embedder.
246 | func didToggleSpellCheckingPolicy(textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'didToggleSpellCheckingPolicy(textView:)' part of global actor 'MainActor'
247 | userPrefersContinuousSpellChecking = textView.isContinuousSpellCheckingEnabled
248 | userPrefersGrammarChecking = textView.isGrammarCheckingEnabled
249 | userPrefersAutomaticSpellingCorrection = textView.isAutomaticSpellingCorrectionEnabled
250 | userPrefersAutomaticQuoteSubstitution = textView.isAutomaticQuoteSubstitutionEnabled
| `- warning: main actor-isolated property 'isAutomaticQuoteSubstitutionEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
251 | // Invalidate the "didn't change" short-circuit so the next selection
252 | // update re-applies the preferences cleanly.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:451:61: note: property declared here
449 | - (nullable NSString *)smartInsertAfterStringForString:(NSString *)pasteString replacingRange:(NSRange)charRangeToReplace;
450 |
451 | @property (getter=isAutomaticQuoteSubstitutionEnabled) BOOL automaticQuoteSubstitutionEnabled API_AVAILABLE(macos(10.5));
| `- note: property declared here
452 | - (void)toggleAutomaticQuoteSubstitution:(nullable id)sender API_AVAILABLE(macos(10.5));
453 | @property (getter=isAutomaticLinkDetectionEnabled) BOOL automaticLinkDetectionEnabled API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:361:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
359 | if let name = bus.applyBoldRequest {
360 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
361 | self?.handleBoldNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
362 | })
363 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:366:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
364 | if let name = bus.applyItalicRequest {
365 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
366 | self?.handleItalicNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
367 | })
368 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:371:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
369 | if let name = bus.applyHeadingRequest {
370 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
371 | self?.handleHeadingNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
372 | })
373 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:376:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
374 | if let name = bus.applyHighlightRequest {
375 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
376 | self?.handleHighlightNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
377 | })
378 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:381:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
379 | if let name = bus.applyStrikethroughRequest {
380 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
381 | self?.handleStrikethroughNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
382 | })
383 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:386:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
384 | if let name = bus.applyInlineCodeRequest {
385 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
386 | self?.handleInlineCodeNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
387 | })
388 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:391:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
389 | if let name = bus.applyBlockquoteRequest {
390 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
391 | self?.handleBlockquoteNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
392 | })
393 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:396:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
394 | if let name = bus.applyUnorderedListRequest {
395 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
396 | self?.handleUnorderedListNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
397 | })
398 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:401:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
399 | if let name = bus.applyOrderedListRequest {
400 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
401 | self?.handleOrderedListNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
402 | })
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:406:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
404 | if let name = bus.applyLinkRequest {
405 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
406 | self?.handleLinkNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
407 | })
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:411:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
409 | if let name = bus.applyCodeBlockRequest {
410 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
411 | self?.handleCodeBlockNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
412 | })
413 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:416:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
414 | if let name = bus.applyHorizontalRuleRequest {
415 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
416 | self?.handleHorizontalRuleNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
417 | })
418 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:421:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
419 | if let name = bus.applyImageRequest {
420 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
421 | self?.handleImageNotification(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
422 | })
423 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:426:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
424 | if let name = bus.findScrollToRange {
425 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
426 | self?.handleFindScrollToRange(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
427 | })
428 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:431:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
429 | if let name = bus.findClearHighlights {
430 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
431 | self?.handleFindClearHighlights(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
432 | })
433 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:436:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
434 | if let name = bus.findQuery {
435 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
436 | self?.handleFindQuery(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
437 | })
438 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:441:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
439 | if let name = bus.replaceCurrent {
440 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
441 | self?.handleReplaceCurrent(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
442 | })
443 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:446:17: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
18 | /// in extensions (Autocorrect, CodeBlocks, Find, InlineSelection,
19 | /// Notifications, Restyling, TextDelegate, WritingTools).
20 | public final class NativeTextViewCoordinator: NSObject, NSTextViewDelegate {
| `- note: class 'NativeTextViewCoordinator' does not conform to the 'Sendable' protocol
21 | var documentId: String?
22 | /// Remembered scroll offset (`bounds.origin.y`) per `documentId` — saved on
:
444 | if let name = bus.replaceAll {
445 | busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
446 | self?.handleReplaceAll(notification)
| `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
447 | })
448 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:97:27: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
95 | let target = documentId
96 | DispatchQueue.main.async {
97 | guard self.bindingFollows(target) else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
98 | self.lastSyncedText = rawText
99 | self.text = rawText
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:203:27: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
201 | let target = documentId
202 | DispatchQueue.main.async {
203 | guard self.bindingFollows(target) else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
204 | self.lastSyncedText = storageState.storage
205 | self.text = storageState.storage
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:682:34: warning: sending 'self.layoutBridge' risks causing data races; this is an error in the Swift 6 language mode
680 | ? storageRange(containingDisplayLocation: selLocation) ?? storageRange(forDisplayRange: displayRange)
681 | : nil
682 | let previewRect = tv.viewRect(forCharacterRange: displayRange, using: layoutBridge)
| |- warning: sending 'self.layoutBridge' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.layoutBridge' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
683 | ?? tv.viewRect(forCharacterRange: tv.selectedRange(), using: layoutBridge)
684 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:699:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
697 | inlineSelectionState = InlineSelectionState(kind: inlineContext.selectionKind, selection: selection)
698 | DispatchQueue.main.async {
699 | self.onCaretRectChange?(previewRect)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
700 | }
701 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:717:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
715 |
716 | DispatchQueue.main.async {
717 | self.isWikiLinkActive = inlineSelectionState?.kind == .wikiLink
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
718 | self.isImageEmbedActive = isInsideImageEmbed
719 | self.onInlineSelectionChange?(inlineSelectionState)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:683:23: warning: sending 'self.layoutBridge' risks causing data races; this is an error in the Swift 6 language mode
681 | : nil
682 | let previewRect = tv.viewRect(forCharacterRange: displayRange, using: layoutBridge)
683 | ?? tv.viewRect(forCharacterRange: tv.selectedRange(), using: layoutBridge)
| |- warning: sending 'self.layoutBridge' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.layoutBridge' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
684 |
685 | // Only autocomplete while TYPING — not when the caret merely lands in an existing link via
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:1032:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1030 | self.isWikiLinkActive = false
1031 | DispatchQueue.main.async {
1032 | self.onLinkClick?(target)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1033 | }
1034 | return true
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:80:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
78 | guard attemptsRemaining > 0, isWritingToolsActive else { return }
79 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) { [weak self] in
80 | guard let self, self.isWritingToolsActive else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
81 | self.captureChildWindowIfNeeded(textView: textView)
82 | if self.wtChildWindow == nil {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:54:19: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
52 | let target = documentId
53 | DispatchQueue.main.async { [self] in
54 | guard bindingFollows(target) else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
55 | text = storage
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:158:46: warning: sending 'timer' risks causing data races; this is an error in the Swift 6 language mode
156 | let timer = Timer(timeInterval: 0.05, repeats: true) { [weak self, weak writingTools] timer in
157 | MainActor.assumeIsolated {
158 | guard let self else { return timer.invalidate() }
| |- warning: sending 'timer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'timer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
159 | if let writingTools, writingTools.state == .interactiveStreaming { return }
160 | let replay = self.deferredNodeSwitch
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:197:19: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
195 | guard let isFocused else { return }
196 | DispatchQueue.main.async { [self] in
197 | guard focusReportGeneration == generation,
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
198 | isFocused.wrappedValue != focused else { return }
199 | isFocused.wrappedValue = focused
[113/120] Compiling MarkdownEngine NativeTextView+DragSelectBoost.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView+DragSelectBoost.swift:26:19: warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | dragStartMouseScreenLoc = NSEvent.mouseLocation
25 | let boostTimer = Timer(timeInterval: 1.0 / configuration.dragSelection.ticksPerSecond, repeats: true) { [weak self] _ in
26 | self?.performDragBoostTick()
| `- warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | }
28 | RunLoop.current.add(boostTimer, forMode: .common)
:
72 | }
73 |
74 | func performDragBoostTick() {
| |- note: calls to instance method 'performDragBoostTick()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
75 | guard let window = self.window,
76 | let scrollView = enclosingScrollView,
[114/120] Compiling MarkdownEngine NativeTextView+FrameAndOverscroll.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView+DragSelectBoost.swift:26:19: warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | dragStartMouseScreenLoc = NSEvent.mouseLocation
25 | let boostTimer = Timer(timeInterval: 1.0 / configuration.dragSelection.ticksPerSecond, repeats: true) { [weak self] _ in
26 | self?.performDragBoostTick()
| `- warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | }
28 | RunLoop.current.add(boostTimer, forMode: .common)
:
72 | }
73 |
74 | func performDragBoostTick() {
| |- note: calls to instance method 'performDragBoostTick()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
75 | guard let window = self.window,
76 | let scrollView = enclosingScrollView,
[115/120] Compiling MarkdownEngine NativeTextView+HangingCaret.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView+DragSelectBoost.swift:26:19: warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | dragStartMouseScreenLoc = NSEvent.mouseLocation
25 | let boostTimer = Timer(timeInterval: 1.0 / configuration.dragSelection.ticksPerSecond, repeats: true) { [weak self] _ in
26 | self?.performDragBoostTick()
| `- warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | }
28 | RunLoop.current.add(boostTimer, forMode: .common)
:
72 | }
73 |
74 | func performDragBoostTick() {
| |- note: calls to instance method 'performDragBoostTick()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
75 | guard let window = self.window,
76 | let scrollView = enclosingScrollView,
[116/120] Compiling MarkdownEngine NativeTextView+PasteHandling.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView+DragSelectBoost.swift:26:19: warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | dragStartMouseScreenLoc = NSEvent.mouseLocation
25 | let boostTimer = Timer(timeInterval: 1.0 / configuration.dragSelection.ticksPerSecond, repeats: true) { [weak self] _ in
26 | self?.performDragBoostTick()
| `- warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | }
28 | RunLoop.current.add(boostTimer, forMode: .common)
:
72 | }
73 |
74 | func performDragBoostTick() {
| |- note: calls to instance method 'performDragBoostTick()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
75 | guard let window = self.window,
76 | let scrollView = enclosingScrollView,
[117/120] Compiling MarkdownEngine NativeTextView+Placeholder.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView+DragSelectBoost.swift:26:19: warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | dragStartMouseScreenLoc = NSEvent.mouseLocation
25 | let boostTimer = Timer(timeInterval: 1.0 / configuration.dragSelection.ticksPerSecond, repeats: true) { [weak self] _ in
26 | self?.performDragBoostTick()
| `- warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | }
28 | RunLoop.current.add(boostTimer, forMode: .common)
:
72 | }
73 |
74 | func performDragBoostTick() {
| |- note: calls to instance method 'performDragBoostTick()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
75 | guard let window = self.window,
76 | let scrollView = enclosingScrollView,
[118/120] Compiling MarkdownEngine NativeTextView+SpellingPolicy.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView+DragSelectBoost.swift:26:19: warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | dragStartMouseScreenLoc = NSEvent.mouseLocation
25 | let boostTimer = Timer(timeInterval: 1.0 / configuration.dragSelection.ticksPerSecond, repeats: true) { [weak self] _ in
26 | self?.performDragBoostTick()
| `- warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | }
28 | RunLoop.current.add(boostTimer, forMode: .common)
:
72 | }
73 |
74 | func performDragBoostTick() {
| |- note: calls to instance method 'performDragBoostTick()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
75 | guard let window = self.window,
76 | let scrollView = enclosingScrollView,
[119/120] Compiling MarkdownEngine NativeTextView+SpellingToggles.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView+DragSelectBoost.swift:26:19: warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | dragStartMouseScreenLoc = NSEvent.mouseLocation
25 | let boostTimer = Timer(timeInterval: 1.0 / configuration.dragSelection.ticksPerSecond, repeats: true) { [weak self] _ in
26 | self?.performDragBoostTick()
| `- warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | }
28 | RunLoop.current.add(boostTimer, forMode: .common)
:
72 | }
73 |
74 | func performDragBoostTick() {
| |- note: calls to instance method 'performDragBoostTick()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
75 | guard let window = self.window,
76 | let scrollView = enclosingScrollView,
[120/120] Compiling MarkdownEngine NativeTextView+TaskCheckbox.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/NativeTextView/NativeTextView+DragSelectBoost.swift:26:19: warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | dragStartMouseScreenLoc = NSEvent.mouseLocation
25 | let boostTimer = Timer(timeInterval: 1.0 / configuration.dragSelection.ticksPerSecond, repeats: true) { [weak self] _ in
26 | self?.performDragBoostTick()
| `- warning: call to main actor-isolated instance method 'performDragBoostTick()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | }
28 | RunLoop.current.add(boostTimer, forMode: .common)
:
72 | }
73 |
74 | func performDragBoostTick() {
| |- note: calls to instance method 'performDragBoostTick()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
75 | guard let window = self.window,
76 | let scrollView = enclosingScrollView,
[121/126] Compiling MarkdownEngineCodeBlocks CodeHighlightTheme.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineCodeBlocks/CodeHighlightTheme.swift:54:23: warning: static property 'githubLight' is not concurrency-safe because non-'Sendable' type 'CodeHighlightTheme' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// (`title.function.invoke` → `title.function` → `title`), and a token no
21 | /// scope colours takes ``foreground``.
22 | public struct CodeHighlightTheme {
| `- note: consider making struct 'CodeHighlightTheme' conform to the 'Sendable' protocol
23 | /// Colour of code no scope colours.
24 | public var foreground: NSColor
:
52 | extension CodeHighlightTheme {
53 | /// highlight.js's GitHub theme (`github.css`).
54 | public static let githubLight = CodeHighlightTheme(
| |- warning: static property 'githubLight' is not concurrency-safe because non-'Sendable' type 'CodeHighlightTheme' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'githubLight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | foreground: NSColor(hex: 0x24292E),
56 | background: NSColor(hex: 0xFFFFFF),
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineCodeBlocks/CodeHighlightTheme.swift:73:23: warning: static property 'githubDark' is not concurrency-safe because non-'Sendable' type 'CodeHighlightTheme' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// (`title.function.invoke` → `title.function` → `title`), and a token no
21 | /// scope colours takes ``foreground``.
22 | public struct CodeHighlightTheme {
| `- note: consider making struct 'CodeHighlightTheme' conform to the 'Sendable' protocol
23 | /// Colour of code no scope colours.
24 | public var foreground: NSColor
:
71 |
72 | /// highlight.js's GitHub Dark theme (`github-dark.css`).
73 | public static let githubDark = CodeHighlightTheme(
| |- warning: static property 'githubDark' is not concurrency-safe because non-'Sendable' type 'CodeHighlightTheme' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'githubDark' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 | foreground: NSColor(hex: 0xC9D1D9),
75 | background: NSColor(hex: 0x0D1117),
[122/126] Compiling MarkdownEngineCodeBlocks resource_bundle_accessor.swift
[123/126] Emitting module MarkdownEngineCodeBlocks
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineCodeBlocks/CodeHighlightTheme.swift:54:23: warning: static property 'githubLight' is not concurrency-safe because non-'Sendable' type 'CodeHighlightTheme' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// (`title.function.invoke` → `title.function` → `title`), and a token no
21 | /// scope colours takes ``foreground``.
22 | public struct CodeHighlightTheme {
| `- note: consider making struct 'CodeHighlightTheme' conform to the 'Sendable' protocol
23 | /// Colour of code no scope colours.
24 | public var foreground: NSColor
:
52 | extension CodeHighlightTheme {
53 | /// highlight.js's GitHub theme (`github.css`).
54 | public static let githubLight = CodeHighlightTheme(
| |- warning: static property 'githubLight' is not concurrency-safe because non-'Sendable' type 'CodeHighlightTheme' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'githubLight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | foreground: NSColor(hex: 0x24292E),
56 | background: NSColor(hex: 0xFFFFFF),
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineCodeBlocks/CodeHighlightTheme.swift:73:23: warning: static property 'githubDark' is not concurrency-safe because non-'Sendable' type 'CodeHighlightTheme' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// (`title.function.invoke` → `title.function` → `title`), and a token no
21 | /// scope colours takes ``foreground``.
22 | public struct CodeHighlightTheme {
| `- note: consider making struct 'CodeHighlightTheme' conform to the 'Sendable' protocol
23 | /// Colour of code no scope colours.
24 | public var foreground: NSColor
:
71 |
72 | /// highlight.js's GitHub Dark theme (`github-dark.css`).
73 | public static let githubDark = CodeHighlightTheme(
| |- warning: static property 'githubDark' is not concurrency-safe because non-'Sendable' type 'CodeHighlightTheme' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'githubDark' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 | foreground: NSColor(hex: 0xC9D1D9),
75 | background: NSColor(hex: 0x0D1117),
[124/126] Compiling MarkdownEngineCodeBlocks HighlightJSBridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineCodeBlocks/HighlightJSBridge.swift:107:43: warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
103 | }
104 |
105 | private func isDarkAppearance() -> Bool {
| `- note: add '@MainActor' to make instance method 'isDarkAppearance()' part of global actor 'MainActor'
106 | guard autoSwitchAppearance else { return false }
107 | let appearance = NSApp.keyWindow?.effectiveAppearance ?? NSApp.effectiveAppearance
| `- warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
108 | return appearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
109 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h:90:44: note: property declared here
88 | /* This returns the appearance that would be used when drawing the receiver, taking inherited appearances into account.
89 | */
90 | @property (readonly, strong) NSAppearance *effectiveAppearance API_AVAILABLE(macos(10.9));
| `- note: property declared here
91 |
92 | @end
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineCodeBlocks/HighlightJSBridge.swift:107:32: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
103 | }
104 |
105 | private func isDarkAppearance() -> Bool {
| `- note: add '@MainActor' to make instance method 'isDarkAppearance()' part of global actor 'MainActor'
106 | guard autoSwitchAppearance else { return false }
107 | let appearance = NSApp.keyWindow?.effectiveAppearance ?? NSApp.effectiveAppearance
| `- warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
108 | return appearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
109 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:202:48: note: property declared here
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
| `- note: property declared here
203 | @property (getter=isActive, readonly) BOOL active;
204 | @property (getter=isHidden, readonly) BOOL hidden;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineCodeBlocks/HighlightJSBridge.swift:107:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
103 | }
104 |
105 | private func isDarkAppearance() -> Bool {
| `- note: add '@MainActor' to make instance method 'isDarkAppearance()' part of global actor 'MainActor'
106 | guard autoSwitchAppearance else { return false }
107 | let appearance = NSApp.keyWindow?.effectiveAppearance ?? NSApp.effectiveAppearance
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
108 | return appearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
109 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineCodeBlocks/HighlightJSBridge.swift:107:72: warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
105 | private func isDarkAppearance() -> Bool {
106 | guard autoSwitchAppearance else { return false }
107 | let appearance = NSApp.keyWindow?.effectiveAppearance ?? NSApp.effectiveAppearance
| `- warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
108 | return appearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
109 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:342:44: note: property declared here
340 | #pragma clang diagnostic ignored "-Wavailability"
341 | @property (nullable, strong) NSAppearance *appearance API_AVAILABLE(macos(10.14));
342 | @property (readonly, strong) NSAppearance *effectiveAppearance API_AVAILABLE(macos(10.14));
| `- note: property declared here
343 | #pragma clang diagnostic pop
344 | @end
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineCodeBlocks/HighlightJSBridge.swift:107:66: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
105 | private func isDarkAppearance() -> Bool {
106 | guard autoSwitchAppearance else { return false }
107 | let appearance = NSApp.keyWindow?.effectiveAppearance ?? NSApp.effectiveAppearance
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
108 | return appearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
109 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
[125/126] Emitting module MarkdownEngineLatex
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:64:22: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
62 | /// init, so a fresh label per formula doubles the per-formula label overhead.
63 | /// render() is main-thread-only (it reads NSApp), so a single shared label is safe.
64 | private lazy var reusableLabel = MTMathUILabel()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | /// - Parameter singleLetterPaddingBottom: Extra bottom padding (in
[126/126] Compiling MarkdownEngineLatex SwiftMathBridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:64:22: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
62 | /// init, so a fresh label per formula doubles the per-formula label overhead.
63 | /// render() is main-thread-only (it reads NSApp), so a single shared label is safe.
64 | private lazy var reusableLabel = MTMathUILabel()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | /// - Parameter singleLetterPaddingBottom: Extra bottom padding (in
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:110:43: warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
101 | public func render(
| `- note: add '@MainActor' to make instance method 'render(latex:mode:fontSize:theme:)' part of global actor 'MainActor'
102 | latex: String,
103 | mode: LatexRenderMode,
:
108 | guard !normalizedLatex.isEmpty else { return nil }
109 |
110 | let appearance = NSApp.keyWindow?.effectiveAppearance ?? NSApp.effectiveAppearance
| `- warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
111 | let isDarkMode = appearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
112 | let textColor = isDarkMode ? theme.latexDarkModeText : theme.latexLightModeText
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h:90:44: note: property declared here
88 | /* This returns the appearance that would be used when drawing the receiver, taking inherited appearances into account.
89 | */
90 | @property (readonly, strong) NSAppearance *effectiveAppearance API_AVAILABLE(macos(10.9));
| `- note: property declared here
91 |
92 | @end
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:110:32: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
101 | public func render(
| `- note: add '@MainActor' to make instance method 'render(latex:mode:fontSize:theme:)' part of global actor 'MainActor'
102 | latex: String,
103 | mode: LatexRenderMode,
:
108 | guard !normalizedLatex.isEmpty else { return nil }
109 |
110 | let appearance = NSApp.keyWindow?.effectiveAppearance ?? NSApp.effectiveAppearance
| `- warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
111 | let isDarkMode = appearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
112 | let textColor = isDarkMode ? theme.latexDarkModeText : theme.latexLightModeText
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:202:48: note: property declared here
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
| `- note: property declared here
203 | @property (getter=isActive, readonly) BOOL active;
204 | @property (getter=isHidden, readonly) BOOL hidden;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:110:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
101 | public func render(
| `- note: add '@MainActor' to make instance method 'render(latex:mode:fontSize:theme:)' part of global actor 'MainActor'
102 | latex: String,
103 | mode: LatexRenderMode,
:
108 | guard !normalizedLatex.isEmpty else { return nil }
109 |
110 | let appearance = NSApp.keyWindow?.effectiveAppearance ?? NSApp.effectiveAppearance
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
111 | let isDarkMode = appearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
112 | let textColor = isDarkMode ? theme.latexDarkModeText : theme.latexLightModeText
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:110:72: warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
108 | guard !normalizedLatex.isEmpty else { return nil }
109 |
110 | let appearance = NSApp.keyWindow?.effectiveAppearance ?? NSApp.effectiveAppearance
| `- warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
111 | let isDarkMode = appearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
112 | let textColor = isDarkMode ? theme.latexDarkModeText : theme.latexLightModeText
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:342:44: note: property declared here
340 | #pragma clang diagnostic ignored "-Wavailability"
341 | @property (nullable, strong) NSAppearance *appearance API_AVAILABLE(macos(10.14));
342 | @property (readonly, strong) NSAppearance *effectiveAppearance API_AVAILABLE(macos(10.14));
| `- note: property declared here
343 | #pragma clang diagnostic pop
344 | @end
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:110:66: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
108 | guard !normalizedLatex.isEmpty else { return nil }
109 |
110 | let appearance = NSApp.keyWindow?.effectiveAppearance ?? NSApp.effectiveAppearance
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
111 | let isDarkMode = appearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
112 | let textColor = isDarkMode ? theme.latexDarkModeText : theme.latexLightModeText
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:228:19: warning: main actor-isolated property 'latex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
217 | }
218 |
219 | private func renderLatex(
| `- note: add '@MainActor' to make instance method 'renderLatex(_:mode:fontSize:textColor:)' part of global actor 'MainActor'
220 | _ latex: String,
221 | mode: LatexRenderMode,
:
226 | // stale state carries between formulas.
227 | let mathLabel = reusableLabel
228 | mathLabel.latex = latex
| `- warning: main actor-isolated property 'latex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
229 | mathLabel.fontSize = fontSize
230 | mathLabel.textColor = textColor
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftMath/Sources/SwiftMath/MathRender/MTMathUILabel.swift:76:16: note: mutation of this property is only permitted within the actor
74 | @see error */
75 | @IBInspectable
76 | public var latex:String {
| `- note: mutation of this property is only permitted within the actor
77 | set {
78 | _latex = newValue
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:229:19: warning: main actor-isolated property 'fontSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
217 | }
218 |
219 | private func renderLatex(
| `- note: add '@MainActor' to make instance method 'renderLatex(_:mode:fontSize:textColor:)' part of global actor 'MainActor'
220 | _ latex: String,
221 | mode: LatexRenderMode,
:
227 | let mathLabel = reusableLabel
228 | mathLabel.latex = latex
229 | mathLabel.fontSize = fontSize
| `- warning: main actor-isolated property 'fontSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
230 | mathLabel.textColor = textColor
231 | mathLabel.textAlignment = .left
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftMath/Sources/SwiftMath/MathRender/MTMathUILabel.swift:119:16: note: mutation of this property is only permitted within the actor
117 | /** Convenience method to just set the size of the font without changing the fontface. */
118 | @IBInspectable
119 | public var fontSize:CGFloat {
| `- note: mutation of this property is only permitted within the actor
120 | set {
121 | _fontSize = newValue
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:230:19: warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
217 | }
218 |
219 | private func renderLatex(
| `- note: add '@MainActor' to make instance method 'renderLatex(_:mode:fontSize:textColor:)' part of global actor 'MainActor'
220 | _ latex: String,
221 | mode: LatexRenderMode,
:
228 | mathLabel.latex = latex
229 | mathLabel.fontSize = fontSize
230 | mathLabel.textColor = textColor
| `- warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
231 | mathLabel.textAlignment = .left
232 | mathLabel.labelMode = mode == .display ? .display : .text
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftMath/Sources/SwiftMath/MathRender/MTMathUILabel.swift:131:16: note: mutation of this property is only permitted within the actor
129 | /** This sets the text color of the rendered math formula. The default color is black. */
130 | @IBInspectable
131 | public var textColor:MTColor? {
| `- note: mutation of this property is only permitted within the actor
132 | set {
133 | guard newValue != nil else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:231:19: warning: main actor-isolated property 'textAlignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
217 | }
218 |
219 | private func renderLatex(
| `- note: add '@MainActor' to make instance method 'renderLatex(_:mode:fontSize:textColor:)' part of global actor 'MainActor'
220 | _ latex: String,
221 | mode: LatexRenderMode,
:
229 | mathLabel.fontSize = fontSize
230 | mathLabel.textColor = textColor
231 | mathLabel.textAlignment = .left
| `- warning: main actor-isolated property 'textAlignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
232 | mathLabel.labelMode = mode == .display ? .display : .text
233 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftMath/Sources/SwiftMath/MathRender/MTMathUILabel.swift:169:16: note: mutation of this property is only permitted within the actor
167 |
168 | /** Horizontal alignment for the text. The default is align left. */
169 | public var textAlignment:MTTextAlignment {
| `- note: mutation of this property is only permitted within the actor
170 | set {
171 | _textAlignment = newValue
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:232:19: warning: main actor-isolated property 'labelMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
217 | }
218 |
219 | private func renderLatex(
| `- note: add '@MainActor' to make instance method 'renderLatex(_:mode:fontSize:textColor:)' part of global actor 'MainActor'
220 | _ latex: String,
221 | mode: LatexRenderMode,
:
230 | mathLabel.textColor = textColor
231 | mathLabel.textAlignment = .left
232 | mathLabel.labelMode = mode == .display ? .display : .text
| `- warning: main actor-isolated property 'labelMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
233 |
234 | // Latin Modern Math gives the cleanest LaTeX glyphs at typical sizes.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftMath/Sources/SwiftMath/MathRender/MTMathUILabel.swift:158:16: note: mutation of this property is only permitted within the actor
156 |
157 | /** The Label mode for the label. The default mode is Display */
158 | public var labelMode:MTMathUILabelMode {
| `- note: mutation of this property is only permitted within the actor
159 | set {
160 | _labelMode = newValue
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:236:23: warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
217 | }
218 |
219 | private func renderLatex(
| `- note: add '@MainActor' to make instance method 'renderLatex(_:mode:fontSize:textColor:)' part of global actor 'MainActor'
220 | _ latex: String,
221 | mode: LatexRenderMode,
:
234 | // Latin Modern Math gives the cleanest LaTeX glyphs at typical sizes.
235 | if let mathFont = MTFontManager().font(withName: "latinmodern-math", size: fontSize) {
236 | mathLabel.font = mathFont
| `- warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
237 | }
238 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftMath/Sources/SwiftMath/MathRender/MTMathUILabel.swift:106:16: note: mutation of this property is only permitted within the actor
104 |
105 | /** The MTFont to use for rendering. */
106 | public var font:MTFont? {
| `- note: mutation of this property is only permitted within the actor
107 | set {
108 | guard newValue != nil else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:239:19: warning: call to main actor-isolated instance method 'layoutSubtreeIfNeeded()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
217 | }
218 |
219 | private func renderLatex(
| `- note: add '@MainActor' to make instance method 'renderLatex(_:mode:fontSize:textColor:)' part of global actor 'MainActor'
220 | _ latex: String,
221 | mode: LatexRenderMode,
:
237 | }
238 |
239 | mathLabel.layoutSubtreeIfNeeded()
| `- warning: call to main actor-isolated instance method 'layoutSubtreeIfNeeded()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
240 |
241 | guard let displayList = mathLabel.displayList else { return nil }
AppKit.NSView.layoutSubtreeIfNeeded:3:24: note: calls to instance method 'layoutSubtreeIfNeeded()' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open func layoutSubtreeIfNeeded()}
| |- note: calls to instance method 'layoutSubtreeIfNeeded()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:241:43: warning: main actor-isolated property 'displayList' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
217 | }
218 |
219 | private func renderLatex(
| `- note: add '@MainActor' to make instance method 'renderLatex(_:mode:fontSize:textColor:)' part of global actor 'MainActor'
220 | _ latex: String,
221 | mode: LatexRenderMode,
:
239 | mathLabel.layoutSubtreeIfNeeded()
240 |
241 | guard let displayList = mathLabel.displayList else { return nil }
| `- warning: main actor-isolated property 'displayList' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
242 |
243 | // SwiftMath skips unsupported glyphs (e.g. emoji/raw Greek), which can yield
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftMath/Sources/SwiftMath/MathRender/MTMathUILabel.swift:180:16: note: property declared here
178 |
179 | /** The internal display of the MTMathUILabel. This is for advanced use only. */
180 | public var displayList: MTMathListDisplay? { _displayList }
| `- note: property declared here
181 | private var _displayList:MTMathListDisplay?
182 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:295:15: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
288 | }
289 |
290 | private func renderLabelToRep(_ label: MTMathUILabel, size: CGSize) -> NSBitmapImageRep? {
| `- note: add '@MainActor' to make instance method 'renderLabelToRep(_:size:)' part of global actor 'MainActor'
291 | // `bitmapImageRepForCachingDisplay` + `cacheDisplay(in:to:)` is the
292 | // documented way to snapshot an NSView that isn't in a window. Setting
293 | // `wantsLayer = true` and `layer.render(in:)` snapshots the (empty)
294 | // backing layer instead of triggering MTMathUILabel's `draw(_:)`.
295 | label.frame = CGRect(origin: .zero, size: size)
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
296 | label.layoutSubtreeIfNeeded()
297 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: mutation of this property is only permitted within the actor
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: mutation of this property is only permitted within the actor
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:296:15: warning: call to main actor-isolated instance method 'layoutSubtreeIfNeeded()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
288 | }
289 |
290 | private func renderLabelToRep(_ label: MTMathUILabel, size: CGSize) -> NSBitmapImageRep? {
| `- note: add '@MainActor' to make instance method 'renderLabelToRep(_:size:)' part of global actor 'MainActor'
291 | // `bitmapImageRepForCachingDisplay` + `cacheDisplay(in:to:)` is the
292 | // documented way to snapshot an NSView that isn't in a window. Setting
:
294 | // backing layer instead of triggering MTMathUILabel's `draw(_:)`.
295 | label.frame = CGRect(origin: .zero, size: size)
296 | label.layoutSubtreeIfNeeded()
| `- warning: call to main actor-isolated instance method 'layoutSubtreeIfNeeded()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
297 |
298 | guard let rep = label.bitmapImageRepForCachingDisplay(in: label.bounds) else { return nil }
AppKit.NSView.layoutSubtreeIfNeeded:3:24: note: calls to instance method 'layoutSubtreeIfNeeded()' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open func layoutSubtreeIfNeeded()}
| |- note: calls to instance method 'layoutSubtreeIfNeeded()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:298:31: warning: call to main actor-isolated instance method 'bitmapImageRepForCachingDisplay(in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
288 | }
289 |
290 | private func renderLabelToRep(_ label: MTMathUILabel, size: CGSize) -> NSBitmapImageRep? {
| `- note: add '@MainActor' to make instance method 'renderLabelToRep(_:size:)' part of global actor 'MainActor'
291 | // `bitmapImageRepForCachingDisplay` + `cacheDisplay(in:to:)` is the
292 | // documented way to snapshot an NSView that isn't in a window. Setting
:
296 | label.layoutSubtreeIfNeeded()
297 |
298 | guard let rep = label.bitmapImageRepForCachingDisplay(in: label.bounds) else { return nil }
| `- warning: call to main actor-isolated instance method 'bitmapImageRepForCachingDisplay(in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
299 | label.cacheDisplay(in: label.bounds, to: rep)
300 | return rep
AppKit.NSView.bitmapImageRepForCachingDisplay:2:22: note: calls to instance method 'bitmapImageRepForCachingDisplay(in:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func bitmapImageRepForCachingDisplay(in rect: NSRect) -> NSBitmapImageRep?}
| |- note: calls to instance method 'bitmapImageRepForCachingDisplay(in:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:298:73: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
288 | }
289 |
290 | private func renderLabelToRep(_ label: MTMathUILabel, size: CGSize) -> NSBitmapImageRep? {
| `- note: add '@MainActor' to make instance method 'renderLabelToRep(_:size:)' part of global actor 'MainActor'
291 | // `bitmapImageRepForCachingDisplay` + `cacheDisplay(in:to:)` is the
292 | // documented way to snapshot an NSView that isn't in a window. Setting
:
296 | label.layoutSubtreeIfNeeded()
297 |
298 | guard let rep = label.bitmapImageRepForCachingDisplay(in: label.bounds) else { return nil }
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
299 | label.cacheDisplay(in: label.bounds, to: rep)
300 | return rep
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:299:15: warning: call to main actor-isolated instance method 'cacheDisplay(in:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
288 | }
289 |
290 | private func renderLabelToRep(_ label: MTMathUILabel, size: CGSize) -> NSBitmapImageRep? {
| `- note: add '@MainActor' to make instance method 'renderLabelToRep(_:size:)' part of global actor 'MainActor'
291 | // `bitmapImageRepForCachingDisplay` + `cacheDisplay(in:to:)` is the
292 | // documented way to snapshot an NSView that isn't in a window. Setting
:
297 |
298 | guard let rep = label.bitmapImageRepForCachingDisplay(in: label.bounds) else { return nil }
299 | label.cacheDisplay(in: label.bounds, to: rep)
| `- warning: call to main actor-isolated instance method 'cacheDisplay(in:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
300 | return rep
301 | }
AppKit.NSView.cacheDisplay:2:22: note: calls to instance method 'cacheDisplay(in:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func cacheDisplay(in rect: NSRect, to bitmapImageRep: NSBitmapImageRep)}
| |- note: calls to instance method 'cacheDisplay(in:to:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:299:38: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
288 | }
289 |
290 | private func renderLabelToRep(_ label: MTMathUILabel, size: CGSize) -> NSBitmapImageRep? {
| `- note: add '@MainActor' to make instance method 'renderLabelToRep(_:size:)' part of global actor 'MainActor'
291 | // `bitmapImageRepForCachingDisplay` + `cacheDisplay(in:to:)` is the
292 | // documented way to snapshot an NSView that isn't in a window. Setting
:
297 |
298 | guard let rep = label.bitmapImageRepForCachingDisplay(in: label.bounds) else { return nil }
299 | label.cacheDisplay(in: label.bounds, to: rep)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
300 | return rep
301 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineLatex/SwiftMathBridge.swift:299:15: warning: sending 'rep' risks causing data races; this is an error in the Swift 6 language mode
297 |
298 | guard let rep = label.bitmapImageRepForCachingDisplay(in: label.bounds) else { return nil }
299 | label.cacheDisplay(in: label.bounds, to: rep)
| |- warning: sending 'rep' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'rep' to main actor-isolated instance method 'cacheDisplay(in:to:)' risks causing data races between main actor-isolated and local nonisolated uses
300 | return rep
| `- note: access can happen concurrently
301 | }
302 |
Build complete! (18.30s)
Fetching https://github.com/mgriebling/SwiftMath
[1/2375] Fetching swiftmath
Fetched https://github.com/mgriebling/SwiftMath from cache (1.65s)
Computing version for https://github.com/mgriebling/SwiftMath
Computed https://github.com/mgriebling/SwiftMath at 1.7.3 (4.85s)
Creating working copy for https://github.com/mgriebling/SwiftMath
Working copy of https://github.com/mgriebling/SwiftMath resolved at 1.7.3
Build complete.
{
"dependencies" : [
{
"identity" : "swiftmath",
"requirement" : {
"range" : [
{
"lower_bound" : "1.7.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/mgriebling/SwiftMath"
}
],
"manifest_display_name" : "MarkdownEngine",
"name" : "MarkdownEngine",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "MarkdownEngine",
"targets" : [
"MarkdownEngine"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MarkdownEngineCodeBlocks",
"targets" : [
"MarkdownEngineCodeBlocks"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MarkdownEngineLatex",
"targets" : [
"MarkdownEngineLatex"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MarkdownEngineTests",
"module_type" : "SwiftTarget",
"name" : "MarkdownEngineTests",
"path" : "Tests/MarkdownEngineTests",
"sources" : [
"ASTPipelineTests.swift",
"BacktickCensusTests.swift",
"BlockBackgroundFillTests.swift",
"BlockExtensionTests.swift",
"BlockParserTests.swift",
"BlockquotePasteTests.swift",
"BottomOverscrollPolicyTests.swift",
"CaretColorTests.swift",
"ClampedScrollViewElasticityTests.swift",
"CodeBlockSelectionStaleCacheTests.swift",
"ContextMenuBindingTests.swift",
"CorrectionUnderlineTests.swift",
"DirectiveArgumentTests.swift",
"DirectiveCompletionCoordinatorTests.swift",
"DirectiveCompletionTests.swift",
"DirectiveCompositionTests.swift",
"DirectiveGlyphTests.swift",
"DirectiveHTMLTests.swift",
"DirectiveParserTests.swift",
"DirectivePerformanceTests.swift",
"DirectiveStylingTests.swift",
"DirectiveTestFixtures.swift",
"DocumentSwitchTests.swift",
"FenceInteriorIncrementalTests.swift",
"FindHighlightRestoreTests.swift",
"FlattenedRunsTests.swift",
"FocusBindingTests.swift",
"FormattingActionTests.swift",
"GoldenCorpusTests.swift",
"HTMLToMarkdownConverterTests.swift",
"HangingCaretTests.swift",
"HeightBehaviorTests.swift",
"InlineParserTests.swift",
"InlineSpanDensityTests.swift",
"InterceptorStorageSyncTests.swift",
"InterceptorTrustTests.swift",
"InvertedIBeamCursorTests.swift",
"LatexRenderModeTests.swift",
"ListHandlerCodeContextTests.swift",
"ListParsingTests.swift",
"MarkdownASTStylerTests.swift",
"MarkdownHTMLRendererTests.swift",
"MarkdownPasteboardWriterTests.swift",
"MarkdownTextMutationTests.swift",
"NativeTextViewContainerTests.swift",
"OrderedListDisplayNumberingTests.swift",
"ParseIncrementalEquivalenceTests.swift",
"PasteStructureGuardTests.swift",
"PerDocumentUndoTests.swift",
"PrecomputedBlocksTests.swift",
"QuoteSubstitutionPolicyTests.swift",
"RawSourceModeTests.swift",
"RebuildSelectionReplayTests.swift",
"RestyleApplyEquivalenceTests.swift",
"ScopedListRestyleEquivalenceTests.swift",
"ScrollMemoryTests.swift",
"ScrollingHeaderControllerTests.swift",
"TableCellSourceTests.swift",
"TableCellTests.swift",
"TableHiddenSourceGeometryTests.swift",
"TableImageCacheTests.swift",
"TableScopeSkipTests.swift",
"TableWidthChangeRestyleTests.swift",
"TableWrappingTests.swift",
"ThematicBreakMarkTests.swift",
"WikiLinkIncrementalTests.swift",
"WritingToolsCoordinatorPreviewTests.swift",
"WritingToolsEditTrackerTests.swift",
"WritingToolsIgnoredRangesTests.swift"
],
"target_dependencies" : [
"MarkdownEngine"
],
"type" : "test"
},
{
"c99name" : "MarkdownEngineLatexTests",
"module_type" : "SwiftTarget",
"name" : "MarkdownEngineLatexTests",
"path" : "Tests/MarkdownEngineLatexTests",
"sources" : [
"SwiftMathBridgeModeTests.swift"
],
"target_dependencies" : [
"MarkdownEngine",
"MarkdownEngineLatex"
],
"type" : "test"
},
{
"c99name" : "MarkdownEngineLatex",
"module_type" : "SwiftTarget",
"name" : "MarkdownEngineLatex",
"path" : "Sources/MarkdownEngineLatex",
"product_dependencies" : [
"SwiftMath"
],
"product_memberships" : [
"MarkdownEngineLatex"
],
"sources" : [
"SwiftMathBridge.swift"
],
"target_dependencies" : [
"MarkdownEngine"
],
"type" : "library"
},
{
"c99name" : "MarkdownEngineCodeBlocksTests",
"module_type" : "SwiftTarget",
"name" : "MarkdownEngineCodeBlocksTests",
"path" : "Tests/MarkdownEngineCodeBlocksTests",
"sources" : [
"HighlightJSBridgeTests.swift"
],
"target_dependencies" : [
"MarkdownEngine",
"MarkdownEngineCodeBlocks"
],
"type" : "test"
},
{
"c99name" : "MarkdownEngineCodeBlocks",
"module_type" : "SwiftTarget",
"name" : "MarkdownEngineCodeBlocks",
"path" : "Sources/MarkdownEngineCodeBlocks",
"product_memberships" : [
"MarkdownEngineCodeBlocks"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineCodeBlocks/Resources/highlight.js-LICENSE.txt",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngineCodeBlocks/Resources/highlight.min.js",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"CodeHighlightTheme.swift",
"HighlightJSBridge.swift"
],
"target_dependencies" : [
"MarkdownEngine"
],
"type" : "library"
},
{
"c99name" : "MarkdownEngine",
"module_type" : "SwiftTarget",
"name" : "MarkdownEngine",
"path" : "Sources/MarkdownEngine",
"product_memberships" : [
"MarkdownEngine",
"MarkdownEngineCodeBlocks",
"MarkdownEngineLatex"
],
"sources" : [
"Configuration/MarkdownEditorConfiguration.swift",
"Configuration/MarkdownEditorTheme.swift",
"Diagnostics/PerfTrace.swift",
"Directives/BuiltinDirectives.swift",
"Directives/DirectiveArguments.swift",
"Directives/DirectiveCompletionScanner.swift",
"Directives/DirectiveRegistry.swift",
"Directives/DirectiveScanner.swift",
"Directives/MarkdownDirective.swift",
"Extensions/ContainerExtension.swift",
"Extensions/HighlightExtension.swift",
"Extensions/MarkdownExtension.swift",
"Extensions/StrikethroughExtension.swift",
"Input/MarkdownInputHandler.swift",
"Input/MarkdownListHandler.swift",
"Parser/BlockLevelTokenizer.swift",
"Parser/BlockParser.swift",
"Parser/BlockScopedTokenizer.swift",
"Parser/DocumentParseState.swift",
"Parser/InlineASTAdapter.swift",
"Parser/InlineParser.swift",
"Parser/MarkdownAST.swift",
"Parser/MarkdownDetection.swift",
"Parser/MarkdownToken.swift",
"Parser/MarkdownTokenizer.swift",
"Renderer/EmbeddedImageCache.swift",
"Renderer/LayoutBridge.swift",
"Renderer/MarkdownHTMLRenderer.swift",
"Renderer/MarkdownTextLayoutFragment.swift",
"Renderer/TaskCheckboxGeometry.swift",
"Renderer/WideTableOverlay.swift",
"Services/MarkdownEditorServices.swift",
"Services/WikiLinkService.swift",
"Styling/HeadingHelpers.swift",
"Styling/MarkdownASTStyler+Directives.swift",
"Styling/MarkdownASTStyler.swift",
"Styling/MarkdownStyler+BulletMarkers.swift",
"Styling/MarkdownStyler+Images.swift",
"Styling/MarkdownStyler+Latex.swift",
"Styling/MarkdownStyler+OrderedMarkers.swift",
"Styling/MarkdownStyler+Tables.swift",
"Styling/MarkdownStyler+TaskCheckboxes.swift",
"Styling/MarkdownStyler.swift",
"Styling/TextStylingService.swift",
"TextView/BottomOverscrollPolicy.swift",
"TextView/ClampedScrollView.swift",
"TextView/CodeBlockButton.swift",
"TextView/ContextMenu.swift",
"TextView/Coordinator/NativeTextViewCoordinator+Autocorrect.swift",
"TextView/Coordinator/NativeTextViewCoordinator+CaretColor.swift",
"TextView/Coordinator/NativeTextViewCoordinator+CodeBlocks.swift",
"TextView/Coordinator/NativeTextViewCoordinator+Directives.swift",
"TextView/Coordinator/NativeTextViewCoordinator+Find.swift",
"TextView/Coordinator/NativeTextViewCoordinator+InlineSelection.swift",
"TextView/Coordinator/NativeTextViewCoordinator+Notifications.swift",
"TextView/Coordinator/NativeTextViewCoordinator+Restyling.swift",
"TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift",
"TextView/Coordinator/NativeTextViewCoordinator+WikiLinkSnapback.swift",
"TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift",
"TextView/Coordinator/NativeTextViewCoordinator.swift",
"TextView/HTMLToMarkdownConverter.swift",
"TextView/MarkdownPasteboardWriter.swift",
"TextView/MarkdownTextMutation.swift",
"TextView/NativeTextView/InvertedIBeamCursor.swift",
"TextView/NativeTextView/NativeTextView+Accessibility.swift",
"TextView/NativeTextView/NativeTextView+CaretWorkarounds.swift",
"TextView/NativeTextView/NativeTextView+ClickRemap.swift",
"TextView/NativeTextView/NativeTextView+CmdReturn.swift",
"TextView/NativeTextView/NativeTextView+Copy.swift",
"TextView/NativeTextView/NativeTextView+CorrectionUnderlines.swift",
"TextView/NativeTextView/NativeTextView+CursorRects.swift",
"TextView/NativeTextView/NativeTextView+DragSelectBoost.swift",
"TextView/NativeTextView/NativeTextView+FrameAndOverscroll.swift",
"TextView/NativeTextView/NativeTextView+HangingCaret.swift",
"TextView/NativeTextView/NativeTextView+PasteHandling.swift",
"TextView/NativeTextView/NativeTextView+Placeholder.swift",
"TextView/NativeTextView/NativeTextView+SpellingPolicy.swift",
"TextView/NativeTextView/NativeTextView+SpellingToggles.swift",
"TextView/NativeTextView/NativeTextView+TaskCheckbox.swift",
"TextView/NativeTextView/NativeTextView+WritingTools.swift",
"TextView/NativeTextView/NativeTextView.swift",
"TextView/NativeTextView/WritingToolsEditTrackerFix.swift",
"TextView/NativeTextViewContainer.swift",
"TextView/NativeTextViewSelectionTypes.swift",
"TextView/NativeTextViewWrapper.swift",
"TextView/PasteboardImageReader.swift",
"TextView/ScrollingHeaderController.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.