The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of TextBuffer, reference main (70ee7a), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 09:38:41 UTC.

Swift 6 data race errors: 15

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

========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CleanCocoa/TextBuffer.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CleanCocoa/TextBuffer
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 70ee7a9 make MutableStringBuffer not Sendable like its NSMutableString base reference
Cloned https://github.com/CleanCocoa/TextBuffer.git
Revision (git rev-parse @):
70ee7a9aeab9223b4d665a4574aed1c300b67f63
SUCCESS checkout https://github.com/CleanCocoa/TextBuffer.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/CleanCocoa/TextBuffer.git
https://github.com/CleanCocoa/TextBuffer.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TextBuffer",
  "name" : "TextBuffer",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TextBuffer",
      "targets" : [
        "TextBuffer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TextBufferTesting",
      "targets" : [
        "TextBufferTesting"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TextBufferTests",
      "module_type" : "SwiftTarget",
      "name" : "TextBufferTests",
      "path" : "Tests/TextBufferTests",
      "sources" : [
        "BufferWordRangeTests.swift",
        "Helpers.swift",
        "MakeBufferWithSelectionFromStringTests.swift",
        "MutableStringBufferTests.swift",
        "NSRange+ContainsTests.swift",
        "NSRange+OrderTests.swift",
        "NSRange+ResizedTests.swift",
        "NSRange+ShiftedTests.swift",
        "NSRange+SubtractingTests.swift",
        "NSTextViewBufferTests.swift"
      ],
      "target_dependencies" : [
        "TextBuffer",
        "TextBufferTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TextBufferTesting",
      "module_type" : "SwiftTarget",
      "name" : "TextBufferTesting",
      "path" : "Sources/TextBufferTesting",
      "product_memberships" : [
        "TextBufferTesting"
      ],
      "sources" : [
        "MakeBufferWithSelectionFromString.swift",
        "assertBufferState.swift"
      ],
      "target_dependencies" : [
        "TextBuffer"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TextBuffer",
      "module_type" : "SwiftTarget",
      "name" : "TextBuffer",
      "path" : "Sources/TextBuffer",
      "product_memberships" : [
        "TextBuffer",
        "TextBufferTesting"
      ],
      "sources" : [
        "Bool+inverted.swift",
        "Buffer/Buffer+contains.swift",
        "Buffer/Buffer+wordRange.swift",
        "Buffer/Buffer.swift",
        "Buffer/BufferAccessFailure.swift",
        "Buffer/MutableStringBuffer.swift",
        "Buffer/NSMutableString+BufferCompatibility.swift",
        "Buffer/NSTextViewBuffer.swift",
        "Buffer/UTF16.swift",
        "Buffer/Undoable+NSTextViewBuffer.swift",
        "Buffer/Undoable.swift",
        "NSRange+Order.swift",
        "NSRange+Resized.swift",
        "NSRange+Shifted.swift",
        "NSRange+Subtracting.swift",
        "NSRange+containsRange.swift",
        "NSRange+expandedToOther.swift",
        "NSRange+notFound.swift",
        "NSRange+prefix.swift",
        "NSRange+suffix.swift",
        "NSString+locationUpToCharacter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/23] Emitting module TextBuffer
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:27:24: warning: main actor-isolated property 'selectedRange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 25 |     @inlinable
 26 |     open var selectedRange: Buffer.Range {
 27 |         get { textView.selectedRange }
    |                        `- warning: main actor-isolated property 'selectedRange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 28 |         set { textView.selectedRange = newValue }
 29 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: note: property declared here
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- note: property declared here
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:28:24: warning: main actor-isolated property 'selectedRange' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 26 |     open var selectedRange: Buffer.Range {
 27 |         get { textView.selectedRange }
 28 |         set { textView.selectedRange = newValue }
    |                        `- warning: main actor-isolated property 'selectedRange' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 29 |     }
 30 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: note: mutation of this property is only permitted within the actor
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- note: mutation of this property is only permitted within the actor
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:32:79: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 30 |
 31 |     @inlinable
 32 |     open var range: Buffer.Range { Buffer.Range(location: 0, length: textView.nsMutableString.length) }
    |                                                                               `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 33 |
 34 |     @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:35:42: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 33 |
 34 |     @inlinable
 35 |     open var content: Content { textView.nsMutableString as Buffer.Content }
    |                                          `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 36 |
 37 |     /// Wraps `textView` as the target of all ``Buffer`` related actions.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:45:18: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 42 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 43 |     @inlinable
 44 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 45 |         textView.textStorage?.beginEditing()
    |                  `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 46 |         defer { textView.textStorage?.endEditing() }
 47 |         return try body()
/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/TextBuffer/Buffer/NSTextViewBuffer.swift:46:26: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 42 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 43 |     @inlinable
 44 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 45 |         textView.textStorage?.beginEditing()
 46 |         defer { textView.textStorage?.endEditing() }
    |                          `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 47 |         return try body()
 48 |     }
/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/TextBuffer/Buffer/NSTextViewBuffer.swift:58:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 49 |
 50 |     @inlinable
 51 |     open func lineRange(for searchRange: Buffer.Range) throws -> Buffer.Range {
    |               `- note: add '@MainActor' to make instance method 'lineRange(for:)' part of global actor 'MainActor'
 52 |         guard contains(range: searchRange) else {
 53 |             throw BufferAccessFailure.outOfRange(
    :
 56 |             )
 57 |         }
 58 |         return textView.nsMutableString.lineRange(for: searchRange)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:70:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 60 |
 61 |     @inlinable
 62 |     open func content(in subrange: UTF16Range) throws -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'content(in:)' part of global actor 'MainActor'
 63 |         guard contains(range: subrange) else {
 64 |             throw BufferAccessFailure.outOfRange(
    :
 68 |         }
 69 |
 70 |         return textView.nsMutableString.unsafeContent(in: subrange)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 71 |     }
 72 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:76:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 72 |
 73 |     @inlinable
 74 |     open func unsafeCharacter(at location: Buffer.Location) -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'unsafeCharacter(at:)' part of global actor 'MainActor'
 75 |         // Raises an `NSExceptionName` of name `.rangeException` if `location` is out of bounds.
 76 |         return textView.nsMutableString.unsafeCharacter(at: location)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 77 |     }
 78 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:89:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 87 |
 88 |         wrapAsEditing {
 89 |             textView.nsMutableString.insert(content, at: location)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 90 |         }
 91 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:103:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
101 |
102 |         wrapAsEditing {
103 |             textView.nsMutableString.deleteCharacters(in: deletedRange)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
104 |         }
105 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:116: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
106 |
107 |     @inlinable
108 |     open func replace(range replacementRange: Buffer.Range, with content: Buffer.Content) throws {
    |               `- note: add '@MainActor' to make instance method 'replace(range:with:)' part of global actor 'MainActor'
109 |         guard contains(range: replacementRange) else {
110 |             throw BufferAccessFailure.outOfRange(requested: replacementRange, available: self.range)
    :
114 |         defer {
115 |             // Restore the recoverable part of the formerly selected range. By default, when the replaced range overlaps with the text view's selection, it removes the selection and switches to 0-length insertion point.
116 |             textView.setSelectedRange(selectedRange
    |                      `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |                 .subtracting(replacementRange)
118 |                 .shifted(by: replacementRange.location <= selectedRange.location ? length(of: content) : 0))
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/TextBuffer/Buffer/NSTextViewBuffer.swift:122:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
120 |
121 |         wrapAsEditing {
122 |             textView.nsMutableString.replaceCharacters(in: replacementRange, with: content)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
123 |         }
124 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:128: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
125 |
126 |     @inlinable
127 |     open func modifying<T>(affectedRange: Buffer.Range, _ block: () -> T) throws -> T {
    |               `- note: add '@MainActor' to make instance method 'modifying(affectedRange:_:)' part of global actor 'MainActor'
128 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
    |                        `- 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
129 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
130 |         }
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/TextBuffer/Buffer/NSTextViewBuffer.swift:131:26: warning: call to main actor-isolated instance method 'didChangeText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
125 |
126 |     @inlinable
127 |     open func modifying<T>(affectedRange: Buffer.Range, _ block: () -> T) throws -> T {
    |               `- note: add '@MainActor' to make instance method 'modifying(affectedRange:_:)' part of global actor 'MainActor'
128 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
129 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
130 |         }
131 |         defer { 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
132 |
133 |         return wrapAsEditing {
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 |
[5/25] Compiling TextBuffer NSRange+suffix.swift
[6/25] Compiling TextBuffer NSString+locationUpToCharacter.swift
[7/25] Compiling TextBuffer MutableStringBuffer.swift
[8/25] Compiling TextBuffer NSMutableString+BufferCompatibility.swift
[9/25] Compiling TextBuffer NSRange+Shifted.swift
[10/25] Compiling TextBuffer NSRange+Subtracting.swift
[11/25] Compiling TextBuffer NSRange+containsRange.swift
[12/25] Compiling TextBuffer NSRange+expandedToOther.swift
[13/25] Compiling TextBuffer NSRange+Order.swift
[14/25] Compiling TextBuffer NSRange+Resized.swift
[15/25] Compiling TextBuffer NSRange+notFound.swift
[16/25] Compiling TextBuffer NSRange+prefix.swift
[17/25] Compiling TextBuffer Buffer.swift
[18/25] Compiling TextBuffer BufferAccessFailure.swift
[19/25] Compiling TextBuffer NSTextViewBuffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:27:24: warning: main actor-isolated property 'selectedRange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 25 |     @inlinable
 26 |     open var selectedRange: Buffer.Range {
 27 |         get { textView.selectedRange }
    |                        `- warning: main actor-isolated property 'selectedRange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 28 |         set { textView.selectedRange = newValue }
 29 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: note: property declared here
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- note: property declared here
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:28:24: warning: main actor-isolated property 'selectedRange' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 26 |     open var selectedRange: Buffer.Range {
 27 |         get { textView.selectedRange }
 28 |         set { textView.selectedRange = newValue }
    |                        `- warning: main actor-isolated property 'selectedRange' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 29 |     }
 30 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: note: mutation of this property is only permitted within the actor
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- note: mutation of this property is only permitted within the actor
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:32:79: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 30 |
 31 |     @inlinable
 32 |     open var range: Buffer.Range { Buffer.Range(location: 0, length: textView.nsMutableString.length) }
    |                                                                               `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 33 |
 34 |     @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:35:42: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 33 |
 34 |     @inlinable
 35 |     open var content: Content { textView.nsMutableString as Buffer.Content }
    |                                          `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 36 |
 37 |     /// Wraps `textView` as the target of all ``Buffer`` related actions.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:45:18: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 42 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 43 |     @inlinable
 44 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 45 |         textView.textStorage?.beginEditing()
    |                  `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 46 |         defer { textView.textStorage?.endEditing() }
 47 |         return try body()
/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/TextBuffer/Buffer/NSTextViewBuffer.swift:46:26: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 42 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 43 |     @inlinable
 44 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 45 |         textView.textStorage?.beginEditing()
 46 |         defer { textView.textStorage?.endEditing() }
    |                          `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 47 |         return try body()
 48 |     }
/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/TextBuffer/Buffer/NSTextViewBuffer.swift:58:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 49 |
 50 |     @inlinable
 51 |     open func lineRange(for searchRange: Buffer.Range) throws -> Buffer.Range {
    |               `- note: add '@MainActor' to make instance method 'lineRange(for:)' part of global actor 'MainActor'
 52 |         guard contains(range: searchRange) else {
 53 |             throw BufferAccessFailure.outOfRange(
    :
 56 |             )
 57 |         }
 58 |         return textView.nsMutableString.lineRange(for: searchRange)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:70:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 60 |
 61 |     @inlinable
 62 |     open func content(in subrange: UTF16Range) throws -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'content(in:)' part of global actor 'MainActor'
 63 |         guard contains(range: subrange) else {
 64 |             throw BufferAccessFailure.outOfRange(
    :
 68 |         }
 69 |
 70 |         return textView.nsMutableString.unsafeContent(in: subrange)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 71 |     }
 72 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:76:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 72 |
 73 |     @inlinable
 74 |     open func unsafeCharacter(at location: Buffer.Location) -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'unsafeCharacter(at:)' part of global actor 'MainActor'
 75 |         // Raises an `NSExceptionName` of name `.rangeException` if `location` is out of bounds.
 76 |         return textView.nsMutableString.unsafeCharacter(at: location)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 77 |     }
 78 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:89:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 87 |
 88 |         wrapAsEditing {
 89 |             textView.nsMutableString.insert(content, at: location)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 90 |         }
 91 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:103:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
101 |
102 |         wrapAsEditing {
103 |             textView.nsMutableString.deleteCharacters(in: deletedRange)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
104 |         }
105 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:116: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
106 |
107 |     @inlinable
108 |     open func replace(range replacementRange: Buffer.Range, with content: Buffer.Content) throws {
    |               `- note: add '@MainActor' to make instance method 'replace(range:with:)' part of global actor 'MainActor'
109 |         guard contains(range: replacementRange) else {
110 |             throw BufferAccessFailure.outOfRange(requested: replacementRange, available: self.range)
    :
114 |         defer {
115 |             // Restore the recoverable part of the formerly selected range. By default, when the replaced range overlaps with the text view's selection, it removes the selection and switches to 0-length insertion point.
116 |             textView.setSelectedRange(selectedRange
    |                      `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |                 .subtracting(replacementRange)
118 |                 .shifted(by: replacementRange.location <= selectedRange.location ? length(of: content) : 0))
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/TextBuffer/Buffer/NSTextViewBuffer.swift:122:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
120 |
121 |         wrapAsEditing {
122 |             textView.nsMutableString.replaceCharacters(in: replacementRange, with: content)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
123 |         }
124 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:128: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
125 |
126 |     @inlinable
127 |     open func modifying<T>(affectedRange: Buffer.Range, _ block: () -> T) throws -> T {
    |               `- note: add '@MainActor' to make instance method 'modifying(affectedRange:_:)' part of global actor 'MainActor'
128 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
    |                        `- 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
129 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
130 |         }
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/TextBuffer/Buffer/NSTextViewBuffer.swift:131:26: warning: call to main actor-isolated instance method 'didChangeText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
125 |
126 |     @inlinable
127 |     open func modifying<T>(affectedRange: Buffer.Range, _ block: () -> T) throws -> T {
    |               `- note: add '@MainActor' to make instance method 'modifying(affectedRange:_:)' part of global actor 'MainActor'
128 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
129 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
130 |         }
131 |         defer { 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
132 |
133 |         return wrapAsEditing {
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 |
[20/25] Compiling TextBuffer UTF16.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:27:24: warning: main actor-isolated property 'selectedRange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 25 |     @inlinable
 26 |     open var selectedRange: Buffer.Range {
 27 |         get { textView.selectedRange }
    |                        `- warning: main actor-isolated property 'selectedRange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 28 |         set { textView.selectedRange = newValue }
 29 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: note: property declared here
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- note: property declared here
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:28:24: warning: main actor-isolated property 'selectedRange' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 26 |     open var selectedRange: Buffer.Range {
 27 |         get { textView.selectedRange }
 28 |         set { textView.selectedRange = newValue }
    |                        `- warning: main actor-isolated property 'selectedRange' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 29 |     }
 30 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: note: mutation of this property is only permitted within the actor
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- note: mutation of this property is only permitted within the actor
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:32:79: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 30 |
 31 |     @inlinable
 32 |     open var range: Buffer.Range { Buffer.Range(location: 0, length: textView.nsMutableString.length) }
    |                                                                               `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 33 |
 34 |     @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:35:42: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 33 |
 34 |     @inlinable
 35 |     open var content: Content { textView.nsMutableString as Buffer.Content }
    |                                          `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 36 |
 37 |     /// Wraps `textView` as the target of all ``Buffer`` related actions.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:45:18: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 42 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 43 |     @inlinable
 44 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 45 |         textView.textStorage?.beginEditing()
    |                  `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 46 |         defer { textView.textStorage?.endEditing() }
 47 |         return try body()
/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/TextBuffer/Buffer/NSTextViewBuffer.swift:46:26: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 42 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 43 |     @inlinable
 44 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 45 |         textView.textStorage?.beginEditing()
 46 |         defer { textView.textStorage?.endEditing() }
    |                          `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 47 |         return try body()
 48 |     }
/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/TextBuffer/Buffer/NSTextViewBuffer.swift:58:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 49 |
 50 |     @inlinable
 51 |     open func lineRange(for searchRange: Buffer.Range) throws -> Buffer.Range {
    |               `- note: add '@MainActor' to make instance method 'lineRange(for:)' part of global actor 'MainActor'
 52 |         guard contains(range: searchRange) else {
 53 |             throw BufferAccessFailure.outOfRange(
    :
 56 |             )
 57 |         }
 58 |         return textView.nsMutableString.lineRange(for: searchRange)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:70:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 60 |
 61 |     @inlinable
 62 |     open func content(in subrange: UTF16Range) throws -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'content(in:)' part of global actor 'MainActor'
 63 |         guard contains(range: subrange) else {
 64 |             throw BufferAccessFailure.outOfRange(
    :
 68 |         }
 69 |
 70 |         return textView.nsMutableString.unsafeContent(in: subrange)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 71 |     }
 72 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:76:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 72 |
 73 |     @inlinable
 74 |     open func unsafeCharacter(at location: Buffer.Location) -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'unsafeCharacter(at:)' part of global actor 'MainActor'
 75 |         // Raises an `NSExceptionName` of name `.rangeException` if `location` is out of bounds.
 76 |         return textView.nsMutableString.unsafeCharacter(at: location)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 77 |     }
 78 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:89:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 87 |
 88 |         wrapAsEditing {
 89 |             textView.nsMutableString.insert(content, at: location)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 90 |         }
 91 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:103:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
101 |
102 |         wrapAsEditing {
103 |             textView.nsMutableString.deleteCharacters(in: deletedRange)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
104 |         }
105 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:116: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
106 |
107 |     @inlinable
108 |     open func replace(range replacementRange: Buffer.Range, with content: Buffer.Content) throws {
    |               `- note: add '@MainActor' to make instance method 'replace(range:with:)' part of global actor 'MainActor'
109 |         guard contains(range: replacementRange) else {
110 |             throw BufferAccessFailure.outOfRange(requested: replacementRange, available: self.range)
    :
114 |         defer {
115 |             // Restore the recoverable part of the formerly selected range. By default, when the replaced range overlaps with the text view's selection, it removes the selection and switches to 0-length insertion point.
116 |             textView.setSelectedRange(selectedRange
    |                      `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |                 .subtracting(replacementRange)
118 |                 .shifted(by: replacementRange.location <= selectedRange.location ? length(of: content) : 0))
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/TextBuffer/Buffer/NSTextViewBuffer.swift:122:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
120 |
121 |         wrapAsEditing {
122 |             textView.nsMutableString.replaceCharacters(in: replacementRange, with: content)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
123 |         }
124 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:128: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
125 |
126 |     @inlinable
127 |     open func modifying<T>(affectedRange: Buffer.Range, _ block: () -> T) throws -> T {
    |               `- note: add '@MainActor' to make instance method 'modifying(affectedRange:_:)' part of global actor 'MainActor'
128 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
    |                        `- 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
129 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
130 |         }
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/TextBuffer/Buffer/NSTextViewBuffer.swift:131:26: warning: call to main actor-isolated instance method 'didChangeText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
125 |
126 |     @inlinable
127 |     open func modifying<T>(affectedRange: Buffer.Range, _ block: () -> T) throws -> T {
    |               `- note: add '@MainActor' to make instance method 'modifying(affectedRange:_:)' part of global actor 'MainActor'
128 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
129 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
130 |         }
131 |         defer { 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
132 |
133 |         return wrapAsEditing {
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 |
[21/25] Compiling TextBuffer Undoable+NSTextViewBuffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/Undoable+NSTextViewBuffer.swift:13:34: warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
11 |     ) {
12 |         self.init(base) {
13 |             return base.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
14 |         }
15 |     }
/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 |
[22/25] Compiling TextBuffer Undoable.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/Undoable+NSTextViewBuffer.swift:13:34: warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
11 |     ) {
12 |         self.init(base) {
13 |             return base.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
14 |         }
15 |     }
/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 |
[23/25] Compiling TextBuffer Bool+inverted.swift
[24/25] Compiling TextBuffer Buffer+contains.swift
[25/25] Compiling TextBuffer Buffer+wordRange.swift
[26/28] Compiling TextBufferTesting MakeBufferWithSelectionFromString.swift
[27/28] Emitting module TextBufferTesting
[28/28] Compiling TextBufferTesting assertBufferState.swift
Build complete! (12.27s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TextBuffer",
  "name" : "TextBuffer",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TextBuffer",
      "targets" : [
        "TextBuffer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TextBufferTesting",
      "targets" : [
        "TextBufferTesting"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TextBufferTests",
      "module_type" : "SwiftTarget",
      "name" : "TextBufferTests",
      "path" : "Tests/TextBufferTests",
      "sources" : [
        "BufferWordRangeTests.swift",
        "Helpers.swift",
        "MakeBufferWithSelectionFromStringTests.swift",
        "MutableStringBufferTests.swift",
        "NSRange+ContainsTests.swift",
        "NSRange+OrderTests.swift",
        "NSRange+ResizedTests.swift",
        "NSRange+ShiftedTests.swift",
        "NSRange+SubtractingTests.swift",
        "NSTextViewBufferTests.swift"
      ],
      "target_dependencies" : [
        "TextBuffer",
        "TextBufferTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TextBufferTesting",
      "module_type" : "SwiftTarget",
      "name" : "TextBufferTesting",
      "path" : "Sources/TextBufferTesting",
      "product_memberships" : [
        "TextBufferTesting"
      ],
      "sources" : [
        "MakeBufferWithSelectionFromString.swift",
        "assertBufferState.swift"
      ],
      "target_dependencies" : [
        "TextBuffer"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TextBuffer",
      "module_type" : "SwiftTarget",
      "name" : "TextBuffer",
      "path" : "Sources/TextBuffer",
      "product_memberships" : [
        "TextBuffer",
        "TextBufferTesting"
      ],
      "sources" : [
        "Bool+inverted.swift",
        "Buffer/Buffer+contains.swift",
        "Buffer/Buffer+wordRange.swift",
        "Buffer/Buffer.swift",
        "Buffer/BufferAccessFailure.swift",
        "Buffer/MutableStringBuffer.swift",
        "Buffer/NSMutableString+BufferCompatibility.swift",
        "Buffer/NSTextViewBuffer.swift",
        "Buffer/UTF16.swift",
        "Buffer/Undoable+NSTextViewBuffer.swift",
        "Buffer/Undoable.swift",
        "NSRange+Order.swift",
        "NSRange+Resized.swift",
        "NSRange+Shifted.swift",
        "NSRange+Subtracting.swift",
        "NSRange+containsRange.swift",
        "NSRange+expandedToOther.swift",
        "NSRange+notFound.swift",
        "NSRange+prefix.swift",
        "NSRange+suffix.swift",
        "NSString+locationUpToCharacter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.