Build Information
Successful build of DeclarativeTextKit, reference main (141903
), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 09:43:54 UTC.
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.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
========================================
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.0.0-Release.Candidate.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-117DEE11B69C53C9.txt
[4/50] Compiling DeclarativeTextKit Insert+Modification.swift
[5/50] Compiling DeclarativeTextKit Insert.swift
[6/50] Compiling DeclarativeTextKit Insertable.swift
[7/50] Compiling DeclarativeTextKit Line.swift
[8/50] Compiling DeclarativeTextKit String+Insertable.swift
[9/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 }
[10/55] Compiling DeclarativeTextKit Bool+inverted.swift
[11/55] Compiling DeclarativeTextKit Buffer+contains.swift
[12/55] Compiling DeclarativeTextKit Buffer+evaluate.swift
[13/55] Compiling DeclarativeTextKit Buffer+wordRange.swift
[14/55] Compiling DeclarativeTextKit Buffer.swift
[15/55] Compiling DeclarativeTextKit BufferAccessFailure.swift
[16/55] Compiling DeclarativeTextKit Undoable.swift
[17/55] Compiling DeclarativeTextKit Debug.swift
[18/55] Compiling DeclarativeTextKit Expression.swift
[19/55] Compiling DeclarativeTextKit If.swift
[20/55] Compiling DeclarativeTextKit IfLet.swift
[21/55] Compiling DeclarativeTextKit ScopedBufferSlice.swift
[22/55] Compiling DeclarativeTextKit AffectedRange.swift
[23/55] Compiling DeclarativeTextKit Buffer+SelectRangeExpression.swift
[24/55] Compiling DeclarativeTextKit BufferRangeExpression.swift
[25/55] Compiling DeclarativeTextKit LineRange.swift
[26/55] Compiling DeclarativeTextKit NSRange+BufferRangeExpression.swift
[27/55] Compiling DeclarativeTextKit Select.swift
[28/55] Compiling DeclarativeTextKit SelectedRange+BufferRangeExpression.swift
[29/55] Compiling DeclarativeTextKit WordRange.swift
[30/55] Compiling DeclarativeTextKit NSRange+Order.swift
[31/55] Compiling DeclarativeTextKit ChangeInLength+Consume.swift
[32/55] Compiling DeclarativeTextKit ChangeInLength.swift
[33/55] Compiling DeclarativeTextKit Delete+Modification.swift
[34/55] Compiling DeclarativeTextKit Delete.swift
[35/55] Compiling DeclarativeTextKit Identity.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 Word.swift
[42/55] Compiling DeclarativeTextKit Modification.swift
[43/55] Compiling DeclarativeTextKit ModificationBuilder.swift
[44/55] Compiling DeclarativeTextKit ModificationSequence.swift
[45/55] Compiling DeclarativeTextKit Modifying.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] Emitting module DeclarativeTextKitTesting
[57/58] Compiling DeclarativeTextKitTesting MakeBufferWithSelectionFromString.swift
[58/58] Compiling DeclarativeTextKitTesting assertBufferState.swift
Build complete! (22.68s)
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"
}
Done.