Build Information
Successful build of STTextView, reference 2.0.6 (63b90a
), with Swift 6.0 for macOS (SPM) on 21 Apr 2025 20:26:06 UTC.
Swift 6 data race errors: 91
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
36 |
37 | var font: Font { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:93:22: warning: main actor-isolated property 'font' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
91 | /// If you want to apply the font to only a portion of the text, you must create a new attributed string with the desired style information and assign it
92 | @MainActor
93 | @objc public var font: NSFont {
| `- warning: main actor-isolated property 'font' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
94 | get {
95 | _defaultTypingAttributes[.font] as! NSFont
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:37:9: note: 'font' declared here
35 | var showsInvisibleCharacters: Bool { get set }
36 |
37 | var font: Font { get set }
| `- note: 'font' declared here
38 | var textColor: Color { get set }
39 | var defaultParagraphStyle: NSParagraphStyle { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:116:22: warning: main actor-isolated property 'textColor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
114 | /// Default text color.
115 | @MainActor
116 | @objc public var textColor: NSColor {
| `- warning: main actor-isolated property 'textColor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
117 | get {
118 | _defaultTypingAttributes[.foregroundColor] as! NSColor
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:38:9: note: 'textColor' declared here
36 |
37 | var font: Font { get set }
38 | var textColor: Color { get set }
| `- note: 'textColor' declared here
39 | var defaultParagraphStyle: NSParagraphStyle { get set }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:128:22: warning: main actor-isolated property 'defaultParagraphStyle' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
126 | /// Default paragraph style.
127 | @MainActor
128 | @objc public var defaultParagraphStyle: NSParagraphStyle {
| `- warning: main actor-isolated property 'defaultParagraphStyle' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
129 | set {
130 | _defaultTypingAttributes[.paragraphStyle] = newValue
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:39:9: note: 'defaultParagraphStyle' declared here
37 | var font: Font { get set }
38 | var textColor: Color { get set }
39 | var defaultParagraphStyle: NSParagraphStyle { get set }
| `- note: 'defaultParagraphStyle' declared here
40 |
41 | var typingAttributes: [NSAttributedString.Key: Any] { get }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:148:36: warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
146 | /// This dictionary contains the attribute keys (and corresponding values) to apply to newly typed text.
147 | /// When the text view’s selection changes, the contents of the dictionary are reset automatically.
148 | @objc public internal(set) var typingAttributes: [NSAttributedString.Key: Any] {
| `- warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
149 | get {
150 | _typingAttributes.merging(_defaultTypingAttributes) { (current, _) in current }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:41:9: note: 'typingAttributes' declared here
39 | var defaultParagraphStyle: NSParagraphStyle { get set }
40 |
41 | var typingAttributes: [NSAttributedString.Key: Any] { get }
| `- note: 'typingAttributes' declared here
42 |
43 | var text: String? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:239:22: warning: main actor-isolated property 'text' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
237 | /// For performance reasons, this value is the current backing store of the text object.
238 | /// If you want to maintain a snapshot of this as you manipulate the text storage, you should make a copy of the appropriate substring.
239 | @objc public var text: String? {
| `- warning: main actor-isolated property 'text' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
240 | set {
241 | let prevLocation = textLayoutManager.insertionPointLocations.first
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:43:9: note: 'text' declared here
41 | var typingAttributes: [NSAttributedString.Key: Any] { get }
42 |
43 | var text: String? { get set }
| `- note: 'text' declared here
44 | var attributedText: NSAttributedString? { get set }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:261:22: warning: main actor-isolated property 'attributedText' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
259 | ///
260 | /// Assigning a new value to this property also replaces the value of the `text` property with the same string data, albeit without any formatting information. In addition, the `font`, `textColor`, and `textAlignment` properties are updated to reflect the typing attributes of the text view.
261 | @objc public var attributedText: NSAttributedString? {
| `- warning: main actor-isolated property 'attributedText' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
262 | set {
263 | let prevLocation = textLayoutManager.insertionPointLocations.first
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:44:9: note: 'attributedText' declared here
42 |
43 | var text: String? { get set }
44 | var attributedText: NSAttributedString? { get set }
| `- note: 'attributedText' declared here
45 |
46 | var isEditable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:42:28: warning: main actor-isolated property 'isEditable' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
40 | /// A Boolean value that controls whether the text view allows the user to edit text.
41 | @Invalidating(.insertionPoint, .cursorRects)
42 | @objc dynamic open var isEditable: Bool = true {
| `- warning: main actor-isolated property 'isEditable' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
43 | didSet {
44 | if isEditable == true {
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:46:9: note: 'isEditable' declared here
44 | var attributedText: NSAttributedString? { get set }
45 |
46 | var isEditable: Bool { get set }
| `- note: 'isEditable' declared here
47 | var isSelectable: Bool { get set }
48 | var allowsUndo: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:52:28: warning: main actor-isolated property 'isSelectable' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
50 | /// A Boolean value that controls whether the text views allows the user to select text.
51 | @Invalidating(.insertionPoint, .cursorRects)
52 | @objc dynamic open var isSelectable: Bool = true {
| `- warning: main actor-isolated property 'isSelectable' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
53 | didSet {
54 | if isSelectable == false {
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:47:9: note: 'isSelectable' declared here
45 |
46 | var isEditable: Bool { get set }
47 | var isSelectable: Bool { get set }
| `- note: 'isSelectable' declared here
48 | var allowsUndo: Bool { get set }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:392:28: warning: main actor-isolated property 'allowsUndo' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
390 | ///
391 | /// `true` if the receiver allows undo, otherwise `false`. Default `true`.
392 | @objc dynamic open var allowsUndo: Bool
| `- warning: main actor-isolated property 'allowsUndo' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
393 | internal var _undoManager: UndoManager?
394 | internal var _yankingManager = YankingManager()
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:48:9: note: 'allowsUndo' declared here
46 | var isEditable: Bool { get set }
47 | var isSelectable: Bool { get set }
48 | var allowsUndo: Bool { get set }
| `- note: 'allowsUndo' declared here
49 |
50 | var textDelegate: Delegate? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:419:21: warning: main actor-isolated property 'textDelegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
417 |
418 | /// The delegate for all text views sharing the same layout manager.
419 | public weak var textDelegate: (any STTextViewDelegate)? {
| `- warning: main actor-isolated property 'textDelegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
420 | set {
421 | delegateProxy.source = newValue
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:50:9: note: 'textDelegate' declared here
48 | var allowsUndo: Bool { get set }
49 |
50 | var textDelegate: Delegate? { get set }
| `- note: 'textDelegate' declared here
51 |
52 | var gutterView: GutterView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:357:16: warning: main actor-isolated property 'gutterView' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
355 |
356 | /// Gutter view
357 | public var gutterView: STGutterView?
| `- warning: main actor-isolated property 'gutterView' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
358 | internal var scrollViewFrameObserver: NSKeyValueObservation?
359 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:52:9: note: 'gutterView' declared here
50 | var textDelegate: Delegate? { get set }
51 |
52 | var gutterView: GutterView? { get }
| `- note: 'gutterView' declared here
53 | func toggleRuler(_ sender: Any?)
54 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+Gutter.swift:11:23: warning: main actor-isolated instance method 'toggleRuler' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
9 |
10 | /// This action method shows or hides the ruler, if the receiver is enclosed in a scroll view.
11 | @objc public func toggleRuler(_ sender: Any?) {
| |- warning: main actor-isolated instance method 'toggleRuler' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'toggleRuler' to make this instance method not isolated to the actor
12 | isGutterVisible.toggle()
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:53:10: note: mark the protocol requirement 'toggleRuler' 'async' to allow actor-isolated conformances
51 |
52 | var gutterView: GutterView? { get }
53 | func toggleRuler(_ sender: Any?)
| `- note: mark the protocol requirement 'toggleRuler' 'async' to allow actor-isolated conformances
54 |
55 | var textSelection: NSRange { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:905:16: warning: main actor-isolated property 'textSelection' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
903 | ///
904 | /// If the length of the selection range is 0, indicating that the selection is actually an insertion point
905 | public var textSelection: NSRange {
| `- warning: main actor-isolated property 'textSelection' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
906 | set {
907 | setSelectedRange(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:55:9: note: 'textSelection' declared here
53 | func toggleRuler(_ sender: Any?)
54 |
55 | var textSelection: NSRange { get set }
| `- note: 'textSelection' declared here
56 |
57 | func addAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:934:15: warning: main actor-isolated instance method 'addAttributes(_:range:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
932 |
933 | /// Add attribute. Need `needsViewportLayout = true` to reflect changes.
934 | open func addAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange) {
| |- warning: main actor-isolated instance method 'addAttributes(_:range:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'addAttributes(_:range:)' to make this instance method not isolated to the actor
935 | addAttributes(attrs, range: range, updateLayout: true)
936 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:57:10: note: mark the protocol requirement 'addAttributes(_:range:)' 'async' to allow actor-isolated conformances
55 | var textSelection: NSRange { get set }
56 |
57 | func addAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
| `- note: mark the protocol requirement 'addAttributes(_:range:)' 'async' to allow actor-isolated conformances
58 | func setAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
59 | func removeAttribute(_ attribute: NSAttributedString.Key, range: NSRange)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:962:15: warning: main actor-isolated instance method 'setAttributes(_:range:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
960 |
961 | /// Set attributes.
962 | open func setAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange) {
| |- warning: main actor-isolated instance method 'setAttributes(_:range:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setAttributes(_:range:)' to make this instance method not isolated to the actor
963 | setAttributes(attrs, range: range, updateLayout: true)
964 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:58:10: note: mark the protocol requirement 'setAttributes(_:range:)' 'async' to allow actor-isolated conformances
56 |
57 | func addAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
58 | func setAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
| `- note: mark the protocol requirement 'setAttributes(_:range:)' 'async' to allow actor-isolated conformances
59 | func removeAttribute(_ attribute: NSAttributedString.Key, range: NSRange)
60 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:989:15: warning: main actor-isolated instance method 'removeAttribute(_:range:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
987 |
988 | /// Set attributes. Need `needsViewportLayout = true` to reflect changes.
989 | open func removeAttribute(_ attribute: NSAttributedString.Key, range: NSRange) {
| |- warning: main actor-isolated instance method 'removeAttribute(_:range:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'removeAttribute(_:range:)' to make this instance method not isolated to the actor
990 | removeAttribute(attribute, range: range, updateLayout: true)
991 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:59:10: note: mark the protocol requirement 'removeAttribute(_:range:)' 'async' to allow actor-isolated conformances
57 | func addAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
58 | func setAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
59 | func removeAttribute(_ attribute: NSAttributedString.Key, range: NSRange)
| `- note: mark the protocol requirement 'removeAttribute(_:range:)' 'async' to allow actor-isolated conformances
60 |
61 | func shouldChangeText(in affectedTextRange: NSTextRange, replacementString: String?) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1447:15: warning: main actor-isolated instance method 'shouldChangeText(in:replacementString:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1445 | /// this method should be called with information on the change.
1446 | /// Coalesce consecutive typing events
1447 | open func shouldChangeText(in affectedTextRange: NSTextRange, replacementString: String?) -> Bool {
| |- warning: main actor-isolated instance method 'shouldChangeText(in:replacementString:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'shouldChangeText(in:replacementString:)' to make this instance method not isolated to the actor
1448 | let result = delegateProxy.textView(self, shouldChangeTextIn: affectedTextRange, replacementString: replacementString)
1449 | if !result {
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:61:10: note: mark the protocol requirement 'shouldChangeText(in:replacementString:)' 'async' to allow actor-isolated conformances
59 | func removeAttribute(_ attribute: NSAttributedString.Key, range: NSRange)
60 |
61 | func shouldChangeText(in affectedTextRange: NSTextRange, replacementString: String?) -> Bool
| `- note: mark the protocol requirement 'shouldChangeText(in:replacementString:)' 'async' to allow actor-isolated conformances
62 | func replaceCharacters(in range: NSTextRange, with string: String)
63 | func insertText(_ string: Any, replacementRange: NSRange)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1372:15: warning: main actor-isolated instance method 'replaceCharacters(in:with:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1370 | }
1371 |
1372 | open func replaceCharacters(in range: NSTextRange, with string: String) {
| |- warning: main actor-isolated instance method 'replaceCharacters(in:with:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'replaceCharacters(in:with:)' to make this instance method not isolated to the actor
1373 | replaceCharacters(in: range, with: string, useTypingAttributes: true, allowsTypingCoalescing: false)
1374 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:62:10: note: mark the protocol requirement 'replaceCharacters(in:with:)' 'async' to allow actor-isolated conformances
60 |
61 | func shouldChangeText(in affectedTextRange: NSTextRange, replacementString: String?) -> Bool
62 | func replaceCharacters(in range: NSTextRange, with string: String)
| `- note: mark the protocol requirement 'replaceCharacters(in:with:)' 'async' to allow actor-isolated conformances
63 | func insertText(_ string: Any, replacementRange: NSRange)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+NSTextInputClient.swift:197:21: warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
195 | }
196 |
197 | @objc open func insertText(_ string: Any, replacementRange: NSRange) {
| |- warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'insertText(_:replacementRange:)' to make this instance method not isolated to the actor
198 | unmarkText()
199 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:63:10: note: mark the protocol requirement 'insertText(_:replacementRange:)' 'async' to allow actor-isolated conformances
61 | func shouldChangeText(in affectedTextRange: NSTextRange, replacementString: String?) -> Bool
62 | func replaceCharacters(in range: NSTextRange, with string: String)
63 | func insertText(_ string: Any, replacementRange: NSRange)
| `- note: mark the protocol requirement 'insertText(_:replacementRange:)' 'async' to allow actor-isolated conformances
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:706:13: warning: main actor-isolated property '_yankingManager' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
392 | @objc dynamic open var allowsUndo: Bool
393 | internal var _undoManager: UndoManager?
394 | internal var _yankingManager = YankingManager()
| `- note: property declared here
395 |
396 | internal var markedText: STMarkedText? = nil
:
704 | guard let self = self else { return }
705 |
706 | _yankingManager.selectionChanged()
| `- warning: main actor-isolated property '_yankingManager' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
707 |
708 | let textViewNotification = Notification(name: Self.didChangeSelectionNotification, object: self, userInfo: notification.userInfo)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:708:64: warning: main actor-isolated static property 'didChangeSelectionNotification' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
33 |
34 | /// Sent when the selection range of characters changes.
35 | public static let didChangeSelectionNotification = STTextLayoutManager.didChangeSelectionNotification
| `- note: static property declared here
36 |
37 | /// Installed plugins. events value is available after plugin is setup
:
706 | _yankingManager.selectionChanged()
707 |
708 | let textViewNotification = Notification(name: Self.didChangeSelectionNotification, object: self, userInfo: notification.userInfo)
| `- warning: main actor-isolated static property 'didChangeSelectionNotification' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
709 |
710 | NotificationCenter.default.post(textViewNotification)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:711:18: warning: main actor-isolated property 'delegateProxy' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
428 |
429 | /// Proxy for delegate calls
430 | internal let delegateProxy = STTextViewDelegateProxy(source: nil)
| `- note: property declared here
431 |
432 | /// The manager that lays out text for the text view's text container.
:
709 |
710 | NotificationCenter.default.post(textViewNotification)
711 | self.delegateProxy.textViewDidChangeSelection(textViewNotification)
| `- warning: main actor-isolated property 'delegateProxy' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
712 |
713 | NSAccessibility.post(element: self, notification: .selectedTextChanged)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:716:21: warning: main actor-isolated property 'shouldDimissCompletionOnSelectionChange' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
501 | ///
502 | /// Automatically call ``cancelComplete(_:)`` when `true`.
503 | open var shouldDimissCompletionOnSelectionChange: Bool = true
| `- note: property declared here
504 |
505 | internal var _completionTask: Task<Void, any Error>?
:
714 |
715 | // Cancel completinon on selection change
716 | if self.shouldDimissCompletionOnSelectionChange {
| `- warning: main actor-isolated property 'shouldDimissCompletionOnSelectionChange' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:717:26: warning: main actor-isolated property 'currentEvent' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
715 | // Cancel completinon on selection change
716 | if self.shouldDimissCompletionOnSelectionChange {
717 | if NSApp.currentEvent == nil ||
| `- warning: main actor-isolated property 'currentEvent' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
719 | NSApp.currentEvent?.characters == nil ||
AppKit.NSApplication:4:25: note: property declared here
2 | open func sendEvent(_ event: NSEvent)
3 | open func postEvent(_ event: NSEvent, atStart: Bool)
4 | @MainActor open var currentEvent: NSEvent? { get }
| `- note: property declared here
5 | open func nextEvent(matching mask: NSEvent.EventTypeMask, until expiration: Date?, inMode mode: RunLoop.Mode, dequeue deqFlag: Bool) -> NSEvent?
6 | @available(swift, obsoleted: 3, renamed: "nextEvent(matching:until:inMode:dequeue:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:717:20: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
715 | // Cancel completinon on selection change
716 | if self.shouldDimissCompletionOnSelectionChange {
717 | if NSApp.currentEvent == nil ||
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
719 | NSApp.currentEvent?.characters == nil ||
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:718:28: warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
716 | if self.shouldDimissCompletionOnSelectionChange {
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
| `- warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
719 | NSApp.currentEvent?.characters == nil ||
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
AppKit.NSApplication:4:25: note: property declared here
2 | open func sendEvent(_ event: NSEvent)
3 | open func postEvent(_ event: NSEvent, atStart: Bool)
4 | @MainActor open var currentEvent: NSEvent? { get }
| `- note: property declared here
5 | open func nextEvent(matching mask: NSEvent.EventTypeMask, until expiration: Date?, inMode mode: RunLoop.Mode, dequeue deqFlag: Bool) -> NSEvent?
6 | @available(swift, obsoleted: 3, renamed: "nextEvent(matching:until:inMode:dequeue:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:718:22: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
716 | if self.shouldDimissCompletionOnSelectionChange {
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
719 | NSApp.currentEvent?.characters == nil ||
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:718:68: warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
716 | if self.shouldDimissCompletionOnSelectionChange {
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
| `- warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
719 | NSApp.currentEvent?.characters == nil ||
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
AppKit.NSApplication:4:25: note: property declared here
2 | open func sendEvent(_ event: NSEvent)
3 | open func postEvent(_ event: NSEvent, atStart: Bool)
4 | @MainActor open var currentEvent: NSEvent? { get }
| `- note: property declared here
5 | open func nextEvent(matching mask: NSEvent.EventTypeMask, until expiration: Date?, inMode mode: RunLoop.Mode, dequeue deqFlag: Bool) -> NSEvent?
6 | @available(swift, obsoleted: 3, renamed: "nextEvent(matching:until:inMode:dequeue:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:718:62: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
716 | if self.shouldDimissCompletionOnSelectionChange {
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
719 | NSApp.currentEvent?.characters == nil ||
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:719:27: warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
719 | NSApp.currentEvent?.characters == nil ||
| `- warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
721 | {
AppKit.NSApplication:4:25: note: property declared here
2 | open func sendEvent(_ event: NSEvent)
3 | open func postEvent(_ event: NSEvent, atStart: Bool)
4 | @MainActor open var currentEvent: NSEvent? { get }
| `- note: property declared here
5 | open func nextEvent(matching mask: NSEvent.EventTypeMask, until expiration: Date?, inMode mode: RunLoop.Mode, dequeue deqFlag: Bool) -> NSEvent?
6 | @available(swift, obsoleted: 3, renamed: "nextEvent(matching:until:inMode:dequeue:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:719:21: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
719 | NSApp.currentEvent?.characters == nil ||
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
721 | {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:720:29: warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
719 | NSApp.currentEvent?.characters == nil ||
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
| `- warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
721 | {
722 | self.cancelComplete(textViewNotification.object)
AppKit.NSApplication:4:25: note: property declared here
2 | open func sendEvent(_ event: NSEvent)
3 | open func postEvent(_ event: NSEvent, atStart: Bool)
4 | @MainActor open var currentEvent: NSEvent? { get }
| `- note: property declared here
5 | open func nextEvent(matching mask: NSEvent.EventTypeMask, until expiration: Date?, inMode mode: RunLoop.Mode, dequeue deqFlag: Bool) -> NSEvent?
6 | @available(swift, obsoleted: 3, renamed: "nextEvent(matching:until:inMode:dequeue:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:720:23: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
719 | NSApp.currentEvent?.characters == nil ||
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
721 | {
722 | self.cancelComplete(textViewNotification.object)
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:722:26: warning: call to main actor-isolated instance method 'cancelComplete' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
721 | {
722 | self.cancelComplete(textViewNotification.object)
| `- warning: call to main actor-isolated instance method 'cancelComplete' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
723 | }
724 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+Complete.swift:34:21: note: calls to instance method 'cancelComplete' from outside of its actor context are implicitly asynchronous
32 | /// see ``complete(_:)``
33 | @preconcurrency @MainActor
34 | @objc open func cancelComplete(_ sender: Any?) {
| `- note: calls to instance method 'cancelComplete' from outside of its actor context are implicitly asynchronous
35 | _completionTask?.cancel()
36 | completionWindowController?.close()
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:732:19: warning: main actor-isolated property 'needsUpdateConstraints' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
730 | usageBoundsForTextContainerObserver = textLayoutManager.observe(\.usageBoundsForTextContainer, options: [.initial, .new]) { [weak self] _, _ in
731 | // FB13291926: this notification no longer works
732 | self?.needsUpdateConstraints = true
| `- warning: main actor-isolated property 'needsUpdateConstraints' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
733 | }
734 | }
AppKit.NSView:7:25: note: mutation of this property is only permitted within the actor
5 | open func updateConstraints()
6 | @available(macOS 10.7, *)
7 | @MainActor open var needsUpdateConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1067:25: warning: main actor-isolated property 'textLayoutManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
431 |
432 | /// The manager that lays out text for the text view's text container.
433 | @objc dynamic open var textLayoutManager: NSTextLayoutManager {
| `- note: property declared here
434 | willSet {
435 | textContentManager.primaryTextLayoutManager = nil
:
1064 | for textLineFragment in layoutFragment.textLineFragments {
1065 |
1066 | func isLineSelected() -> Bool {
| `- note: add '@MainActor' to make local function 'isLineSelected()' part of global actor 'MainActor'
1067 | textLayoutManager.textSelections.flatMap(\.textRanges).reduce(true) { partialResult, selectionTextRange in
| `- warning: main actor-isolated property 'textLayoutManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1068 | var result = true
1069 | if textLineFragment.isExtraLineFragment {
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1435:21: warning: capture of 'undoRange' with non-sendable type 'NSTextRange' in a `@Sendable` closure
1433 | // Regular undo action
1434 | textView.replaceCharacters(
1435 | in: undoRange,
| `- warning: capture of 'undoRange' with non-sendable type 'NSTextRange' in a `@Sendable` closure
1436 | with: previousStringInRange,
1437 | allowsTypingCoalescing: false
AppKit.NSTextRange:2:12: note: class 'NSTextRange' does not conform to the 'Sendable' protocol
1 | @available(macOS 12.0, *)
2 | open class NSTextRange : NSObject {
| `- note: class 'NSTextRange' does not conform to the 'Sendable' protocol
3 | public init?(location: any NSTextLocation, end endLocation: (any NSTextLocation)?)
4 | @available(swift, obsoleted: 3, renamed: "init(location:end:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1436:23: warning: capture of 'previousStringInRange' with non-sendable type 'NSAttributedString' in a `@Sendable` closure
1434 | textView.replaceCharacters(
1435 | in: undoRange,
1436 | with: previousStringInRange,
| `- warning: capture of 'previousStringInRange' with non-sendable type 'NSAttributedString' in a `@Sendable` closure
1437 | allowsTypingCoalescing: false
1438 | )
Foundation.NSAttributedString:2:12: note: class 'NSAttributedString' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.0, *)
2 | open class NSAttributedString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
| `- note: class 'NSAttributedString' does not conform to the 'Sendable' protocol
3 | open var string: String { get }
4 | open func attributes(at location: Int, effectiveRange range: NSRangePointer?) -> [NSAttributedString.Key : Any]
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1439:43: warning: capture of 'textRange' with non-sendable type 'NSTextRange' in a `@Sendable` closure
1437 | allowsTypingCoalescing: false
1438 | )
1439 | textView.setSelectedTextRange(textRange, updateLayout: true)
| `- warning: capture of 'textRange' with non-sendable type 'NSTextRange' in a `@Sendable` closure
1440 | }
1441 | undoManager.endUndoGrouping()
AppKit.NSTextRange:2:12: note: class 'NSTextRange' does not conform to the 'Sendable' protocol
1 | @available(macOS 12.0, *)
2 | open class NSTextRange : NSObject {
| `- note: class 'NSTextRange' does not conform to the 'Sendable' protocol
3 | public init?(location: any NSTextLocation, end endLocation: (any NSTextLocation)?)
4 | @available(swift, obsoleted: 3, renamed: "init(location:end:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1434:22: warning: call to main actor-isolated instance method 'replaceCharacters(in:with:allowsTypingCoalescing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1397 | }
1398 |
1399 | internal func replaceCharacters(in textRange: NSTextRange, with replacementString: NSAttributedString, allowsTypingCoalescing: Bool) {
| `- note: calls to instance method 'replaceCharacters(in:with:allowsTypingCoalescing:)' from outside of its actor context are implicitly asynchronous
1400 | let previousStringInRange = (textContentManager as? NSTextContentStorage)!.attributedString!.attributedSubstring(from: NSRange(textRange, in: textContentManager))
1401 |
:
1432 | undoManager.registerUndo(withTarget: self) { textView in
1433 | // Regular undo action
1434 | textView.replaceCharacters(
| `- warning: call to main actor-isolated instance method 'replaceCharacters(in:with:allowsTypingCoalescing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1435 | in: undoRange,
1436 | with: previousStringInRange,
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1439:22: warning: call to main actor-isolated instance method 'setSelectedTextRange(_:updateLayout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1437 | allowsTypingCoalescing: false
1438 | )
1439 | textView.setSelectedTextRange(textRange, updateLayout: true)
| `- warning: call to main actor-isolated instance method 'setSelectedTextRange(_:updateLayout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1440 | }
1441 | undoManager.endUndoGrouping()
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+Select.swift:9:19: note: calls to instance method 'setSelectedTextRange(_:updateLayout:)' from outside of its actor context are implicitly asynchronous
7 | extension STTextView {
8 |
9 | internal func setSelectedTextRange(_ textRange: NSTextRange, updateLayout: Bool) {
| `- note: calls to instance method 'setSelectedTextRange(_:updateLayout:)' from outside of its actor context are implicitly asynchronous
10 | guard isSelectable, textRange.endLocation <= textLayoutManager.documentRange.endLocation else {
11 | return
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1531:22: warning: call to main actor-isolated instance method 'updateInsertionPointStateAndRestartTimer()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1524 | struct InsertionPoint: NSViewInvalidating {
1525 |
1526 | func invalidate(view: NSView) {
| `- note: add '@MainActor' to make instance method 'invalidate(view:)' part of global actor 'MainActor'
1527 | guard let textView = view as? STTextView else {
1528 | return
1529 | }
1530 |
1531 | textView.updateInsertionPointStateAndRestartTimer()
| `- warning: call to main actor-isolated instance method 'updateInsertionPointStateAndRestartTimer()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1532 | }
1533 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+InsertionPoint.swift:11:17: note: calls to instance method 'updateInsertionPointStateAndRestartTimer()' from outside of its actor context are implicitly asynchronous
9 |
10 | /// Updates the insertion point’s location and optionally restarts the blinking cursor timer.
11 | public func updateInsertionPointStateAndRestartTimer() {
| `- note: calls to instance method 'updateInsertionPointStateAndRestartTimer()' from outside of its actor context are implicitly asynchronous
12 | // Hide insertion point layers
13 | if shouldDrawInsertionPoint {
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1538:26: warning: call to main actor-isolated instance method 'invalidateCursorRects(for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1535 | struct CursorRects: NSViewInvalidating {
1536 |
1537 | func invalidate(view: NSView) {
| `- note: add '@MainActor' to make instance method 'invalidate(view:)' part of global actor 'MainActor'
1538 | view.window?.invalidateCursorRects(for: view)
| `- warning: call to main actor-isolated instance method 'invalidateCursorRects(for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1539 | }
1540 | }
AppKit.NSWindow:6:26: note: calls to instance method 'invalidateCursorRects(for:)' from outside of its actor context are implicitly asynchronous
4 | open func discardCursorRects()
5 | open var areCursorRectsEnabled: Bool { get }
6 | @MainActor open func invalidateCursorRects(for view: NSView)
| `- note: calls to instance method 'invalidateCursorRects(for:)' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "invalidateCursorRects(for:)")
8 | open func invalidateCursorRectsForView(_ view: NSView)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1538:18: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1535 | struct CursorRects: NSViewInvalidating {
1536 |
1537 | func invalidate(view: NSView) {
| `- note: add '@MainActor' to make instance method 'invalidate(view:)' part of global actor 'MainActor'
1538 | view.window?.invalidateCursorRects(for: view)
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1539 | }
1540 | }
AppKit.NSView:4:41: note: property declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | @MainActor open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegate.swift:129:9: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 | }
127 |
128 | func textViewCompletionViewController(_ textView: STTextView) -> any STCompletionViewControllerProtocol {
| `- note: add '@MainActor' to make instance method 'textViewCompletionViewController' part of global actor 'MainActor'
129 | STCompletionViewController()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | }
131 |
AppKit.NSViewController:43:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
41 | @available(macOS 10.10, *)
42 | open func viewDidLayout()
43 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
44 | @available(macOS 10.5, *)
45 | open var identifier: NSUserInterfaceItemIdentifier? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegateProxy.swift:32:37: warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
30 | func textView(_ textView: STTextView, shouldChangeTextIn affectedCharRange: NSTextRange, replacementString: String?) -> Bool {
31 | var result = source?.textView(textView, shouldChangeTextIn: affectedCharRange, replacementString: replacementString) ?? true
32 | result = result && textView.plugins.events.reduce(result) { partialResult, events in
| `- warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | partialResult && events.shouldChangeTextHandler?(affectedCharRange, replacementString) ?? true
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:38:18: note: property declared here
36 |
37 | /// Installed plugins. events value is available after plugin is setup
38 | internal var plugins: [Plugin] = []
| `- note: property declared here
39 |
40 | /// A Boolean value that controls whether the text view allows the user to edit text.
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegateProxy.swift:41:32: warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 |
38 | func textView(_ textView: STTextView, willChangeTextIn affectedCharRange: NSTextRange, replacementString: String) {
| `- note: add '@MainActor' to make instance method 'textView(_:willChangeTextIn:replacementString:)' part of global actor 'MainActor'
39 | source?.textView(textView, willChangeTextIn: affectedCharRange, replacementString: replacementString)
40 |
41 | for events in textView.plugins.events {
| `- warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | events.willChangeTextHandler?(affectedCharRange)
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:38:18: note: property declared here
36 |
37 | /// Installed plugins. events value is available after plugin is setup
38 | internal var plugins: [Plugin] = []
| `- note: property declared here
39 |
40 | /// A Boolean value that controls whether the text view allows the user to edit text.
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegateProxy.swift:49:32: warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | }
45 |
46 | func textView(_ textView: STTextView, didChangeTextIn affectedCharRange: NSTextRange, replacementString: String) {
| `- note: add '@MainActor' to make instance method 'textView(_:didChangeTextIn:replacementString:)' part of global actor 'MainActor'
47 | source?.textView(textView, didChangeTextIn: affectedCharRange, replacementString: replacementString)
48 |
49 | for events in textView.plugins.events {
| `- warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | events.didChangeTextHandler?(affectedCharRange, replacementString)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:38:18: note: property declared here
36 |
37 | /// Installed plugins. events value is available after plugin is setup
38 | internal var plugins: [Plugin] = []
| `- note: property declared here
39 |
40 | /// A Boolean value that controls whether the text view allows the user to edit text.
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegateProxy.swift:56:49: warning: main actor-isolated property 'textLayoutManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
53 | }
54 |
55 | func textView(_ textView: STTextView, menu: NSMenu, for event: NSEvent, at location: NSTextLocation) -> NSMenu? {
| `- note: add '@MainActor' to make instance method 'textView(_:menu:for:at:)' part of global actor 'MainActor'
56 | guard let textContentManager = textView.textLayoutManager.textContentManager else {
| `- warning: main actor-isolated property 'textLayoutManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | return nil
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:433:28: note: property declared here
431 |
432 | /// The manager that lays out text for the text view's text container.
433 | @objc dynamic open var textLayoutManager: NSTextLayoutManager {
| `- note: property declared here
434 | willSet {
435 | textContentManager.primaryTextLayoutManager = nil
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegateProxy.swift:63:36: warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
53 | }
54 |
55 | func textView(_ textView: STTextView, menu: NSMenu, for event: NSEvent, at location: NSTextLocation) -> NSMenu? {
| `- note: add '@MainActor' to make instance method 'textView(_:menu:for:at:)' part of global actor 'MainActor'
56 | guard let textContentManager = textView.textLayoutManager.textContentManager else {
57 | return nil
:
61 |
62 | // Append plugins menus
63 | let pluginMenus = textView.plugins.events.compactMap { events in
| `- warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
64 | events.onContextMenuHandler?(location, textContentManager)
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:38:18: note: property declared here
36 |
37 | /// Installed plugins. events value is available after plugin is setup
38 | internal var plugins: [Plugin] = []
| `- note: property declared here
39 |
40 | /// A Boolean value that controls whether the text view allows the user to edit text.
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegateProxy.swift:97:63: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 |
96 | func textViewCompletionViewController(_ textView: STTextView) -> any STCompletionViewControllerProtocol {
97 | source?.textViewCompletionViewController(textView) ?? STCompletionViewController()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | }
99 |
AppKit.NSViewController:43:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
41 | @available(macOS 10.10, *)
42 | open func viewDidLayout()
43 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
44 | @available(macOS 10.5, *)
45 | open var identifier: NSUserInterfaceItemIdentifier? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:686:16: warning: cannot access property 'plugins' with a non-sendable type '[Plugin]' from nonisolated deinit; this is an error in the Swift 6 language mode
684 |
685 | deinit {
686 | guard !plugins.isEmpty else { return }
| `- warning: cannot access property 'plugins' with a non-sendable type '[Plugin]' from nonisolated deinit; this is an error in the Swift 6 language mode
687 | Task { @MainActor [plugins] in
688 | plugins.forEach { plugin in
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/Plugin/Plugin.swift:4:17: note: consider making struct 'Plugin' conform to the 'Sendable' protocol
2 | // https://github.com/krzyzanowskim/STTextView/blob/main/LICENSE.md
3 |
4 | internal struct Plugin {
| `- note: consider making struct 'Plugin' conform to the 'Sendable' protocol
5 | let instance: any STPlugin
6 | var events: STPluginEvents?
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:687:28: warning: cannot access property 'plugins' with a non-sendable type '[Plugin]' from nonisolated deinit; this is an error in the Swift 6 language mode
685 | deinit {
686 | guard !plugins.isEmpty else { return }
687 | Task { @MainActor [plugins] in
| `- warning: cannot access property 'plugins' with a non-sendable type '[Plugin]' from nonisolated deinit; this is an error in the Swift 6 language mode
688 | plugins.forEach { plugin in
689 | plugin.instance.tearDown()
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/Plugin/Plugin.swift:4:17: note: consider making struct 'Plugin' conform to the 'Sendable' protocol
2 | // https://github.com/krzyzanowskim/STTextView/blob/main/LICENSE.md
3 |
4 | internal struct Plugin {
| `- note: consider making struct 'Plugin' conform to the 'Sendable' protocol
5 | let instance: any STPlugin
6 | var events: STPluginEvents?
[114/121] Compiling STTextViewAppKit YankingManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+Insert.swift:60:24: warning: main actor-isolated instance method 'insertText' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
58 | }
59 |
60 | open override func insertText(_ insertString: Any) {
| |- warning: main actor-isolated instance method 'insertText' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'insertText' to make this instance method not isolated to the actor
61 | insertText(insertString, replacementRange: .notFound)
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:27:38: note: add '@preconcurrency' to the 'NSTextInput' conformance to defer isolation checking to run time
25 |
26 | /// A TextKit2 text view without NSTextView baggage
27 | @objc open class STTextView: NSView, NSTextInput, NSTextContent, STTextViewProtocol {
| `- note: add '@preconcurrency' to the 'NSTextInput' conformance to defer isolation checking to run time
28 | /// Posted before an object performs any operation that changes characters or formatting attributes.
29 | public static let textWillChangeNotification = NSNotification.Name("NSTextWillChangeNotification")
AppKit.NSTextInput:3:10: note: 'insertText' declared here
1 | public protocol NSTextInput {
2 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
3 | func insertText(_ string: Any!)
| `- note: 'insertText' declared here
4 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
5 | func doCommand(by selector: Selector!)
AppKit.NSResponder:4:26: warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 | @MainActor open func insertText(_ insertString: Any)
3 | @available(macOS 10.0, *)
4 | @MainActor open func doCommand(by selector: Selector)
| |- warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'doCommand(by:)' to make this instance method not isolated to the actor
5 | open func moveForward(_ sender: Any?)
6 | open func moveRight(_ sender: Any?)
AppKit.NSTextInput:5:10: note: 'doCommand(by:)' declared here
3 | func insertText(_ string: Any!)
4 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
5 | func doCommand(by selector: Selector!)
| `- note: 'doCommand(by:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
7 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+NSTextInputClient.swift:115:23: warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
113 | /// The text view should accept the marked text as if it had been inserted normally.
114 | /// If there is no marked text, the invocation of this method has no effect.
115 | @objc public func unmarkText() {
| |- warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'unmarkText()' to make this instance method not isolated to the actor
116 | if hasMarkedText() {
117 | // Delete temporary marked text. It's been replaced with final text in insertText
AppKit.NSTextInput:12:10: note: 'unmarkText()' declared here
10 | func setMarkedText(_ string: Any!, selectedRange selRange: NSRange)
11 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
12 | func unmarkText()
| `- note: 'unmarkText()' declared here
13 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
14 | func hasMarkedText() -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+NSTextInputClient.swift:140:23: warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
138 |
139 | /// Returns whether or not the receiver has marked text.
140 | @objc public func hasMarkedText() -> Bool {
| |- warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hasMarkedText()' to make this instance method not isolated to the actor
141 | markedText != nil
142 | }
AppKit.NSTextInput:14:10: note: 'hasMarkedText()' declared here
12 | func unmarkText()
13 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
14 | func hasMarkedText() -> Bool
| `- note: 'hasMarkedText()' declared here
15 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
16 | func conversationIdentifier() -> Int
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+NSTextInputClient.swift:131:23: warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
129 | /// The returned range measures from the start of the receiver’s text storage.
130 | /// The return value’s location is NSNotFound and its length is 0 if and only if hasMarkedText() returns false.
131 | @objc public func markedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'markedRange()' to make this instance method not isolated to the actor
132 | if !hasMarkedText() {
133 | return .notFound
AppKit.NSTextInput:23:10: note: 'markedRange()' declared here
21 | func attributedSubstringFromRange(_ range: NSRange) -> NSAttributedString!
22 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
23 | func markedRange() -> NSRange
| `- note: 'markedRange()' declared here
24 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
25 | func selectedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+NSTextInputClient.swift:9:23: warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
7 | extension STTextView: NSTextInputClient {
8 |
9 | @objc public func selectedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectedRange()' to make this instance method not isolated to the actor
10 | if let selectionTextRange = textLayoutManager.textSelections.last?.textRanges.last {
11 | return NSRange(selectionTextRange, in: textContentManager)
AppKit.NSTextInput:25:10: note: 'selectedRange()' declared here
23 | func markedRange() -> NSRange
24 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
25 | func selectedRange() -> NSRange
| `- note: 'selectedRange()' declared here
26 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
27 | func firstRect(forCharacterRange range: NSRange) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+NSTextInputClient.swift:188:23: warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
186 | }
187 |
188 | @objc public func characterIndex(for point: CGPoint) -> Int {
| |- warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'characterIndex(for:)' to make this instance method not isolated to the actor
189 | let eventPoint = contentView.convert(window!.convertPoint(fromScreen: point), from: nil)
190 | guard let location = textLayoutManager.location(interactingAt: eventPoint, inContainerAt: textLayoutManager.documentRange.location) else {
AppKit.NSTextInput:32:10: note: 'characterIndex(for:)' declared here
30 | func firstRectForCharacterRange(_ range: NSRange) -> NSRect
31 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
32 | func characterIndex(for point: NSPoint) -> Int
| `- note: 'characterIndex(for:)' declared here
33 | @available(swift, obsoleted: 3, renamed: "characterIndex(for:)")
34 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.6, message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:387:14: warning: main actor-isolated property 'contentType' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
25 |
26 | /// A TextKit2 text view without NSTextView baggage
27 | @objc open class STTextView: NSView, NSTextInput, NSTextContent, STTextViewProtocol {
| `- note: add '@preconcurrency' to the 'NSTextContent' conformance to defer isolation checking to run time
28 | /// Posted before an object performs any operation that changes characters or formatting attributes.
29 | public static let textWillChangeNotification = NSNotification.Name("NSTextWillChangeNotification")
:
385 |
386 | /// The semantic meaning for a text input area.
387 | open var contentType: NSTextContentType?
| `- warning: main actor-isolated property 'contentType' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
388 |
389 | /// A Boolean value that indicates whether the receiver allows undo.
AppKit.NSTextContent:3:9: note: 'contentType' declared here
1 | public protocol NSTextContent {
2 | @available(macOS 11.0, *)
3 | var contentType: NSTextContentType? { get set }
| `- note: 'contentType' declared here
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:35:23: warning: main actor-isolated static property 'didChangeSelectionNotification' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
25 |
26 | /// A TextKit2 text view without NSTextView baggage
27 | @objc open class STTextView: NSView, NSTextInput, NSTextContent, STTextViewProtocol {
| `- note: add '@preconcurrency' to the 'STTextViewProtocol' conformance to defer isolation checking to run time
28 | /// Posted before an object performs any operation that changes characters or formatting attributes.
29 | public static let textWillChangeNotification = NSNotification.Name("NSTextWillChangeNotification")
:
33 |
34 | /// Sent when the selection range of characters changes.
35 | public static let didChangeSelectionNotification = STTextLayoutManager.didChangeSelectionNotification
| `- warning: main actor-isolated static property 'didChangeSelectionNotification' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
36 |
37 | /// Installed plugins. events value is available after plugin is setup
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:18:16: note: 'didChangeSelectionNotification' declared here
16 | associatedtype Delegate
17 |
18 | static var didChangeSelectionNotification: NSNotification.Name { get }
| `- note: 'didChangeSelectionNotification' declared here
19 | static var textWillChangeNotification: NSNotification.Name { get }
20 | static var textDidChangeNotification: NSNotification.Name { get }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:29:23: warning: main actor-isolated static property 'textWillChangeNotification' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
27 | @objc open class STTextView: NSView, NSTextInput, NSTextContent, STTextViewProtocol {
28 | /// Posted before an object performs any operation that changes characters or formatting attributes.
29 | public static let textWillChangeNotification = NSNotification.Name("NSTextWillChangeNotification")
| `- warning: main actor-isolated static property 'textWillChangeNotification' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
30 |
31 | /// Sent when the text in the receiving control changes.
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:19:16: note: 'textWillChangeNotification' declared here
17 |
18 | static var didChangeSelectionNotification: NSNotification.Name { get }
19 | static var textWillChangeNotification: NSNotification.Name { get }
| `- note: 'textWillChangeNotification' declared here
20 | static var textDidChangeNotification: NSNotification.Name { get }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:32:23: warning: main actor-isolated static property 'textDidChangeNotification' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
30 |
31 | /// Sent when the text in the receiving control changes.
32 | public static let textDidChangeNotification = NSText.didChangeNotification
| `- warning: main actor-isolated static property 'textDidChangeNotification' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
33 |
34 | /// Sent when the selection range of characters changes.
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:20:16: note: 'textDidChangeNotification' declared here
18 | static var didChangeSelectionNotification: NSNotification.Name { get }
19 | static var textWillChangeNotification: NSNotification.Name { get }
20 | static var textDidChangeNotification: NSNotification.Name { get }
| `- note: 'textDidChangeNotification' declared here
21 |
22 | var textLayoutManager: NSTextLayoutManager { get }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:433:28: warning: main actor-isolated property 'textLayoutManager' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
431 |
432 | /// The manager that lays out text for the text view's text container.
433 | @objc dynamic open var textLayoutManager: NSTextLayoutManager {
| `- warning: main actor-isolated property 'textLayoutManager' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
434 | willSet {
435 | textContentManager.primaryTextLayoutManager = nil
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:22:9: note: 'textLayoutManager' declared here
20 | static var textDidChangeNotification: NSNotification.Name { get }
21 |
22 | var textLayoutManager: NSTextLayoutManager { get }
| `- note: 'textLayoutManager' declared here
23 | var textContentManager: NSTextContentManager { get }
24 | var textContainer: NSTextContainer { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:452:28: warning: main actor-isolated property 'textContentManager' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
450 |
451 | /// The text view's text storage object.
452 | @objc dynamic open var textContentManager: NSTextContentManager {
| `- warning: main actor-isolated property 'textContentManager' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
453 | willSet {
454 | textContentManager.primaryTextLayoutManager = nil
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:23:9: note: 'textContentManager' declared here
21 |
22 | var textLayoutManager: NSTextLayoutManager { get }
23 | var textContentManager: NSTextContentManager { get }
| `- note: 'textContentManager' declared here
24 | var textContainer: NSTextContainer { get set }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:464:16: warning: main actor-isolated property 'textContainer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
462 |
463 | /// The text view's text container
464 | public var textContainer: NSTextContainer {
| `- warning: main actor-isolated property 'textContainer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
465 | get {
466 | textLayoutManager.textContainer!
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:24:9: note: 'textContainer' declared here
22 | var textLayoutManager: NSTextLayoutManager { get }
23 | var textContentManager: NSTextContentManager { get }
24 | var textContainer: NSTextContainer { get set }
| `- note: 'textContainer' declared here
25 |
26 | var widthTracksTextView: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:287:22: warning: main actor-isolated property 'widthTracksTextView' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
285 | ///
286 | /// - SeeAlso: [Tracking the Size of a Text View](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/TextStorageLayer/Tasks/TrackingSize.html#//apple_ref/doc/uid/20000927-CJBBIAAF)
287 | @objc public var widthTracksTextView: Bool {
| `- warning: main actor-isolated property 'widthTracksTextView' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
288 | set {
289 | if textContainer.widthTracksTextView != newValue {
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:26:9: note: 'widthTracksTextView' declared here
24 | var textContainer: NSTextContainer { get set }
25 |
26 | var widthTracksTextView: Bool { get set }
| `- note: 'widthTracksTextView' declared here
27 | var isHorizontallyResizable: Bool { get set }
28 | var heightTracksTextView: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:302:22: warning: main actor-isolated property 'isHorizontallyResizable' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
300 |
301 | /// A Boolean that controls whether the receiver changes its width to fit the width of its text.
302 | @objc public var isHorizontallyResizable: Bool {
| `- warning: main actor-isolated property 'isHorizontallyResizable' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
303 | set {
304 | widthTracksTextView = newValue
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:27:9: note: 'isHorizontallyResizable' declared here
25 |
26 | var widthTracksTextView: Bool { get set }
27 | var isHorizontallyResizable: Bool { get set }
| `- note: 'isHorizontallyResizable' declared here
28 | var heightTracksTextView: Bool { get set }
29 | var isVerticallyResizable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:319:22: warning: main actor-isolated property 'heightTracksTextView' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
317 | ///
318 | /// - SeeAlso: [Tracking the Size of a Text View](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/TextStorageLayer/Tasks/TrackingSize.html#//apple_ref/doc/uid/20000927-CJBBIAAF)
319 | @objc public var heightTracksTextView: Bool {
| `- warning: main actor-isolated property 'heightTracksTextView' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
320 | set {
321 | if textContainer.heightTracksTextView != newValue {
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:28:9: note: 'heightTracksTextView' declared here
26 | var widthTracksTextView: Bool { get set }
27 | var isHorizontallyResizable: Bool { get set }
28 | var heightTracksTextView: Bool { get set }
| `- note: 'heightTracksTextView' declared here
29 | var isVerticallyResizable: Bool { get set }
30 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:334:22: warning: main actor-isolated property 'isVerticallyResizable' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
332 |
333 | /// A Boolean that controls whether the receiver changes its height to fit the height of its text.
334 | @objc public var isVerticallyResizable: Bool {
| `- warning: main actor-isolated property 'isVerticallyResizable' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
335 | set {
336 | heightTracksTextView = newValue
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:29:9: note: 'isVerticallyResizable' declared here
27 | var isHorizontallyResizable: Bool { get set }
28 | var heightTracksTextView: Bool { get set }
29 | var isVerticallyResizable: Bool { get set }
| `- note: 'isVerticallyResizable' declared here
30 |
31 | var highlightSelectedLine: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:346:28: warning: main actor-isolated property 'highlightSelectedLine' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
344 | /// A Boolean that controls whether the text view highlights the currently selected line.
345 | @Invalidating(.layout)
346 | @objc dynamic open var highlightSelectedLine: Bool = false
| `- warning: main actor-isolated property 'highlightSelectedLine' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
347 |
348 | /// Enable to show line numbers in the gutter.
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:31:9: note: 'highlightSelectedLine' declared here
29 | var isVerticallyResizable: Bool { get set }
30 |
31 | var highlightSelectedLine: Bool { get set }
| `- note: 'highlightSelectedLine' declared here
32 | var selectedLineHighlightColor: Color { get set}
33 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:364:28: warning: main actor-isolated property 'selectedLineHighlightColor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
362 | /// Note: Needs ``highlightSelectedLine`` to be set to `true`
363 | @Invalidating(.display)
364 | @objc dynamic open var selectedLineHighlightColor: NSColor = NSColor.selectedTextBackgroundColor.withAlphaComponent(0.25)
| `- warning: main actor-isolated property 'selectedLineHighlightColor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
365 |
366 | /// The text view's background color
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:32:9: note: 'selectedLineHighlightColor' declared here
30 |
31 | var highlightSelectedLine: Bool { get set }
32 | var selectedLineHighlightColor: Color { get set}
| `- note: 'selectedLineHighlightColor' declared here
33 |
34 | var showsLineNumbers: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:350:14: warning: main actor-isolated property 'showsLineNumbers' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
348 | /// Enable to show line numbers in the gutter.
349 | @Invalidating(.layout)
350 | open var showsLineNumbers: Bool = false {
| `- warning: main actor-isolated property 'showsLineNumbers' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
351 | didSet {
352 | isGutterVisible = showsLineNumbers
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:34:9: note: 'showsLineNumbers' declared here
32 | var selectedLineHighlightColor: Color { get set}
33 |
34 | var showsLineNumbers: Bool { get set }
| `- note: 'showsLineNumbers' declared here
35 | var showsInvisibleCharacters: Bool { get set }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:541:16: warning: main actor-isolated property 'showsInvisibleCharacters' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
539 | /// A Boolean value that indicates whether to substitute visible glyphs for whitespace and other typically invisible characters.
540 | @Invalidating(.layout, .display)
541 | public var showsInvisibleCharacters: Bool = false {
| `- warning: main actor-isolated property 'showsInvisibleCharacters' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
542 | willSet {
543 | textLayoutManager.invalidateLayout(for: textLayoutManager.textViewportLayoutController.viewportRange ?? textLayoutManager.documentRange)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:35:9: note: 'showsInvisibleCharacters' declared here
33 |
34 | var showsLineNumbers: Bool { get set }
35 | var showsInvisibleCharacters: Bool { get set }
| `- note: 'showsInvisibleCharacters' declared here
36 |
37 | var font: Font { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:93:22: warning: main actor-isolated property 'font' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
91 | /// If you want to apply the font to only a portion of the text, you must create a new attributed string with the desired style information and assign it
92 | @MainActor
93 | @objc public var font: NSFont {
| `- warning: main actor-isolated property 'font' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
94 | get {
95 | _defaultTypingAttributes[.font] as! NSFont
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:37:9: note: 'font' declared here
35 | var showsInvisibleCharacters: Bool { get set }
36 |
37 | var font: Font { get set }
| `- note: 'font' declared here
38 | var textColor: Color { get set }
39 | var defaultParagraphStyle: NSParagraphStyle { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:116:22: warning: main actor-isolated property 'textColor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
114 | /// Default text color.
115 | @MainActor
116 | @objc public var textColor: NSColor {
| `- warning: main actor-isolated property 'textColor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
117 | get {
118 | _defaultTypingAttributes[.foregroundColor] as! NSColor
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:38:9: note: 'textColor' declared here
36 |
37 | var font: Font { get set }
38 | var textColor: Color { get set }
| `- note: 'textColor' declared here
39 | var defaultParagraphStyle: NSParagraphStyle { get set }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:128:22: warning: main actor-isolated property 'defaultParagraphStyle' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
126 | /// Default paragraph style.
127 | @MainActor
128 | @objc public var defaultParagraphStyle: NSParagraphStyle {
| `- warning: main actor-isolated property 'defaultParagraphStyle' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
129 | set {
130 | _defaultTypingAttributes[.paragraphStyle] = newValue
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:39:9: note: 'defaultParagraphStyle' declared here
37 | var font: Font { get set }
38 | var textColor: Color { get set }
39 | var defaultParagraphStyle: NSParagraphStyle { get set }
| `- note: 'defaultParagraphStyle' declared here
40 |
41 | var typingAttributes: [NSAttributedString.Key: Any] { get }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:148:36: warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
146 | /// This dictionary contains the attribute keys (and corresponding values) to apply to newly typed text.
147 | /// When the text view’s selection changes, the contents of the dictionary are reset automatically.
148 | @objc public internal(set) var typingAttributes: [NSAttributedString.Key: Any] {
| `- warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
149 | get {
150 | _typingAttributes.merging(_defaultTypingAttributes) { (current, _) in current }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:41:9: note: 'typingAttributes' declared here
39 | var defaultParagraphStyle: NSParagraphStyle { get set }
40 |
41 | var typingAttributes: [NSAttributedString.Key: Any] { get }
| `- note: 'typingAttributes' declared here
42 |
43 | var text: String? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:239:22: warning: main actor-isolated property 'text' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
237 | /// For performance reasons, this value is the current backing store of the text object.
238 | /// If you want to maintain a snapshot of this as you manipulate the text storage, you should make a copy of the appropriate substring.
239 | @objc public var text: String? {
| `- warning: main actor-isolated property 'text' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
240 | set {
241 | let prevLocation = textLayoutManager.insertionPointLocations.first
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:43:9: note: 'text' declared here
41 | var typingAttributes: [NSAttributedString.Key: Any] { get }
42 |
43 | var text: String? { get set }
| `- note: 'text' declared here
44 | var attributedText: NSAttributedString? { get set }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:261:22: warning: main actor-isolated property 'attributedText' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
259 | ///
260 | /// Assigning a new value to this property also replaces the value of the `text` property with the same string data, albeit without any formatting information. In addition, the `font`, `textColor`, and `textAlignment` properties are updated to reflect the typing attributes of the text view.
261 | @objc public var attributedText: NSAttributedString? {
| `- warning: main actor-isolated property 'attributedText' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
262 | set {
263 | let prevLocation = textLayoutManager.insertionPointLocations.first
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:44:9: note: 'attributedText' declared here
42 |
43 | var text: String? { get set }
44 | var attributedText: NSAttributedString? { get set }
| `- note: 'attributedText' declared here
45 |
46 | var isEditable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:42:28: warning: main actor-isolated property 'isEditable' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
40 | /// A Boolean value that controls whether the text view allows the user to edit text.
41 | @Invalidating(.insertionPoint, .cursorRects)
42 | @objc dynamic open var isEditable: Bool = true {
| `- warning: main actor-isolated property 'isEditable' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
43 | didSet {
44 | if isEditable == true {
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:46:9: note: 'isEditable' declared here
44 | var attributedText: NSAttributedString? { get set }
45 |
46 | var isEditable: Bool { get set }
| `- note: 'isEditable' declared here
47 | var isSelectable: Bool { get set }
48 | var allowsUndo: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:52:28: warning: main actor-isolated property 'isSelectable' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
50 | /// A Boolean value that controls whether the text views allows the user to select text.
51 | @Invalidating(.insertionPoint, .cursorRects)
52 | @objc dynamic open var isSelectable: Bool = true {
| `- warning: main actor-isolated property 'isSelectable' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
53 | didSet {
54 | if isSelectable == false {
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:47:9: note: 'isSelectable' declared here
45 |
46 | var isEditable: Bool { get set }
47 | var isSelectable: Bool { get set }
| `- note: 'isSelectable' declared here
48 | var allowsUndo: Bool { get set }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:392:28: warning: main actor-isolated property 'allowsUndo' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
390 | ///
391 | /// `true` if the receiver allows undo, otherwise `false`. Default `true`.
392 | @objc dynamic open var allowsUndo: Bool
| `- warning: main actor-isolated property 'allowsUndo' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
393 | internal var _undoManager: UndoManager?
394 | internal var _yankingManager = YankingManager()
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:48:9: note: 'allowsUndo' declared here
46 | var isEditable: Bool { get set }
47 | var isSelectable: Bool { get set }
48 | var allowsUndo: Bool { get set }
| `- note: 'allowsUndo' declared here
49 |
50 | var textDelegate: Delegate? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:419:21: warning: main actor-isolated property 'textDelegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
417 |
418 | /// The delegate for all text views sharing the same layout manager.
419 | public weak var textDelegate: (any STTextViewDelegate)? {
| `- warning: main actor-isolated property 'textDelegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
420 | set {
421 | delegateProxy.source = newValue
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:50:9: note: 'textDelegate' declared here
48 | var allowsUndo: Bool { get set }
49 |
50 | var textDelegate: Delegate? { get set }
| `- note: 'textDelegate' declared here
51 |
52 | var gutterView: GutterView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:357:16: warning: main actor-isolated property 'gutterView' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
355 |
356 | /// Gutter view
357 | public var gutterView: STGutterView?
| `- warning: main actor-isolated property 'gutterView' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
358 | internal var scrollViewFrameObserver: NSKeyValueObservation?
359 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:52:9: note: 'gutterView' declared here
50 | var textDelegate: Delegate? { get set }
51 |
52 | var gutterView: GutterView? { get }
| `- note: 'gutterView' declared here
53 | func toggleRuler(_ sender: Any?)
54 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+Gutter.swift:11:23: warning: main actor-isolated instance method 'toggleRuler' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
9 |
10 | /// This action method shows or hides the ruler, if the receiver is enclosed in a scroll view.
11 | @objc public func toggleRuler(_ sender: Any?) {
| |- warning: main actor-isolated instance method 'toggleRuler' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'toggleRuler' to make this instance method not isolated to the actor
12 | isGutterVisible.toggle()
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:53:10: note: mark the protocol requirement 'toggleRuler' 'async' to allow actor-isolated conformances
51 |
52 | var gutterView: GutterView? { get }
53 | func toggleRuler(_ sender: Any?)
| `- note: mark the protocol requirement 'toggleRuler' 'async' to allow actor-isolated conformances
54 |
55 | var textSelection: NSRange { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:905:16: warning: main actor-isolated property 'textSelection' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
903 | ///
904 | /// If the length of the selection range is 0, indicating that the selection is actually an insertion point
905 | public var textSelection: NSRange {
| `- warning: main actor-isolated property 'textSelection' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
906 | set {
907 | setSelectedRange(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:55:9: note: 'textSelection' declared here
53 | func toggleRuler(_ sender: Any?)
54 |
55 | var textSelection: NSRange { get set }
| `- note: 'textSelection' declared here
56 |
57 | func addAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:934:15: warning: main actor-isolated instance method 'addAttributes(_:range:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
932 |
933 | /// Add attribute. Need `needsViewportLayout = true` to reflect changes.
934 | open func addAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange) {
| |- warning: main actor-isolated instance method 'addAttributes(_:range:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'addAttributes(_:range:)' to make this instance method not isolated to the actor
935 | addAttributes(attrs, range: range, updateLayout: true)
936 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:57:10: note: mark the protocol requirement 'addAttributes(_:range:)' 'async' to allow actor-isolated conformances
55 | var textSelection: NSRange { get set }
56 |
57 | func addAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
| `- note: mark the protocol requirement 'addAttributes(_:range:)' 'async' to allow actor-isolated conformances
58 | func setAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
59 | func removeAttribute(_ attribute: NSAttributedString.Key, range: NSRange)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:962:15: warning: main actor-isolated instance method 'setAttributes(_:range:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
960 |
961 | /// Set attributes.
962 | open func setAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange) {
| |- warning: main actor-isolated instance method 'setAttributes(_:range:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setAttributes(_:range:)' to make this instance method not isolated to the actor
963 | setAttributes(attrs, range: range, updateLayout: true)
964 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:58:10: note: mark the protocol requirement 'setAttributes(_:range:)' 'async' to allow actor-isolated conformances
56 |
57 | func addAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
58 | func setAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
| `- note: mark the protocol requirement 'setAttributes(_:range:)' 'async' to allow actor-isolated conformances
59 | func removeAttribute(_ attribute: NSAttributedString.Key, range: NSRange)
60 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:989:15: warning: main actor-isolated instance method 'removeAttribute(_:range:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
987 |
988 | /// Set attributes. Need `needsViewportLayout = true` to reflect changes.
989 | open func removeAttribute(_ attribute: NSAttributedString.Key, range: NSRange) {
| |- warning: main actor-isolated instance method 'removeAttribute(_:range:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'removeAttribute(_:range:)' to make this instance method not isolated to the actor
990 | removeAttribute(attribute, range: range, updateLayout: true)
991 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:59:10: note: mark the protocol requirement 'removeAttribute(_:range:)' 'async' to allow actor-isolated conformances
57 | func addAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
58 | func setAttributes(_ attrs: [NSAttributedString.Key: Any], range: NSRange)
59 | func removeAttribute(_ attribute: NSAttributedString.Key, range: NSRange)
| `- note: mark the protocol requirement 'removeAttribute(_:range:)' 'async' to allow actor-isolated conformances
60 |
61 | func shouldChangeText(in affectedTextRange: NSTextRange, replacementString: String?) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1447:15: warning: main actor-isolated instance method 'shouldChangeText(in:replacementString:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1445 | /// this method should be called with information on the change.
1446 | /// Coalesce consecutive typing events
1447 | open func shouldChangeText(in affectedTextRange: NSTextRange, replacementString: String?) -> Bool {
| |- warning: main actor-isolated instance method 'shouldChangeText(in:replacementString:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'shouldChangeText(in:replacementString:)' to make this instance method not isolated to the actor
1448 | let result = delegateProxy.textView(self, shouldChangeTextIn: affectedTextRange, replacementString: replacementString)
1449 | if !result {
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:61:10: note: mark the protocol requirement 'shouldChangeText(in:replacementString:)' 'async' to allow actor-isolated conformances
59 | func removeAttribute(_ attribute: NSAttributedString.Key, range: NSRange)
60 |
61 | func shouldChangeText(in affectedTextRange: NSTextRange, replacementString: String?) -> Bool
| `- note: mark the protocol requirement 'shouldChangeText(in:replacementString:)' 'async' to allow actor-isolated conformances
62 | func replaceCharacters(in range: NSTextRange, with string: String)
63 | func insertText(_ string: Any, replacementRange: NSRange)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1372:15: warning: main actor-isolated instance method 'replaceCharacters(in:with:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1370 | }
1371 |
1372 | open func replaceCharacters(in range: NSTextRange, with string: String) {
| |- warning: main actor-isolated instance method 'replaceCharacters(in:with:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'replaceCharacters(in:with:)' to make this instance method not isolated to the actor
1373 | replaceCharacters(in: range, with: string, useTypingAttributes: true, allowsTypingCoalescing: false)
1374 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:62:10: note: mark the protocol requirement 'replaceCharacters(in:with:)' 'async' to allow actor-isolated conformances
60 |
61 | func shouldChangeText(in affectedTextRange: NSTextRange, replacementString: String?) -> Bool
62 | func replaceCharacters(in range: NSTextRange, with string: String)
| `- note: mark the protocol requirement 'replaceCharacters(in:with:)' 'async' to allow actor-isolated conformances
63 | func insertText(_ string: Any, replacementRange: NSRange)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+NSTextInputClient.swift:197:21: warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
195 | }
196 |
197 | @objc open func insertText(_ string: Any, replacementRange: NSRange) {
| |- warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'insertText(_:replacementRange:)' to make this instance method not isolated to the actor
198 | unmarkText()
199 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/STTextViewProtocol.swift:63:10: note: mark the protocol requirement 'insertText(_:replacementRange:)' 'async' to allow actor-isolated conformances
61 | func shouldChangeText(in affectedTextRange: NSTextRange, replacementString: String?) -> Bool
62 | func replaceCharacters(in range: NSTextRange, with string: String)
63 | func insertText(_ string: Any, replacementRange: NSRange)
| `- note: mark the protocol requirement 'insertText(_:replacementRange:)' 'async' to allow actor-isolated conformances
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:706:13: warning: main actor-isolated property '_yankingManager' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
392 | @objc dynamic open var allowsUndo: Bool
393 | internal var _undoManager: UndoManager?
394 | internal var _yankingManager = YankingManager()
| `- note: property declared here
395 |
396 | internal var markedText: STMarkedText? = nil
:
704 | guard let self = self else { return }
705 |
706 | _yankingManager.selectionChanged()
| `- warning: main actor-isolated property '_yankingManager' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
707 |
708 | let textViewNotification = Notification(name: Self.didChangeSelectionNotification, object: self, userInfo: notification.userInfo)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:708:64: warning: main actor-isolated static property 'didChangeSelectionNotification' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
33 |
34 | /// Sent when the selection range of characters changes.
35 | public static let didChangeSelectionNotification = STTextLayoutManager.didChangeSelectionNotification
| `- note: static property declared here
36 |
37 | /// Installed plugins. events value is available after plugin is setup
:
706 | _yankingManager.selectionChanged()
707 |
708 | let textViewNotification = Notification(name: Self.didChangeSelectionNotification, object: self, userInfo: notification.userInfo)
| `- warning: main actor-isolated static property 'didChangeSelectionNotification' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
709 |
710 | NotificationCenter.default.post(textViewNotification)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:711:18: warning: main actor-isolated property 'delegateProxy' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
428 |
429 | /// Proxy for delegate calls
430 | internal let delegateProxy = STTextViewDelegateProxy(source: nil)
| `- note: property declared here
431 |
432 | /// The manager that lays out text for the text view's text container.
:
709 |
710 | NotificationCenter.default.post(textViewNotification)
711 | self.delegateProxy.textViewDidChangeSelection(textViewNotification)
| `- warning: main actor-isolated property 'delegateProxy' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
712 |
713 | NSAccessibility.post(element: self, notification: .selectedTextChanged)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:716:21: warning: main actor-isolated property 'shouldDimissCompletionOnSelectionChange' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
501 | ///
502 | /// Automatically call ``cancelComplete(_:)`` when `true`.
503 | open var shouldDimissCompletionOnSelectionChange: Bool = true
| `- note: property declared here
504 |
505 | internal var _completionTask: Task<Void, any Error>?
:
714 |
715 | // Cancel completinon on selection change
716 | if self.shouldDimissCompletionOnSelectionChange {
| `- warning: main actor-isolated property 'shouldDimissCompletionOnSelectionChange' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:717:26: warning: main actor-isolated property 'currentEvent' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
715 | // Cancel completinon on selection change
716 | if self.shouldDimissCompletionOnSelectionChange {
717 | if NSApp.currentEvent == nil ||
| `- warning: main actor-isolated property 'currentEvent' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
719 | NSApp.currentEvent?.characters == nil ||
AppKit.NSApplication:4:25: note: property declared here
2 | open func sendEvent(_ event: NSEvent)
3 | open func postEvent(_ event: NSEvent, atStart: Bool)
4 | @MainActor open var currentEvent: NSEvent? { get }
| `- note: property declared here
5 | open func nextEvent(matching mask: NSEvent.EventTypeMask, until expiration: Date?, inMode mode: RunLoop.Mode, dequeue deqFlag: Bool) -> NSEvent?
6 | @available(swift, obsoleted: 3, renamed: "nextEvent(matching:until:inMode:dequeue:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:717:20: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
715 | // Cancel completinon on selection change
716 | if self.shouldDimissCompletionOnSelectionChange {
717 | if NSApp.currentEvent == nil ||
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
719 | NSApp.currentEvent?.characters == nil ||
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:718:28: warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
716 | if self.shouldDimissCompletionOnSelectionChange {
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
| `- warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
719 | NSApp.currentEvent?.characters == nil ||
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
AppKit.NSApplication:4:25: note: property declared here
2 | open func sendEvent(_ event: NSEvent)
3 | open func postEvent(_ event: NSEvent, atStart: Bool)
4 | @MainActor open var currentEvent: NSEvent? { get }
| `- note: property declared here
5 | open func nextEvent(matching mask: NSEvent.EventTypeMask, until expiration: Date?, inMode mode: RunLoop.Mode, dequeue deqFlag: Bool) -> NSEvent?
6 | @available(swift, obsoleted: 3, renamed: "nextEvent(matching:until:inMode:dequeue:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:718:22: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
716 | if self.shouldDimissCompletionOnSelectionChange {
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
719 | NSApp.currentEvent?.characters == nil ||
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:718:68: warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
716 | if self.shouldDimissCompletionOnSelectionChange {
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
| `- warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
719 | NSApp.currentEvent?.characters == nil ||
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
AppKit.NSApplication:4:25: note: property declared here
2 | open func sendEvent(_ event: NSEvent)
3 | open func postEvent(_ event: NSEvent, atStart: Bool)
4 | @MainActor open var currentEvent: NSEvent? { get }
| `- note: property declared here
5 | open func nextEvent(matching mask: NSEvent.EventTypeMask, until expiration: Date?, inMode mode: RunLoop.Mode, dequeue deqFlag: Bool) -> NSEvent?
6 | @available(swift, obsoleted: 3, renamed: "nextEvent(matching:until:inMode:dequeue:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:718:62: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
716 | if self.shouldDimissCompletionOnSelectionChange {
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
719 | NSApp.currentEvent?.characters == nil ||
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:719:27: warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
719 | NSApp.currentEvent?.characters == nil ||
| `- warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
721 | {
AppKit.NSApplication:4:25: note: property declared here
2 | open func sendEvent(_ event: NSEvent)
3 | open func postEvent(_ event: NSEvent, atStart: Bool)
4 | @MainActor open var currentEvent: NSEvent? { get }
| `- note: property declared here
5 | open func nextEvent(matching mask: NSEvent.EventTypeMask, until expiration: Date?, inMode mode: RunLoop.Mode, dequeue deqFlag: Bool) -> NSEvent?
6 | @available(swift, obsoleted: 3, renamed: "nextEvent(matching:until:inMode:dequeue:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:719:21: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
717 | if NSApp.currentEvent == nil ||
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
719 | NSApp.currentEvent?.characters == nil ||
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
721 | {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:720:29: warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
719 | NSApp.currentEvent?.characters == nil ||
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
| `- warning: main actor-isolated property 'currentEvent' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
721 | {
722 | self.cancelComplete(textViewNotification.object)
AppKit.NSApplication:4:25: note: property declared here
2 | open func sendEvent(_ event: NSEvent)
3 | open func postEvent(_ event: NSEvent, atStart: Bool)
4 | @MainActor open var currentEvent: NSEvent? { get }
| `- note: property declared here
5 | open func nextEvent(matching mask: NSEvent.EventTypeMask, until expiration: Date?, inMode mode: RunLoop.Mode, dequeue deqFlag: Bool) -> NSEvent?
6 | @available(swift, obsoleted: 3, renamed: "nextEvent(matching:until:inMode:dequeue:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:720:23: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
718 | (NSApp.currentEvent?.type != .keyDown && NSApp.currentEvent?.type != .keyUp) ||
719 | NSApp.currentEvent?.characters == nil ||
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
721 | {
722 | self.cancelComplete(textViewNotification.object)
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:722:26: warning: call to main actor-isolated instance method 'cancelComplete' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
720 | !(NSApp.currentEvent?.characters?.contains(where: \.isLetter) ?? false)
721 | {
722 | self.cancelComplete(textViewNotification.object)
| `- warning: call to main actor-isolated instance method 'cancelComplete' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
723 | }
724 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+Complete.swift:34:21: note: calls to instance method 'cancelComplete' from outside of its actor context are implicitly asynchronous
32 | /// see ``complete(_:)``
33 | @preconcurrency @MainActor
34 | @objc open func cancelComplete(_ sender: Any?) {
| `- note: calls to instance method 'cancelComplete' from outside of its actor context are implicitly asynchronous
35 | _completionTask?.cancel()
36 | completionWindowController?.close()
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:732:19: warning: main actor-isolated property 'needsUpdateConstraints' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
730 | usageBoundsForTextContainerObserver = textLayoutManager.observe(\.usageBoundsForTextContainer, options: [.initial, .new]) { [weak self] _, _ in
731 | // FB13291926: this notification no longer works
732 | self?.needsUpdateConstraints = true
| `- warning: main actor-isolated property 'needsUpdateConstraints' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
733 | }
734 | }
AppKit.NSView:7:25: note: mutation of this property is only permitted within the actor
5 | open func updateConstraints()
6 | @available(macOS 10.7, *)
7 | @MainActor open var needsUpdateConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1067:25: warning: main actor-isolated property 'textLayoutManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
431 |
432 | /// The manager that lays out text for the text view's text container.
433 | @objc dynamic open var textLayoutManager: NSTextLayoutManager {
| `- note: property declared here
434 | willSet {
435 | textContentManager.primaryTextLayoutManager = nil
:
1064 | for textLineFragment in layoutFragment.textLineFragments {
1065 |
1066 | func isLineSelected() -> Bool {
| `- note: add '@MainActor' to make local function 'isLineSelected()' part of global actor 'MainActor'
1067 | textLayoutManager.textSelections.flatMap(\.textRanges).reduce(true) { partialResult, selectionTextRange in
| `- warning: main actor-isolated property 'textLayoutManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1068 | var result = true
1069 | if textLineFragment.isExtraLineFragment {
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1435:21: warning: capture of 'undoRange' with non-sendable type 'NSTextRange' in a `@Sendable` closure
1433 | // Regular undo action
1434 | textView.replaceCharacters(
1435 | in: undoRange,
| `- warning: capture of 'undoRange' with non-sendable type 'NSTextRange' in a `@Sendable` closure
1436 | with: previousStringInRange,
1437 | allowsTypingCoalescing: false
AppKit.NSTextRange:2:12: note: class 'NSTextRange' does not conform to the 'Sendable' protocol
1 | @available(macOS 12.0, *)
2 | open class NSTextRange : NSObject {
| `- note: class 'NSTextRange' does not conform to the 'Sendable' protocol
3 | public init?(location: any NSTextLocation, end endLocation: (any NSTextLocation)?)
4 | @available(swift, obsoleted: 3, renamed: "init(location:end:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1436:23: warning: capture of 'previousStringInRange' with non-sendable type 'NSAttributedString' in a `@Sendable` closure
1434 | textView.replaceCharacters(
1435 | in: undoRange,
1436 | with: previousStringInRange,
| `- warning: capture of 'previousStringInRange' with non-sendable type 'NSAttributedString' in a `@Sendable` closure
1437 | allowsTypingCoalescing: false
1438 | )
Foundation.NSAttributedString:2:12: note: class 'NSAttributedString' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.0, *)
2 | open class NSAttributedString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
| `- note: class 'NSAttributedString' does not conform to the 'Sendable' protocol
3 | open var string: String { get }
4 | open func attributes(at location: Int, effectiveRange range: NSRangePointer?) -> [NSAttributedString.Key : Any]
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1439:43: warning: capture of 'textRange' with non-sendable type 'NSTextRange' in a `@Sendable` closure
1437 | allowsTypingCoalescing: false
1438 | )
1439 | textView.setSelectedTextRange(textRange, updateLayout: true)
| `- warning: capture of 'textRange' with non-sendable type 'NSTextRange' in a `@Sendable` closure
1440 | }
1441 | undoManager.endUndoGrouping()
AppKit.NSTextRange:2:12: note: class 'NSTextRange' does not conform to the 'Sendable' protocol
1 | @available(macOS 12.0, *)
2 | open class NSTextRange : NSObject {
| `- note: class 'NSTextRange' does not conform to the 'Sendable' protocol
3 | public init?(location: any NSTextLocation, end endLocation: (any NSTextLocation)?)
4 | @available(swift, obsoleted: 3, renamed: "init(location:end:)")
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1434:22: warning: call to main actor-isolated instance method 'replaceCharacters(in:with:allowsTypingCoalescing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1397 | }
1398 |
1399 | internal func replaceCharacters(in textRange: NSTextRange, with replacementString: NSAttributedString, allowsTypingCoalescing: Bool) {
| `- note: calls to instance method 'replaceCharacters(in:with:allowsTypingCoalescing:)' from outside of its actor context are implicitly asynchronous
1400 | let previousStringInRange = (textContentManager as? NSTextContentStorage)!.attributedString!.attributedSubstring(from: NSRange(textRange, in: textContentManager))
1401 |
:
1432 | undoManager.registerUndo(withTarget: self) { textView in
1433 | // Regular undo action
1434 | textView.replaceCharacters(
| `- warning: call to main actor-isolated instance method 'replaceCharacters(in:with:allowsTypingCoalescing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1435 | in: undoRange,
1436 | with: previousStringInRange,
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1439:22: warning: call to main actor-isolated instance method 'setSelectedTextRange(_:updateLayout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1437 | allowsTypingCoalescing: false
1438 | )
1439 | textView.setSelectedTextRange(textRange, updateLayout: true)
| `- warning: call to main actor-isolated instance method 'setSelectedTextRange(_:updateLayout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1440 | }
1441 | undoManager.endUndoGrouping()
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+Select.swift:9:19: note: calls to instance method 'setSelectedTextRange(_:updateLayout:)' from outside of its actor context are implicitly asynchronous
7 | extension STTextView {
8 |
9 | internal func setSelectedTextRange(_ textRange: NSTextRange, updateLayout: Bool) {
| `- note: calls to instance method 'setSelectedTextRange(_:updateLayout:)' from outside of its actor context are implicitly asynchronous
10 | guard isSelectable, textRange.endLocation <= textLayoutManager.documentRange.endLocation else {
11 | return
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1531:22: warning: call to main actor-isolated instance method 'updateInsertionPointStateAndRestartTimer()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1524 | struct InsertionPoint: NSViewInvalidating {
1525 |
1526 | func invalidate(view: NSView) {
| `- note: add '@MainActor' to make instance method 'invalidate(view:)' part of global actor 'MainActor'
1527 | guard let textView = view as? STTextView else {
1528 | return
1529 | }
1530 |
1531 | textView.updateInsertionPointStateAndRestartTimer()
| `- warning: call to main actor-isolated instance method 'updateInsertionPointStateAndRestartTimer()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1532 | }
1533 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView+InsertionPoint.swift:11:17: note: calls to instance method 'updateInsertionPointStateAndRestartTimer()' from outside of its actor context are implicitly asynchronous
9 |
10 | /// Updates the insertion point’s location and optionally restarts the blinking cursor timer.
11 | public func updateInsertionPointStateAndRestartTimer() {
| `- note: calls to instance method 'updateInsertionPointStateAndRestartTimer()' from outside of its actor context are implicitly asynchronous
12 | // Hide insertion point layers
13 | if shouldDrawInsertionPoint {
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1538:26: warning: call to main actor-isolated instance method 'invalidateCursorRects(for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1535 | struct CursorRects: NSViewInvalidating {
1536 |
1537 | func invalidate(view: NSView) {
| `- note: add '@MainActor' to make instance method 'invalidate(view:)' part of global actor 'MainActor'
1538 | view.window?.invalidateCursorRects(for: view)
| `- warning: call to main actor-isolated instance method 'invalidateCursorRects(for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1539 | }
1540 | }
AppKit.NSWindow:6:26: note: calls to instance method 'invalidateCursorRects(for:)' from outside of its actor context are implicitly asynchronous
4 | open func discardCursorRects()
5 | open var areCursorRectsEnabled: Bool { get }
6 | @MainActor open func invalidateCursorRects(for view: NSView)
| `- note: calls to instance method 'invalidateCursorRects(for:)' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "invalidateCursorRects(for:)")
8 | open func invalidateCursorRectsForView(_ view: NSView)
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:1538:18: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1535 | struct CursorRects: NSViewInvalidating {
1536 |
1537 | func invalidate(view: NSView) {
| `- note: add '@MainActor' to make instance method 'invalidate(view:)' part of global actor 'MainActor'
1538 | view.window?.invalidateCursorRects(for: view)
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1539 | }
1540 | }
AppKit.NSView:4:41: note: property declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | @MainActor open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegate.swift:129:9: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 | }
127 |
128 | func textViewCompletionViewController(_ textView: STTextView) -> any STCompletionViewControllerProtocol {
| `- note: add '@MainActor' to make instance method 'textViewCompletionViewController' part of global actor 'MainActor'
129 | STCompletionViewController()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | }
131 |
AppKit.NSViewController:43:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
41 | @available(macOS 10.10, *)
42 | open func viewDidLayout()
43 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
44 | @available(macOS 10.5, *)
45 | open var identifier: NSUserInterfaceItemIdentifier? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegateProxy.swift:32:37: warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
30 | func textView(_ textView: STTextView, shouldChangeTextIn affectedCharRange: NSTextRange, replacementString: String?) -> Bool {
31 | var result = source?.textView(textView, shouldChangeTextIn: affectedCharRange, replacementString: replacementString) ?? true
32 | result = result && textView.plugins.events.reduce(result) { partialResult, events in
| `- warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | partialResult && events.shouldChangeTextHandler?(affectedCharRange, replacementString) ?? true
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:38:18: note: property declared here
36 |
37 | /// Installed plugins. events value is available after plugin is setup
38 | internal var plugins: [Plugin] = []
| `- note: property declared here
39 |
40 | /// A Boolean value that controls whether the text view allows the user to edit text.
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegateProxy.swift:41:32: warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 |
38 | func textView(_ textView: STTextView, willChangeTextIn affectedCharRange: NSTextRange, replacementString: String) {
| `- note: add '@MainActor' to make instance method 'textView(_:willChangeTextIn:replacementString:)' part of global actor 'MainActor'
39 | source?.textView(textView, willChangeTextIn: affectedCharRange, replacementString: replacementString)
40 |
41 | for events in textView.plugins.events {
| `- warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | events.willChangeTextHandler?(affectedCharRange)
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:38:18: note: property declared here
36 |
37 | /// Installed plugins. events value is available after plugin is setup
38 | internal var plugins: [Plugin] = []
| `- note: property declared here
39 |
40 | /// A Boolean value that controls whether the text view allows the user to edit text.
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegateProxy.swift:49:32: warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | }
45 |
46 | func textView(_ textView: STTextView, didChangeTextIn affectedCharRange: NSTextRange, replacementString: String) {
| `- note: add '@MainActor' to make instance method 'textView(_:didChangeTextIn:replacementString:)' part of global actor 'MainActor'
47 | source?.textView(textView, didChangeTextIn: affectedCharRange, replacementString: replacementString)
48 |
49 | for events in textView.plugins.events {
| `- warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | events.didChangeTextHandler?(affectedCharRange, replacementString)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:38:18: note: property declared here
36 |
37 | /// Installed plugins. events value is available after plugin is setup
38 | internal var plugins: [Plugin] = []
| `- note: property declared here
39 |
40 | /// A Boolean value that controls whether the text view allows the user to edit text.
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegateProxy.swift:56:49: warning: main actor-isolated property 'textLayoutManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
53 | }
54 |
55 | func textView(_ textView: STTextView, menu: NSMenu, for event: NSEvent, at location: NSTextLocation) -> NSMenu? {
| `- note: add '@MainActor' to make instance method 'textView(_:menu:for:at:)' part of global actor 'MainActor'
56 | guard let textContentManager = textView.textLayoutManager.textContentManager else {
| `- warning: main actor-isolated property 'textLayoutManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | return nil
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:433:28: note: property declared here
431 |
432 | /// The manager that lays out text for the text view's text container.
433 | @objc dynamic open var textLayoutManager: NSTextLayoutManager {
| `- note: property declared here
434 | willSet {
435 | textContentManager.primaryTextLayoutManager = nil
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegateProxy.swift:63:36: warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
53 | }
54 |
55 | func textView(_ textView: STTextView, menu: NSMenu, for event: NSEvent, at location: NSTextLocation) -> NSMenu? {
| `- note: add '@MainActor' to make instance method 'textView(_:menu:for:at:)' part of global actor 'MainActor'
56 | guard let textContentManager = textView.textLayoutManager.textContentManager else {
57 | return nil
:
61 |
62 | // Append plugins menus
63 | let pluginMenus = textView.plugins.events.compactMap { events in
| `- warning: main actor-isolated property 'plugins' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
64 | events.onContextMenuHandler?(location, textContentManager)
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:38:18: note: property declared here
36 |
37 | /// Installed plugins. events value is available after plugin is setup
38 | internal var plugins: [Plugin] = []
| `- note: property declared here
39 |
40 | /// A Boolean value that controls whether the text view allows the user to edit text.
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextViewDelegateProxy.swift:97:63: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 |
96 | func textViewCompletionViewController(_ textView: STTextView) -> any STCompletionViewControllerProtocol {
97 | source?.textViewCompletionViewController(textView) ?? STCompletionViewController()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | }
99 |
AppKit.NSViewController:43:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
41 | @available(macOS 10.10, *)
42 | open func viewDidLayout()
43 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
44 | @available(macOS 10.5, *)
45 | open var identifier: NSUserInterfaceItemIdentifier? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:686:16: warning: cannot access property 'plugins' with a non-sendable type '[Plugin]' from nonisolated deinit; this is an error in the Swift 6 language mode
684 |
685 | deinit {
686 | guard !plugins.isEmpty else { return }
| `- warning: cannot access property 'plugins' with a non-sendable type '[Plugin]' from nonisolated deinit; this is an error in the Swift 6 language mode
687 | Task { @MainActor [plugins] in
688 | plugins.forEach { plugin in
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/Plugin/Plugin.swift:4:17: note: consider making struct 'Plugin' conform to the 'Sendable' protocol
2 | // https://github.com/krzyzanowskim/STTextView/blob/main/LICENSE.md
3 |
4 | internal struct Plugin {
| `- note: consider making struct 'Plugin' conform to the 'Sendable' protocol
5 | let instance: any STPlugin
6 | var events: STPluginEvents?
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:687:28: warning: cannot access property 'plugins' with a non-sendable type '[Plugin]' from nonisolated deinit; this is an error in the Swift 6 language mode
685 | deinit {
686 | guard !plugins.isEmpty else { return }
687 | Task { @MainActor [plugins] in
| `- warning: cannot access property 'plugins' with a non-sendable type '[Plugin]' from nonisolated deinit; this is an error in the Swift 6 language mode
688 | plugins.forEach { plugin in
689 | plugin.instance.tearDown()
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/Plugin/Plugin.swift:4:17: note: consider making struct 'Plugin' conform to the 'Sendable' protocol
2 | // https://github.com/krzyzanowskim/STTextView/blob/main/LICENSE.md
3 |
4 | internal struct Plugin {
| `- note: consider making struct 'Plugin' conform to the 'Sendable' protocol
5 | let instance: any STPlugin
6 | var events: STPluginEvents?
[115/121] Compiling STTextViewAppKit STPluginEvents.swift
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:89:17: warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
86 | }
87 |
88 | extension STCompletionWindowController: STCompletionViewControllerDelegate {
| `- note: add '@preconcurrency' to the 'STCompletionViewControllerDelegate' conformance to defer isolation checking to run time
89 | public func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement) {
| |- warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'completionViewController(_:complete:movement:)' to make this instance method not isolated to the actor
90 | delegate?.completionWindowController(self, complete: item, movement: movement)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/STCompletionViewControllerDelegate.swift:7:10: note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
5 |
6 | public protocol STCompletionViewControllerDelegate: AnyObject {
7 | func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement)
| `- note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:66:19: warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 |
65 | NotificationCenter.default.addObserver(forName: NSWindow.willCloseNotification, object: window, queue: .main) { [weak self] notification in
66 | self?.cleanupOnClose()
| `- warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 |
:
72 | }
73 |
74 | private func cleanupOnClose() {
| `- note: calls to instance method 'cleanupOnClose()' from outside of its actor context are implicitly asynchronous
75 | completionViewController.items.removeAll(keepingCapacity: true)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:70:19: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
68 |
69 | NotificationCenter.default.addObserver(forName: NSWindow.didResignKeyNotification, object: parentWindow, queue: .main) { [weak self] notification in
70 | self?.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | }
72 | }
:
76 | }
77 |
78 | open override func close() {
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
79 | guard isVisible else { return }
80 | super.close()
[116/121] Compiling STTextViewAppKit STCompletionItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:89:17: warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
86 | }
87 |
88 | extension STCompletionWindowController: STCompletionViewControllerDelegate {
| `- note: add '@preconcurrency' to the 'STCompletionViewControllerDelegate' conformance to defer isolation checking to run time
89 | public func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement) {
| |- warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'completionViewController(_:complete:movement:)' to make this instance method not isolated to the actor
90 | delegate?.completionWindowController(self, complete: item, movement: movement)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/STCompletionViewControllerDelegate.swift:7:10: note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
5 |
6 | public protocol STCompletionViewControllerDelegate: AnyObject {
7 | func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement)
| `- note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:66:19: warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 |
65 | NotificationCenter.default.addObserver(forName: NSWindow.willCloseNotification, object: window, queue: .main) { [weak self] notification in
66 | self?.cleanupOnClose()
| `- warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 |
:
72 | }
73 |
74 | private func cleanupOnClose() {
| `- note: calls to instance method 'cleanupOnClose()' from outside of its actor context are implicitly asynchronous
75 | completionViewController.items.removeAll(keepingCapacity: true)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:70:19: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
68 |
69 | NotificationCenter.default.addObserver(forName: NSWindow.didResignKeyNotification, object: parentWindow, queue: .main) { [weak self] notification in
70 | self?.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | }
72 | }
:
76 | }
77 |
78 | open override func close() {
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
79 | guard isVisible else { return }
80 | super.close()
[117/121] Compiling STTextViewAppKit STCompletionViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:89:17: warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
86 | }
87 |
88 | extension STCompletionWindowController: STCompletionViewControllerDelegate {
| `- note: add '@preconcurrency' to the 'STCompletionViewControllerDelegate' conformance to defer isolation checking to run time
89 | public func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement) {
| |- warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'completionViewController(_:complete:movement:)' to make this instance method not isolated to the actor
90 | delegate?.completionWindowController(self, complete: item, movement: movement)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/STCompletionViewControllerDelegate.swift:7:10: note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
5 |
6 | public protocol STCompletionViewControllerDelegate: AnyObject {
7 | func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement)
| `- note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:66:19: warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 |
65 | NotificationCenter.default.addObserver(forName: NSWindow.willCloseNotification, object: window, queue: .main) { [weak self] notification in
66 | self?.cleanupOnClose()
| `- warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 |
:
72 | }
73 |
74 | private func cleanupOnClose() {
| `- note: calls to instance method 'cleanupOnClose()' from outside of its actor context are implicitly asynchronous
75 | completionViewController.items.removeAll(keepingCapacity: true)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:70:19: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
68 |
69 | NotificationCenter.default.addObserver(forName: NSWindow.didResignKeyNotification, object: parentWindow, queue: .main) { [weak self] notification in
70 | self?.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | }
72 | }
:
76 | }
77 |
78 | open override func close() {
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
79 | guard isVisible else { return }
80 | super.close()
[118/121] Compiling STTextViewAppKit STCompletionViewControllerDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:89:17: warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
86 | }
87 |
88 | extension STCompletionWindowController: STCompletionViewControllerDelegate {
| `- note: add '@preconcurrency' to the 'STCompletionViewControllerDelegate' conformance to defer isolation checking to run time
89 | public func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement) {
| |- warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'completionViewController(_:complete:movement:)' to make this instance method not isolated to the actor
90 | delegate?.completionWindowController(self, complete: item, movement: movement)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/STCompletionViewControllerDelegate.swift:7:10: note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
5 |
6 | public protocol STCompletionViewControllerDelegate: AnyObject {
7 | func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement)
| `- note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:66:19: warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 |
65 | NotificationCenter.default.addObserver(forName: NSWindow.willCloseNotification, object: window, queue: .main) { [weak self] notification in
66 | self?.cleanupOnClose()
| `- warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 |
:
72 | }
73 |
74 | private func cleanupOnClose() {
| `- note: calls to instance method 'cleanupOnClose()' from outside of its actor context are implicitly asynchronous
75 | completionViewController.items.removeAll(keepingCapacity: true)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:70:19: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
68 |
69 | NotificationCenter.default.addObserver(forName: NSWindow.didResignKeyNotification, object: parentWindow, queue: .main) { [weak self] notification in
70 | self?.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | }
72 | }
:
76 | }
77 |
78 | open override func close() {
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
79 | guard isVisible else { return }
80 | super.close()
[119/121] Compiling STTextViewAppKit STCompletionViewControllerProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:89:17: warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
86 | }
87 |
88 | extension STCompletionWindowController: STCompletionViewControllerDelegate {
| `- note: add '@preconcurrency' to the 'STCompletionViewControllerDelegate' conformance to defer isolation checking to run time
89 | public func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement) {
| |- warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'completionViewController(_:complete:movement:)' to make this instance method not isolated to the actor
90 | delegate?.completionWindowController(self, complete: item, movement: movement)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/STCompletionViewControllerDelegate.swift:7:10: note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
5 |
6 | public protocol STCompletionViewControllerDelegate: AnyObject {
7 | func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement)
| `- note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:66:19: warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 |
65 | NotificationCenter.default.addObserver(forName: NSWindow.willCloseNotification, object: window, queue: .main) { [weak self] notification in
66 | self?.cleanupOnClose()
| `- warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 |
:
72 | }
73 |
74 | private func cleanupOnClose() {
| `- note: calls to instance method 'cleanupOnClose()' from outside of its actor context are implicitly asynchronous
75 | completionViewController.items.removeAll(keepingCapacity: true)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:70:19: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
68 |
69 | NotificationCenter.default.addObserver(forName: NSWindow.didResignKeyNotification, object: parentWindow, queue: .main) { [weak self] notification in
70 | self?.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | }
72 | }
:
76 | }
77 |
78 | open override func close() {
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
79 | guard isVisible else { return }
80 | super.close()
[120/121] Compiling STTextViewAppKit STCompletionWindow.swift
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:89:17: warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
86 | }
87 |
88 | extension STCompletionWindowController: STCompletionViewControllerDelegate {
| `- note: add '@preconcurrency' to the 'STCompletionViewControllerDelegate' conformance to defer isolation checking to run time
89 | public func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement) {
| |- warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'completionViewController(_:complete:movement:)' to make this instance method not isolated to the actor
90 | delegate?.completionWindowController(self, complete: item, movement: movement)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/STCompletionViewControllerDelegate.swift:7:10: note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
5 |
6 | public protocol STCompletionViewControllerDelegate: AnyObject {
7 | func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement)
| `- note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:66:19: warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 |
65 | NotificationCenter.default.addObserver(forName: NSWindow.willCloseNotification, object: window, queue: .main) { [weak self] notification in
66 | self?.cleanupOnClose()
| `- warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 |
:
72 | }
73 |
74 | private func cleanupOnClose() {
| `- note: calls to instance method 'cleanupOnClose()' from outside of its actor context are implicitly asynchronous
75 | completionViewController.items.removeAll(keepingCapacity: true)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:70:19: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
68 |
69 | NotificationCenter.default.addObserver(forName: NSWindow.didResignKeyNotification, object: parentWindow, queue: .main) { [weak self] notification in
70 | self?.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | }
72 | }
:
76 | }
77 |
78 | open override func close() {
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
79 | guard isVisible else { return }
80 | super.close()
[121/121] Compiling STTextViewAppKit STCompletionWindowController.swift
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:89:17: warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
86 | }
87 |
88 | extension STCompletionWindowController: STCompletionViewControllerDelegate {
| `- note: add '@preconcurrency' to the 'STCompletionViewControllerDelegate' conformance to defer isolation checking to run time
89 | public func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement) {
| |- warning: main actor-isolated instance method 'completionViewController(_:complete:movement:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'completionViewController(_:complete:movement:)' to make this instance method not isolated to the actor
90 | delegate?.completionWindowController(self, complete: item, movement: movement)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/STCompletionViewControllerDelegate.swift:7:10: note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
5 |
6 | public protocol STCompletionViewControllerDelegate: AnyObject {
7 | func completionViewController<T: STCompletionViewControllerProtocol>(_ viewController: T, complete item: any STCompletionItem, movement: NSTextMovement)
| `- note: mark the protocol requirement 'completionViewController(_:complete:movement:)' 'async' to allow actor-isolated conformances
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:66:19: warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 |
65 | NotificationCenter.default.addObserver(forName: NSWindow.willCloseNotification, object: window, queue: .main) { [weak self] notification in
66 | self?.cleanupOnClose()
| `- warning: call to main actor-isolated instance method 'cleanupOnClose()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 |
:
72 | }
73 |
74 | private func cleanupOnClose() {
| `- note: calls to instance method 'cleanupOnClose()' from outside of its actor context are implicitly asynchronous
75 | completionViewController.items.removeAll(keepingCapacity: true)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STCompletion/Window/STCompletionWindowController.swift:70:19: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
68 |
69 | NotificationCenter.default.addObserver(forName: NSWindow.didResignKeyNotification, object: parentWindow, queue: .main) { [weak self] notification in
70 | self?.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | }
72 | }
:
76 | }
77 |
78 | open override func close() {
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
79 | guard isVisible else { return }
80 | super.close()
[122/123] Emitting module STTextView
[123/123] Compiling STTextView module.swift
[124/126] Compiling STTextViewSwiftUIAppKit TextView.swift
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewSwiftUIAppKit/TextView.swift:175:62: warning: main actor-isolated property 'attributedText' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | func textViewDidChangeText(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'textViewDidChangeText' part of global actor 'MainActor'
170 | guard let textView = notification.object as? STTextView else {
171 | return
:
173 |
174 | if !isUpdating {
175 | let newTextValue = AttributedString(textView.attributedText ?? NSAttributedString())
| `- warning: main actor-isolated property 'attributedText' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
176 | DispatchQueue.main.async {
177 | self.isDidChangeText = true
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewAppKit/STTextView.swift:261:22: note: property declared here
259 | ///
260 | /// Assigning a new value to this property also replaces the value of the `text` property with the same string data, albeit without any formatting information. In addition, the `font`, `textColor`, and `textAlignment` properties are updated to reflect the typing attributes of the text view.
261 | @objc public var attributedText: NSAttributedString? {
| `- note: property declared here
262 | set {
263 | let prevLocation = textLayoutManager.insertionPointLocations.first
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewSwiftUIAppKit/TextView.swift:190:41: warning: sending 'textView' risks causing data races; this is an error in the Swift 6 language mode
188 | Task { @MainActor in
189 | self.isDidChangeText = true
190 | self.parent.selection = textView.selectedRange()
| |- warning: sending 'textView' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'textView' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
191 | }
192 | }
[125/126] Compiling STTextViewSwiftUIAppKit TextViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewSwiftUIAppKit/TextViewModifier.swift:29:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | private struct FontEnvironmentKey: EnvironmentKey {
29 | static var defaultValue: NSFont = .preferredFont(forTextStyle: .body)
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | }
31 |
[126/126] Emitting module STTextViewSwiftUIAppKit
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewSwiftUIAppKit/TextViewModifier.swift:29:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | private struct FontEnvironmentKey: EnvironmentKey {
29 | static var defaultValue: NSFont = .preferredFont(forTextStyle: .body)
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | }
31 |
[127/128] Emitting module STTextViewSwiftUI
[128/128] Compiling STTextViewSwiftUI module.swift
Build complete! (38.25s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/STTextViewCommon/Utilities/Throttler/LICENSE
Build complete.
{
"dependencies" : [
{
"identity" : "sttextkitplus",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.3",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/krzyzanowskim/STTextKitPlus"
},
{
"identity" : "coretextswift",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/krzyzanowskim/CoreTextSwift"
}
],
"manifest_display_name" : "STTextView",
"name" : "STTextView",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "maccatalyst",
"version" : "16.0"
}
],
"products" : [
{
"name" : "STTextView",
"targets" : [
"STTextView",
"STTextViewSwiftUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "STTextViewUIKitTests",
"module_type" : "SwiftTarget",
"name" : "STTextViewUIKitTests",
"path" : "Tests/STTextViewUIKitTests",
"sources" : [
"TextViewTests.swift"
],
"target_dependencies" : [
"STTextViewUIKit"
],
"type" : "test"
},
{
"c99name" : "STTextViewUIKit",
"module_type" : "SwiftTarget",
"name" : "STTextViewUIKit",
"path" : "Sources/STTextViewUIKit",
"product_dependencies" : [
"STTextKitPlus",
"CoreTextSwift"
],
"product_memberships" : [
"STTextView"
],
"sources" : [
"Gutter/STGutterLineNumberCell.swift",
"Gutter/STGutterMarker.swift",
"Gutter/STGutterView.swift",
"Logger.swift",
"Overlays/STContentView.swift",
"Overlays/STLineHighlightView.swift",
"Plugin/Plugin.swift",
"Plugin/STPlugin.swift",
"Plugin/STPluginContext.swift",
"Plugin/STPluginEvents.swift",
"STTextInputTokenizer.swift",
"STTextLayoutFragment.swift",
"STTextLayoutFragmentView.swift",
"STTextLocation.swift",
"STTextLocationRange.swift",
"STTextSelectionRect.swift",
"STTextView+Gutter.swift",
"STTextView+NSTextLayoutManagerDelegate.swift",
"STTextView+NSTextViewportLayoutControllerDelegate.swift",
"STTextView+UIKeyInput.swift",
"STTextView+UIResponderStandardEditActions.swift",
"STTextView+UITextInput.swift",
"STTextView+UITextInputTraits.swift",
"STTextView+UITextInteractionDelegate.swift",
"STTextView+Undo.swift",
"STTextView.swift",
"STTextViewDelegate.swift",
"STTextViewDelegateProxy.swift",
"UITextDirection+Conversion.swift"
],
"target_dependencies" : [
"STTextViewCommon",
"STObjCLandShim"
],
"type" : "library"
},
{
"c99name" : "STTextViewSwiftUIUIKit",
"module_type" : "SwiftTarget",
"name" : "STTextViewSwiftUIUIKit",
"path" : "Sources/STTextViewSwiftUIUIKit",
"product_memberships" : [
"STTextView"
],
"sources" : [
"TextView.swift",
"TextViewModifier.swift"
],
"target_dependencies" : [
"STTextView"
],
"type" : "library"
},
{
"c99name" : "STTextViewSwiftUIAppKit",
"module_type" : "SwiftTarget",
"name" : "STTextViewSwiftUIAppKit",
"path" : "Sources/STTextViewSwiftUIAppKit",
"product_memberships" : [
"STTextView"
],
"sources" : [
"TextView.swift",
"TextViewModifier.swift"
],
"target_dependencies" : [
"STTextView"
],
"type" : "library"
},
{
"c99name" : "STTextViewSwiftUI",
"module_type" : "SwiftTarget",
"name" : "STTextViewSwiftUI",
"path" : "Sources/STTextViewSwiftUI",
"product_memberships" : [
"STTextView"
],
"sources" : [
"module.swift"
],
"target_dependencies" : [
"STTextViewSwiftUIAppKit",
"STTextViewSwiftUIUIKit"
],
"type" : "library"
},
{
"c99name" : "STTextViewCommon",
"module_type" : "SwiftTarget",
"name" : "STTextViewCommon",
"path" : "Sources/STTextViewCommon",
"product_dependencies" : [
"STTextKitPlus"
],
"product_memberships" : [
"STTextView"
],
"sources" : [
"CoalescingUndoManager.swift",
"Extensions/Geometric+Helpers.swift",
"Extensions/NSAttributedString+Helpers.swift",
"Extensions/NSParagraphStyle+Helpers.swift",
"Extensions/NSRange+Helpers.swift",
"Extensions/NSTextLayoutManager+Selection.swift",
"Extensions/NStextLayoutFragment+isExtraLineFragment.swift",
"STAttributedTextElement.swift",
"STMarkedText.swift",
"STTextContentStorage.swift",
"STTextLayoutManager.swift",
"STTextViewProtocol.swift",
"Utilities/ApproximateEquality.swift",
"Utilities/LineHeight.swift",
"Utilities/PixelAlign.swift",
"Utilities/STRulerInsets.swift",
"Utilities/Throttler/Actor/Throttler.swift",
"Utilities/Throttler/debounce.swift",
"Utilities/Throttler/delay.swift",
"Utilities/Throttler/throttle.swift"
],
"type" : "library"
},
{
"c99name" : "STTextViewAppKitTests",
"module_type" : "SwiftTarget",
"name" : "STTextViewAppKitTests",
"path" : "Tests/STTextViewAppKitTests",
"sources" : [
"ContentTests.swift",
"Helpers/NSEvent+Create.swift",
"TextSelectionNavigationTests.swift",
"TextViewTests.swift",
"TypingAttributesTests.swift",
"UndoTests.swift"
],
"target_dependencies" : [
"STTextViewAppKit"
],
"type" : "test"
},
{
"c99name" : "STTextViewAppKit",
"module_type" : "SwiftTarget",
"name" : "STTextViewAppKit",
"path" : "Sources/STTextViewAppKit",
"product_dependencies" : [
"STTextKitPlus",
"CoreTextSwift"
],
"product_memberships" : [
"STTextView"
],
"sources" : [
"DragSelectedTextGestureRecognizer.swift",
"Extensions/NSEdgeInsets+orientation.swift",
"Extensions/NSResponder+debug.swift",
"Extensions/NSTextContentManager+Helpers.swift",
"Extensions/NSTextLayoutManager+Helpers.swift",
"Extensions/NSTextLayoutManager+InsertionPoint.swift",
"Extensions/NSView+Image.swift",
"Gutter/STGutterContainerView.swift",
"Gutter/STGutterLineNumberCell.swift",
"Gutter/STGutterMarker.swift",
"Gutter/STGutterMarkerContainerView.swift",
"Gutter/STGutterSeparatorView.swift",
"Gutter/STGutterView.swift",
"Logger.swift",
"Overlays/STContentView.swift",
"Overlays/STLineHighlightView.swift",
"Overlays/STSelectionHighlightView.swift",
"Overlays/STSelectionView.swift",
"Plugin/Plugin.swift",
"Plugin/STPlugin.swift",
"Plugin/STPluginContext.swift",
"Plugin/STPluginEvents.swift",
"STCompletion/STCompletionItem.swift",
"STCompletion/STCompletionViewController.swift",
"STCompletion/STCompletionViewControllerDelegate.swift",
"STCompletion/STCompletionViewControllerProtocol.swift",
"STCompletion/Window/STCompletionWindow.swift",
"STCompletion/Window/STCompletionWindowController.swift",
"STInsertionPointIndicatorProtocol.swift",
"STInsertionPointView.swift",
"STTextContainer.swift",
"STTextFinderBarContainer.swift",
"STTextFinderClient.swift",
"STTextLayoutFragment.swift",
"STTextLayoutFragmentView.swift",
"STTextLayoutRangeView.swift",
"STTextView+Accessibility.swift",
"STTextView+Capitalization.swift",
"STTextView+Complete.swift",
"STTextView+CopyPaste.swift",
"STTextView+Delete.swift",
"STTextView+DragGestureRecognizer.swift",
"STTextView+Find.swift",
"STTextView+FontPanel.swift",
"STTextView+Format.swift",
"STTextView+Gutter.swift",
"STTextView+Insert.swift",
"STTextView+InsertionPoint.swift",
"STTextView+Key.swift",
"STTextView+Mouse.swift",
"STTextView+NSColorChanging.swift",
"STTextView+NSDraggingDestination.swift",
"STTextView+NSDraggingSource.swift",
"STTextView+NSServicesMenuRequestor.swift",
"STTextView+NSTextCheckingClient.swift",
"STTextView+NSTextInputClient.swift",
"STTextView+NSTextLayoutManagerDelegate.swift",
"STTextView+NSTextLayoutOrientationProvider.swift",
"STTextView+NSTextViewportLayoutControllerDelegate.swift",
"STTextView+NSUserInterfaceValidations.swift",
"STTextView+Scrolling.swift",
"STTextView+Select.swift",
"STTextView+Speech.swift",
"STTextView+Undo.swift",
"STTextView+Yank.swift",
"STTextView.swift",
"STTextViewDelegate.swift",
"STTextViewDelegateProxy.swift",
"Utility/NSColor+TextInsertionPoint.swift",
"YankingManager.swift"
],
"target_dependencies" : [
"STTextViewCommon",
"STObjCLandShim"
],
"type" : "library"
},
{
"c99name" : "STTextView",
"module_type" : "SwiftTarget",
"name" : "STTextView",
"path" : "Sources/STTextView",
"product_memberships" : [
"STTextView"
],
"sources" : [
"module.swift"
],
"target_dependencies" : [
"STTextViewAppKit",
"STTextViewUIKit"
],
"type" : "library"
},
{
"c99name" : "STObjCLandShim",
"module_type" : "ClangTarget",
"name" : "STObjCLandShim",
"path" : "Sources/STObjCLandShim",
"product_memberships" : [
"STTextView"
],
"sources" : [
"STObjCLandShim.m"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.