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.0 for macOS (SPM) on 25 Jan 2025 10:08:40 UTC.

Swift 6 data race errors: 15

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "textbuffer",
      "name": "TextBuffer",
      "url": "https://github.com/CleanCocoa/TextBuffer.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TextBuffer",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/CleanCocoa/TextBuffer.git
[1/82] Fetching textbuffer
Fetched https://github.com/CleanCocoa/TextBuffer.git from cache (0.78s)
Creating working copy for https://github.com/CleanCocoa/TextBuffer.git
Working copy of https://github.com/CleanCocoa/TextBuffer.git resolved at main (70ee7a9)
warning: '.resolve-product-dependencies': dependency 'textbuffer' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
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.2.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-5BDAB9E9C0126B9D.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 |     }
AppKit.NSText:46:25: note: property declared here
44 |     @available(swift, obsoleted: 3, renamed: "isRulerVisible")
45 |     open var rulerVisible: Bool { get }
46 |     @MainActor open var selectedRange: NSRange { get set }
   |                         `- note: property declared here
47 |     open func scrollRangeToVisible(_ range: NSRange)
48 |     open var font: NSFont? { get set }
/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 |
AppKit.NSText:46:25: note: mutation of this property is only permitted within the actor
44 |     @available(swift, obsoleted: 3, renamed: "isRulerVisible")
45 |     open var rulerVisible: Bool { get }
46 |     @MainActor open var selectedRange: NSRange { get set }
   |                         `- note: mutation of this property is only permitted within the actor
47 |     open func scrollRangeToVisible(_ range: NSRange)
48 |     open var font: NSFont? { get set }
/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()
AppKit.NSTextView:14:41: note: property declared here
 12 |     open func invalidateTextContainerOrigin()
 13 |     unowned(unsafe) open var layoutManager: NSLayoutManager? { get }
 14 |     @MainActor unowned(unsafe) open var textStorage: NSTextStorage? { get }
    |                                         `- note: property declared here
 15 |     @available(macOS 12.0, *)
 16 |     weak open var textLayoutManager: NSTextLayoutManager? { get }
/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 |     }
AppKit.NSTextView:14:41: note: property declared here
 12 |     open func invalidateTextContainerOrigin()
 13 |     unowned(unsafe) open var layoutManager: NSLayoutManager? { get }
 14 |     @MainActor unowned(unsafe) open var textStorage: NSTextStorage? { get }
    |                                         `- note: property declared here
 15 |     @available(macOS 12.0, *)
 16 |     weak open var textLayoutManager: NSTextLayoutManager? { get }
/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:84:26: note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
82 |     @available(swift, obsoleted: 3, renamed: "isRulerVisible")
83 |     open var rulerVisible: Bool { get set }
84 |     @MainActor open func setSelectedRange(_ charRange: NSRange)
   |                          `- note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
85 |     @available(macOS 10.5, *)
86 |     open var allowedInputSourceLocales: [String]? { get set }
/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:39:15: note: calls to instance method 'shouldChangeText(in:replacementString:)' from outside of its actor context are implicitly asynchronous
37 |     open var rangesForUserCharacterAttributeChange: [NSValue]? { get }
38 |     open var rangesForUserParagraphAttributeChange: [NSValue]? { get }
39 |     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
40 |     @available(swift, obsoleted: 3, renamed: "shouldChangeText(in:replacementString:)")
41 |     open func shouldChangeTextInRange(_ affectedCharRange: NSRange, replacementString: String?) -> Bool
/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:42:15: note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
40 |     @available(swift, obsoleted: 3, renamed: "shouldChangeText(in:replacementString:)")
41 |     open func shouldChangeTextInRange(_ affectedCharRange: NSRange, replacementString: String?) -> Bool
42 |     open func didChangeText()
   |               `- note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
43 |     open var rangeForUserTextChange: NSRange { get }
44 |     open var rangeForUserCharacterAttributeChange: NSRange { get }
[5/25] Compiling TextBuffer NSRange+suffix.swift
[6/25] Compiling TextBuffer NSString+locationUpToCharacter.swift
[7/25] Compiling TextBuffer Bool+inverted.swift
[8/25] Compiling TextBuffer Buffer+contains.swift
[9/25] Compiling TextBuffer Buffer+wordRange.swift
[10/25] Compiling TextBuffer NSRange+containsRange.swift
[11/25] Compiling TextBuffer NSRange+expandedToOther.swift
[12/25] Compiling TextBuffer NSRange+Order.swift
[13/25] Compiling TextBuffer NSRange+Resized.swift
[14/25] Compiling TextBuffer NSRange+notFound.swift
[15/25] Compiling TextBuffer NSRange+prefix.swift
[16/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 |     }
AppKit.NSResponder:2:25: note: property declared here
1 | extension NSResponder {
2 |     @MainActor open var undoManager: UndoManager? { get }
  |                         `- note: property declared here
3 | }
[17/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 |     }
AppKit.NSResponder:2:25: note: property declared here
1 | extension NSResponder {
2 |     @MainActor open var undoManager: UndoManager? { get }
  |                         `- note: property declared here
3 | }
[18/25] Compiling TextBuffer NSRange+Shifted.swift
[19/25] Compiling TextBuffer NSRange+Subtracting.swift
[20/25] Compiling TextBuffer Buffer.swift
[21/25] Compiling TextBuffer BufferAccessFailure.swift
[22/25] Compiling TextBuffer MutableStringBuffer.swift
[23/25] Compiling TextBuffer NSMutableString+BufferCompatibility.swift
[24/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 |     }
AppKit.NSText:46:25: note: property declared here
44 |     @available(swift, obsoleted: 3, renamed: "isRulerVisible")
45 |     open var rulerVisible: Bool { get }
46 |     @MainActor open var selectedRange: NSRange { get set }
   |                         `- note: property declared here
47 |     open func scrollRangeToVisible(_ range: NSRange)
48 |     open var font: NSFont? { get set }
/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 |
AppKit.NSText:46:25: note: mutation of this property is only permitted within the actor
44 |     @available(swift, obsoleted: 3, renamed: "isRulerVisible")
45 |     open var rulerVisible: Bool { get }
46 |     @MainActor open var selectedRange: NSRange { get set }
   |                         `- note: mutation of this property is only permitted within the actor
47 |     open func scrollRangeToVisible(_ range: NSRange)
48 |     open var font: NSFont? { get set }
/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()
AppKit.NSTextView:14:41: note: property declared here
 12 |     open func invalidateTextContainerOrigin()
 13 |     unowned(unsafe) open var layoutManager: NSLayoutManager? { get }
 14 |     @MainActor unowned(unsafe) open var textStorage: NSTextStorage? { get }
    |                                         `- note: property declared here
 15 |     @available(macOS 12.0, *)
 16 |     weak open var textLayoutManager: NSTextLayoutManager? { get }
/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 |     }
AppKit.NSTextView:14:41: note: property declared here
 12 |     open func invalidateTextContainerOrigin()
 13 |     unowned(unsafe) open var layoutManager: NSLayoutManager? { get }
 14 |     @MainActor unowned(unsafe) open var textStorage: NSTextStorage? { get }
    |                                         `- note: property declared here
 15 |     @available(macOS 12.0, *)
 16 |     weak open var textLayoutManager: NSTextLayoutManager? { get }
/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:84:26: note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
82 |     @available(swift, obsoleted: 3, renamed: "isRulerVisible")
83 |     open var rulerVisible: Bool { get set }
84 |     @MainActor open func setSelectedRange(_ charRange: NSRange)
   |                          `- note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
85 |     @available(macOS 10.5, *)
86 |     open var allowedInputSourceLocales: [String]? { get set }
/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:39:15: note: calls to instance method 'shouldChangeText(in:replacementString:)' from outside of its actor context are implicitly asynchronous
37 |     open var rangesForUserCharacterAttributeChange: [NSValue]? { get }
38 |     open var rangesForUserParagraphAttributeChange: [NSValue]? { get }
39 |     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
40 |     @available(swift, obsoleted: 3, renamed: "shouldChangeText(in:replacementString:)")
41 |     open func shouldChangeTextInRange(_ affectedCharRange: NSRange, replacementString: String?) -> Bool
/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:42:15: note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
40 |     @available(swift, obsoleted: 3, renamed: "shouldChangeText(in:replacementString:)")
41 |     open func shouldChangeTextInRange(_ affectedCharRange: NSRange, replacementString: String?) -> Bool
42 |     open func didChangeText()
   |               `- note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
43 |     open var rangeForUserTextChange: NSRange { get }
44 |     open var rangeForUserCharacterAttributeChange: NSRange { get }
[25/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 |     }
AppKit.NSText:46:25: note: property declared here
44 |     @available(swift, obsoleted: 3, renamed: "isRulerVisible")
45 |     open var rulerVisible: Bool { get }
46 |     @MainActor open var selectedRange: NSRange { get set }
   |                         `- note: property declared here
47 |     open func scrollRangeToVisible(_ range: NSRange)
48 |     open var font: NSFont? { get set }
/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 |
AppKit.NSText:46:25: note: mutation of this property is only permitted within the actor
44 |     @available(swift, obsoleted: 3, renamed: "isRulerVisible")
45 |     open var rulerVisible: Bool { get }
46 |     @MainActor open var selectedRange: NSRange { get set }
   |                         `- note: mutation of this property is only permitted within the actor
47 |     open func scrollRangeToVisible(_ range: NSRange)
48 |     open var font: NSFont? { get set }
/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()
AppKit.NSTextView:14:41: note: property declared here
 12 |     open func invalidateTextContainerOrigin()
 13 |     unowned(unsafe) open var layoutManager: NSLayoutManager? { get }
 14 |     @MainActor unowned(unsafe) open var textStorage: NSTextStorage? { get }
    |                                         `- note: property declared here
 15 |     @available(macOS 12.0, *)
 16 |     weak open var textLayoutManager: NSTextLayoutManager? { get }
/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 |     }
AppKit.NSTextView:14:41: note: property declared here
 12 |     open func invalidateTextContainerOrigin()
 13 |     unowned(unsafe) open var layoutManager: NSLayoutManager? { get }
 14 |     @MainActor unowned(unsafe) open var textStorage: NSTextStorage? { get }
    |                                         `- note: property declared here
 15 |     @available(macOS 12.0, *)
 16 |     weak open var textLayoutManager: NSTextLayoutManager? { get }
/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:84:26: note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
82 |     @available(swift, obsoleted: 3, renamed: "isRulerVisible")
83 |     open var rulerVisible: Bool { get set }
84 |     @MainActor open func setSelectedRange(_ charRange: NSRange)
   |                          `- note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
85 |     @available(macOS 10.5, *)
86 |     open var allowedInputSourceLocales: [String]? { get set }
/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:39:15: note: calls to instance method 'shouldChangeText(in:replacementString:)' from outside of its actor context are implicitly asynchronous
37 |     open var rangesForUserCharacterAttributeChange: [NSValue]? { get }
38 |     open var rangesForUserParagraphAttributeChange: [NSValue]? { get }
39 |     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
40 |     @available(swift, obsoleted: 3, renamed: "shouldChangeText(in:replacementString:)")
41 |     open func shouldChangeTextInRange(_ affectedCharRange: NSRange, replacementString: String?) -> Bool
/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:42:15: note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
40 |     @available(swift, obsoleted: 3, renamed: "shouldChangeText(in:replacementString:)")
41 |     open func shouldChangeTextInRange(_ affectedCharRange: NSRange, replacementString: String?) -> Bool
42 |     open func didChangeText()
   |               `- note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
43 |     open var rangeForUserTextChange: NSRange { get }
44 |     open var rangeForUserCharacterAttributeChange: NSRange { get }
[26/28] Compiling TextBufferTesting assertBufferState.swift
[27/28] Compiling TextBufferTesting MakeBufferWithSelectionFromString.swift
[28/28] Emitting module TextBufferTesting
Build complete! (23.06s)
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.