Build Information
Successful build of SwiftTerm, reference main (94b45c
), with Swift 6.0 for macOS (SPM) on 21 Apr 2025 02:51:40 UTC.
Swift 6 data race errors: 77
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
8 | func unmarkText()
9 | func selectedRange() -> NSRange
| `- note: 'selectedRange()' declared here
10 | func markedRange() -> NSRange
11 | func hasMarkedText() -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:753:15: 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
751 |
752 | // NSTextInputClient protocol implementation
753 | open 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
754 | print ("markedRange: This should return the actual range from the selection")
755 |
AppKit.NSTextInputClient:10:10: note: 'markedRange()' declared here
8 | func unmarkText()
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
| `- note: 'markedRange()' declared here
11 | func hasMarkedText() -> Bool
12 | @available(macOS 10.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:761:15: 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
759 |
760 | // NSTextInputClient protocol implementation
761 | open 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
762 | // print ("hasMarkedText: This should return the actual range from the selection")
763 | // TODO
AppKit.NSTextInputClient:11:10: note: 'hasMarkedText()' declared here
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
11 | func hasMarkedText() -> Bool
| `- note: 'hasMarkedText()' declared here
12 | @available(macOS 10.0, *)
13 | func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:768:15: warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
766 |
767 | // NSTextInputClient protocol implementation
768 | open func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString? {
| |- warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'attributedSubstring(forProposedRange:actualRange:)' to make this instance method not isolated to the actor
769 | print ("Attribuetd string")
770 | return nil
AppKit.NSTextInputClient:13:10: note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
11 | func hasMarkedText() -> Bool
12 | @available(macOS 10.0, *)
13 | func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
| `- note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
14 | @available(swift, obsoleted: 3, renamed: "attributedSubstring(forProposedRange:actualRange:)")
15 | func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:774:15: warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
772 |
773 | // NSTextInputClient Protocol implementation
774 | open func validAttributesForMarkedText() -> [NSAttributedString.Key] {
| |- warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'validAttributesForMarkedText()' to make this instance method not isolated to the actor
775 | // TODO print ("validAttributesForMarkedText: This should return the actual range from the selection")
776 | return []
AppKit.NSTextInputClient:17:10: note: 'validAttributesForMarkedText()' declared here
15 | func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
16 | @available(macOS 10.0, *)
17 | func validAttributesForMarkedText() -> [NSAttributedString.Key]
| `- note: 'validAttributesForMarkedText()' declared here
18 | func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:780:15: warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
778 |
779 | // NSTextInputClient protocol implementation
780 | open func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect {
| |- warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'firstRect(forCharacterRange:actualRange:)' to make this instance method not isolated to the actor
781 | actualRange?.pointee = range
782 |
AppKit.NSTextInputClient:18:10: note: 'firstRect(forCharacterRange:actualRange:)' declared here
16 | @available(macOS 10.0, *)
17 | func validAttributesForMarkedText() -> [NSAttributedString.Key]
18 | func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
| `- note: 'firstRect(forCharacterRange:actualRange:)' declared here
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 | func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:791:15: 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
789 |
790 | // NSTextInputClient protocol implementation
791 | open func characterIndex(for point: NSPoint) -> 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
792 | print ("characterIndex:for point: This should return the actual range from the selection")
793 | return NSNotFound
AppKit.NSTextInputClient:21:10: note: 'characterIndex(for:)' declared here
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 | func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
21 | func characterIndex(for point: NSPoint) -> Int
| `- note: 'characterIndex(for:)' declared here
22 | @available(swift, obsoleted: 3, renamed: "characterIndex(for:)")
23 | func characterIndexForPoint(_ point: NSPoint) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1158:15: warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
36 | * defaults, otherwise, this uses its own set of defaults colors.
37 | */
38 | open class TerminalView: NSView, NSTextInputClient, NSUserInterfaceValidations, TerminalDelegate {
| `- note: add '@preconcurrency' to the 'TerminalDelegate' conformance to defer isolation checking to run time
39 | struct FontSet {
40 | public let normal: NSFont
:
1156 | }
1157 |
1158 | open func showCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'showCursor(source:)' to make this instance method not isolated to the actor
1159 | if caretView.superview == nil {
1160 | addSubview(caretView)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:22:10: note: mark the protocol requirement 'showCursor(source:)' 'async' to allow actor-isolated conformances
20 | * Invoked to request that the cursor be shown
21 | */
22 | func showCursor (source: Terminal)
| `- note: mark the protocol requirement 'showCursor(source:)' 'async' to allow actor-isolated conformances
23 |
24 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1164:15: warning: main actor-isolated instance method 'hideCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1162 | }
1163 |
1164 | open func hideCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'hideCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hideCursor(source:)' to make this instance method not isolated to the actor
1165 | caretView.removeFromSuperview()
1166 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:27:10: note: mark the protocol requirement 'hideCursor(source:)' 'async' to allow actor-isolated conformances
25 | * Invoked to request that the cursor be shown
26 | */
27 | func hideCursor (source: Terminal)
| `- note: mark the protocol requirement 'hideCursor(source:)' 'async' to allow actor-isolated conformances
28 |
29 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1191:17: warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1189 | }
1190 |
1191 | public func setTerminalTitle(source: Terminal, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalTitle(source:title:)' to make this instance method not isolated to the actor
1192 | terminalDelegate?.setTerminalTitle(source: self, title: title)
1193 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:36:10: note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
34 | * The default implementation does nothing.
35 | */
36 | func setTerminalTitle (source: Terminal, title: String)
| `- note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
37 |
38 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1210:17: warning: main actor-isolated instance method 'setTerminalIconTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1208 | }
1209 |
1210 | public func setTerminalIconTitle(source: Terminal, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalIconTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalIconTitle(source:title:)' to make this instance method not isolated to the actor
1211 | //
1212 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:45:10: note: mark the protocol requirement 'setTerminalIconTitle(source:title:)' 'async' to allow actor-isolated conformances
43 | * The default implementation does nothing.
44 | */
45 | func setTerminalIconTitle (source: Terminal, title: String)
| `- note: mark the protocol requirement 'setTerminalIconTitle(source:title:)' 'async' to allow actor-isolated conformances
46 |
47 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1215:17: warning: main actor-isolated instance method 'windowCommand(source:command:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1213 |
1214 | // Terminal.Delegate method implementation
1215 | public func windowCommand(source: Terminal, command: Terminal.WindowManipulationCommand) -> [UInt8]? {
| |- warning: main actor-isolated instance method 'windowCommand(source:command:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'windowCommand(source:command:)' to make this instance method not isolated to the actor
1216 | return nil
1217 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:58:10: note: mark the protocol requirement 'windowCommand(source:command:)' 'async' to allow actor-isolated conformances
56 | */
57 | @discardableResult
58 | func windowCommand (source: Terminal, command: Terminal.WindowManipulationCommand) -> [UInt8]?
| `- note: mark the protocol requirement 'windowCommand(source:command:)' 'async' to allow actor-isolated conformances
59 |
60 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1195:17: warning: main actor-isolated instance method 'sizeChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1193 | }
1194 |
1195 | public func sizeChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'sizeChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sizeChanged(source:)' to make this instance method not isolated to the actor
1196 | terminalDelegate?.sizeChanged(source: self, newCols: source.cols, newRows: source.rows)
1197 | updateScroller ()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:69:10: note: mark the protocol requirement 'sizeChanged(source:)' 'async' to allow actor-isolated conformances
67 | * The default implementation does nothing.
68 | */
69 | func sizeChanged (source: Terminal)
| `- note: mark the protocol requirement 'sizeChanged(source:)' 'async' to allow actor-isolated conformances
70 |
71 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:335:15: warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
333 | }
334 |
335 | open func send(source: Terminal, data: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'send(source:data:)' to make this instance method not isolated to the actor
336 | terminalDelegate?.send (source: self, data: data)
337 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:75:10: note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
73 | * documentation, this is the "host")
74 | */
75 | func send (source: Terminal, data: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
76 |
77 | // callbacks
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:352:15: warning: main actor-isolated instance method 'scrolled(source:yDisp:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
350 | }
351 |
352 | open func scrolled(source terminal: Terminal, yDisp: Int) {
| |- warning: main actor-isolated instance method 'scrolled(source:yDisp:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'scrolled(source:yDisp:)' to make this instance method not isolated to the actor
353 | //selectionView.notifyScrolled(source: terminal)
354 | updateScroller()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:81:10: note: mark the protocol requirement 'scrolled(source:yDisp:)' 'async' to allow actor-isolated conformances
79 | /// Callback - the window was scrolled, new yDisplay passed
80 | /// The default implementation does nothing.
81 | func scrolled (source: Terminal, yDisp: Int)
| `- note: mark the protocol requirement 'scrolled(source:yDisp:)' 'async' to allow actor-isolated conformances
82 |
83 | /// Callback a newline was generated
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:358:15: warning: main actor-isolated instance method 'linefeed(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
356 | }
357 |
358 | open func linefeed(source: Terminal) {
| |- warning: main actor-isolated instance method 'linefeed(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'linefeed(source:)' to make this instance method not isolated to the actor
359 | selection.selectNone()
360 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:85:10: note: mark the protocol requirement 'linefeed(source:)' 'async' to allow actor-isolated conformances
83 | /// Callback a newline was generated
84 | /// The default implementation does nothing.
85 | func linefeed (source: Terminal)
| `- note: mark the protocol requirement 'linefeed(source:)' 'async' to allow actor-isolated conformances
86 |
87 | /// This method is invoked when the buffer changes from Normal to Alternate, or Alternate to Normal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:331:15: warning: main actor-isolated instance method 'bufferActivated(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
329 | }
330 |
331 | open func bufferActivated(source: Terminal) {
| |- warning: main actor-isolated instance method 'bufferActivated(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'bufferActivated(source:)' to make this instance method not isolated to the actor
332 | updateScroller ()
333 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:89:10: note: mark the protocol requirement 'bufferActivated(source:)' 'async' to allow actor-isolated conformances
87 | /// This method is invoked when the buffer changes from Normal to Alternate, or Alternate to Normal
88 | /// The default implementation does nothing.
89 | func bufferActivated (source: Terminal)
| `- note: mark the protocol requirement 'bufferActivated(source:)' 'async' to allow actor-isolated conformances
90 |
91 | /// Should raise the bell
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1173:15: warning: main actor-isolated instance method 'bell(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1171 | }
1172 |
1173 | open func bell(source: Terminal) {
| |- warning: main actor-isolated instance method 'bell(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'bell(source:)' to make this instance method not isolated to the actor
1174 | terminalDelegate?.bell (source: self)
1175 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:93:10: note: mark the protocol requirement 'bell(source:)' 'async' to allow actor-isolated conformances
91 | /// Should raise the bell
92 | /// The default implementation does nothing.
93 | func bell (source: Terminal)
| `- note: mark the protocol requirement 'bell(source:)' 'async' to allow actor-isolated conformances
94 |
95 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:825:15: warning: main actor-isolated instance method 'selectionChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
823 | }
824 |
825 | open func selectionChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'selectionChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectionChanged(source:)' to make this instance method not isolated to the actor
826 | needsDisplay = true
827 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:102:10: note: mark the protocol requirement 'selectionChanged(source:)' 'async' to allow actor-isolated conformances
100 | * The default implementation does nothing.
101 | */
102 | func selectionChanged (source: Terminal)
| `- note: mark the protocol requirement 'selectionChanged(source:)' 'async' to allow actor-isolated conformances
103 |
104 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1177:17: warning: main actor-isolated instance method 'isProcessTrusted(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1175 | }
1176 |
1177 | public func isProcessTrusted(source: Terminal) -> Bool {
| |- warning: main actor-isolated instance method 'isProcessTrusted(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'isProcessTrusted(source:)' to make this instance method not isolated to the actor
1178 | true
1179 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:111:10: note: mark the protocol requirement 'isProcessTrusted(source:)' 'async' to allow actor-isolated conformances
109 | * The default implementation returns `true`
110 | */
111 | func isProcessTrusted (source: Terminal) -> Bool
| `- note: mark the protocol requirement 'isProcessTrusted(source:)' 'async' to allow actor-isolated conformances
112 |
113 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1181:17: warning: main actor-isolated instance method 'mouseModeChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1179 | }
1180 |
1181 | public func mouseModeChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'mouseModeChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'mouseModeChanged(source:)' to make this instance method not isolated to the actor
1182 | if source.mouseMode == .anyEvent {
1183 | startTracking()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:120:10: note: mark the protocol requirement 'mouseModeChanged(source:)' 'async' to allow actor-isolated conformances
118 | * The default implementation ignores the mouse change
119 | */
120 | func mouseModeChanged (source: Terminal)
| `- note: mark the protocol requirement 'mouseModeChanged(source:)' 'async' to allow actor-isolated conformances
121 |
122 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1168:15: warning: main actor-isolated instance method 'cursorStyleChanged(source:newStyle:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1166 | }
1167 |
1168 | open func cursorStyleChanged (source: Terminal, newStyle: CursorStyle) {
| |- warning: main actor-isolated instance method 'cursorStyleChanged(source:newStyle:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'cursorStyleChanged(source:newStyle:)' to make this instance method not isolated to the actor
1169 | caretView.style = newStyle
1170 | updateCaretView()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:126:10: note: mark the protocol requirement 'cursorStyleChanged(source:newStyle:)' 'async' to allow actor-isolated conformances
124 | * by client application.
125 | */
126 | func cursorStyleChanged (source: Terminal, newStyle: CursorStyle)
| `- note: mark the protocol requirement 'cursorStyleChanged(source:newStyle:)' 'async' to allow actor-isolated conformances
127 |
128 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:224:17: warning: main actor-isolated instance method 'hostCurrentDirectoryUpdated(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
222 | }
223 |
224 | public func hostCurrentDirectoryUpdated (source: Terminal)
| |- warning: main actor-isolated instance method 'hostCurrentDirectoryUpdated(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hostCurrentDirectoryUpdated(source:)' to make this instance method not isolated to the actor
225 | {
226 | terminalDelegate?.hostCurrentDirectoryUpdate(source: self, directory: terminal.hostCurrentDirectory)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:135:10: note: mark the protocol requirement 'hostCurrentDirectoryUpdated(source:)' 'async' to allow actor-isolated conformances
133 | * The default implementaiton does nothing.
134 | */
135 | func hostCurrentDirectoryUpdated (source: Terminal)
| `- note: mark the protocol requirement 'hostCurrentDirectoryUpdated(source:)' 'async' to allow actor-isolated conformances
136 |
137 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:243:17: warning: main actor-isolated instance method 'colorChanged(source:idx:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
241 | }
242 |
243 | public func colorChanged (source: Terminal, idx: Int?)
| |- warning: main actor-isolated instance method 'colorChanged(source:idx:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'colorChanged(source:idx:)' to make this instance method not isolated to the actor
244 | {
245 | if let index = idx {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:151:10: note: mark the protocol requirement 'colorChanged(source:idx:)' 'async' to allow actor-isolated conformances
149 | * with the new values. If the value of idx is nil, this means all the ansi colors changed
150 | */
151 | func colorChanged (source: Terminal, idx: Int?)
| `- note: mark the protocol requirement 'colorChanged(source:idx:)' 'async' to allow actor-isolated conformances
152 |
153 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:259:17: warning: main actor-isolated instance method 'setForegroundColor(source:color:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
257 | }
258 |
259 | public func setForegroundColor(source: Terminal, color: Color) {
| |- warning: main actor-isolated instance method 'setForegroundColor(source:color:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setForegroundColor(source:color:)' to make this instance method not isolated to the actor
260 | nativeForegroundColor = TTColor.make (color: color)
261 | colorsChanged()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:156:10: note: mark the protocol requirement 'setForegroundColor(source:color:)' 'async' to allow actor-isolated conformances
154 | * The view should try to set the foreground color to the provided color
155 | */
156 | func setForegroundColor (source: Terminal, color: Color)
| `- note: mark the protocol requirement 'setForegroundColor(source:color:)' 'async' to allow actor-isolated conformances
157 |
158 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:253:17: warning: main actor-isolated instance method 'setBackgroundColor(source:color:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
251 | }
252 |
253 | public func setBackgroundColor(source: Terminal, color: Color) {
| |- warning: main actor-isolated instance method 'setBackgroundColor(source:color:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setBackgroundColor(source:color:)' to make this instance method not isolated to the actor
254 | // Can not implement this until I change the color to not be this struct
255 | nativeBackgroundColor = TTColor.make (color: color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:161:10: note: mark the protocol requirement 'setBackgroundColor(source:color:)' 'async' to allow actor-isolated conformances
159 | * The view should try to set the background color to the provided color
160 | */
161 | func setBackgroundColor (source: Terminal, color: Color)
| `- note: mark the protocol requirement 'setBackgroundColor(source:color:)' 'async' to allow actor-isolated conformances
162 |
163 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1219:17: warning: main actor-isolated instance method 'iTermContent(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1217 | }
1218 |
1219 | public func iTermContent (source: Terminal, content: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'iTermContent(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'iTermContent(source:content:)' to make this instance method not isolated to the actor
1220 | terminalDelegate?.iTermContent(source: self, content: content)
1221 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:180:10: note: mark the protocol requirement 'iTermContent(source:content:)' 'async' to allow actor-isolated conformances
178 | * The default implementaiton does nothing.
179 | */
180 | func iTermContent (source: Terminal, content: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'iTermContent(source:content:)' 'async' to allow actor-isolated conformances
181 |
182 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:1193:17: warning: main actor-isolated instance method 'createImageFromBitmap(source:bytes:width:height:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1191 | }
1192 |
1193 | public func createImageFromBitmap(source: Terminal, bytes: inout [UInt8], width: Int, height: Int) {
| |- warning: main actor-isolated instance method 'createImageFromBitmap(source:bytes:width:height:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'createImageFromBitmap(source:bytes:width:height:)' to make this instance method not isolated to the actor
1194 | let rgbColorSpace = CGColorSpaceCreateDeviceRGB()
1195 | let bitmapInfo: CGBitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.premultipliedLast.rawValue)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:214:10: note: mark the protocol requirement 'createImageFromBitmap(source:bytes:width:height:)' 'async' to allow actor-isolated conformances
212 | * - height: the height in pixels of the image
213 | */
214 | func createImageFromBitmap (source: Terminal, bytes: inout [UInt8], width: Int, height: Int)
| `- note: mark the protocol requirement 'createImageFromBitmap(source:bytes:width:height:)' 'async' to allow actor-isolated conformances
215 |
216 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:1212:17: warning: main actor-isolated instance method 'createImage(source:data:width:height:preserveAspectRatio:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1210 | }
1211 |
1212 | public func createImage (source: Terminal, data: Data, width widthRequest: ImageSizeRequest, height heightRequest: ImageSizeRequest, preserveAspectRatio: Bool)
| |- warning: main actor-isolated instance method 'createImage(source:data:width:height:preserveAspectRatio:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'createImage(source:data:width:height:preserveAspectRatio:)' to make this instance method not isolated to the actor
1213 | {
1214 | guard let img = TTImage(data: data) else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:227:10: note: mark the protocol requirement 'createImage(source:data:width:height:preserveAspectRatio:)' 'async' to allow actor-isolated conformances
225 | * - preserveAspectRatio: if set, one of the dimensions will track the hardcoded setting set for the other.
226 | */
227 | func createImage (source: Terminal, data: Data, width: ImageSizeRequest, height: ImageSizeRequest, preserveAspectRatio: Bool)
| `- note: mark the protocol requirement 'createImage(source:data:width:height:preserveAspectRatio:)' 'async' to allow actor-isolated conformances
228 | }
229 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:195:28: warning: call to main actor-isolated instance method 'updateCursorStyle()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
193 | func setupFocusNotification() {
194 | becomeMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | self.caretView.updateCursorStyle()
| `- warning: call to main actor-isolated instance method 'updateCursorStyle()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | }
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacCaretView.swift:54:10: note: calls to instance method 'updateCursorStyle()' from outside of its actor context are implicitly asynchronous
52 | }
53 |
54 | func updateCursorStyle () {
| `- note: calls to instance method 'updateCursorStyle()' from outside of its actor context are implicitly asynchronous
55 | switch style {
56 | case .blinkUnderline, .blinkBlock, .blinkBar:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:195:18: warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
93 |
94 | var cellDimension: CellDimension!
95 | var caretView: CaretView!
| `- note: property declared here
96 | public var terminal: Terminal!
97 |
:
193 | func setupFocusNotification() {
194 | becomeMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | self.caretView.updateCursorStyle()
| `- warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
196 | }
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:198:28: warning: call to main actor-isolated instance method 'disableAnimations()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | }
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
198 | self.caretView.disableAnimations()
| `- warning: call to main actor-isolated instance method 'disableAnimations()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
199 | self.caretView.updateView()
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacCaretView.swift:79:10: note: calls to instance method 'disableAnimations()' from outside of its actor context are implicitly asynchronous
77 | }
78 |
79 | func disableAnimations () {
| `- note: calls to instance method 'disableAnimations()' from outside of its actor context are implicitly asynchronous
80 | layer?.removeAllAnimations()
81 | layer?.opacity = 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:198:18: warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
93 |
94 | var cellDimension: CellDimension!
95 | var caretView: CaretView!
| `- note: property declared here
96 | public var terminal: Terminal!
97 |
:
196 | }
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
198 | self.caretView.disableAnimations()
| `- warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
199 | self.caretView.updateView()
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:199:28: warning: call to main actor-isolated instance method 'updateView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
198 | self.caretView.disableAnimations()
199 | self.caretView.updateView()
| `- warning: call to main actor-isolated instance method 'updateView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacCaretView.swift:106:10: note: calls to instance method 'updateView()' from outside of its actor context are implicitly asynchronous
104 | }
105 |
106 | func updateView() {
| `- note: calls to instance method 'updateView()' from outside of its actor context are implicitly asynchronous
107 | setNeedsDisplay(bounds)
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:199:18: warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
93 |
94 | var cellDimension: CellDimension!
95 | var caretView: CaretView!
| `- note: property declared here
96 | public var terminal: Terminal!
97 |
:
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
198 | self.caretView.disableAnimations()
199 | self.caretView.updateView()
| `- warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:185:9: warning: cannot access property 'becomeMainObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
183 |
184 | deinit {
185 | if let becomeMainObserver {
| `- warning: cannot access property 'becomeMainObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
186 | NotificationCenter.default.removeObserver (becomeMainObserver)
187 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
11 |
12 | #if os(macOS)
13 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
14 | import AppKit
15 | import CoreText
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:188:9: warning: cannot access property 'resignMainObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
186 | NotificationCenter.default.removeObserver (becomeMainObserver)
187 | }
188 | if let resignMainObserver {
| `- warning: cannot access property 'resignMainObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
189 | NotificationCenter.default.removeObserver (resignMainObserver)
190 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
[39/47] Compiling SwiftTerm MacLocalTerminalView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:97:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
95 | /// The empty attribute is configured to be use the defaultColor for the foreground, and the
96 | /// defaultInvertedColor for the background and an emptu style
97 | public static let empty = Attribute (fg: .defaultColor, bg: .defaultInvertedColor, style: .none)
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
98 |
99 | /// Foreground and background colors
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:23:16: warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public var blue: UInt16
22 |
23 | static var defaultForeground = Color (red: 35389, green: 35389, blue: 35389)
| |- warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultForeground' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultForeground' 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
24 | static var defaultBackground = Color (red: 0, green: 0, blue: 0)
25 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:97:17: warning: main actor-isolated instance method 'sizeChanged(source:newCols:newRows:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
65 | * subclass this and override the methods
66 | */
67 | open class LocalProcessTerminalView: TerminalView, TerminalViewDelegate, LocalProcessDelegate {
| `- note: add '@preconcurrency' to the 'TerminalViewDelegate' conformance to defer isolation checking to run time
68 |
69 | var process: LocalProcess!
:
95 | * This method is invoked to notify the client of the new columsn and rows that have been set by the UI
96 | */
97 | public func sizeChanged(source: TerminalView, newCols: Int, newRows: Int) {
| |- warning: main actor-isolated instance method 'sizeChanged(source:newCols:newRows:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sizeChanged(source:newCols:newRows:)' to make this instance method not isolated to the actor
98 | guard process.running else {
99 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:21:10: note: mark the protocol requirement 'sizeChanged(source:newCols:newRows:)' 'async' to allow actor-isolated conformances
19 | * it is a rare feature and you most likely can ignore this request.
20 | */
21 | func sizeChanged (source: TerminalView, newCols: Int, newRows: Int)
| `- note: mark the protocol requirement 'sizeChanged(source:newCols:newRows:)' 'async' to allow actor-isolated conformances
22 |
23 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:118:17: warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
116 | * Invoke this method to notify the processDelegate of the new title for the terminal window
117 | */
118 | public func setTerminalTitle(source: TerminalView, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalTitle(source:title:)' to make this instance method not isolated to the actor
119 | processDelegate?.setTerminalTitle (source: self, title: title)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:26:10: note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
24 | * Request to change the title of the terminal.
25 | */
26 | func setTerminalTitle(source: TerminalView, title: String)
| `- note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
27 |
28 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:122:17: warning: main actor-isolated instance method 'hostCurrentDirectoryUpdate(source:directory:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
120 | }
121 |
122 | public func hostCurrentDirectoryUpdate(source: TerminalView, directory: String?) {
| |- warning: main actor-isolated instance method 'hostCurrentDirectoryUpdate(source:directory:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hostCurrentDirectoryUpdate(source:directory:)' to make this instance method not isolated to the actor
123 | processDelegate?.hostCurrentDirectoryUpdate(source: source, directory: directory)
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:31:10: note: mark the protocol requirement 'hostCurrentDirectoryUpdate(source:directory:)' 'async' to allow actor-isolated conformances
29 | * Invoked when the OSC command 7 for "current directory has changed" command is sent
30 | */
31 | func hostCurrentDirectoryUpdate (source: TerminalView, directory: String?)
| `- note: mark the protocol requirement 'hostCurrentDirectoryUpdate(source:directory:)' 'async' to allow actor-isolated conformances
32 |
33 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:131:15: warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
129 | * Implementation of the TerminalViewDelegate method
130 | */
131 | open func send(source: TerminalView, data: ArraySlice<UInt8>)
| |- warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'send(source:data:)' to make this instance method not isolated to the actor
132 | {
133 | process.send (data: data)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:37:10: note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
35 | * - Parameter data: Slice of data that should be sent
36 | */
37 | func send (source: TerminalView, data: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
38 |
39 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:145:15: warning: main actor-isolated instance method 'scrolled(source:position:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
143 |
144 | /// Implementation of the TerminalViewDelegate method
145 | open func scrolled(source: TerminalView, position: Double) {
| |- warning: main actor-isolated instance method 'scrolled(source:position:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'scrolled(source:position:)' to make this instance method not isolated to the actor
146 | // noting
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:43:10: note: mark the protocol requirement 'scrolled(source:position:)' 'async' to allow actor-isolated conformances
41 | * - Parameter position: the relative position that the code was scrolled to, a value between 0 and 1
42 | */
43 | func scrolled (source: TerminalView, position: Double)
| `- note: mark the protocol requirement 'scrolled(source:position:)' 'async' to allow actor-isolated conformances
44 |
45 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:107:17: warning: main actor-isolated instance method 'clipboardCopy(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
105 | }
106 |
107 | public func clipboardCopy(source: TerminalView, content: Data) {
| |- warning: main actor-isolated instance method 'clipboardCopy(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'clipboardCopy(source:content:)' to make this instance method not isolated to the actor
108 | if let str = String (bytes: content, encoding: .utf8) {
109 | let pasteBoard = NSPasteboard.general
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:72:10: note: mark the protocol requirement 'clipboardCopy(source:content:)' 'async' to allow actor-isolated conformances
70 | * The default implementation does nothing.
71 | */
72 | func clipboardCopy(source: TerminalView, content: Data)
| `- note: mark the protocol requirement 'clipboardCopy(source:content:)' 'async' to allow actor-isolated conformances
73 |
74 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:149:15: warning: main actor-isolated instance method 'rangeChanged(source:startY:endY:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
147 | }
148 |
149 | open func rangeChanged(source: TerminalView, startY: Int, endY: Int) {
| |- warning: main actor-isolated instance method 'rangeChanged(source:startY:endY:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'rangeChanged(source:startY:endY:)' to make this instance method not isolated to the actor
150 | //
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:86:10: note: mark the protocol requirement 'rangeChanged(source:startY:endY:)' 'async' to allow actor-isolated conformances
84 | * the `notifyUpdateChanges` variable is set to true.
85 | */
86 | func rangeChanged (source: TerminalView, startY: Int, endY: Int)
| `- note: mark the protocol requirement 'rangeChanged(source:startY:endY:)' 'async' to allow actor-isolated conformances
87 |
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:168:15: warning: main actor-isolated instance method 'processTerminated(_:exitCode:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
65 | * subclass this and override the methods
66 | */
67 | open class LocalProcessTerminalView: TerminalView, TerminalViewDelegate, LocalProcessDelegate {
| `- note: add '@preconcurrency' to the 'LocalProcessDelegate' conformance to defer isolation checking to run time
68 |
69 | var process: LocalProcess!
:
166 | * Implements the LocalProcessDelegate method.
167 | */
168 | open func processTerminated(_ source: LocalProcess, exitCode: Int32?) {
| |- warning: main actor-isolated instance method 'processTerminated(_:exitCode:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'processTerminated(_:exitCode:)' to make this instance method not isolated to the actor
169 | processDelegate?.processTerminated(source: self, exitCode: exitCode)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:18:10: note: mark the protocol requirement 'processTerminated(_:exitCode:)' 'async' to allow actor-isolated conformances
16 | /// - Parameter source: the local process that terminated
17 | /// - Parameter exitCode: the exit code returned by the process, or nil if this was an error caused during the IO reading/writing
18 | func processTerminated (_ source: LocalProcess, exitCode: Int32?)
| `- note: mark the protocol requirement 'processTerminated(_:exitCode:)' 'async' to allow actor-isolated conformances
19 |
20 | /// This method is invoked when data has been received from the local process that should be send to the terminal for processing.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:175:15: warning: main actor-isolated instance method 'dataReceived(slice:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
173 | * Implements the LocalProcessDelegate.dataReceived method
174 | */
175 | open func dataReceived(slice: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'dataReceived(slice:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'dataReceived(slice:)' to make this instance method not isolated to the actor
176 | feed (byteArray: slice)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:21:10: note: mark the protocol requirement 'dataReceived(slice:)' 'async' to allow actor-isolated conformances
19 |
20 | /// This method is invoked when data has been received from the local process that should be send to the terminal for processing.
21 | func dataReceived (slice: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'dataReceived(slice:)' 'async' to allow actor-isolated conformances
22 |
23 | /// This method should return the window size to report to the local process.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:182:15: warning: main actor-isolated instance method 'getWindowSize()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
180 | * Implements the LocalProcessDelegate.getWindowSize method
181 | */
182 | open func getWindowSize () -> winsize
| |- warning: main actor-isolated instance method 'getWindowSize()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'getWindowSize()' to make this instance method not isolated to the actor
183 | {
184 | let f: CGRect = self.frame
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:24:10: note: mark the protocol requirement 'getWindowSize()' 'async' to allow actor-isolated conformances
22 |
23 | /// This method should return the window size to report to the local process.
24 | func getWindowSize () -> winsize
| `- note: mark the protocol requirement 'getWindowSize()' 'async' to allow actor-isolated conformances
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:715:15: 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
36 | * defaults, otherwise, this uses its own set of defaults colors.
37 | */
38 | open class TerminalView: NSView, NSTextInputClient, NSUserInterfaceValidations, TerminalDelegate {
| `- note: add '@preconcurrency' to the 'NSTextInputClient' conformance to defer isolation checking to run time
39 | struct FontSet {
40 | public let normal: NSFont
:
713 |
714 | // NSTextInputClient protocol implementation
715 | 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
716 | if let str = string as? NSString {
717 | send (txt: str as String)
AppKit.NSTextInputClient:2:10: note: 'insertText(_:replacementRange:)' declared here
1 | public protocol NSTextInputClient {
2 | func insertText(_ string: Any, replacementRange: NSRange)
| `- note: 'insertText(_:replacementRange:)' declared here
3 | @available(macOS 10.0, *)
4 | func doCommand(by selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:658: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
656 | }
657 |
658 | public override 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
659 | switch selector {
660 | case #selector(insertNewline(_:)):
AppKit.NSTextInputClient:4:10: note: 'doCommand(by:)' declared here
2 | func insertText(_ string: Any, replacementRange: NSRange)
3 | @available(macOS 10.0, *)
4 | func doCommand(by selector: Selector)
| `- note: 'doCommand(by:)' declared here
5 | @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
6 | func doCommandBySelector(_ selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:724:15: warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
722 |
723 | // NSTextInputClient protocol implementation
724 | open func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange) {
| |- warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setMarkedText(_:selectedRange:replacementRange:)' to make this instance method not isolated to the actor
725 | // nothing
726 | }
AppKit.NSTextInputClient:7:10: note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
5 | @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
6 | func doCommandBySelector(_ selector: Selector)
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
| `- note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
8 | func unmarkText()
9 | func selectedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:729:15: 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
727 |
728 | // NSTextInputClient protocol implementation
729 | open 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
730 | // nothing
731 | }
AppKit.NSTextInputClient:8:10: note: 'unmarkText()' declared here
6 | func doCommandBySelector(_ selector: Selector)
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
8 | func unmarkText()
| `- note: 'unmarkText()' declared here
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:734:15: 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
732 |
733 | // NSTextInputClient protocol implementation
734 | open 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
735 | guard let selection = self.selection, selection.active else {
736 | // This means "no selection":
AppKit.NSTextInputClient:9:10: note: 'selectedRange()' declared here
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
8 | func unmarkText()
9 | func selectedRange() -> NSRange
| `- note: 'selectedRange()' declared here
10 | func markedRange() -> NSRange
11 | func hasMarkedText() -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:753:15: 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
751 |
752 | // NSTextInputClient protocol implementation
753 | open 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
754 | print ("markedRange: This should return the actual range from the selection")
755 |
AppKit.NSTextInputClient:10:10: note: 'markedRange()' declared here
8 | func unmarkText()
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
| `- note: 'markedRange()' declared here
11 | func hasMarkedText() -> Bool
12 | @available(macOS 10.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:761:15: 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
759 |
760 | // NSTextInputClient protocol implementation
761 | open 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
762 | // print ("hasMarkedText: This should return the actual range from the selection")
763 | // TODO
AppKit.NSTextInputClient:11:10: note: 'hasMarkedText()' declared here
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
11 | func hasMarkedText() -> Bool
| `- note: 'hasMarkedText()' declared here
12 | @available(macOS 10.0, *)
13 | func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:768:15: warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
766 |
767 | // NSTextInputClient protocol implementation
768 | open func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString? {
| |- warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'attributedSubstring(forProposedRange:actualRange:)' to make this instance method not isolated to the actor
769 | print ("Attribuetd string")
770 | return nil
AppKit.NSTextInputClient:13:10: note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
11 | func hasMarkedText() -> Bool
12 | @available(macOS 10.0, *)
13 | func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
| `- note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
14 | @available(swift, obsoleted: 3, renamed: "attributedSubstring(forProposedRange:actualRange:)")
15 | func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:774:15: warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
772 |
773 | // NSTextInputClient Protocol implementation
774 | open func validAttributesForMarkedText() -> [NSAttributedString.Key] {
| |- warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'validAttributesForMarkedText()' to make this instance method not isolated to the actor
775 | // TODO print ("validAttributesForMarkedText: This should return the actual range from the selection")
776 | return []
AppKit.NSTextInputClient:17:10: note: 'validAttributesForMarkedText()' declared here
15 | func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
16 | @available(macOS 10.0, *)
17 | func validAttributesForMarkedText() -> [NSAttributedString.Key]
| `- note: 'validAttributesForMarkedText()' declared here
18 | func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:780:15: warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
778 |
779 | // NSTextInputClient protocol implementation
780 | open func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect {
| |- warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'firstRect(forCharacterRange:actualRange:)' to make this instance method not isolated to the actor
781 | actualRange?.pointee = range
782 |
AppKit.NSTextInputClient:18:10: note: 'firstRect(forCharacterRange:actualRange:)' declared here
16 | @available(macOS 10.0, *)
17 | func validAttributesForMarkedText() -> [NSAttributedString.Key]
18 | func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
| `- note: 'firstRect(forCharacterRange:actualRange:)' declared here
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 | func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:791:15: 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
789 |
790 | // NSTextInputClient protocol implementation
791 | open func characterIndex(for point: NSPoint) -> 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
792 | print ("characterIndex:for point: This should return the actual range from the selection")
793 | return NSNotFound
AppKit.NSTextInputClient:21:10: note: 'characterIndex(for:)' declared here
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 | func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
21 | func characterIndex(for point: NSPoint) -> Int
| `- note: 'characterIndex(for:)' declared here
22 | @available(swift, obsoleted: 3, renamed: "characterIndex(for:)")
23 | func characterIndexForPoint(_ point: NSPoint) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1158:15: warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
36 | * defaults, otherwise, this uses its own set of defaults colors.
37 | */
38 | open class TerminalView: NSView, NSTextInputClient, NSUserInterfaceValidations, TerminalDelegate {
| `- note: add '@preconcurrency' to the 'TerminalDelegate' conformance to defer isolation checking to run time
39 | struct FontSet {
40 | public let normal: NSFont
:
1156 | }
1157 |
1158 | open func showCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'showCursor(source:)' to make this instance method not isolated to the actor
1159 | if caretView.superview == nil {
1160 | addSubview(caretView)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:22:10: note: mark the protocol requirement 'showCursor(source:)' 'async' to allow actor-isolated conformances
20 | * Invoked to request that the cursor be shown
21 | */
22 | func showCursor (source: Terminal)
| `- note: mark the protocol requirement 'showCursor(source:)' 'async' to allow actor-isolated conformances
23 |
24 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1164:15: warning: main actor-isolated instance method 'hideCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1162 | }
1163 |
1164 | open func hideCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'hideCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hideCursor(source:)' to make this instance method not isolated to the actor
1165 | caretView.removeFromSuperview()
1166 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:27:10: note: mark the protocol requirement 'hideCursor(source:)' 'async' to allow actor-isolated conformances
25 | * Invoked to request that the cursor be shown
26 | */
27 | func hideCursor (source: Terminal)
| `- note: mark the protocol requirement 'hideCursor(source:)' 'async' to allow actor-isolated conformances
28 |
29 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1191:17: warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1189 | }
1190 |
1191 | public func setTerminalTitle(source: Terminal, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalTitle(source:title:)' to make this instance method not isolated to the actor
1192 | terminalDelegate?.setTerminalTitle(source: self, title: title)
1193 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:36:10: note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
34 | * The default implementation does nothing.
35 | */
36 | func setTerminalTitle (source: Terminal, title: String)
| `- note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
37 |
38 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1210:17: warning: main actor-isolated instance method 'setTerminalIconTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1208 | }
1209 |
1210 | public func setTerminalIconTitle(source: Terminal, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalIconTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalIconTitle(source:title:)' to make this instance method not isolated to the actor
1211 | //
1212 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:45:10: note: mark the protocol requirement 'setTerminalIconTitle(source:title:)' 'async' to allow actor-isolated conformances
43 | * The default implementation does nothing.
44 | */
45 | func setTerminalIconTitle (source: Terminal, title: String)
| `- note: mark the protocol requirement 'setTerminalIconTitle(source:title:)' 'async' to allow actor-isolated conformances
46 |
47 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1215:17: warning: main actor-isolated instance method 'windowCommand(source:command:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1213 |
1214 | // Terminal.Delegate method implementation
1215 | public func windowCommand(source: Terminal, command: Terminal.WindowManipulationCommand) -> [UInt8]? {
| |- warning: main actor-isolated instance method 'windowCommand(source:command:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'windowCommand(source:command:)' to make this instance method not isolated to the actor
1216 | return nil
1217 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:58:10: note: mark the protocol requirement 'windowCommand(source:command:)' 'async' to allow actor-isolated conformances
56 | */
57 | @discardableResult
58 | func windowCommand (source: Terminal, command: Terminal.WindowManipulationCommand) -> [UInt8]?
| `- note: mark the protocol requirement 'windowCommand(source:command:)' 'async' to allow actor-isolated conformances
59 |
60 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1195:17: warning: main actor-isolated instance method 'sizeChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1193 | }
1194 |
1195 | public func sizeChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'sizeChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sizeChanged(source:)' to make this instance method not isolated to the actor
1196 | terminalDelegate?.sizeChanged(source: self, newCols: source.cols, newRows: source.rows)
1197 | updateScroller ()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:69:10: note: mark the protocol requirement 'sizeChanged(source:)' 'async' to allow actor-isolated conformances
67 | * The default implementation does nothing.
68 | */
69 | func sizeChanged (source: Terminal)
| `- note: mark the protocol requirement 'sizeChanged(source:)' 'async' to allow actor-isolated conformances
70 |
71 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:335:15: warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
333 | }
334 |
335 | open func send(source: Terminal, data: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'send(source:data:)' to make this instance method not isolated to the actor
336 | terminalDelegate?.send (source: self, data: data)
337 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:75:10: note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
73 | * documentation, this is the "host")
74 | */
75 | func send (source: Terminal, data: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
76 |
77 | // callbacks
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:352:15: warning: main actor-isolated instance method 'scrolled(source:yDisp:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
350 | }
351 |
352 | open func scrolled(source terminal: Terminal, yDisp: Int) {
| |- warning: main actor-isolated instance method 'scrolled(source:yDisp:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'scrolled(source:yDisp:)' to make this instance method not isolated to the actor
353 | //selectionView.notifyScrolled(source: terminal)
354 | updateScroller()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:81:10: note: mark the protocol requirement 'scrolled(source:yDisp:)' 'async' to allow actor-isolated conformances
79 | /// Callback - the window was scrolled, new yDisplay passed
80 | /// The default implementation does nothing.
81 | func scrolled (source: Terminal, yDisp: Int)
| `- note: mark the protocol requirement 'scrolled(source:yDisp:)' 'async' to allow actor-isolated conformances
82 |
83 | /// Callback a newline was generated
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:358:15: warning: main actor-isolated instance method 'linefeed(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
356 | }
357 |
358 | open func linefeed(source: Terminal) {
| |- warning: main actor-isolated instance method 'linefeed(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'linefeed(source:)' to make this instance method not isolated to the actor
359 | selection.selectNone()
360 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:85:10: note: mark the protocol requirement 'linefeed(source:)' 'async' to allow actor-isolated conformances
83 | /// Callback a newline was generated
84 | /// The default implementation does nothing.
85 | func linefeed (source: Terminal)
| `- note: mark the protocol requirement 'linefeed(source:)' 'async' to allow actor-isolated conformances
86 |
87 | /// This method is invoked when the buffer changes from Normal to Alternate, or Alternate to Normal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:331:15: warning: main actor-isolated instance method 'bufferActivated(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
329 | }
330 |
331 | open func bufferActivated(source: Terminal) {
| |- warning: main actor-isolated instance method 'bufferActivated(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'bufferActivated(source:)' to make this instance method not isolated to the actor
332 | updateScroller ()
333 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:89:10: note: mark the protocol requirement 'bufferActivated(source:)' 'async' to allow actor-isolated conformances
87 | /// This method is invoked when the buffer changes from Normal to Alternate, or Alternate to Normal
88 | /// The default implementation does nothing.
89 | func bufferActivated (source: Terminal)
| `- note: mark the protocol requirement 'bufferActivated(source:)' 'async' to allow actor-isolated conformances
90 |
91 | /// Should raise the bell
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1173:15: warning: main actor-isolated instance method 'bell(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1171 | }
1172 |
1173 | open func bell(source: Terminal) {
| |- warning: main actor-isolated instance method 'bell(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'bell(source:)' to make this instance method not isolated to the actor
1174 | terminalDelegate?.bell (source: self)
1175 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:93:10: note: mark the protocol requirement 'bell(source:)' 'async' to allow actor-isolated conformances
91 | /// Should raise the bell
92 | /// The default implementation does nothing.
93 | func bell (source: Terminal)
| `- note: mark the protocol requirement 'bell(source:)' 'async' to allow actor-isolated conformances
94 |
95 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:825:15: warning: main actor-isolated instance method 'selectionChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
823 | }
824 |
825 | open func selectionChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'selectionChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectionChanged(source:)' to make this instance method not isolated to the actor
826 | needsDisplay = true
827 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:102:10: note: mark the protocol requirement 'selectionChanged(source:)' 'async' to allow actor-isolated conformances
100 | * The default implementation does nothing.
101 | */
102 | func selectionChanged (source: Terminal)
| `- note: mark the protocol requirement 'selectionChanged(source:)' 'async' to allow actor-isolated conformances
103 |
104 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1177:17: warning: main actor-isolated instance method 'isProcessTrusted(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1175 | }
1176 |
1177 | public func isProcessTrusted(source: Terminal) -> Bool {
| |- warning: main actor-isolated instance method 'isProcessTrusted(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'isProcessTrusted(source:)' to make this instance method not isolated to the actor
1178 | true
1179 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:111:10: note: mark the protocol requirement 'isProcessTrusted(source:)' 'async' to allow actor-isolated conformances
109 | * The default implementation returns `true`
110 | */
111 | func isProcessTrusted (source: Terminal) -> Bool
| `- note: mark the protocol requirement 'isProcessTrusted(source:)' 'async' to allow actor-isolated conformances
112 |
113 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1181:17: warning: main actor-isolated instance method 'mouseModeChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1179 | }
1180 |
1181 | public func mouseModeChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'mouseModeChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'mouseModeChanged(source:)' to make this instance method not isolated to the actor
1182 | if source.mouseMode == .anyEvent {
1183 | startTracking()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:120:10: note: mark the protocol requirement 'mouseModeChanged(source:)' 'async' to allow actor-isolated conformances
118 | * The default implementation ignores the mouse change
119 | */
120 | func mouseModeChanged (source: Terminal)
| `- note: mark the protocol requirement 'mouseModeChanged(source:)' 'async' to allow actor-isolated conformances
121 |
122 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1168:15: warning: main actor-isolated instance method 'cursorStyleChanged(source:newStyle:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1166 | }
1167 |
1168 | open func cursorStyleChanged (source: Terminal, newStyle: CursorStyle) {
| |- warning: main actor-isolated instance method 'cursorStyleChanged(source:newStyle:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'cursorStyleChanged(source:newStyle:)' to make this instance method not isolated to the actor
1169 | caretView.style = newStyle
1170 | updateCaretView()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:126:10: note: mark the protocol requirement 'cursorStyleChanged(source:newStyle:)' 'async' to allow actor-isolated conformances
124 | * by client application.
125 | */
126 | func cursorStyleChanged (source: Terminal, newStyle: CursorStyle)
| `- note: mark the protocol requirement 'cursorStyleChanged(source:newStyle:)' 'async' to allow actor-isolated conformances
127 |
128 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:224:17: warning: main actor-isolated instance method 'hostCurrentDirectoryUpdated(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
222 | }
223 |
224 | public func hostCurrentDirectoryUpdated (source: Terminal)
| |- warning: main actor-isolated instance method 'hostCurrentDirectoryUpdated(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hostCurrentDirectoryUpdated(source:)' to make this instance method not isolated to the actor
225 | {
226 | terminalDelegate?.hostCurrentDirectoryUpdate(source: self, directory: terminal.hostCurrentDirectory)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:135:10: note: mark the protocol requirement 'hostCurrentDirectoryUpdated(source:)' 'async' to allow actor-isolated conformances
133 | * The default implementaiton does nothing.
134 | */
135 | func hostCurrentDirectoryUpdated (source: Terminal)
| `- note: mark the protocol requirement 'hostCurrentDirectoryUpdated(source:)' 'async' to allow actor-isolated conformances
136 |
137 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:243:17: warning: main actor-isolated instance method 'colorChanged(source:idx:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
241 | }
242 |
243 | public func colorChanged (source: Terminal, idx: Int?)
| |- warning: main actor-isolated instance method 'colorChanged(source:idx:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'colorChanged(source:idx:)' to make this instance method not isolated to the actor
244 | {
245 | if let index = idx {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:151:10: note: mark the protocol requirement 'colorChanged(source:idx:)' 'async' to allow actor-isolated conformances
149 | * with the new values. If the value of idx is nil, this means all the ansi colors changed
150 | */
151 | func colorChanged (source: Terminal, idx: Int?)
| `- note: mark the protocol requirement 'colorChanged(source:idx:)' 'async' to allow actor-isolated conformances
152 |
153 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:259:17: warning: main actor-isolated instance method 'setForegroundColor(source:color:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
257 | }
258 |
259 | public func setForegroundColor(source: Terminal, color: Color) {
| |- warning: main actor-isolated instance method 'setForegroundColor(source:color:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setForegroundColor(source:color:)' to make this instance method not isolated to the actor
260 | nativeForegroundColor = TTColor.make (color: color)
261 | colorsChanged()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:156:10: note: mark the protocol requirement 'setForegroundColor(source:color:)' 'async' to allow actor-isolated conformances
154 | * The view should try to set the foreground color to the provided color
155 | */
156 | func setForegroundColor (source: Terminal, color: Color)
| `- note: mark the protocol requirement 'setForegroundColor(source:color:)' 'async' to allow actor-isolated conformances
157 |
158 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:253:17: warning: main actor-isolated instance method 'setBackgroundColor(source:color:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
251 | }
252 |
253 | public func setBackgroundColor(source: Terminal, color: Color) {
| |- warning: main actor-isolated instance method 'setBackgroundColor(source:color:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setBackgroundColor(source:color:)' to make this instance method not isolated to the actor
254 | // Can not implement this until I change the color to not be this struct
255 | nativeBackgroundColor = TTColor.make (color: color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:161:10: note: mark the protocol requirement 'setBackgroundColor(source:color:)' 'async' to allow actor-isolated conformances
159 | * The view should try to set the background color to the provided color
160 | */
161 | func setBackgroundColor (source: Terminal, color: Color)
| `- note: mark the protocol requirement 'setBackgroundColor(source:color:)' 'async' to allow actor-isolated conformances
162 |
163 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1219:17: warning: main actor-isolated instance method 'iTermContent(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1217 | }
1218 |
1219 | public func iTermContent (source: Terminal, content: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'iTermContent(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'iTermContent(source:content:)' to make this instance method not isolated to the actor
1220 | terminalDelegate?.iTermContent(source: self, content: content)
1221 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:180:10: note: mark the protocol requirement 'iTermContent(source:content:)' 'async' to allow actor-isolated conformances
178 | * The default implementaiton does nothing.
179 | */
180 | func iTermContent (source: Terminal, content: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'iTermContent(source:content:)' 'async' to allow actor-isolated conformances
181 |
182 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:1193:17: warning: main actor-isolated instance method 'createImageFromBitmap(source:bytes:width:height:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1191 | }
1192 |
1193 | public func createImageFromBitmap(source: Terminal, bytes: inout [UInt8], width: Int, height: Int) {
| |- warning: main actor-isolated instance method 'createImageFromBitmap(source:bytes:width:height:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'createImageFromBitmap(source:bytes:width:height:)' to make this instance method not isolated to the actor
1194 | let rgbColorSpace = CGColorSpaceCreateDeviceRGB()
1195 | let bitmapInfo: CGBitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.premultipliedLast.rawValue)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:214:10: note: mark the protocol requirement 'createImageFromBitmap(source:bytes:width:height:)' 'async' to allow actor-isolated conformances
212 | * - height: the height in pixels of the image
213 | */
214 | func createImageFromBitmap (source: Terminal, bytes: inout [UInt8], width: Int, height: Int)
| `- note: mark the protocol requirement 'createImageFromBitmap(source:bytes:width:height:)' 'async' to allow actor-isolated conformances
215 |
216 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:1212:17: warning: main actor-isolated instance method 'createImage(source:data:width:height:preserveAspectRatio:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1210 | }
1211 |
1212 | public func createImage (source: Terminal, data: Data, width widthRequest: ImageSizeRequest, height heightRequest: ImageSizeRequest, preserveAspectRatio: Bool)
| |- warning: main actor-isolated instance method 'createImage(source:data:width:height:preserveAspectRatio:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'createImage(source:data:width:height:preserveAspectRatio:)' to make this instance method not isolated to the actor
1213 | {
1214 | guard let img = TTImage(data: data) else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:227:10: note: mark the protocol requirement 'createImage(source:data:width:height:preserveAspectRatio:)' 'async' to allow actor-isolated conformances
225 | * - preserveAspectRatio: if set, one of the dimensions will track the hardcoded setting set for the other.
226 | */
227 | func createImage (source: Terminal, data: Data, width: ImageSizeRequest, height: ImageSizeRequest, preserveAspectRatio: Bool)
| `- note: mark the protocol requirement 'createImage(source:data:width:height:preserveAspectRatio:)' 'async' to allow actor-isolated conformances
228 | }
229 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:195:28: warning: call to main actor-isolated instance method 'updateCursorStyle()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
193 | func setupFocusNotification() {
194 | becomeMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | self.caretView.updateCursorStyle()
| `- warning: call to main actor-isolated instance method 'updateCursorStyle()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | }
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacCaretView.swift:54:10: note: calls to instance method 'updateCursorStyle()' from outside of its actor context are implicitly asynchronous
52 | }
53 |
54 | func updateCursorStyle () {
| `- note: calls to instance method 'updateCursorStyle()' from outside of its actor context are implicitly asynchronous
55 | switch style {
56 | case .blinkUnderline, .blinkBlock, .blinkBar:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:195:18: warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
93 |
94 | var cellDimension: CellDimension!
95 | var caretView: CaretView!
| `- note: property declared here
96 | public var terminal: Terminal!
97 |
:
193 | func setupFocusNotification() {
194 | becomeMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | self.caretView.updateCursorStyle()
| `- warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
196 | }
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:198:28: warning: call to main actor-isolated instance method 'disableAnimations()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | }
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
198 | self.caretView.disableAnimations()
| `- warning: call to main actor-isolated instance method 'disableAnimations()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
199 | self.caretView.updateView()
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacCaretView.swift:79:10: note: calls to instance method 'disableAnimations()' from outside of its actor context are implicitly asynchronous
77 | }
78 |
79 | func disableAnimations () {
| `- note: calls to instance method 'disableAnimations()' from outside of its actor context are implicitly asynchronous
80 | layer?.removeAllAnimations()
81 | layer?.opacity = 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:198:18: warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
93 |
94 | var cellDimension: CellDimension!
95 | var caretView: CaretView!
| `- note: property declared here
96 | public var terminal: Terminal!
97 |
:
196 | }
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
198 | self.caretView.disableAnimations()
| `- warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
199 | self.caretView.updateView()
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:199:28: warning: call to main actor-isolated instance method 'updateView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
198 | self.caretView.disableAnimations()
199 | self.caretView.updateView()
| `- warning: call to main actor-isolated instance method 'updateView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacCaretView.swift:106:10: note: calls to instance method 'updateView()' from outside of its actor context are implicitly asynchronous
104 | }
105 |
106 | func updateView() {
| `- note: calls to instance method 'updateView()' from outside of its actor context are implicitly asynchronous
107 | setNeedsDisplay(bounds)
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:199:18: warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
93 |
94 | var cellDimension: CellDimension!
95 | var caretView: CaretView!
| `- note: property declared here
96 | public var terminal: Terminal!
97 |
:
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
198 | self.caretView.disableAnimations()
199 | self.caretView.updateView()
| `- warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:185:9: warning: cannot access property 'becomeMainObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
183 |
184 | deinit {
185 | if let becomeMainObserver {
| `- warning: cannot access property 'becomeMainObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
186 | NotificationCenter.default.removeObserver (becomeMainObserver)
187 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
11 |
12 | #if os(macOS)
13 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
14 | import AppKit
15 | import CoreText
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:188:9: warning: cannot access property 'resignMainObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
186 | NotificationCenter.default.removeObserver (becomeMainObserver)
187 | }
188 | if let resignMainObserver {
| `- warning: cannot access property 'resignMainObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
189 | NotificationCenter.default.removeObserver (resignMainObserver)
190 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
[40/47] Compiling SwiftTerm MacTerminalView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:97:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
95 | /// The empty attribute is configured to be use the defaultColor for the foreground, and the
96 | /// defaultInvertedColor for the background and an emptu style
97 | public static let empty = Attribute (fg: .defaultColor, bg: .defaultInvertedColor, style: .none)
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
98 |
99 | /// Foreground and background colors
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:23:16: warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public var blue: UInt16
22 |
23 | static var defaultForeground = Color (red: 35389, green: 35389, blue: 35389)
| |- warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultForeground' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultForeground' 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
24 | static var defaultBackground = Color (red: 0, green: 0, blue: 0)
25 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:97:17: warning: main actor-isolated instance method 'sizeChanged(source:newCols:newRows:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
65 | * subclass this and override the methods
66 | */
67 | open class LocalProcessTerminalView: TerminalView, TerminalViewDelegate, LocalProcessDelegate {
| `- note: add '@preconcurrency' to the 'TerminalViewDelegate' conformance to defer isolation checking to run time
68 |
69 | var process: LocalProcess!
:
95 | * This method is invoked to notify the client of the new columsn and rows that have been set by the UI
96 | */
97 | public func sizeChanged(source: TerminalView, newCols: Int, newRows: Int) {
| |- warning: main actor-isolated instance method 'sizeChanged(source:newCols:newRows:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sizeChanged(source:newCols:newRows:)' to make this instance method not isolated to the actor
98 | guard process.running else {
99 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:21:10: note: mark the protocol requirement 'sizeChanged(source:newCols:newRows:)' 'async' to allow actor-isolated conformances
19 | * it is a rare feature and you most likely can ignore this request.
20 | */
21 | func sizeChanged (source: TerminalView, newCols: Int, newRows: Int)
| `- note: mark the protocol requirement 'sizeChanged(source:newCols:newRows:)' 'async' to allow actor-isolated conformances
22 |
23 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:118:17: warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
116 | * Invoke this method to notify the processDelegate of the new title for the terminal window
117 | */
118 | public func setTerminalTitle(source: TerminalView, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalTitle(source:title:)' to make this instance method not isolated to the actor
119 | processDelegate?.setTerminalTitle (source: self, title: title)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:26:10: note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
24 | * Request to change the title of the terminal.
25 | */
26 | func setTerminalTitle(source: TerminalView, title: String)
| `- note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
27 |
28 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:122:17: warning: main actor-isolated instance method 'hostCurrentDirectoryUpdate(source:directory:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
120 | }
121 |
122 | public func hostCurrentDirectoryUpdate(source: TerminalView, directory: String?) {
| |- warning: main actor-isolated instance method 'hostCurrentDirectoryUpdate(source:directory:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hostCurrentDirectoryUpdate(source:directory:)' to make this instance method not isolated to the actor
123 | processDelegate?.hostCurrentDirectoryUpdate(source: source, directory: directory)
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:31:10: note: mark the protocol requirement 'hostCurrentDirectoryUpdate(source:directory:)' 'async' to allow actor-isolated conformances
29 | * Invoked when the OSC command 7 for "current directory has changed" command is sent
30 | */
31 | func hostCurrentDirectoryUpdate (source: TerminalView, directory: String?)
| `- note: mark the protocol requirement 'hostCurrentDirectoryUpdate(source:directory:)' 'async' to allow actor-isolated conformances
32 |
33 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:131:15: warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
129 | * Implementation of the TerminalViewDelegate method
130 | */
131 | open func send(source: TerminalView, data: ArraySlice<UInt8>)
| |- warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'send(source:data:)' to make this instance method not isolated to the actor
132 | {
133 | process.send (data: data)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:37:10: note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
35 | * - Parameter data: Slice of data that should be sent
36 | */
37 | func send (source: TerminalView, data: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
38 |
39 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:145:15: warning: main actor-isolated instance method 'scrolled(source:position:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
143 |
144 | /// Implementation of the TerminalViewDelegate method
145 | open func scrolled(source: TerminalView, position: Double) {
| |- warning: main actor-isolated instance method 'scrolled(source:position:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'scrolled(source:position:)' to make this instance method not isolated to the actor
146 | // noting
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:43:10: note: mark the protocol requirement 'scrolled(source:position:)' 'async' to allow actor-isolated conformances
41 | * - Parameter position: the relative position that the code was scrolled to, a value between 0 and 1
42 | */
43 | func scrolled (source: TerminalView, position: Double)
| `- note: mark the protocol requirement 'scrolled(source:position:)' 'async' to allow actor-isolated conformances
44 |
45 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:107:17: warning: main actor-isolated instance method 'clipboardCopy(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
105 | }
106 |
107 | public func clipboardCopy(source: TerminalView, content: Data) {
| |- warning: main actor-isolated instance method 'clipboardCopy(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'clipboardCopy(source:content:)' to make this instance method not isolated to the actor
108 | if let str = String (bytes: content, encoding: .utf8) {
109 | let pasteBoard = NSPasteboard.general
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:72:10: note: mark the protocol requirement 'clipboardCopy(source:content:)' 'async' to allow actor-isolated conformances
70 | * The default implementation does nothing.
71 | */
72 | func clipboardCopy(source: TerminalView, content: Data)
| `- note: mark the protocol requirement 'clipboardCopy(source:content:)' 'async' to allow actor-isolated conformances
73 |
74 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:149:15: warning: main actor-isolated instance method 'rangeChanged(source:startY:endY:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
147 | }
148 |
149 | open func rangeChanged(source: TerminalView, startY: Int, endY: Int) {
| |- warning: main actor-isolated instance method 'rangeChanged(source:startY:endY:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'rangeChanged(source:startY:endY:)' to make this instance method not isolated to the actor
150 | //
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:86:10: note: mark the protocol requirement 'rangeChanged(source:startY:endY:)' 'async' to allow actor-isolated conformances
84 | * the `notifyUpdateChanges` variable is set to true.
85 | */
86 | func rangeChanged (source: TerminalView, startY: Int, endY: Int)
| `- note: mark the protocol requirement 'rangeChanged(source:startY:endY:)' 'async' to allow actor-isolated conformances
87 |
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:168:15: warning: main actor-isolated instance method 'processTerminated(_:exitCode:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
65 | * subclass this and override the methods
66 | */
67 | open class LocalProcessTerminalView: TerminalView, TerminalViewDelegate, LocalProcessDelegate {
| `- note: add '@preconcurrency' to the 'LocalProcessDelegate' conformance to defer isolation checking to run time
68 |
69 | var process: LocalProcess!
:
166 | * Implements the LocalProcessDelegate method.
167 | */
168 | open func processTerminated(_ source: LocalProcess, exitCode: Int32?) {
| |- warning: main actor-isolated instance method 'processTerminated(_:exitCode:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'processTerminated(_:exitCode:)' to make this instance method not isolated to the actor
169 | processDelegate?.processTerminated(source: self, exitCode: exitCode)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:18:10: note: mark the protocol requirement 'processTerminated(_:exitCode:)' 'async' to allow actor-isolated conformances
16 | /// - Parameter source: the local process that terminated
17 | /// - Parameter exitCode: the exit code returned by the process, or nil if this was an error caused during the IO reading/writing
18 | func processTerminated (_ source: LocalProcess, exitCode: Int32?)
| `- note: mark the protocol requirement 'processTerminated(_:exitCode:)' 'async' to allow actor-isolated conformances
19 |
20 | /// This method is invoked when data has been received from the local process that should be send to the terminal for processing.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:175:15: warning: main actor-isolated instance method 'dataReceived(slice:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
173 | * Implements the LocalProcessDelegate.dataReceived method
174 | */
175 | open func dataReceived(slice: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'dataReceived(slice:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'dataReceived(slice:)' to make this instance method not isolated to the actor
176 | feed (byteArray: slice)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:21:10: note: mark the protocol requirement 'dataReceived(slice:)' 'async' to allow actor-isolated conformances
19 |
20 | /// This method is invoked when data has been received from the local process that should be send to the terminal for processing.
21 | func dataReceived (slice: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'dataReceived(slice:)' 'async' to allow actor-isolated conformances
22 |
23 | /// This method should return the window size to report to the local process.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:182:15: warning: main actor-isolated instance method 'getWindowSize()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
180 | * Implements the LocalProcessDelegate.getWindowSize method
181 | */
182 | open func getWindowSize () -> winsize
| |- warning: main actor-isolated instance method 'getWindowSize()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'getWindowSize()' to make this instance method not isolated to the actor
183 | {
184 | let f: CGRect = self.frame
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:24:10: note: mark the protocol requirement 'getWindowSize()' 'async' to allow actor-isolated conformances
22 |
23 | /// This method should return the window size to report to the local process.
24 | func getWindowSize () -> winsize
| `- note: mark the protocol requirement 'getWindowSize()' 'async' to allow actor-isolated conformances
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:715:15: 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
36 | * defaults, otherwise, this uses its own set of defaults colors.
37 | */
38 | open class TerminalView: NSView, NSTextInputClient, NSUserInterfaceValidations, TerminalDelegate {
| `- note: add '@preconcurrency' to the 'NSTextInputClient' conformance to defer isolation checking to run time
39 | struct FontSet {
40 | public let normal: NSFont
:
713 |
714 | // NSTextInputClient protocol implementation
715 | 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
716 | if let str = string as? NSString {
717 | send (txt: str as String)
AppKit.NSTextInputClient:2:10: note: 'insertText(_:replacementRange:)' declared here
1 | public protocol NSTextInputClient {
2 | func insertText(_ string: Any, replacementRange: NSRange)
| `- note: 'insertText(_:replacementRange:)' declared here
3 | @available(macOS 10.0, *)
4 | func doCommand(by selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:658: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
656 | }
657 |
658 | public override 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
659 | switch selector {
660 | case #selector(insertNewline(_:)):
AppKit.NSTextInputClient:4:10: note: 'doCommand(by:)' declared here
2 | func insertText(_ string: Any, replacementRange: NSRange)
3 | @available(macOS 10.0, *)
4 | func doCommand(by selector: Selector)
| `- note: 'doCommand(by:)' declared here
5 | @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
6 | func doCommandBySelector(_ selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:724:15: warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
722 |
723 | // NSTextInputClient protocol implementation
724 | open func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange) {
| |- warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setMarkedText(_:selectedRange:replacementRange:)' to make this instance method not isolated to the actor
725 | // nothing
726 | }
AppKit.NSTextInputClient:7:10: note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
5 | @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
6 | func doCommandBySelector(_ selector: Selector)
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
| `- note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
8 | func unmarkText()
9 | func selectedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:729:15: 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
727 |
728 | // NSTextInputClient protocol implementation
729 | open 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
730 | // nothing
731 | }
AppKit.NSTextInputClient:8:10: note: 'unmarkText()' declared here
6 | func doCommandBySelector(_ selector: Selector)
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
8 | func unmarkText()
| `- note: 'unmarkText()' declared here
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:734:15: 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
732 |
733 | // NSTextInputClient protocol implementation
734 | open 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
735 | guard let selection = self.selection, selection.active else {
736 | // This means "no selection":
AppKit.NSTextInputClient:9:10: note: 'selectedRange()' declared here
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
8 | func unmarkText()
9 | func selectedRange() -> NSRange
| `- note: 'selectedRange()' declared here
10 | func markedRange() -> NSRange
11 | func hasMarkedText() -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:753:15: 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
751 |
752 | // NSTextInputClient protocol implementation
753 | open 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
754 | print ("markedRange: This should return the actual range from the selection")
755 |
AppKit.NSTextInputClient:10:10: note: 'markedRange()' declared here
8 | func unmarkText()
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
| `- note: 'markedRange()' declared here
11 | func hasMarkedText() -> Bool
12 | @available(macOS 10.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:761:15: 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
759 |
760 | // NSTextInputClient protocol implementation
761 | open 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
762 | // print ("hasMarkedText: This should return the actual range from the selection")
763 | // TODO
AppKit.NSTextInputClient:11:10: note: 'hasMarkedText()' declared here
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
11 | func hasMarkedText() -> Bool
| `- note: 'hasMarkedText()' declared here
12 | @available(macOS 10.0, *)
13 | func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:768:15: warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
766 |
767 | // NSTextInputClient protocol implementation
768 | open func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString? {
| |- warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'attributedSubstring(forProposedRange:actualRange:)' to make this instance method not isolated to the actor
769 | print ("Attribuetd string")
770 | return nil
AppKit.NSTextInputClient:13:10: note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
11 | func hasMarkedText() -> Bool
12 | @available(macOS 10.0, *)
13 | func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
| `- note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
14 | @available(swift, obsoleted: 3, renamed: "attributedSubstring(forProposedRange:actualRange:)")
15 | func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:774:15: warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
772 |
773 | // NSTextInputClient Protocol implementation
774 | open func validAttributesForMarkedText() -> [NSAttributedString.Key] {
| |- warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'validAttributesForMarkedText()' to make this instance method not isolated to the actor
775 | // TODO print ("validAttributesForMarkedText: This should return the actual range from the selection")
776 | return []
AppKit.NSTextInputClient:17:10: note: 'validAttributesForMarkedText()' declared here
15 | func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
16 | @available(macOS 10.0, *)
17 | func validAttributesForMarkedText() -> [NSAttributedString.Key]
| `- note: 'validAttributesForMarkedText()' declared here
18 | func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:780:15: warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
778 |
779 | // NSTextInputClient protocol implementation
780 | open func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect {
| |- warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'firstRect(forCharacterRange:actualRange:)' to make this instance method not isolated to the actor
781 | actualRange?.pointee = range
782 |
AppKit.NSTextInputClient:18:10: note: 'firstRect(forCharacterRange:actualRange:)' declared here
16 | @available(macOS 10.0, *)
17 | func validAttributesForMarkedText() -> [NSAttributedString.Key]
18 | func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
| `- note: 'firstRect(forCharacterRange:actualRange:)' declared here
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 | func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:791:15: 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
789 |
790 | // NSTextInputClient protocol implementation
791 | open func characterIndex(for point: NSPoint) -> 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
792 | print ("characterIndex:for point: This should return the actual range from the selection")
793 | return NSNotFound
AppKit.NSTextInputClient:21:10: note: 'characterIndex(for:)' declared here
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 | func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
21 | func characterIndex(for point: NSPoint) -> Int
| `- note: 'characterIndex(for:)' declared here
22 | @available(swift, obsoleted: 3, renamed: "characterIndex(for:)")
23 | func characterIndexForPoint(_ point: NSPoint) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1158:15: warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
36 | * defaults, otherwise, this uses its own set of defaults colors.
37 | */
38 | open class TerminalView: NSView, NSTextInputClient, NSUserInterfaceValidations, TerminalDelegate {
| `- note: add '@preconcurrency' to the 'TerminalDelegate' conformance to defer isolation checking to run time
39 | struct FontSet {
40 | public let normal: NSFont
:
1156 | }
1157 |
1158 | open func showCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'showCursor(source:)' to make this instance method not isolated to the actor
1159 | if caretView.superview == nil {
1160 | addSubview(caretView)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:22:10: note: mark the protocol requirement 'showCursor(source:)' 'async' to allow actor-isolated conformances
20 | * Invoked to request that the cursor be shown
21 | */
22 | func showCursor (source: Terminal)
| `- note: mark the protocol requirement 'showCursor(source:)' 'async' to allow actor-isolated conformances
23 |
24 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1164:15: warning: main actor-isolated instance method 'hideCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1162 | }
1163 |
1164 | open func hideCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'hideCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hideCursor(source:)' to make this instance method not isolated to the actor
1165 | caretView.removeFromSuperview()
1166 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:27:10: note: mark the protocol requirement 'hideCursor(source:)' 'async' to allow actor-isolated conformances
25 | * Invoked to request that the cursor be shown
26 | */
27 | func hideCursor (source: Terminal)
| `- note: mark the protocol requirement 'hideCursor(source:)' 'async' to allow actor-isolated conformances
28 |
29 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1191:17: warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1189 | }
1190 |
1191 | public func setTerminalTitle(source: Terminal, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalTitle(source:title:)' to make this instance method not isolated to the actor
1192 | terminalDelegate?.setTerminalTitle(source: self, title: title)
1193 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:36:10: note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
34 | * The default implementation does nothing.
35 | */
36 | func setTerminalTitle (source: Terminal, title: String)
| `- note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
37 |
38 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1210:17: warning: main actor-isolated instance method 'setTerminalIconTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1208 | }
1209 |
1210 | public func setTerminalIconTitle(source: Terminal, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalIconTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalIconTitle(source:title:)' to make this instance method not isolated to the actor
1211 | //
1212 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:45:10: note: mark the protocol requirement 'setTerminalIconTitle(source:title:)' 'async' to allow actor-isolated conformances
43 | * The default implementation does nothing.
44 | */
45 | func setTerminalIconTitle (source: Terminal, title: String)
| `- note: mark the protocol requirement 'setTerminalIconTitle(source:title:)' 'async' to allow actor-isolated conformances
46 |
47 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1215:17: warning: main actor-isolated instance method 'windowCommand(source:command:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1213 |
1214 | // Terminal.Delegate method implementation
1215 | public func windowCommand(source: Terminal, command: Terminal.WindowManipulationCommand) -> [UInt8]? {
| |- warning: main actor-isolated instance method 'windowCommand(source:command:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'windowCommand(source:command:)' to make this instance method not isolated to the actor
1216 | return nil
1217 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:58:10: note: mark the protocol requirement 'windowCommand(source:command:)' 'async' to allow actor-isolated conformances
56 | */
57 | @discardableResult
58 | func windowCommand (source: Terminal, command: Terminal.WindowManipulationCommand) -> [UInt8]?
| `- note: mark the protocol requirement 'windowCommand(source:command:)' 'async' to allow actor-isolated conformances
59 |
60 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1195:17: warning: main actor-isolated instance method 'sizeChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1193 | }
1194 |
1195 | public func sizeChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'sizeChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sizeChanged(source:)' to make this instance method not isolated to the actor
1196 | terminalDelegate?.sizeChanged(source: self, newCols: source.cols, newRows: source.rows)
1197 | updateScroller ()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:69:10: note: mark the protocol requirement 'sizeChanged(source:)' 'async' to allow actor-isolated conformances
67 | * The default implementation does nothing.
68 | */
69 | func sizeChanged (source: Terminal)
| `- note: mark the protocol requirement 'sizeChanged(source:)' 'async' to allow actor-isolated conformances
70 |
71 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:335:15: warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
333 | }
334 |
335 | open func send(source: Terminal, data: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'send(source:data:)' to make this instance method not isolated to the actor
336 | terminalDelegate?.send (source: self, data: data)
337 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:75:10: note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
73 | * documentation, this is the "host")
74 | */
75 | func send (source: Terminal, data: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
76 |
77 | // callbacks
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:352:15: warning: main actor-isolated instance method 'scrolled(source:yDisp:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
350 | }
351 |
352 | open func scrolled(source terminal: Terminal, yDisp: Int) {
| |- warning: main actor-isolated instance method 'scrolled(source:yDisp:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'scrolled(source:yDisp:)' to make this instance method not isolated to the actor
353 | //selectionView.notifyScrolled(source: terminal)
354 | updateScroller()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:81:10: note: mark the protocol requirement 'scrolled(source:yDisp:)' 'async' to allow actor-isolated conformances
79 | /// Callback - the window was scrolled, new yDisplay passed
80 | /// The default implementation does nothing.
81 | func scrolled (source: Terminal, yDisp: Int)
| `- note: mark the protocol requirement 'scrolled(source:yDisp:)' 'async' to allow actor-isolated conformances
82 |
83 | /// Callback a newline was generated
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:358:15: warning: main actor-isolated instance method 'linefeed(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
356 | }
357 |
358 | open func linefeed(source: Terminal) {
| |- warning: main actor-isolated instance method 'linefeed(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'linefeed(source:)' to make this instance method not isolated to the actor
359 | selection.selectNone()
360 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:85:10: note: mark the protocol requirement 'linefeed(source:)' 'async' to allow actor-isolated conformances
83 | /// Callback a newline was generated
84 | /// The default implementation does nothing.
85 | func linefeed (source: Terminal)
| `- note: mark the protocol requirement 'linefeed(source:)' 'async' to allow actor-isolated conformances
86 |
87 | /// This method is invoked when the buffer changes from Normal to Alternate, or Alternate to Normal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:331:15: warning: main actor-isolated instance method 'bufferActivated(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
329 | }
330 |
331 | open func bufferActivated(source: Terminal) {
| |- warning: main actor-isolated instance method 'bufferActivated(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'bufferActivated(source:)' to make this instance method not isolated to the actor
332 | updateScroller ()
333 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:89:10: note: mark the protocol requirement 'bufferActivated(source:)' 'async' to allow actor-isolated conformances
87 | /// This method is invoked when the buffer changes from Normal to Alternate, or Alternate to Normal
88 | /// The default implementation does nothing.
89 | func bufferActivated (source: Terminal)
| `- note: mark the protocol requirement 'bufferActivated(source:)' 'async' to allow actor-isolated conformances
90 |
91 | /// Should raise the bell
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1173:15: warning: main actor-isolated instance method 'bell(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1171 | }
1172 |
1173 | open func bell(source: Terminal) {
| |- warning: main actor-isolated instance method 'bell(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'bell(source:)' to make this instance method not isolated to the actor
1174 | terminalDelegate?.bell (source: self)
1175 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:93:10: note: mark the protocol requirement 'bell(source:)' 'async' to allow actor-isolated conformances
91 | /// Should raise the bell
92 | /// The default implementation does nothing.
93 | func bell (source: Terminal)
| `- note: mark the protocol requirement 'bell(source:)' 'async' to allow actor-isolated conformances
94 |
95 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:825:15: warning: main actor-isolated instance method 'selectionChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
823 | }
824 |
825 | open func selectionChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'selectionChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectionChanged(source:)' to make this instance method not isolated to the actor
826 | needsDisplay = true
827 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:102:10: note: mark the protocol requirement 'selectionChanged(source:)' 'async' to allow actor-isolated conformances
100 | * The default implementation does nothing.
101 | */
102 | func selectionChanged (source: Terminal)
| `- note: mark the protocol requirement 'selectionChanged(source:)' 'async' to allow actor-isolated conformances
103 |
104 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1177:17: warning: main actor-isolated instance method 'isProcessTrusted(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1175 | }
1176 |
1177 | public func isProcessTrusted(source: Terminal) -> Bool {
| |- warning: main actor-isolated instance method 'isProcessTrusted(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'isProcessTrusted(source:)' to make this instance method not isolated to the actor
1178 | true
1179 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:111:10: note: mark the protocol requirement 'isProcessTrusted(source:)' 'async' to allow actor-isolated conformances
109 | * The default implementation returns `true`
110 | */
111 | func isProcessTrusted (source: Terminal) -> Bool
| `- note: mark the protocol requirement 'isProcessTrusted(source:)' 'async' to allow actor-isolated conformances
112 |
113 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1181:17: warning: main actor-isolated instance method 'mouseModeChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1179 | }
1180 |
1181 | public func mouseModeChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'mouseModeChanged(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'mouseModeChanged(source:)' to make this instance method not isolated to the actor
1182 | if source.mouseMode == .anyEvent {
1183 | startTracking()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:120:10: note: mark the protocol requirement 'mouseModeChanged(source:)' 'async' to allow actor-isolated conformances
118 | * The default implementation ignores the mouse change
119 | */
120 | func mouseModeChanged (source: Terminal)
| `- note: mark the protocol requirement 'mouseModeChanged(source:)' 'async' to allow actor-isolated conformances
121 |
122 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1168:15: warning: main actor-isolated instance method 'cursorStyleChanged(source:newStyle:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1166 | }
1167 |
1168 | open func cursorStyleChanged (source: Terminal, newStyle: CursorStyle) {
| |- warning: main actor-isolated instance method 'cursorStyleChanged(source:newStyle:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'cursorStyleChanged(source:newStyle:)' to make this instance method not isolated to the actor
1169 | caretView.style = newStyle
1170 | updateCaretView()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:126:10: note: mark the protocol requirement 'cursorStyleChanged(source:newStyle:)' 'async' to allow actor-isolated conformances
124 | * by client application.
125 | */
126 | func cursorStyleChanged (source: Terminal, newStyle: CursorStyle)
| `- note: mark the protocol requirement 'cursorStyleChanged(source:newStyle:)' 'async' to allow actor-isolated conformances
127 |
128 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:224:17: warning: main actor-isolated instance method 'hostCurrentDirectoryUpdated(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
222 | }
223 |
224 | public func hostCurrentDirectoryUpdated (source: Terminal)
| |- warning: main actor-isolated instance method 'hostCurrentDirectoryUpdated(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hostCurrentDirectoryUpdated(source:)' to make this instance method not isolated to the actor
225 | {
226 | terminalDelegate?.hostCurrentDirectoryUpdate(source: self, directory: terminal.hostCurrentDirectory)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:135:10: note: mark the protocol requirement 'hostCurrentDirectoryUpdated(source:)' 'async' to allow actor-isolated conformances
133 | * The default implementaiton does nothing.
134 | */
135 | func hostCurrentDirectoryUpdated (source: Terminal)
| `- note: mark the protocol requirement 'hostCurrentDirectoryUpdated(source:)' 'async' to allow actor-isolated conformances
136 |
137 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:243:17: warning: main actor-isolated instance method 'colorChanged(source:idx:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
241 | }
242 |
243 | public func colorChanged (source: Terminal, idx: Int?)
| |- warning: main actor-isolated instance method 'colorChanged(source:idx:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'colorChanged(source:idx:)' to make this instance method not isolated to the actor
244 | {
245 | if let index = idx {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:151:10: note: mark the protocol requirement 'colorChanged(source:idx:)' 'async' to allow actor-isolated conformances
149 | * with the new values. If the value of idx is nil, this means all the ansi colors changed
150 | */
151 | func colorChanged (source: Terminal, idx: Int?)
| `- note: mark the protocol requirement 'colorChanged(source:idx:)' 'async' to allow actor-isolated conformances
152 |
153 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:259:17: warning: main actor-isolated instance method 'setForegroundColor(source:color:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
257 | }
258 |
259 | public func setForegroundColor(source: Terminal, color: Color) {
| |- warning: main actor-isolated instance method 'setForegroundColor(source:color:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setForegroundColor(source:color:)' to make this instance method not isolated to the actor
260 | nativeForegroundColor = TTColor.make (color: color)
261 | colorsChanged()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:156:10: note: mark the protocol requirement 'setForegroundColor(source:color:)' 'async' to allow actor-isolated conformances
154 | * The view should try to set the foreground color to the provided color
155 | */
156 | func setForegroundColor (source: Terminal, color: Color)
| `- note: mark the protocol requirement 'setForegroundColor(source:color:)' 'async' to allow actor-isolated conformances
157 |
158 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:253:17: warning: main actor-isolated instance method 'setBackgroundColor(source:color:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
251 | }
252 |
253 | public func setBackgroundColor(source: Terminal, color: Color) {
| |- warning: main actor-isolated instance method 'setBackgroundColor(source:color:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setBackgroundColor(source:color:)' to make this instance method not isolated to the actor
254 | // Can not implement this until I change the color to not be this struct
255 | nativeBackgroundColor = TTColor.make (color: color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:161:10: note: mark the protocol requirement 'setBackgroundColor(source:color:)' 'async' to allow actor-isolated conformances
159 | * The view should try to set the background color to the provided color
160 | */
161 | func setBackgroundColor (source: Terminal, color: Color)
| `- note: mark the protocol requirement 'setBackgroundColor(source:color:)' 'async' to allow actor-isolated conformances
162 |
163 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1219:17: warning: main actor-isolated instance method 'iTermContent(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1217 | }
1218 |
1219 | public func iTermContent (source: Terminal, content: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'iTermContent(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'iTermContent(source:content:)' to make this instance method not isolated to the actor
1220 | terminalDelegate?.iTermContent(source: self, content: content)
1221 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:180:10: note: mark the protocol requirement 'iTermContent(source:content:)' 'async' to allow actor-isolated conformances
178 | * The default implementaiton does nothing.
179 | */
180 | func iTermContent (source: Terminal, content: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'iTermContent(source:content:)' 'async' to allow actor-isolated conformances
181 |
182 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:1193:17: warning: main actor-isolated instance method 'createImageFromBitmap(source:bytes:width:height:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1191 | }
1192 |
1193 | public func createImageFromBitmap(source: Terminal, bytes: inout [UInt8], width: Int, height: Int) {
| |- warning: main actor-isolated instance method 'createImageFromBitmap(source:bytes:width:height:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'createImageFromBitmap(source:bytes:width:height:)' to make this instance method not isolated to the actor
1194 | let rgbColorSpace = CGColorSpaceCreateDeviceRGB()
1195 | let bitmapInfo: CGBitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.premultipliedLast.rawValue)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:214:10: note: mark the protocol requirement 'createImageFromBitmap(source:bytes:width:height:)' 'async' to allow actor-isolated conformances
212 | * - height: the height in pixels of the image
213 | */
214 | func createImageFromBitmap (source: Terminal, bytes: inout [UInt8], width: Int, height: Int)
| `- note: mark the protocol requirement 'createImageFromBitmap(source:bytes:width:height:)' 'async' to allow actor-isolated conformances
215 |
216 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/AppleTerminalView.swift:1212:17: warning: main actor-isolated instance method 'createImage(source:data:width:height:preserveAspectRatio:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1210 | }
1211 |
1212 | public func createImage (source: Terminal, data: Data, width widthRequest: ImageSizeRequest, height heightRequest: ImageSizeRequest, preserveAspectRatio: Bool)
| |- warning: main actor-isolated instance method 'createImage(source:data:width:height:preserveAspectRatio:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'createImage(source:data:width:height:preserveAspectRatio:)' to make this instance method not isolated to the actor
1213 | {
1214 | guard let img = TTImage(data: data) else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:227:10: note: mark the protocol requirement 'createImage(source:data:width:height:preserveAspectRatio:)' 'async' to allow actor-isolated conformances
225 | * - preserveAspectRatio: if set, one of the dimensions will track the hardcoded setting set for the other.
226 | */
227 | func createImage (source: Terminal, data: Data, width: ImageSizeRequest, height: ImageSizeRequest, preserveAspectRatio: Bool)
| `- note: mark the protocol requirement 'createImage(source:data:width:height:preserveAspectRatio:)' 'async' to allow actor-isolated conformances
228 | }
229 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:195:28: warning: call to main actor-isolated instance method 'updateCursorStyle()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
193 | func setupFocusNotification() {
194 | becomeMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | self.caretView.updateCursorStyle()
| `- warning: call to main actor-isolated instance method 'updateCursorStyle()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | }
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacCaretView.swift:54:10: note: calls to instance method 'updateCursorStyle()' from outside of its actor context are implicitly asynchronous
52 | }
53 |
54 | func updateCursorStyle () {
| `- note: calls to instance method 'updateCursorStyle()' from outside of its actor context are implicitly asynchronous
55 | switch style {
56 | case .blinkUnderline, .blinkBlock, .blinkBar:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:195:18: warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
93 |
94 | var cellDimension: CellDimension!
95 | var caretView: CaretView!
| `- note: property declared here
96 | public var terminal: Terminal!
97 |
:
193 | func setupFocusNotification() {
194 | becomeMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | self.caretView.updateCursorStyle()
| `- warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
196 | }
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:198:28: warning: call to main actor-isolated instance method 'disableAnimations()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | }
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
198 | self.caretView.disableAnimations()
| `- warning: call to main actor-isolated instance method 'disableAnimations()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
199 | self.caretView.updateView()
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacCaretView.swift:79:10: note: calls to instance method 'disableAnimations()' from outside of its actor context are implicitly asynchronous
77 | }
78 |
79 | func disableAnimations () {
| `- note: calls to instance method 'disableAnimations()' from outside of its actor context are implicitly asynchronous
80 | layer?.removeAllAnimations()
81 | layer?.opacity = 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:198:18: warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
93 |
94 | var cellDimension: CellDimension!
95 | var caretView: CaretView!
| `- note: property declared here
96 | public var terminal: Terminal!
97 |
:
196 | }
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
198 | self.caretView.disableAnimations()
| `- warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
199 | self.caretView.updateView()
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:199:28: warning: call to main actor-isolated instance method 'updateView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
198 | self.caretView.disableAnimations()
199 | self.caretView.updateView()
| `- warning: call to main actor-isolated instance method 'updateView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacCaretView.swift:106:10: note: calls to instance method 'updateView()' from outside of its actor context are implicitly asynchronous
104 | }
105 |
106 | func updateView() {
| `- note: calls to instance method 'updateView()' from outside of its actor context are implicitly asynchronous
107 | setNeedsDisplay(bounds)
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:199:18: warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
93 |
94 | var cellDimension: CellDimension!
95 | var caretView: CaretView!
| `- note: property declared here
96 | public var terminal: Terminal!
97 |
:
197 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
198 | self.caretView.disableAnimations()
199 | self.caretView.updateView()
| `- warning: main actor-isolated property 'caretView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
200 | }
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:185:9: warning: cannot access property 'becomeMainObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
183 |
184 | deinit {
185 | if let becomeMainObserver {
| `- warning: cannot access property 'becomeMainObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
186 | NotificationCenter.default.removeObserver (becomeMainObserver)
187 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
11 |
12 | #if os(macOS)
13 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
14 | import AppKit
15 | import CoreText
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:188:9: warning: cannot access property 'resignMainObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
186 | NotificationCenter.default.removeObserver (becomeMainObserver)
187 | }
188 | if let resignMainObserver {
| `- warning: cannot access property 'resignMainObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
189 | NotificationCenter.default.removeObserver (resignMainObserver)
190 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
[41/47] Compiling SwiftTerm EscapeSequences.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/TerminalOptions.swift:63:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Configuration options for the terminal at startup, these values are only read at startup
42 | public struct TerminalOptions {
| `- note: consider making struct 'TerminalOptions' conform to the 'Sendable' protocol
43 | /// Desired number of columns at startup (default 80)
44 | public var cols: Int
:
61 |
62 | /// Default options
63 | public static let `default` = TerminalOptions.init(cols: 80,
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
64 | rows: 25,
65 | convertEol: false,
[42/47] Compiling SwiftTerm ExternsionsTerminal.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/TerminalOptions.swift:63:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Configuration options for the terminal at startup, these values are only read at startup
42 | public struct TerminalOptions {
| `- note: consider making struct 'TerminalOptions' conform to the 'Sendable' protocol
43 | /// Desired number of columns at startup (default 80)
44 | public var cols: Int
:
61 |
62 | /// Default options
63 | public static let `default` = TerminalOptions.init(cols: 80,
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
64 | rows: 25,
65 | convertEol: false,
[43/47] Compiling SwiftTerm File.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/TerminalOptions.swift:63:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Configuration options for the terminal at startup, these values are only read at startup
42 | public struct TerminalOptions {
| `- note: consider making struct 'TerminalOptions' conform to the 'Sendable' protocol
43 | /// Desired number of columns at startup (default 80)
44 | public var cols: Int
:
61 |
62 | /// Default options
63 | public static let `default` = TerminalOptions.init(cols: 80,
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
64 | rows: 25,
65 | convertEol: false,
[44/47] Compiling SwiftTerm HeadlessTerminal.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/TerminalOptions.swift:63:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Configuration options for the terminal at startup, these values are only read at startup
42 | public struct TerminalOptions {
| `- note: consider making struct 'TerminalOptions' conform to the 'Sendable' protocol
43 | /// Desired number of columns at startup (default 80)
44 | public var cols: Int
:
61 |
62 | /// Default options
63 | public static let `default` = TerminalOptions.init(cols: 80,
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
64 | rows: 25,
65 | convertEol: false,
[45/49] Emitting module SwiftTermFuzz
[46/49] Compiling SwiftTermFuzz main.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTermFuzz/main.swift:23:38: error: main actor-isolated var 'queue' can not be referenced from a nonisolated context
16 | import SwiftTerm
17 |
18 | var queue = DispatchQueue(label: "Runner", qos: .userInteractive, attributes: .concurrent, autoreleaseFrequency: .inherit, target: nil)
| `- note: var declared here
19 |
20 | // Fuzzer entry point
21 | @_cdecl("LLVMFuzzerTestOneInput") public func fuzzMe(data: UnsafePointer<UInt8>, length: CInt) -> CInt{
| `- note: add '@MainActor' to make global function 'fuzzMe(data:length:)' part of global actor 'MainActor'
22 |
23 | let h = HeadlessTerminal (queue: queue) { exitCode in }
| `- error: main actor-isolated var 'queue' can not be referenced from a nonisolated context
24 |
25 | let t = h.terminal!
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/SwiftTerm/Mac/README.md
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-5BDAB9E9C0126B9D.txt
[2/41] Compiling SwiftTerm iOSAccessoryView.swift
[3/41] Compiling SwiftTerm iOSCaretView.swift
[4/41] Compiling SwiftTerm iOSDoubleButton.swift
[5/41] Compiling SwiftTerm iOSExtensions.swift
[6/44] Compiling SwiftTerm iOSKeyboardView.swift
[7/44] Compiling SwiftTerm iOSTerminalView.swift
[8/44] Compiling SwiftTerm iOSTextInput.swift
[9/44] Emitting module SwiftTerm
[10/44] Compiling SwiftTerm Position.swift
[11/44] Compiling SwiftTerm Pty.swift
[12/44] Compiling SwiftTerm SearchService.swift
[13/44] Compiling SwiftTerm SelectionService.swift
[14/44] Compiling SwiftTerm Line.swift
[15/44] Compiling SwiftTerm LocalProcess.swift
[16/44] Compiling SwiftTerm MacAccessibilityService.swift
[17/44] Compiling SwiftTerm MacCaretView.swift
[18/44] Compiling SwiftTerm EscapeSequences.swift
[19/44] Compiling SwiftTerm ExternsionsTerminal.swift
[20/44] Compiling SwiftTerm File.swift
[21/44] Compiling SwiftTerm HeadlessTerminal.swift
[22/44] Compiling SwiftTerm Buffer.swift
[23/44] Compiling SwiftTerm BufferLine.swift
[24/44] Compiling SwiftTerm BufferSet.swift
[25/44] Compiling SwiftTerm CharData.swift
[26/44] Compiling SwiftTerm MacDebugView.swift
[27/44] Compiling SwiftTerm MacExtensions.swift
[28/44] Compiling SwiftTerm MacLocalTerminalView.swift
[29/44] Compiling SwiftTerm MacTerminalView.swift
[30/44] Compiling SwiftTerm AppleTerminalView.swift
[31/44] Compiling SwiftTerm CaretView.swift
[32/44] Compiling SwiftTerm Extensions.swift
[33/44] Compiling SwiftTerm TerminalViewDelegate.swift
[34/44] Compiling SwiftTerm CharSets.swift
[35/44] Compiling SwiftTerm CircularList.swift
[36/44] Compiling SwiftTerm Colors.swift
[37/44] Compiling SwiftTerm EscapeSequenceParser.swift
[38/44] Compiling SwiftTerm SixelDcsHandler.swift
[39/44] Compiling SwiftTerm Terminal.swift
[40/44] Compiling SwiftTerm TerminalOptions.swift
[41/44] Compiling SwiftTerm Utilities.swift
[42/46] Emitting module SwiftTermFuzz
[43/46] Compiling SwiftTermFuzz main.swift
[43/46] Write Objects.LinkFileList
[44/46] Linking SwiftTermFuzz
[45/46] Applying SwiftTermFuzz
Build complete! (4.17s)
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/SwiftTerm/Mac/README.md
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftTerm",
"name" : "SwiftTerm",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "SwiftTermFuzz",
"targets" : [
"SwiftTermFuzz"
],
"type" : {
"executable" : null
}
},
{
"name" : "SwiftTerm",
"targets" : [
"SwiftTerm"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "SwiftTermTests",
"module_type" : "SwiftTarget",
"name" : "SwiftTermTests",
"path" : "Tests/SwiftTermTests",
"sources" : [
"ColorTests.swift",
"FuzzerTests.swift",
"ImageTests.swift",
"MeanTests.swift",
"Memory.swift",
"OscTests.swift",
"ReflowTests.swift",
"SelectionTests.swift",
"SwiftTermTests.swift",
"UnicodeTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"SwiftTerm"
],
"type" : "test"
},
{
"c99name" : "SwiftTermFuzz",
"module_type" : "SwiftTarget",
"name" : "SwiftTermFuzz",
"path" : "Sources/SwiftTermFuzz",
"product_memberships" : [
"SwiftTermFuzz"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"SwiftTerm"
],
"type" : "executable"
},
{
"c99name" : "SwiftTerm",
"module_type" : "SwiftTarget",
"name" : "SwiftTerm",
"path" : "Sources/SwiftTerm",
"product_memberships" : [
"SwiftTermFuzz",
"SwiftTerm"
],
"sources" : [
"Apple/AppleTerminalView.swift",
"Apple/CaretView.swift",
"Apple/Extensions.swift",
"Apple/TerminalViewDelegate.swift",
"Buffer.swift",
"BufferLine.swift",
"BufferSet.swift",
"CharData.swift",
"CharSets.swift",
"CircularList.swift",
"Colors.swift",
"EscapeSequenceParser.swift",
"EscapeSequences.swift",
"ExternsionsTerminal.swift",
"File.swift",
"HeadlessTerminal.swift",
"Line.swift",
"LocalProcess.swift",
"Mac/MacAccessibilityService.swift",
"Mac/MacCaretView.swift",
"Mac/MacDebugView.swift",
"Mac/MacExtensions.swift",
"Mac/MacLocalTerminalView.swift",
"Mac/MacTerminalView.swift",
"Position.swift",
"Pty.swift",
"SearchService.swift",
"SelectionService.swift",
"SixelDcsHandler.swift",
"Terminal.swift",
"TerminalOptions.swift",
"Utilities.swift",
"iOS/iOSAccessoryView.swift",
"iOS/iOSCaretView.swift",
"iOS/iOSDoubleButton.swift",
"iOS/iOSExtensions.swift",
"iOS/iOSKeyboardView.swift",
"iOS/iOSTerminalView.swift",
"iOS/iOSTextInput.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.