Build Information
Successful build of DeclarativeTextKit, reference main (141903
), with Swift 6.0 for macOS (SPM) on 8 Nov 2024 17:41:07 UTC.
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.57.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CleanCocoa/DeclarativeTextKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CleanCocoa/DeclarativeTextKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 1419034 remove equal ranges special case because the other checks cover this
Cloned https://github.com/CleanCocoa/DeclarativeTextKit.git
Revision (git rev-parse @):
1419034a113bee3bf37cf7a32021e6e89dfec0aa
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/CleanCocoa/DeclarativeTextKit.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": "declarativetextkit",
"name": "DeclarativeTextKit",
"url": "https://github.com/CleanCocoa/DeclarativeTextKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DeclarativeTextKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/CleanCocoa/DeclarativeTextKit.git
[1/1991] Fetching declarativetextkit
Fetched https://github.com/CleanCocoa/DeclarativeTextKit.git from cache (0.88s)
Creating working copy for https://github.com/CleanCocoa/DeclarativeTextKit.git
Working copy of https://github.com/CleanCocoa/DeclarativeTextKit.git resolved at main (1419034)
warning: '.resolve-product-dependencies': dependency 'declarativetextkit' 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/DeclarativeTextKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/50] Compiling DeclarativeTextKit Undoable.swift
[5/50] Compiling DeclarativeTextKit Debug.swift
[6/50] Compiling DeclarativeTextKit Expression.swift
[7/50] Compiling DeclarativeTextKit If.swift
[8/50] Compiling DeclarativeTextKit IfLet.swift
[9/55] Compiling DeclarativeTextKit NSRange+BufferRangeExpression.swift
[10/55] Compiling DeclarativeTextKit Select.swift
[11/55] Compiling DeclarativeTextKit SelectedRange+BufferRangeExpression.swift
[12/55] Compiling DeclarativeTextKit WordRange.swift
[13/55] Compiling DeclarativeTextKit NSRange+Order.swift
[14/55] Emitting module DeclarativeTextKit
/Users/admin/builder/spi-builder-workspace/Sources/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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 }
[15/55] Compiling DeclarativeTextKit Insert+Modification.swift
[16/55] Compiling DeclarativeTextKit Insert.swift
[17/55] Compiling DeclarativeTextKit Insertable.swift
[18/55] Compiling DeclarativeTextKit Line.swift
[19/55] Compiling DeclarativeTextKit String+Insertable.swift
[20/55] Compiling DeclarativeTextKit Word.swift
[21/55] Compiling DeclarativeTextKit Modification.swift
[22/55] Compiling DeclarativeTextKit ModificationBuilder.swift
[23/55] Compiling DeclarativeTextKit ModificationSequence.swift
[24/55] Compiling DeclarativeTextKit Modifying.swift
[25/55] Compiling DeclarativeTextKit ScopedBufferSlice.swift
[26/55] Compiling DeclarativeTextKit AffectedRange.swift
[27/55] Compiling DeclarativeTextKit Buffer+SelectRangeExpression.swift
[28/55] Compiling DeclarativeTextKit BufferRangeExpression.swift
[29/55] Compiling DeclarativeTextKit LineRange.swift
[30/55] Compiling DeclarativeTextKit Bool+inverted.swift
[31/55] Compiling DeclarativeTextKit Buffer+contains.swift
[32/55] Compiling DeclarativeTextKit Buffer+evaluate.swift
[33/55] Compiling DeclarativeTextKit Buffer+wordRange.swift
[34/55] Compiling DeclarativeTextKit Buffer.swift
[35/55] Compiling DeclarativeTextKit BufferAccessFailure.swift
[36/55] Compiling DeclarativeTextKit NSRange+Resized.swift
[37/55] Compiling DeclarativeTextKit NSRange+Shifted.swift
[38/55] Compiling DeclarativeTextKit NSRange+Subtracting.swift
[39/55] Compiling DeclarativeTextKit NSRange+containsRange.swift
[40/55] Compiling DeclarativeTextKit NSRange+expandedToOther.swift
[41/55] Compiling DeclarativeTextKit ChangeInLength+Consume.swift
[42/55] Compiling DeclarativeTextKit ChangeInLength.swift
[43/55] Compiling DeclarativeTextKit Delete+Modification.swift
[44/55] Compiling DeclarativeTextKit Delete.swift
[45/55] Compiling DeclarativeTextKit Identity.swift
[46/55] Compiling DeclarativeTextKit NSRange+notFound.swift
[47/55] Compiling DeclarativeTextKit NSRange+prefix.swift
[48/55] Compiling DeclarativeTextKit NSRange+suffix.swift
[49/55] Compiling DeclarativeTextKit NSString+locationUpToCharacter.swift
[50/55] Compiling DeclarativeTextKit SortedArray.swift
[51/55] Compiling DeclarativeTextKit MutableStringBuffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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 }
/Users/admin/builder/spi-builder-workspace/Sources/DeclarativeTextKit/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 | }
[52/55] Compiling DeclarativeTextKit NSMutableString+BufferCompatibility.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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 }
/Users/admin/builder/spi-builder-workspace/Sources/DeclarativeTextKit/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 | }
[53/55] Compiling DeclarativeTextKit NSTextViewBuffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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 }
/Users/admin/builder/spi-builder-workspace/Sources/DeclarativeTextKit/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 | }
[54/55] Compiling DeclarativeTextKit UTF16.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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 }
/Users/admin/builder/spi-builder-workspace/Sources/DeclarativeTextKit/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 | }
[55/55] Compiling DeclarativeTextKit Undoable+NSTextViewBuffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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/DeclarativeTextKit/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 }
/Users/admin/builder/spi-builder-workspace/Sources/DeclarativeTextKit/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 | }
[56/58] Compiling DeclarativeTextKitTesting assertBufferState.swift
[57/58] Compiling DeclarativeTextKitTesting MakeBufferWithSelectionFromString.swift
[58/58] Emitting module DeclarativeTextKitTesting
Build complete! (24.90s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "DeclarativeTextKit",
"name" : "DeclarativeTextKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "DeclarativeTextKit",
"targets" : [
"DeclarativeTextKit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DeclarativeTextKitTesting",
"targets" : [
"DeclarativeTextKitTesting"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DeclarativeTextKitTests",
"module_type" : "SwiftTarget",
"name" : "DeclarativeTextKitTests",
"path" : "Tests/DeclarativeTextKitTests",
"sources" : [
"AffectedRangeTests.swift",
"AssertModification.swift",
"BufferWordRangeTests.swift",
"ConditionalTests.swift",
"DeleteTests.swift",
"Helpers.swift",
"InsertTests.swift",
"LoggingUndoManager.swift",
"MakeBufferWithSelectionFromStringTests.swift",
"ModifyingTests.swift",
"MutableStringBufferTests.swift",
"NSRange+ContainsTests.swift",
"NSRange+OrderTests.swift",
"NSRange+ResizedTests.swift",
"NSRange+ShiftedTests.swift",
"NSRange+SubtractingTests.swift",
"NSTextViewBufferTests.swift",
"ScopedBufferSliceTests.swift",
"SelectTests.swift",
"UndoableBufferTests.swift",
"UseCaseTests.swift"
],
"target_dependencies" : [
"DeclarativeTextKit",
"DeclarativeTextKitTesting"
],
"type" : "test"
},
{
"c99name" : "DeclarativeTextKitTesting",
"module_type" : "SwiftTarget",
"name" : "DeclarativeTextKitTesting",
"path" : "Sources/DeclarativeTextKitTesting",
"product_memberships" : [
"DeclarativeTextKitTesting"
],
"sources" : [
"MakeBufferWithSelectionFromString.swift",
"assertBufferState.swift"
],
"target_dependencies" : [
"DeclarativeTextKit"
],
"type" : "library"
},
{
"c99name" : "DeclarativeTextKit",
"module_type" : "SwiftTarget",
"name" : "DeclarativeTextKit",
"path" : "Sources/DeclarativeTextKit",
"product_memberships" : [
"DeclarativeTextKit",
"DeclarativeTextKitTesting"
],
"sources" : [
"Bool+inverted.swift",
"Buffer/Buffer+contains.swift",
"Buffer/Buffer+evaluate.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",
"Expression/Debug.swift",
"Expression/Expression.swift",
"Expression/If.swift",
"Expression/IfLet.swift",
"Expression/Modification/ChangeInLength+Consume.swift",
"Expression/Modification/ChangeInLength.swift",
"Expression/Modification/Delete/Delete+Modification.swift",
"Expression/Modification/Delete/Delete.swift",
"Expression/Modification/Identity.swift",
"Expression/Modification/Insert/Insert+Modification.swift",
"Expression/Modification/Insert/Insert.swift",
"Expression/Modification/Insert/Insertable.swift",
"Expression/Modification/Insert/Line.swift",
"Expression/Modification/Insert/String+Insertable.swift",
"Expression/Modification/Insert/Word.swift",
"Expression/Modification/Modification.swift",
"Expression/Modification/ModificationBuilder.swift",
"Expression/Modification/ModificationSequence.swift",
"Expression/Modification/Modifying.swift",
"Expression/Modification/ScopedBufferSlice.swift",
"Expression/Select/AffectedRange.swift",
"Expression/Select/Buffer+SelectRangeExpression.swift",
"Expression/Select/BufferRangeExpression.swift",
"Expression/Select/LineRange.swift",
"Expression/Select/NSRange+BufferRangeExpression.swift",
"Expression/Select/Select.swift",
"Expression/Select/SelectedRange+BufferRangeExpression.swift",
"Expression/Select/WordRange.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",
"SortedArray.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/cleancocoa/declarativetextkit/main
Repository: CleanCocoa/DeclarativeTextKit
Swift version used: 6.0
Target: DeclarativeTextKit
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
* branch 88815688627177b9716a01ca41da19397bd30e47 -> FETCH_HEAD
HEAD is now at 8881568 Update the artifact
Extracting symbol information for 'DeclarativeTextKit'...
Finished extracting symbol information for 'DeclarativeTextKit'. (5.15s)
Building documentation for 'DeclarativeTextKit'...
warning: 'evaluate(in:)' doesn't exist at '/DeclarativeTextKit/Modification'
--> Runtime.md:31:64-31:77
29 | ## What is 'Runtime'?
30 |
31 + In the example above, step (3), the call to any ``Modification/evaluate(in:)`` starts the evaluation, including buffer mutations. That's the 'runtime'.
32 |
33 | During evaluation or 'runtime', ``AffectedRange`` values will self-update to represent changes to the selection in a buffer.
warning: 'evaluate(in:)' doesn't exist at '/DeclarativeTextKit/Modification'
--> Runtime.md:93:361-93:374
91 | That's why we don't support `if` in the Result Builder syntax: Because your expectations will not be met!
92 |
93 + Both conditions are checked at 'build time'. So if `fullRange.length == 0`, the Result Builder will insert the first block into the ``ModificationSequence``. But it won't insert the second block into the sequence, because as the second condition is evaluated, `fullRange.length` is still `0`. It will only change to `12` during 'runtime', when ``Modification/evaluate(in:)`` is executed -- which is *after* the ``ModificationSequence`` has been assembled by the Result Builder.
94 |
95 | So your actual result
warning: 'evaluate(in:)' doesn't exist at '/DeclarativeTextKit/Modification'
--> Runtime.md:103:83-103:96
101 | ## Solution: Evaluate Declarations Lazily
102 |
103 + Where possible, we can delay evaluation of Swift expressions until ``Modification/evaluate(in:)`` is run by wrapping values in closures, which are invisible thanks to `@autoclosure`.
104 |
105 | That's how a `Select(fullRange)` will always use the ``AffectedRange/value`` value that is available at 'runtime', not 'build time'.Finished building documentation for 'DeclarativeTextKit' (0.22s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/cleancocoa/declarativetextkit/main
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.27s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (2.65s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3168] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.38s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.73s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Building for debugging...
[0/8] Write sources
[3/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/53] Compiling SymbolKit Mixin+Equals.swift
[7/53] Compiling SymbolKit Mixin+Hash.swift
[8/53] Compiling SymbolKit Mixin.swift
[9/53] Compiling SymbolKit LineList.swift
[10/53] Compiling SymbolKit Position.swift
[11/57] Compiling SymbolKit DeclarationFragments.swift
[12/57] Compiling SymbolKit Fragment.swift
[13/57] Compiling SymbolKit FragmentKind.swift
[14/57] Compiling SymbolKit FunctionParameter.swift
[15/57] Compiling SymbolKit FunctionSignature.swift
[16/57] Emitting module SymbolKit
[17/57] Compiling SymbolKit SemanticVersion.swift
[18/57] Compiling SymbolKit AccessControl.swift
[19/57] Compiling SymbolKit Availability.swift
[20/57] Compiling SymbolKit AvailabilityItem.swift
[21/57] Compiling SymbolKit Domain.swift
[22/57] Compiling SymbolKit SourceRange.swift
[23/57] Compiling SymbolKit Metadata.swift
[24/57] Compiling SymbolKit Module.swift
[25/57] Compiling SymbolKit OperatingSystem.swift
[26/57] Compiling SymbolKit Platform.swift
[27/57] Compiling SymbolKit Relationship.swift
[28/57] Compiling SymbolKit RelationshipKind.swift
[29/57] Compiling SymbolKit SourceOrigin.swift
[30/57] Compiling SymbolKit GenericConstraints.swift
[31/57] Compiling SymbolKit Swift.swift
[32/57] Compiling SymbolKit Names.swift
[33/57] Compiling SymbolKit SPI.swift
[34/57] Compiling SymbolKit Snippet.swift
[35/57] Compiling SymbolKit Extension.swift
[36/57] Compiling SymbolKit Identifier.swift
[37/57] Compiling SymbolKit KindIdentifier.swift
[38/57] Compiling SymbolKit Location.swift
[39/57] Compiling SymbolKit Mutability.swift
[40/57] Compiling SymbolKit GenericConstraint.swift
[41/57] Compiling SymbolKit GenericParameter.swift
[42/57] Compiling SymbolKit Generics.swift
[43/57] Compiling SymbolKit Namespace.swift
[44/57] Compiling SymbolKit Symbol.swift
[45/57] Compiling SymbolKit SymbolKind.swift
[46/57] Compiling SymbolKit SymbolGraph.swift
[47/57] Compiling SymbolKit GraphCollector.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Compiling Snippets SnippetParser.swift
[53/57] Emitting module Snippets
[54/57] Compiling Snippets Snippet.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.47s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/48] Compiling DeclarativeTextKit ScopedBufferSlice.swift
[3/48] Compiling DeclarativeTextKit AffectedRange.swift
[4/48] Compiling DeclarativeTextKit Buffer+SelectRangeExpression.swift
[5/48] Compiling DeclarativeTextKit BufferRangeExpression.swift
[6/48] Compiling DeclarativeTextKit LineRange.swift
[7/53] Compiling DeclarativeTextKit NSRange+BufferRangeExpression.swift
[8/53] Compiling DeclarativeTextKit Select.swift
[9/53] Compiling DeclarativeTextKit SelectedRange+BufferRangeExpression.swift
[10/53] Compiling DeclarativeTextKit WordRange.swift
[11/53] Compiling DeclarativeTextKit NSRange+Order.swift
[12/53] Compiling DeclarativeTextKit NSRange+Resized.swift
[13/53] Compiling DeclarativeTextKit NSRange+Shifted.swift
[14/53] Compiling DeclarativeTextKit NSRange+Subtracting.swift
[15/53] Compiling DeclarativeTextKit NSRange+containsRange.swift
[16/53] Compiling DeclarativeTextKit NSRange+expandedToOther.swift
[17/53] Compiling DeclarativeTextKit MutableStringBuffer.swift
[18/53] Compiling DeclarativeTextKit NSMutableString+BufferCompatibility.swift
[19/53] Compiling DeclarativeTextKit NSTextViewBuffer.swift
[20/53] Compiling DeclarativeTextKit UTF16.swift
[21/53] Compiling DeclarativeTextKit Undoable+NSTextViewBuffer.swift
[22/53] Compiling DeclarativeTextKit Undoable.swift
[23/53] Compiling DeclarativeTextKit Debug.swift
[24/53] Compiling DeclarativeTextKit Expression.swift
[25/53] Compiling DeclarativeTextKit If.swift
[26/53] Compiling DeclarativeTextKit IfLet.swift
[27/53] Compiling DeclarativeTextKit Insert+Modification.swift
[28/53] Compiling DeclarativeTextKit Insert.swift
[29/53] Compiling DeclarativeTextKit Insertable.swift
[30/53] Compiling DeclarativeTextKit Line.swift
[31/53] Compiling DeclarativeTextKit String+Insertable.swift
[32/53] Compiling DeclarativeTextKit ChangeInLength+Consume.swift
[33/53] Compiling DeclarativeTextKit ChangeInLength.swift
[34/53] Compiling DeclarativeTextKit Delete+Modification.swift
[35/53] Compiling DeclarativeTextKit Delete.swift
[36/53] Compiling DeclarativeTextKit Identity.swift
[37/53] Compiling DeclarativeTextKit Bool+inverted.swift
[38/53] Compiling DeclarativeTextKit Buffer+contains.swift
[39/53] Compiling DeclarativeTextKit Buffer+evaluate.swift
[40/53] Compiling DeclarativeTextKit Buffer+wordRange.swift
[41/53] Compiling DeclarativeTextKit Buffer.swift
[42/53] Compiling DeclarativeTextKit BufferAccessFailure.swift
[43/53] Compiling DeclarativeTextKit Word.swift
[44/53] Compiling DeclarativeTextKit Modification.swift
[45/53] Compiling DeclarativeTextKit ModificationBuilder.swift
[46/53] Compiling DeclarativeTextKit ModificationSequence.swift
[47/53] Compiling DeclarativeTextKit Modifying.swift
[48/53] Emitting module DeclarativeTextKit
[49/53] Compiling DeclarativeTextKit NSRange+notFound.swift
[50/53] Compiling DeclarativeTextKit NSRange+prefix.swift
[51/53] Compiling DeclarativeTextKit NSRange+suffix.swift
[52/53] Compiling DeclarativeTextKit NSString+locationUpToCharacter.swift
[53/53] Compiling DeclarativeTextKit SortedArray.swift
Build of target: 'DeclarativeTextKit' complete! (1.37s)
630
5 /Users/admin/builder/spi-builder-workspace/.docs/cleancocoa/declarativetextkit/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/cleancocoa/declarativetextkit/main
File count: 630
Doc size: 5.0MB
Preparing doc bundle ...
Uploading prod-cleancocoa-declarativetextkit-main-a39d2910.zip to s3://spi-docs-inbox/prod-cleancocoa-declarativetextkit-main-a39d2910.zip
Copying... [12%]
Copying... [24%]
Copying... [36%]
Copying... [41%]
Copying... [53%]
Copying... [65%]
Copying... [71%]
Copying... [83%]
Copying... [95%]
Copying... [100%]
Done.