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 0.1.0 (b444d6), with Swift 6.0 for macOS (SPM) on 24 Jan 2025 07:50:17 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: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CleanCocoa/TextBuffer
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at b444d60 add README
Cloned https://github.com/CleanCocoa/TextBuffer.git
Revision (git rev-parse @):
b444d6033cb2f3dc9b3efa284e7ba1e0dfd2148d
SUCCESS checkout https://github.com/CleanCocoa/TextBuffer.git at 0.1.0
========================================
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/64] Fetching textbuffer
Fetched https://github.com/CleanCocoa/TextBuffer.git from cache (0.64s)
Creating working copy for https://github.com/CleanCocoa/TextBuffer.git
Working copy of https://github.com/CleanCocoa/TextBuffer.git resolved at 0.1.0 (b444d60)
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:29: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
 27 |     @inlinable
 28 |     open var selectedRange: Buffer.Range {
 29 |         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
 30 |         set { textView.selectedRange = newValue }
 31 |     }
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:30: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
 28 |     open var selectedRange: Buffer.Range {
 29 |         get { textView.selectedRange }
 30 |         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
 31 |     }
 32 |
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:34: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")
    :
 32 |
 33 |     @inlinable
 34 |     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
 35 |
 36 |     @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:37: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")
    :
 35 |
 36 |     @inlinable
 37 |     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
 38 |
 39 |     /// Wraps `textView` as the target of all ``Buffer`` related actions.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:47: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
 44 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 45 |     @inlinable
 46 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 47 |         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
 48 |         defer { textView.textStorage?.endEditing() }
 49 |         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:48: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
 44 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 45 |     @inlinable
 46 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 47 |         textView.textStorage?.beginEditing()
 48 |         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
 49 |         return try body()
 50 |     }
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:60: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")
    :
 51 |
 52 |     @inlinable
 53 |     open func lineRange(for searchRange: Buffer.Range) throws -> Buffer.Range {
    |               `- note: add '@MainActor' to make instance method 'lineRange(for:)' part of global actor 'MainActor'
 54 |         guard contains(range: searchRange) else {
 55 |             throw BufferAccessFailure.outOfRange(
    :
 58 |             )
 59 |         }
 60 |         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
 61 |     }
 62 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:72: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")
    :
 62 |
 63 |     @inlinable
 64 |     open func content(in subrange: UTF16Range) throws -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'content(in:)' part of global actor 'MainActor'
 65 |         guard contains(range: subrange) else {
 66 |             throw BufferAccessFailure.outOfRange(
    :
 70 |         }
 71 |
 72 |         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
 73 |     }
 74 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:78: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")
    :
 74 |
 75 |     @inlinable
 76 |     open func unsafeCharacter(at location: Buffer.Location) -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'unsafeCharacter(at:)' part of global actor 'MainActor'
 77 |         // Raises an `NSExceptionName` of name `.rangeException` if `location` is out of bounds.
 78 |         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
 79 |     }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:91: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")
    :
 89 |
 90 |         wrapAsEditing {
 91 |             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
 92 |         }
 93 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:105: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")
    :
103 |
104 |         wrapAsEditing {
105 |             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
106 |         }
107 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:118: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
108 |
109 |     @inlinable
110 |     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'
111 |         guard contains(range: replacementRange) else {
112 |             throw BufferAccessFailure.outOfRange(requested: replacementRange, available: self.range)
    :
116 |         defer {
117 |             // 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.
118 |             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
119 |                 .subtracting(replacementRange)
120 |                 .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:124: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")
    :
122 |
123 |         wrapAsEditing {
124 |             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
125 |         }
126 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:130: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
127 |
128 |     @inlinable
129 |     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'
130 |         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
131 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
132 |         }
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:133: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
127 |
128 |     @inlinable
129 |     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'
130 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
131 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
132 |         }
133 |         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
134 |
135 |         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 NSRange+notFound.swift
[8/25] Compiling TextBuffer NSRange+prefix.swift
[9/25] Compiling TextBuffer NSRange+Order.swift
[10/25] Compiling TextBuffer NSRange+Resized.swift
[11/25] Compiling TextBuffer NSRange+containsRange.swift
[12/25] Compiling TextBuffer NSRange+expandedToOther.swift
[13/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 | }
[14/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 | }
[15/25] Compiling TextBuffer NSRange+Shifted.swift
[16/25] Compiling TextBuffer NSRange+Subtracting.swift
[17/25] Compiling TextBuffer MutableStringBuffer.swift
[18/25] Compiling TextBuffer NSMutableString+BufferCompatibility.swift
[19/25] Compiling TextBuffer NSTextViewBuffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:29: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
 27 |     @inlinable
 28 |     open var selectedRange: Buffer.Range {
 29 |         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
 30 |         set { textView.selectedRange = newValue }
 31 |     }
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:30: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
 28 |     open var selectedRange: Buffer.Range {
 29 |         get { textView.selectedRange }
 30 |         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
 31 |     }
 32 |
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:34: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")
    :
 32 |
 33 |     @inlinable
 34 |     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
 35 |
 36 |     @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:37: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")
    :
 35 |
 36 |     @inlinable
 37 |     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
 38 |
 39 |     /// Wraps `textView` as the target of all ``Buffer`` related actions.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:47: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
 44 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 45 |     @inlinable
 46 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 47 |         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
 48 |         defer { textView.textStorage?.endEditing() }
 49 |         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:48: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
 44 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 45 |     @inlinable
 46 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 47 |         textView.textStorage?.beginEditing()
 48 |         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
 49 |         return try body()
 50 |     }
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:60: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")
    :
 51 |
 52 |     @inlinable
 53 |     open func lineRange(for searchRange: Buffer.Range) throws -> Buffer.Range {
    |               `- note: add '@MainActor' to make instance method 'lineRange(for:)' part of global actor 'MainActor'
 54 |         guard contains(range: searchRange) else {
 55 |             throw BufferAccessFailure.outOfRange(
    :
 58 |             )
 59 |         }
 60 |         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
 61 |     }
 62 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:72: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")
    :
 62 |
 63 |     @inlinable
 64 |     open func content(in subrange: UTF16Range) throws -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'content(in:)' part of global actor 'MainActor'
 65 |         guard contains(range: subrange) else {
 66 |             throw BufferAccessFailure.outOfRange(
    :
 70 |         }
 71 |
 72 |         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
 73 |     }
 74 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:78: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")
    :
 74 |
 75 |     @inlinable
 76 |     open func unsafeCharacter(at location: Buffer.Location) -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'unsafeCharacter(at:)' part of global actor 'MainActor'
 77 |         // Raises an `NSExceptionName` of name `.rangeException` if `location` is out of bounds.
 78 |         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
 79 |     }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:91: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")
    :
 89 |
 90 |         wrapAsEditing {
 91 |             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
 92 |         }
 93 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:105: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")
    :
103 |
104 |         wrapAsEditing {
105 |             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
106 |         }
107 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:118: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
108 |
109 |     @inlinable
110 |     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'
111 |         guard contains(range: replacementRange) else {
112 |             throw BufferAccessFailure.outOfRange(requested: replacementRange, available: self.range)
    :
116 |         defer {
117 |             // 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.
118 |             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
119 |                 .subtracting(replacementRange)
120 |                 .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:124: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")
    :
122 |
123 |         wrapAsEditing {
124 |             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
125 |         }
126 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:130: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
127 |
128 |     @inlinable
129 |     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'
130 |         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
131 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
132 |         }
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:133: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
127 |
128 |     @inlinable
129 |     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'
130 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
131 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
132 |         }
133 |         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
134 |
135 |         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 }
[20/25] Compiling TextBuffer UTF16.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:29: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
 27 |     @inlinable
 28 |     open var selectedRange: Buffer.Range {
 29 |         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
 30 |         set { textView.selectedRange = newValue }
 31 |     }
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:30: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
 28 |     open var selectedRange: Buffer.Range {
 29 |         get { textView.selectedRange }
 30 |         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
 31 |     }
 32 |
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:34: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")
    :
 32 |
 33 |     @inlinable
 34 |     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
 35 |
 36 |     @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:37: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")
    :
 35 |
 36 |     @inlinable
 37 |     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
 38 |
 39 |     /// Wraps `textView` as the target of all ``Buffer`` related actions.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:47: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
 44 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 45 |     @inlinable
 46 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 47 |         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
 48 |         defer { textView.textStorage?.endEditing() }
 49 |         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:48: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
 44 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 45 |     @inlinable
 46 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 47 |         textView.textStorage?.beginEditing()
 48 |         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
 49 |         return try body()
 50 |     }
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:60: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")
    :
 51 |
 52 |     @inlinable
 53 |     open func lineRange(for searchRange: Buffer.Range) throws -> Buffer.Range {
    |               `- note: add '@MainActor' to make instance method 'lineRange(for:)' part of global actor 'MainActor'
 54 |         guard contains(range: searchRange) else {
 55 |             throw BufferAccessFailure.outOfRange(
    :
 58 |             )
 59 |         }
 60 |         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
 61 |     }
 62 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:72: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")
    :
 62 |
 63 |     @inlinable
 64 |     open func content(in subrange: UTF16Range) throws -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'content(in:)' part of global actor 'MainActor'
 65 |         guard contains(range: subrange) else {
 66 |             throw BufferAccessFailure.outOfRange(
    :
 70 |         }
 71 |
 72 |         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
 73 |     }
 74 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:78: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")
    :
 74 |
 75 |     @inlinable
 76 |     open func unsafeCharacter(at location: Buffer.Location) -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'unsafeCharacter(at:)' part of global actor 'MainActor'
 77 |         // Raises an `NSExceptionName` of name `.rangeException` if `location` is out of bounds.
 78 |         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
 79 |     }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:91: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")
    :
 89 |
 90 |         wrapAsEditing {
 91 |             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
 92 |         }
 93 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:105: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")
    :
103 |
104 |         wrapAsEditing {
105 |             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
106 |         }
107 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:118: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
108 |
109 |     @inlinable
110 |     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'
111 |         guard contains(range: replacementRange) else {
112 |             throw BufferAccessFailure.outOfRange(requested: replacementRange, available: self.range)
    :
116 |         defer {
117 |             // 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.
118 |             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
119 |                 .subtracting(replacementRange)
120 |                 .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:124: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")
    :
122 |
123 |         wrapAsEditing {
124 |             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
125 |         }
126 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:130: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
127 |
128 |     @inlinable
129 |     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'
130 |         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
131 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
132 |         }
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:133: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
127 |
128 |     @inlinable
129 |     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'
130 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
131 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
132 |         }
133 |         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
134 |
135 |         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 }
[21/25] Compiling TextBuffer Buffer.swift
[22/25] Compiling TextBuffer BufferAccessFailure.swift
[23/25] Compiling TextBuffer Bool+inverted.swift
[24/25] Compiling TextBuffer Buffer+contains.swift
[25/25] Compiling TextBuffer Buffer+wordRange.swift
[26/28] Emitting module TextBufferTesting
[27/28] Compiling TextBufferTesting assertBufferState.swift
[28/28] Compiling TextBufferTesting MakeBufferWithSelectionFromString.swift
Build complete! (23.50s)
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.