The Swift Package Index logo.Swift Package Index

Build Information

Successful build of MarkdownEngine, reference 0.16.0 (8cb63c), with Swift 6.1 for macOS (SPM) on 18 Nov 2026 21:28:24 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 InferSendableFromCaptures

Build Log

 378 |     }
 379 |
 380 |     public func textViewDidChangeSelection(_ notification: Notification) {
     |                 `- note: add '@MainActor' to make instance method 'textViewDidChangeSelection' part of global actor 'MainActor'
 381 |         guard let tv = notification.object as? NSTextView else { return }
 382 |         // Raw mode: plain source — no reveal, snap-back, or inline previews.
     :
 674 |                 ? storageRange(containingDisplayLocation: selLocation) ?? storageRange(forDisplayRange: displayRange)
 675 |                 : nil
 676 |             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
 677 |                 ?? tv.viewRect(forCharacterRange: tv.selectedRange(), using: layoutBridge)
 678 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:576:10: note: calls to instance method 'viewRect(forCharacterRange:using:)' from outside of its actor context are implicitly asynchronous
574 |
575 | extension NSTextView {
576 |     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'
577 |         guard range.location != NSNotFound,
578 |               let bridge = bridge,
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:677: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
 675 |                 : nil
 676 |             let previewRect = tv.viewRect(forCharacterRange: displayRange, using: layoutBridge)
 677 |                 ?? 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
 678 |
 679 |             // 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:576:10: note: calls to instance method 'viewRect(forCharacterRange:using:)' from outside of its actor context are implicitly asynchronous
574 |
575 | extension NSTextView {
576 |     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'
577 |         guard range.location != NSNotFound,
578 |               let bridge = bridge,
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:677: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
 675 |                 : nil
 676 |             let previewRect = tv.viewRect(forCharacterRange: displayRange, using: layoutBridge)
 677 |                 ?? 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
 678 |
 679 |             // 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:835: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
 827 |     }
 828 |
 829 |     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'
 830 |         // Before this edit lands on the stack.
 831 |         validateUndoBaseline(textView)
     :
 833 |         // O(doc) copy of the mutable backing store; this function used to take
 834 |         // four of them per keystroke.
 835 |         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
 836 |         // Writing Tools' own edits go in as they come; once the session holds nothing
 837 |         // (a panel result landed), the user's keystrokes get smart input again.
/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:839:76: warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
 837 |         // (a panel result landed), the user's keystrokes get smart input again.
 838 |         let writingToolsOwnsEdit = isWritingToolsActive
 839 |             && !(writingToolsEditIsFinal(textView) && NSApplication.shared.currentEvent?.type == .keyDown)
     |                                                                            `- warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; 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/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:839:69: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
 837 |         // (a panel result landed), the user's keystrokes get smart input again.
 838 |         let writingToolsOwnsEdit = isWritingToolsActive
 839 |             && !(writingToolsEditIsFinal(textView) && NSApplication.shared.currentEvent?.type == .keyDown)
     |                                                                     `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated autoclosure; 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/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
    |                                                             `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/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
 827 |     }
 828 |
 829 |     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'
 830 |         // Before this edit lands on the stack.
 831 |         validateUndoBaseline(textView)
     :
 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 && !writingToolsOwnsEdit
/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 && !writingToolsOwnsEdit
 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
 827 |     }
 828 |
 829 |     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'
 830 |         // Before this edit lands on the stack.
 831 |         validateUndoBaseline(textView)
     :
 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
 827 |     }
 828 |
 829 |     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'
 830 |         // Before this edit lands on the stack.
 831 |         validateUndoBaseline(textView)
     :
 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:149:10: note: calls to instance method 'startLineMoveFromHangingCaret' from outside of its actor context are implicitly asynchronous
147 |     /// margin TextKit clamps it to: the caret moves onto that row and AppKit
148 |     /// performs the command from there. True when the move is already complete.
149 |     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'
150 |         let vertical = command == #selector(NSResponder.moveUp(_:))
151 |             || 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:19: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
 16 | extension NativeTextViewCoordinator {
 17 |     @available(macOS 15.0, *)
 18 |     public func textViewWritingToolsWillBegin(_ textView: NSTextView) {
    |                 `- note: add '@MainActor' to make instance method 'textViewWritingToolsWillBegin' part of global actor 'MainActor'
 19 |         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
 20 |         resetWritingToolsSession()
 21 |         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:23: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
 16 | extension NativeTextViewCoordinator {
 17 |     @available(macOS 15.0, *)
 18 |     public func textViewWritingToolsWillBegin(_ textView: NSTextView) {
    |                 `- note: add '@MainActor' to make instance method 'textViewWritingToolsWillBegin' part of global actor 'MainActor'
 19 |         let sel = textView.selectedRange()
 20 |         resetWritingToolsSession()
 21 |         isWritingToolsActive = true
 22 |         wtInitialSelectionRange = sel.length > 0 ? sel : nil
 23 |         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
 24 |         scheduleChildWindowFix(textView: textView, attemptsRemaining: 20)
 25 |     }
/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:29: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
 26 |
 27 |     @available(macOS 15.0, *)
 28 |     public func textViewWritingToolsDidEnd(_ textView: NSTextView) {
    |                 `- note: add '@MainActor' to make instance method 'textViewWritingToolsDidEnd' part of global actor 'MainActor'
 29 |         (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
 30 |         let wasActive = isWritingToolsActive
 31 |         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:39: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
 37 |         // ⌘Z mid-session on 15.1–26: Apple's stale accept action corrupts the text and
 38 |         // leaves 0.1pt marker fonts behind; the post-undo snapshot is the true state.
 39 |         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
 40 |         let storageState = WikiLinkService.makeStorageState(
 41 |             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:43: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
 26 |
 27 |     @available(macOS 15.0, *)
 28 |     public func textViewWritingToolsDidEnd(_ textView: NSTextView) {
    |                 `- note: add '@MainActor' to make instance method 'textViewWritingToolsDidEnd' part of global actor 'MainActor'
 29 |         (textView as? NativeTextView)?.endWritingToolsHide()
 30 |         let wasActive = isWritingToolsActive
    :
 41 |             from: sourceText,
 42 |             existingMetadata: wikiLinkMetadata,
 43 |             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
 44 |         )
 45 |         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:68:70: warning: main actor-isolated property 'writingToolsCoordinator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 65 |     /// never come: measured on 27, the user typed on and a node switch dropped
 66 |     /// the summary unsaved.
 67 |     func writingToolsEditIsFinal(_ textView: NSTextView) -> Bool {
    |          `- note: add '@MainActor' to make instance method 'writingToolsEditIsFinal' part of global actor 'MainActor'
 68 |         guard #available(macOS 15.2, *), let writingTools = textView.writingToolsCoordinator else { return false }
    |                                                                      `- warning: main actor-isolated property 'writingToolsCoordinator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 69 |         switch writingTools.state {
 70 |         case .interactiveResting, .interactiveStreaming: return false
/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:69:29: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 65 |     /// never come: measured on 27, the user typed on and a node switch dropped
 66 |     /// the summary unsaved.
 67 |     func writingToolsEditIsFinal(_ textView: NSTextView) -> Bool {
    |          `- note: add '@MainActor' to make instance method 'writingToolsEditIsFinal' part of global actor 'MainActor'
 68 |         guard #available(macOS 15.2, *), let writingTools = textView.writingToolsCoordinator else { return false }
 69 |         switch writingTools.state {
    |                             `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 70 |         case .interactiveResting, .interactiveStreaming: return false
 71 |         default: return true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h:350:53: note: property declared here
 348 | /// ``NSWritingToolsCoordinator/Delegate/writingToolsCoordinator(_:willChangeTo:completion:)``
 349 | /// method and updates this property accordingly.
 350 | @property (readonly) NSWritingToolsCoordinatorState state; // Values: Inactive, Noninteractive, InteractiveResting, InteractiveStreaming
     |                                                     `- note: property declared here
 351 |
 352 | /// Stops the current Writing Tools operation and dismisses the system UI.
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:79:28: warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 75 |     /// The binding takes a final edit now, as stored text, rebuilt in full: the
 76 |     /// incremental wiki splice trusts a storage the held inline edits never updated.
 77 |     func syncBindingDuringWritingTools(_ textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'syncBindingDuringWritingTools' part of global actor 'MainActor'
 78 |         let storageState = WikiLinkService.makeStorageState(
 79 |             from: 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
 80 |             existingMetadata: wikiLinkMetadata,
 81 |             textStorage: textView.textStorage
/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:81: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
 75 |     /// The binding takes a final edit now, as stored text, rebuilt in full: the
 76 |     /// incremental wiki splice trusts a storage the held inline edits never updated.
 77 |     func syncBindingDuringWritingTools(_ textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'syncBindingDuringWritingTools' part of global actor 'MainActor'
 78 |         let storageState = WikiLinkService.makeStorageState(
 79 |             from: textView.string,
 80 |             existingMetadata: wikiLinkMetadata,
 81 |             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
 82 |         )
 83 |         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:98:55: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 95 |     /// A panel result's AppKit list becomes Markdown (`TextListMarkdown`), as its own
 96 |     /// undo step right after the insert: inside this pass the edit is still AppKit's.
 97 |     func convertWritingToolsLists(_ textView: NSTextView, editedRange: NSRange?) {
    |          `- note: add '@MainActor' to make instance method 'convertWritingToolsLists(_:editedRange:)' part of global actor 'MainActor'
 98 |         guard let editedRange, 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
 99 |               let conversion = TextListMarkdown.conversion(of: storage, in: editedRange) else { return }
100 |         let target = documentId
/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:135: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
131 |     /// back as written (the zones spell checking skips too).
132 |     @available(macOS 15.0, *)
133 |     public func textView(_ textView: NSTextView,
    |                 `- note: add '@MainActor' to make instance method 'textView(_:writingToolsIgnoredRangesInEnclosingRange:)' part of global actor 'MainActor'
134 |                          writingToolsIgnoredRangesInEnclosingRange enclosingRange: NSRange) -> [NSValue] {
135 |         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
136 |             switch token.kind {
137 |             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:161: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
157 |     }
158 |
159 |     private func captureChildWindowIfNeeded(textView: NSTextView) {
    |                  `- note: add '@MainActor' to make instance method 'captureChildWindowIfNeeded(textView:)' part of global actor 'MainActor'
160 |         guard wtChildWindow == nil,
161 |               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
162 |               let childWin = mainWindow.childWindows?.first(where: { $0.isVisible }) else { return }
163 |         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:162: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
157 |     }
158 |
159 |     private func captureChildWindowIfNeeded(textView: NSTextView) {
    |                  `- note: add '@MainActor' to make instance method 'captureChildWindowIfNeeded(textView:)' part of global actor 'MainActor'
160 |         guard wtChildWindow == nil,
161 |               let mainWindow = textView.window,
162 |               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
163 |         wtChildWindow = childWin
164 |         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:162: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
160 |         guard wtChildWindow == nil,
161 |               let mainWindow = textView.window,
162 |               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
163 |         wtChildWindow = childWin
164 |         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:164: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
157 |     }
158 |
159 |     private func captureChildWindowIfNeeded(textView: NSTextView) {
    |                  `- note: add '@MainActor' to make instance method 'captureChildWindowIfNeeded(textView:)' part of global actor 'MainActor'
160 |         guard wtChildWindow == nil,
161 |               let mainWindow = textView.window,
162 |               let childWin = mainWindow.childWindows?.first(where: { $0.isVisible }) else { return }
163 |         wtChildWindow = childWin
164 |         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
165 |     }
166 |
/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:190:27: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
188 |         wtUndoObserverTokens = [
189 |             center.addObserver(forName: .NSUndoManagerDidUndoChange, object: um, queue: .main) { [weak self] _ in
190 |                 guard let self, let tv = self.textView, self.isWritingToolsActive else { return }
    |                           `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
191 |                 // On 27 AppKit's end of the session throws on the undone text; ending it
192 |                 // 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:193: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
191 |                 // On 27 AppKit's end of the session throws on the undone text; ending it
192 |                 // here leaves that text as the result. 15.1–26 recover in didEnd.
193 |                 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
194 |                     writingTools.stopWritingTools()
195 |                 } 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:194: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
192 |                 // here leaves that text as the result. 15.1–26 recover in didEnd.
193 |                 if #available(macOS 15.2, *), let writingTools = tv.writingToolsCoordinator {
194 |                     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
195 |                 } else {
196 |                     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:196: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
194 |                     writingTools.stopWritingTools()
195 |                 } else {
196 |                     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
197 |                 }
198 |             }
/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:211: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
205 |     }
206 |
207 |     func fixWritingToolsChildWindowIfNeeded(textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'fixWritingToolsChildWindowIfNeeded(textView:)' part of global actor 'MainActor'
208 |         guard let childWin = wtChildWindow,
209 |               let correctOrigin = wtInitialChildOrigin else { return }
210 |
211 |         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
212 |         let needsFix = abs(frame.origin.x - correctOrigin.x) > 0.5 || abs(frame.origin.y - correctOrigin.y) > 0.5
213 |         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:216: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
205 |     }
206 |
207 |     func fixWritingToolsChildWindowIfNeeded(textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'fixWritingToolsChildWindowIfNeeded(textView:)' part of global actor 'MainActor'
208 |         guard let childWin = wtChildWindow,
209 |               let correctOrigin = wtInitialChildOrigin else { return }
    :
214 |             var fixed = frame
215 |             fixed.origin = correctOrigin
216 |             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
217 |         }
218 |     }
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:226: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
221 |     /// and replays the latest switch once the coordinator leaves `.interactiveStreaming`.
222 |     @available(macOS 15.2, *)
223 |     func deferNodeSwitch(until writingTools: NSWritingToolsCoordinator, replay: @escaping () -> Void) {
    |          `- note: add '@MainActor' to make instance method 'deferNodeSwitch(until:replay:)' part of global actor 'MainActor'
224 |         deferredNodeSwitch = replay
225 |         guard deferredNodeSwitchTimer == nil else { return }
226 |         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
227 |         let timer = Timer(timeInterval: 0.05, repeats: true) { [weak self, weak writingTools] timer in
228 |             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:229:27: warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
227 |         let timer = Timer(timeInterval: 0.05, repeats: true) { [weak self, weak writingTools] timer in
228 |             MainActor.assumeIsolated {
229 |                 guard let self else { return timer.invalidate() }
    |                           `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
230 |                 if let writingTools, writingTools.state == .interactiveStreaming { return }
231 |                 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:82:48: warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 78 |     /// Remembers the selection of the document being left. `lastSyncedText` is
 79 |     /// still its text here.
 80 |     func noteSelection(for documentId: String?, in textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'noteSelection(for:in:)' part of global actor 'MainActor'
 81 |         guard let documentId else { return }
 82 |         leftSelections[documentId] = (textView.selectedRange(), lastSyncedText)
    |                                                `- warning: call to main actor-isolated instance method 'selectedRange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 83 |     }
 84 |
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.swift:114:21: warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
109 |     /// text was replaced from outside since it was recorded. AppKit's undo
110 |     /// replays ranges, and over other text they corrupt it.
111 |     func validateUndoBaseline(_ textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'validateUndoBaseline' part of global actor 'MainActor'
112 |         let key = documentId ?? "__default__"
113 |         guard let baseline = undoBaselines.removeValue(forKey: key) else { return }
114 |         if textView.string != baseline { undoManagers[key]?.removeAllActions() }
    |                     `- warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
115 |     }
116 |
/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.swift:317: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
314 |     /// cache so the next caret move doesn't immediately overwrite it, and
315 |     /// notifies the embedder.
316 |     func didToggleSpellCheckingPolicy(textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'didToggleSpellCheckingPolicy(textView:)' part of global actor 'MainActor'
317 |         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
318 |         userPrefersGrammarChecking = textView.isGrammarCheckingEnabled
319 |         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:318: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
314 |     /// cache so the next caret move doesn't immediately overwrite it, and
315 |     /// notifies the embedder.
316 |     func didToggleSpellCheckingPolicy(textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'didToggleSpellCheckingPolicy(textView:)' part of global actor 'MainActor'
317 |         userPrefersContinuousSpellChecking = textView.isContinuousSpellCheckingEnabled
318 |         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
319 |         userPrefersAutomaticSpellingCorrection = textView.isAutomaticSpellingCorrectionEnabled
320 |         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:319: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
314 |     /// cache so the next caret move doesn't immediately overwrite it, and
315 |     /// notifies the embedder.
316 |     func didToggleSpellCheckingPolicy(textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'didToggleSpellCheckingPolicy(textView:)' part of global actor 'MainActor'
317 |         userPrefersContinuousSpellChecking = textView.isContinuousSpellCheckingEnabled
318 |         userPrefersGrammarChecking = textView.isGrammarCheckingEnabled
319 |         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
320 |         userPrefersAutomaticQuoteSubstitution = textView.isAutomaticQuoteSubstitutionEnabled
321 |         // 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:320: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
314 |     /// cache so the next caret move doesn't immediately overwrite it, and
315 |     /// notifies the embedder.
316 |     func didToggleSpellCheckingPolicy(textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'didToggleSpellCheckingPolicy(textView:)' part of global actor 'MainActor'
317 |         userPrefersContinuousSpellChecking = textView.isContinuousSpellCheckingEnabled
318 |         userPrefersGrammarChecking = textView.isGrammarCheckingEnabled
319 |         userPrefersAutomaticSpellingCorrection = textView.isAutomaticSpellingCorrectionEnabled
320 |         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
321 |         // Invalidate the "didn't change" short-circuit so the next selection
322 |         // 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: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.applyBoldRequest {
430 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
431 |                 self?.handleBoldNotification(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.applyItalicRequest {
435 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
436 |                 self?.handleItalicNotification(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.applyHeadingRequest {
440 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
441 |                 self?.handleHeadingNotification(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.applyHighlightRequest {
445 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
446 |                 self?.handleHighlightNotification(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.swift:451: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
    :
449 |         if let name = bus.applyStrikethroughRequest {
450 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
451 |                 self?.handleStrikethroughNotification(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
452 |             })
453 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:456: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
    :
454 |         if let name = bus.applyInlineCodeRequest {
455 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
456 |                 self?.handleInlineCodeNotification(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
457 |             })
458 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:461: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
    :
459 |         if let name = bus.applyBlockquoteRequest {
460 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
461 |                 self?.handleBlockquoteNotification(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
462 |             })
463 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:466: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
    :
464 |         if let name = bus.applyUnorderedListRequest {
465 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
466 |                 self?.handleUnorderedListNotification(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
467 |             })
468 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:471: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
    :
469 |         if let name = bus.applyOrderedListRequest {
470 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
471 |                 self?.handleOrderedListNotification(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
472 |             })
473 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:476: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
    :
474 |         if let name = bus.applyLinkRequest {
475 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
476 |                 self?.handleLinkNotification(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
477 |             })
478 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:481: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
    :
479 |         if let name = bus.applyCodeBlockRequest {
480 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
481 |                 self?.handleCodeBlockNotification(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
482 |             })
483 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:486: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
    :
484 |         if let name = bus.applyHorizontalRuleRequest {
485 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
486 |                 self?.handleHorizontalRuleNotification(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
487 |             })
488 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:491: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
    :
489 |         if let name = bus.applyImageRequest {
490 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
491 |                 self?.handleImageNotification(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
492 |             })
493 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:496: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
    :
494 |         if let name = bus.findScrollToRange {
495 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
496 |                 self?.handleFindScrollToRange(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
497 |             })
498 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:501: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
    :
499 |         if let name = bus.findClearHighlights {
500 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
501 |                 self?.handleFindClearHighlights(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
502 |             })
503 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:506: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
    :
504 |         if let name = bus.findQuery {
505 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
506 |                 self?.handleFindQuery(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
507 |             })
508 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:511: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
    :
509 |         if let name = bus.replaceCurrent {
510 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
511 |                 self?.handleReplaceCurrent(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
512 |             })
513 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:516: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
    :
514 |         if let name = bus.replaceAll {
515 |             busObservers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] notification in
516 |                 self?.handleReplaceAll(notification)
    |                 `- warning: capture of 'self' with non-sendable type 'NativeTextViewCoordinator?' in a '@Sendable' closure
517 |             })
518 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:84:27: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  82 |                 let target = documentId
  83 |                 DispatchQueue.main.async {
  84 |                     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
  85 |                     self.lastSyncedText = rawText
  86 |                     self.text = rawText
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:197:27: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 195 |                 let target = documentId
 196 |                 DispatchQueue.main.async {
 197 |                     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
 198 |                     self.lastSyncedText = storageState.storage
 199 |                     self.text = storageState.storage
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:676:34: warning: sending 'self.layoutBridge' risks causing data races; this is an error in the Swift 6 language mode
 674 |                 ? storageRange(containingDisplayLocation: selLocation) ?? storageRange(forDisplayRange: displayRange)
 675 |                 : nil
 676 |             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
 677 |                 ?? tv.viewRect(forCharacterRange: tv.selectedRange(), using: layoutBridge)
 678 |
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:693:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 691 |                 inlineSelectionState = InlineSelectionState(kind: inlineContext.selectionKind, selection: selection)
 692 |                 DispatchQueue.main.async {
 693 |                     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
 694 |                 }
 695 |             }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:711:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 709 |
 710 |         DispatchQueue.main.async {
 711 |             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
 712 |             self.isImageEmbedActive = isInsideImageEmbed
 713 |             self.onInlineSelectionChange?(inlineSelectionState)
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+TextDelegate.swift:677:23: warning: sending 'self.layoutBridge' risks causing data races; this is an error in the Swift 6 language mode
 675 |                 : nil
 676 |             let previewRect = tv.viewRect(forCharacterRange: displayRange, using: layoutBridge)
 677 |                 ?? 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
 678 |
 679 |             // 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:151:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
149 |         guard attemptsRemaining > 0, isWritingToolsActive else { return }
150 |         DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) { [weak self] in
151 |             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
152 |             self.captureChildWindowIfNeeded(textView: textView)
153 |             if self.wtChildWindow == nil {
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:56:19: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 54 |         let target = documentId
 55 |         DispatchQueue.main.async { [self] in
 56 |             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
 57 |             text = storage
 58 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:89:19: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 87 |         let target = documentId
 88 |         DispatchQueue.main.async { [self] in
 89 |             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
 90 |             lastSyncedText = storage
 91 |             text = storage
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:102:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
100 |         let target = documentId
101 |         DispatchQueue.main.async { [weak self, weak textView] in
102 |             guard let self, let textView, bindingFollows(target), let storage = textView.textStorage 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
103 |             let text = storage.string as NSString
104 |             guard NSMaxRange(conversion.range) <= text.length,
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator+WritingTools.swift:229:46: warning: sending 'timer' risks causing data races; this is an error in the Swift 6 language mode
227 |         let timer = Timer(timeInterval: 0.05, repeats: true) { [weak self, weak writingTools] timer in
228 |             MainActor.assumeIsolated {
229 |                 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
230 |                 if let writingTools, writingTools.state == .interactiveStreaming { return }
231 |                 let replay = self.deferredNodeSwitch
/Users/admin/builder/spi-builder-workspace/Sources/MarkdownEngine/TextView/Coordinator/NativeTextViewCoordinator.swift:267:19: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
265 |         guard let isFocused else { return }
266 |         DispatchQueue.main.async { [self] in
267 |             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
268 |                   isFocused.wrappedValue != focused else { return }
269 |             isFocused.wrappedValue = focused
[128/133] Compiling MarkdownEngineCodeBlocks resource_bundle_accessor.swift
[129/133] 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),
[130/133] 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),
[131/133] 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;
[132/133] 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 |
[133/133] 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
Build complete! (18.21s)
Fetching https://github.com/mgriebling/SwiftMath
[1/2375] Fetching swiftmath
Fetched https://github.com/mgriebling/SwiftMath from cache (1.49s)
Computing version for https://github.com/mgriebling/SwiftMath
Computed https://github.com/mgriebling/SwiftMath at 1.7.3 (5.21s)
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",
        "EditorParkingTests.swift",
        "FenceInteriorIncrementalTests.swift",
        "FileDropTests.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",
        "SelectedTextOnOpaqueFillTests.swift",
        "SourceImageViewportTests.swift",
        "TableCellSourceTests.swift",
        "TableCellTests.swift",
        "TableHiddenSourceGeometryTests.swift",
        "TableImageCacheTests.swift",
        "TableScopeSkipTests.swift",
        "TableWidthChangeRestyleTests.swift",
        "TableWrappingTests.swift",
        "TextListMarkdownTests.swift",
        "ThematicBreakMarkTests.swift",
        "UndoRandomWalkTests.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/DirectiveSyntax.swift",
        "Directives/MarkdownDirective.swift",
        "Extensions/ContainerExtension.swift",
        "Extensions/ExtensionSyntax.swift",
        "Extensions/HighlightExtension.swift",
        "Extensions/MarkdownExtension.swift",
        "Extensions/StrikethroughExtension.swift",
        "Input/MarkdownInputHandler.swift",
        "Input/MarkdownListHandler.swift",
        "Input/TextListMarkdown.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/MarkdownTokenAttributes.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/EditorFileDrop.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+FileDrop.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+UndoGuard.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.