Build Information
Successful build of SwiftTerm, reference 1.2.5 (e2b431
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 21:00:31 UTC.
Swift 6 data race errors: 77
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
641 | }
642 |
643 | public override func doCommand(by selector: Selector) {
| |- warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
644 | switch selector {
645 | case #selector(insertNewline(_:)):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:709:15: warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
707 |
708 | // NSTextInputClient protocol implementation
709 | open func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange) {
| |- warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
710 | // nothing
711 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:714:15: warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
712 |
713 | // NSTextInputClient protocol implementation
714 | open func unmarkText() {
| |- warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
715 | // nothing
716 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:719:15: warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
717 |
718 | // NSTextInputClient protocol implementation
719 | open func selectedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
720 | guard let selection = self.selection, selection.active else {
721 | // This means "no selection":
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:738:15: warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
736 |
737 | // NSTextInputClient protocol implementation
738 | open func markedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
739 | print ("markedRange: This should return the actual range from the selection")
740 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:746:15: warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
744 |
745 | // NSTextInputClient protocol implementation
746 | open func hasMarkedText() -> Bool {
| |- warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
747 | // print ("hasMarkedText: This should return the actual range from the selection")
748 | // TODO
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:753:15: warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
751 |
752 | // NSTextInputClient protocol implementation
753 | open func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString? {
| |- warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
754 | print ("Attribuetd string")
755 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:759:15: warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
757 |
758 | // NSTextInputClient Protocol implementation
759 | open func validAttributesForMarkedText() -> [NSAttributedString.Key] {
| |- warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
760 | // TODO print ("validAttributesForMarkedText: This should return the actual range from the selection")
761 | return []
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:765:15: warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
763 |
764 | // NSTextInputClient protocol implementation
765 | open func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect {
| |- warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
766 | actualRange?.pointee = range
767 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:776:15: warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
774 |
775 | // NSTextInputClient protocol implementation
776 | open func characterIndex(for point: NSPoint) -> Int {
| |- warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
777 | print ("characterIndex:for point: This should return the actual range from the selection")
778 | return NSNotFound
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1143:15: warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
:
1141 | }
1142 |
1143 | open func showCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1144 | if caretView.superview == nil {
1145 | 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:1149:15: warning: main actor-isolated instance method 'hideCursor(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1147 | }
1148 |
1149 | open func hideCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'hideCursor(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1150 | caretView.removeFromSuperview()
1151 | }
/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:1176:17: warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1174 | }
1175 |
1176 | public func setTerminalTitle(source: Terminal, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1177 | terminalDelegate?.setTerminalTitle(source: self, title: title)
1178 | }
/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:1195:17: warning: main actor-isolated instance method 'setTerminalIconTitle(source:title:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1193 | }
1194 |
1195 | public func setTerminalIconTitle(source: Terminal, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalIconTitle(source:title:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1196 | //
1197 | }
/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:1200:17: warning: main actor-isolated instance method 'windowCommand(source:command:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1198 |
1199 | // Terminal.Delegate method implementation
1200 | public func windowCommand(source: Terminal, command: Terminal.WindowManipulationCommand) -> [UInt8]? {
| |- warning: main actor-isolated instance method 'windowCommand(source:command:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1201 | return nil
1202 | }
/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:1180:17: warning: main actor-isolated instance method 'sizeChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1178 | }
1179 |
1180 | public func sizeChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'sizeChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1181 | terminalDelegate?.sizeChanged(source: self, newCols: source.cols, newRows: source.rows)
1182 | 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:325:15: warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
323 | }
324 |
325 | open func send(source: Terminal, data: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
326 | terminalDelegate?.send (source: self, data: data)
327 | }
/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:342:15: warning: main actor-isolated instance method 'scrolled(source:yDisp:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
340 | }
341 |
342 | open func scrolled(source terminal: Terminal, yDisp: Int) {
| |- warning: main actor-isolated instance method 'scrolled(source:yDisp:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
343 | //selectionView.notifyScrolled(source: terminal)
344 | 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:348:15: warning: main actor-isolated instance method 'linefeed(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
346 | }
347 |
348 | open func linefeed(source: Terminal) {
| |- warning: main actor-isolated instance method 'linefeed(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
349 | selection.selectNone()
350 | }
/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:321:15: warning: main actor-isolated instance method 'bufferActivated(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
319 | }
320 |
321 | open func bufferActivated(source: Terminal) {
| |- warning: main actor-isolated instance method 'bufferActivated(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
322 | updateScroller ()
323 | }
/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:1158:15: warning: main actor-isolated instance method 'bell(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1156 | }
1157 |
1158 | open func bell(source: Terminal) {
| |- warning: main actor-isolated instance method 'bell(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1159 | terminalDelegate?.bell (source: self)
1160 | }
/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:810:15: warning: main actor-isolated instance method 'selectionChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
808 | }
809 |
810 | open func selectionChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'selectionChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
811 | needsDisplay = true
812 | }
/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:1162:17: warning: main actor-isolated instance method 'isProcessTrusted(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1160 | }
1161 |
1162 | public func isProcessTrusted(source: Terminal) -> Bool {
| |- warning: main actor-isolated instance method 'isProcessTrusted(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1163 | true
1164 | }
/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:1166:17: warning: main actor-isolated instance method 'mouseModeChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1164 | }
1165 |
1166 | public func mouseModeChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'mouseModeChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1167 | if source.mouseMode == .anyEvent {
1168 | 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:1153:15: warning: main actor-isolated instance method 'cursorStyleChanged(source:newStyle:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1151 | }
1152 |
1153 | open func cursorStyleChanged (source: Terminal, newStyle: CursorStyle) {
| |- warning: main actor-isolated instance method 'cursorStyleChanged(source:newStyle:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1154 | caretView.style = newStyle
1155 | 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:204:17: warning: main actor-isolated instance method 'hostCurrentDirectoryUpdated(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
202 | }
203 |
204 | public func hostCurrentDirectoryUpdated (source: Terminal)
| |- warning: main actor-isolated instance method 'hostCurrentDirectoryUpdated(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
205 | {
206 | 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:223:17: warning: main actor-isolated instance method 'colorChanged(source:idx:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
221 | }
222 |
223 | public func colorChanged (source: Terminal, idx: Int?)
| |- warning: main actor-isolated instance method 'colorChanged(source:idx:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
224 | {
225 | 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:239:17: warning: main actor-isolated instance method 'setForegroundColor(source:color:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
237 | }
238 |
239 | public func setForegroundColor(source: Terminal, color: Color) {
| |- warning: main actor-isolated instance method 'setForegroundColor(source:color:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
240 | nativeForegroundColor = TTColor.make (color: color)
241 | 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:233:17: warning: main actor-isolated instance method 'setBackgroundColor(source:color:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
231 | }
232 |
233 | public func setBackgroundColor(source: Terminal, color: Color) {
| |- warning: main actor-isolated instance method 'setBackgroundColor(source:color:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
234 | // Can not implement this until I change the color to not be this struct
235 | 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:1204:17: warning: main actor-isolated instance method 'iTermContent(source:content:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1202 | }
1203 |
1204 | public func iTermContent (source: Terminal, content: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'iTermContent(source:content:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1205 | terminalDelegate?.iTermContent(source: self, content: content)
1206 | }
/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:1167:17: warning: main actor-isolated instance method 'createImageFromBitmap(source:bytes:width:height:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1165 | }
1166 |
1167 | 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 requirement from protocol 'TerminalDelegate'; 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
1168 | let rgbColorSpace = CGColorSpaceCreateDeviceRGB()
1169 | 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:1186:17: warning: main actor-isolated instance method 'createImage(source:data:width:height:preserveAspectRatio:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1184 | }
1185 |
1186 | 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 requirement from protocol 'TerminalDelegate'; 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
1187 | {
1188 | 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:192: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
190 | func setupFocusNotification() {
191 | becomeMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { [unowned self] notification in
192 | 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
193 | }
194 | 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
| `- note: main actor isolation inferred from inheritance from class 'NSView'
55 | switch style {
56 | case .blinkUnderline, .blinkBlock, .blinkBar:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:192: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 | var terminal: Terminal!
97 |
:
190 | func setupFocusNotification() {
191 | becomeMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { [unowned self] notification in
192 | 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
193 | }
194 | 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:195: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
193 | }
194 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | 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
196 | self.caretView.updateView()
197 | }
/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
| `- note: main actor isolation inferred from inheritance from class 'NSView'
80 | layer?.removeAllAnimations()
81 | layer?.opacity = 1
/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 | var terminal: Terminal!
97 |
:
193 | }
194 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | 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
196 | self.caretView.updateView()
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:196: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
194 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | self.caretView.disableAnimations()
196 | 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
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacCaretView.swift:105:10: note: calls to instance method 'updateView()' from outside of its actor context are implicitly asynchronous
103 | }
104 |
105 | func updateView() {
| |- note: calls to instance method 'updateView()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
106 | setNeedsDisplay(bounds)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:196: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 | var terminal: Terminal!
97 |
:
194 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | self.caretView.disableAnimations()
196 | 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
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:182: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
180 |
181 | deinit {
182 | 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
183 | NotificationCenter.default.removeObserver (becomeMainObserver)
184 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/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:185: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
183 | NotificationCenter.default.removeObserver (becomeMainObserver)
184 | }
185 | 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
186 | NotificationCenter.default.removeObserver (resignMainObserver)
187 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
[39/47] Compiling SwiftTerm MacLocalTerminalView.swift
/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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'LocalProcessDelegate'; 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 requirement from protocol 'LocalProcessDelegate'; 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 requirement from protocol 'LocalProcessDelegate'; 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 requirement from protocol 'LocalProcessDelegate'; 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 requirement from protocol 'LocalProcessDelegate'; 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 requirement from protocol 'LocalProcessDelegate'; 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:700:15: warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
:
698 |
699 | // NSTextInputClient protocol implementation
700 | open func insertText(_ string: Any, replacementRange: NSRange) {
| |- warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
701 | if let str = string as? NSString {
702 | send (txt: str as String)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:643:26: warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
641 | }
642 |
643 | public override func doCommand(by selector: Selector) {
| |- warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
644 | switch selector {
645 | case #selector(insertNewline(_:)):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:709:15: warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
707 |
708 | // NSTextInputClient protocol implementation
709 | open func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange) {
| |- warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
710 | // nothing
711 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:714:15: warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
712 |
713 | // NSTextInputClient protocol implementation
714 | open func unmarkText() {
| |- warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
715 | // nothing
716 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:719:15: warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
717 |
718 | // NSTextInputClient protocol implementation
719 | open func selectedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
720 | guard let selection = self.selection, selection.active else {
721 | // This means "no selection":
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:738:15: warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
736 |
737 | // NSTextInputClient protocol implementation
738 | open func markedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
739 | print ("markedRange: This should return the actual range from the selection")
740 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:746:15: warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
744 |
745 | // NSTextInputClient protocol implementation
746 | open func hasMarkedText() -> Bool {
| |- warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
747 | // print ("hasMarkedText: This should return the actual range from the selection")
748 | // TODO
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:753:15: warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
751 |
752 | // NSTextInputClient protocol implementation
753 | open func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString? {
| |- warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
754 | print ("Attribuetd string")
755 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:759:15: warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
757 |
758 | // NSTextInputClient Protocol implementation
759 | open func validAttributesForMarkedText() -> [NSAttributedString.Key] {
| |- warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
760 | // TODO print ("validAttributesForMarkedText: This should return the actual range from the selection")
761 | return []
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:765:15: warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
763 |
764 | // NSTextInputClient protocol implementation
765 | open func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect {
| |- warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
766 | actualRange?.pointee = range
767 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:776:15: warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
774 |
775 | // NSTextInputClient protocol implementation
776 | open func characterIndex(for point: NSPoint) -> Int {
| |- warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
777 | print ("characterIndex:for point: This should return the actual range from the selection")
778 | return NSNotFound
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1143:15: warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
:
1141 | }
1142 |
1143 | open func showCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1144 | if caretView.superview == nil {
1145 | 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:1149:15: warning: main actor-isolated instance method 'hideCursor(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1147 | }
1148 |
1149 | open func hideCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'hideCursor(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1150 | caretView.removeFromSuperview()
1151 | }
/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:1176:17: warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1174 | }
1175 |
1176 | public func setTerminalTitle(source: Terminal, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1177 | terminalDelegate?.setTerminalTitle(source: self, title: title)
1178 | }
/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:1195:17: warning: main actor-isolated instance method 'setTerminalIconTitle(source:title:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1193 | }
1194 |
1195 | public func setTerminalIconTitle(source: Terminal, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalIconTitle(source:title:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1196 | //
1197 | }
/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:1200:17: warning: main actor-isolated instance method 'windowCommand(source:command:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1198 |
1199 | // Terminal.Delegate method implementation
1200 | public func windowCommand(source: Terminal, command: Terminal.WindowManipulationCommand) -> [UInt8]? {
| |- warning: main actor-isolated instance method 'windowCommand(source:command:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1201 | return nil
1202 | }
/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:1180:17: warning: main actor-isolated instance method 'sizeChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1178 | }
1179 |
1180 | public func sizeChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'sizeChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1181 | terminalDelegate?.sizeChanged(source: self, newCols: source.cols, newRows: source.rows)
1182 | 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:325:15: warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
323 | }
324 |
325 | open func send(source: Terminal, data: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
326 | terminalDelegate?.send (source: self, data: data)
327 | }
/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:342:15: warning: main actor-isolated instance method 'scrolled(source:yDisp:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
340 | }
341 |
342 | open func scrolled(source terminal: Terminal, yDisp: Int) {
| |- warning: main actor-isolated instance method 'scrolled(source:yDisp:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
343 | //selectionView.notifyScrolled(source: terminal)
344 | 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:348:15: warning: main actor-isolated instance method 'linefeed(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
346 | }
347 |
348 | open func linefeed(source: Terminal) {
| |- warning: main actor-isolated instance method 'linefeed(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
349 | selection.selectNone()
350 | }
/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:321:15: warning: main actor-isolated instance method 'bufferActivated(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
319 | }
320 |
321 | open func bufferActivated(source: Terminal) {
| |- warning: main actor-isolated instance method 'bufferActivated(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
322 | updateScroller ()
323 | }
/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:1158:15: warning: main actor-isolated instance method 'bell(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1156 | }
1157 |
1158 | open func bell(source: Terminal) {
| |- warning: main actor-isolated instance method 'bell(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1159 | terminalDelegate?.bell (source: self)
1160 | }
/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:810:15: warning: main actor-isolated instance method 'selectionChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
808 | }
809 |
810 | open func selectionChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'selectionChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
811 | needsDisplay = true
812 | }
/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:1162:17: warning: main actor-isolated instance method 'isProcessTrusted(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1160 | }
1161 |
1162 | public func isProcessTrusted(source: Terminal) -> Bool {
| |- warning: main actor-isolated instance method 'isProcessTrusted(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1163 | true
1164 | }
/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:1166:17: warning: main actor-isolated instance method 'mouseModeChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1164 | }
1165 |
1166 | public func mouseModeChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'mouseModeChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1167 | if source.mouseMode == .anyEvent {
1168 | 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:1153:15: warning: main actor-isolated instance method 'cursorStyleChanged(source:newStyle:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1151 | }
1152 |
1153 | open func cursorStyleChanged (source: Terminal, newStyle: CursorStyle) {
| |- warning: main actor-isolated instance method 'cursorStyleChanged(source:newStyle:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1154 | caretView.style = newStyle
1155 | 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:204:17: warning: main actor-isolated instance method 'hostCurrentDirectoryUpdated(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
202 | }
203 |
204 | public func hostCurrentDirectoryUpdated (source: Terminal)
| |- warning: main actor-isolated instance method 'hostCurrentDirectoryUpdated(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
205 | {
206 | 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:223:17: warning: main actor-isolated instance method 'colorChanged(source:idx:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
221 | }
222 |
223 | public func colorChanged (source: Terminal, idx: Int?)
| |- warning: main actor-isolated instance method 'colorChanged(source:idx:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
224 | {
225 | 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:239:17: warning: main actor-isolated instance method 'setForegroundColor(source:color:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
237 | }
238 |
239 | public func setForegroundColor(source: Terminal, color: Color) {
| |- warning: main actor-isolated instance method 'setForegroundColor(source:color:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
240 | nativeForegroundColor = TTColor.make (color: color)
241 | 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:233:17: warning: main actor-isolated instance method 'setBackgroundColor(source:color:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
231 | }
232 |
233 | public func setBackgroundColor(source: Terminal, color: Color) {
| |- warning: main actor-isolated instance method 'setBackgroundColor(source:color:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
234 | // Can not implement this until I change the color to not be this struct
235 | 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:1204:17: warning: main actor-isolated instance method 'iTermContent(source:content:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1202 | }
1203 |
1204 | public func iTermContent (source: Terminal, content: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'iTermContent(source:content:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1205 | terminalDelegate?.iTermContent(source: self, content: content)
1206 | }
/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:1167:17: warning: main actor-isolated instance method 'createImageFromBitmap(source:bytes:width:height:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1165 | }
1166 |
1167 | 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 requirement from protocol 'TerminalDelegate'; 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
1168 | let rgbColorSpace = CGColorSpaceCreateDeviceRGB()
1169 | 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:1186:17: warning: main actor-isolated instance method 'createImage(source:data:width:height:preserveAspectRatio:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1184 | }
1185 |
1186 | 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 requirement from protocol 'TerminalDelegate'; 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
1187 | {
1188 | 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:192: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
190 | func setupFocusNotification() {
191 | becomeMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { [unowned self] notification in
192 | 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
193 | }
194 | 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
| `- note: main actor isolation inferred from inheritance from class 'NSView'
55 | switch style {
56 | case .blinkUnderline, .blinkBlock, .blinkBar:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:192: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 | var terminal: Terminal!
97 |
:
190 | func setupFocusNotification() {
191 | becomeMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { [unowned self] notification in
192 | 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
193 | }
194 | 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:195: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
193 | }
194 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | 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
196 | self.caretView.updateView()
197 | }
/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
| `- note: main actor isolation inferred from inheritance from class 'NSView'
80 | layer?.removeAllAnimations()
81 | layer?.opacity = 1
/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 | var terminal: Terminal!
97 |
:
193 | }
194 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | 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
196 | self.caretView.updateView()
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:196: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
194 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | self.caretView.disableAnimations()
196 | 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
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacCaretView.swift:105:10: note: calls to instance method 'updateView()' from outside of its actor context are implicitly asynchronous
103 | }
104 |
105 | func updateView() {
| |- note: calls to instance method 'updateView()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
106 | setNeedsDisplay(bounds)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:196: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 | var terminal: Terminal!
97 |
:
194 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | self.caretView.disableAnimations()
196 | 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
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:182: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
180 |
181 | deinit {
182 | 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
183 | NotificationCenter.default.removeObserver (becomeMainObserver)
184 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/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:185: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
183 | NotificationCenter.default.removeObserver (becomeMainObserver)
184 | }
185 | 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
186 | NotificationCenter.default.removeObserver (resignMainObserver)
187 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
[40/47] Compiling SwiftTerm MacTerminalView.swift
/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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'TerminalViewDelegate'; 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 requirement from protocol 'LocalProcessDelegate'; 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 requirement from protocol 'LocalProcessDelegate'; 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 requirement from protocol 'LocalProcessDelegate'; 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 requirement from protocol 'LocalProcessDelegate'; 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 requirement from protocol 'LocalProcessDelegate'; 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 requirement from protocol 'LocalProcessDelegate'; 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:700:15: warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
:
698 |
699 | // NSTextInputClient protocol implementation
700 | open func insertText(_ string: Any, replacementRange: NSRange) {
| |- warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
701 | if let str = string as? NSString {
702 | send (txt: str as String)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:643:26: warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
641 | }
642 |
643 | public override func doCommand(by selector: Selector) {
| |- warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
644 | switch selector {
645 | case #selector(insertNewline(_:)):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:709:15: warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
707 |
708 | // NSTextInputClient protocol implementation
709 | open func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange) {
| |- warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
710 | // nothing
711 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:714:15: warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
712 |
713 | // NSTextInputClient protocol implementation
714 | open func unmarkText() {
| |- warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
715 | // nothing
716 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:719:15: warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
717 |
718 | // NSTextInputClient protocol implementation
719 | open func selectedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
720 | guard let selection = self.selection, selection.active else {
721 | // This means "no selection":
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:738:15: warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
736 |
737 | // NSTextInputClient protocol implementation
738 | open func markedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
739 | print ("markedRange: This should return the actual range from the selection")
740 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:746:15: warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
744 |
745 | // NSTextInputClient protocol implementation
746 | open func hasMarkedText() -> Bool {
| |- warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
747 | // print ("hasMarkedText: This should return the actual range from the selection")
748 | // TODO
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:753:15: warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
751 |
752 | // NSTextInputClient protocol implementation
753 | open func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString? {
| |- warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
754 | print ("Attribuetd string")
755 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:759:15: warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
757 |
758 | // NSTextInputClient Protocol implementation
759 | open func validAttributesForMarkedText() -> [NSAttributedString.Key] {
| |- warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
760 | // TODO print ("validAttributesForMarkedText: This should return the actual range from the selection")
761 | return []
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:765:15: warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
763 |
764 | // NSTextInputClient protocol implementation
765 | open func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect {
| |- warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
766 | actualRange?.pointee = range
767 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:776:15: warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; this is an error in the Swift 6 language mode
774 |
775 | // NSTextInputClient protocol implementation
776 | open func characterIndex(for point: NSPoint) -> Int {
| |- warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated requirement from protocol 'NSTextInputClient'; 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
777 | print ("characterIndex:for point: This should return the actual range from the selection")
778 | return NSNotFound
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1143:15: warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
:
1141 | }
1142 |
1143 | open func showCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1144 | if caretView.superview == nil {
1145 | 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:1149:15: warning: main actor-isolated instance method 'hideCursor(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1147 | }
1148 |
1149 | open func hideCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'hideCursor(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1150 | caretView.removeFromSuperview()
1151 | }
/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:1176:17: warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1174 | }
1175 |
1176 | public func setTerminalTitle(source: Terminal, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1177 | terminalDelegate?.setTerminalTitle(source: self, title: title)
1178 | }
/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:1195:17: warning: main actor-isolated instance method 'setTerminalIconTitle(source:title:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1193 | }
1194 |
1195 | public func setTerminalIconTitle(source: Terminal, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalIconTitle(source:title:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1196 | //
1197 | }
/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:1200:17: warning: main actor-isolated instance method 'windowCommand(source:command:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1198 |
1199 | // Terminal.Delegate method implementation
1200 | public func windowCommand(source: Terminal, command: Terminal.WindowManipulationCommand) -> [UInt8]? {
| |- warning: main actor-isolated instance method 'windowCommand(source:command:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1201 | return nil
1202 | }
/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:1180:17: warning: main actor-isolated instance method 'sizeChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1178 | }
1179 |
1180 | public func sizeChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'sizeChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1181 | terminalDelegate?.sizeChanged(source: self, newCols: source.cols, newRows: source.rows)
1182 | 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:325:15: warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
323 | }
324 |
325 | open func send(source: Terminal, data: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
326 | terminalDelegate?.send (source: self, data: data)
327 | }
/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:342:15: warning: main actor-isolated instance method 'scrolled(source:yDisp:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
340 | }
341 |
342 | open func scrolled(source terminal: Terminal, yDisp: Int) {
| |- warning: main actor-isolated instance method 'scrolled(source:yDisp:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
343 | //selectionView.notifyScrolled(source: terminal)
344 | 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:348:15: warning: main actor-isolated instance method 'linefeed(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
346 | }
347 |
348 | open func linefeed(source: Terminal) {
| |- warning: main actor-isolated instance method 'linefeed(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
349 | selection.selectNone()
350 | }
/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:321:15: warning: main actor-isolated instance method 'bufferActivated(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
319 | }
320 |
321 | open func bufferActivated(source: Terminal) {
| |- warning: main actor-isolated instance method 'bufferActivated(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
322 | updateScroller ()
323 | }
/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:1158:15: warning: main actor-isolated instance method 'bell(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1156 | }
1157 |
1158 | open func bell(source: Terminal) {
| |- warning: main actor-isolated instance method 'bell(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1159 | terminalDelegate?.bell (source: self)
1160 | }
/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:810:15: warning: main actor-isolated instance method 'selectionChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
808 | }
809 |
810 | open func selectionChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'selectionChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
811 | needsDisplay = true
812 | }
/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:1162:17: warning: main actor-isolated instance method 'isProcessTrusted(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1160 | }
1161 |
1162 | public func isProcessTrusted(source: Terminal) -> Bool {
| |- warning: main actor-isolated instance method 'isProcessTrusted(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1163 | true
1164 | }
/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:1166:17: warning: main actor-isolated instance method 'mouseModeChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1164 | }
1165 |
1166 | public func mouseModeChanged(source: Terminal) {
| |- warning: main actor-isolated instance method 'mouseModeChanged(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1167 | if source.mouseMode == .anyEvent {
1168 | 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:1153:15: warning: main actor-isolated instance method 'cursorStyleChanged(source:newStyle:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1151 | }
1152 |
1153 | open func cursorStyleChanged (source: Terminal, newStyle: CursorStyle) {
| |- warning: main actor-isolated instance method 'cursorStyleChanged(source:newStyle:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1154 | caretView.style = newStyle
1155 | 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:204:17: warning: main actor-isolated instance method 'hostCurrentDirectoryUpdated(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
202 | }
203 |
204 | public func hostCurrentDirectoryUpdated (source: Terminal)
| |- warning: main actor-isolated instance method 'hostCurrentDirectoryUpdated(source:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
205 | {
206 | 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:223:17: warning: main actor-isolated instance method 'colorChanged(source:idx:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
221 | }
222 |
223 | public func colorChanged (source: Terminal, idx: Int?)
| |- warning: main actor-isolated instance method 'colorChanged(source:idx:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
224 | {
225 | 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:239:17: warning: main actor-isolated instance method 'setForegroundColor(source:color:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
237 | }
238 |
239 | public func setForegroundColor(source: Terminal, color: Color) {
| |- warning: main actor-isolated instance method 'setForegroundColor(source:color:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
240 | nativeForegroundColor = TTColor.make (color: color)
241 | 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:233:17: warning: main actor-isolated instance method 'setBackgroundColor(source:color:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
231 | }
232 |
233 | public func setBackgroundColor(source: Terminal, color: Color) {
| |- warning: main actor-isolated instance method 'setBackgroundColor(source:color:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
234 | // Can not implement this until I change the color to not be this struct
235 | 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:1204:17: warning: main actor-isolated instance method 'iTermContent(source:content:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1202 | }
1203 |
1204 | public func iTermContent (source: Terminal, content: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'iTermContent(source:content:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; 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
1205 | terminalDelegate?.iTermContent(source: self, content: content)
1206 | }
/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:1167:17: warning: main actor-isolated instance method 'createImageFromBitmap(source:bytes:width:height:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1165 | }
1166 |
1167 | 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 requirement from protocol 'TerminalDelegate'; 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
1168 | let rgbColorSpace = CGColorSpaceCreateDeviceRGB()
1169 | 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:1186:17: warning: main actor-isolated instance method 'createImage(source:data:width:height:preserveAspectRatio:)' cannot be used to satisfy nonisolated requirement from protocol 'TerminalDelegate'; this is an error in the Swift 6 language mode
1184 | }
1185 |
1186 | 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 requirement from protocol 'TerminalDelegate'; 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
1187 | {
1188 | 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:192: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
190 | func setupFocusNotification() {
191 | becomeMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { [unowned self] notification in
192 | 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
193 | }
194 | 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
| `- note: main actor isolation inferred from inheritance from class 'NSView'
55 | switch style {
56 | case .blinkUnderline, .blinkBlock, .blinkBar:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:192: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 | var terminal: Terminal!
97 |
:
190 | func setupFocusNotification() {
191 | becomeMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { [unowned self] notification in
192 | 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
193 | }
194 | 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:195: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
193 | }
194 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | 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
196 | self.caretView.updateView()
197 | }
/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
| `- note: main actor isolation inferred from inheritance from class 'NSView'
80 | layer?.removeAllAnimations()
81 | layer?.opacity = 1
/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 | var terminal: Terminal!
97 |
:
193 | }
194 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | 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
196 | self.caretView.updateView()
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:196: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
194 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | self.caretView.disableAnimations()
196 | 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
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacCaretView.swift:105:10: note: calls to instance method 'updateView()' from outside of its actor context are implicitly asynchronous
103 | }
104 |
105 | func updateView() {
| |- note: calls to instance method 'updateView()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
106 | setNeedsDisplay(bounds)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:196: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 | var terminal: Terminal!
97 |
:
194 | resignMainObserver = NotificationCenter.default.addObserver(forName: .init("NSWindowDidResignMainNotification"), object: nil, queue: nil) { [unowned self] notification in
195 | self.caretView.disableAnimations()
196 | 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
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:182: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
180 |
181 | deinit {
182 | 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
183 | NotificationCenter.default.removeObserver (becomeMainObserver)
184 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/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:185: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
183 | NotificationCenter.default.removeObserver (becomeMainObserver)
184 | }
185 | 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
186 | NotificationCenter.default.removeObserver (resignMainObserver)
187 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
[41/47] Compiling SwiftTerm SixelDcsHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:4967:16: warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4965 | }
4966 |
4967 | static var matchColorCache : [Int:Int] = [:]
| |- warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'matchColorCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'matchColorCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4968 | func matchColor (_ r1: Int, _ g1: Int, _ b1: Int) -> Int32
4969 | {
/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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | rows: 25,
65 | convertEol: false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Utilities.swift:39:16: warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
37 | static let s7: UInt8 = 0x44 // accept 4, size 4
38 |
39 | static var first : [UInt8] = [
| |- warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'first' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'first' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | // 1 2 3 4 5 6 7 8 9 A B C D E F
41 | a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, // 0x00-0x0F
[42/47] Compiling SwiftTerm Terminal.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:4967:16: warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4965 | }
4966 |
4967 | static var matchColorCache : [Int:Int] = [:]
| |- warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'matchColorCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'matchColorCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4968 | func matchColor (_ r1: Int, _ g1: Int, _ b1: Int) -> Int32
4969 | {
/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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | rows: 25,
65 | convertEol: false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Utilities.swift:39:16: warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
37 | static let s7: UInt8 = 0x44 // accept 4, size 4
38 |
39 | static var first : [UInt8] = [
| |- warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'first' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'first' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | // 1 2 3 4 5 6 7 8 9 A B C D E F
41 | a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, // 0x00-0x0F
[43/47] Compiling SwiftTerm TerminalOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:4967:16: warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4965 | }
4966 |
4967 | static var matchColorCache : [Int:Int] = [:]
| |- warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'matchColorCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'matchColorCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4968 | func matchColor (_ r1: Int, _ g1: Int, _ b1: Int) -> Int32
4969 | {
/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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | rows: 25,
65 | convertEol: false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Utilities.swift:39:16: warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
37 | static let s7: UInt8 = 0x44 // accept 4, size 4
38 |
39 | static var first : [UInt8] = [
| |- warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'first' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'first' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | // 1 2 3 4 5 6 7 8 9 A B C D E F
41 | a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, // 0x00-0x0F
[44/47] Compiling SwiftTerm Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:4967:16: warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4965 | }
4966 |
4967 | static var matchColorCache : [Int:Int] = [:]
| |- warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'matchColorCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'matchColorCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4968 | func matchColor (_ r1: Int, _ g1: Int, _ b1: Int) -> Int32
4969 | {
/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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | rows: 25,
65 | convertEol: false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Utilities.swift:39:16: warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
37 | static let s7: UInt8 = 0x44 // accept 4, size 4
38 |
39 | static var first : [UInt8] = [
| |- warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'first' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'first' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | // 1 2 3 4 5 6 7 8 9 A B C D E F
41 | a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, // 0x00-0x0F
[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!
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-2F0A5646E1D333AE.txt
[2/41] Compiling SwiftTerm EscapeSequences.swift
[3/41] Compiling SwiftTerm ExternsionsTerminal.swift
[4/41] Compiling SwiftTerm File.swift
[5/41] Compiling SwiftTerm HeadlessTerminal.swift
[6/41] Compiling SwiftTerm iOSAccessoryView.swift
[7/41] Compiling SwiftTerm iOSCaretView.swift
[8/41] Compiling SwiftTerm iOSDoubleButton.swift
[9/41] Compiling SwiftTerm iOSExtensions.swift
[10/44] Emitting module SwiftTerm
[11/44] Compiling SwiftTerm Line.swift
[12/44] Compiling SwiftTerm LocalProcess.swift
[13/44] Compiling SwiftTerm MacAccessibilityService.swift
[14/44] Compiling SwiftTerm MacCaretView.swift
[15/44] Compiling SwiftTerm iOSKeyboardView.swift
[16/44] Compiling SwiftTerm iOSTerminalView.swift
[17/44] Compiling SwiftTerm iOSTextInput.swift
[18/44] Compiling SwiftTerm Buffer.swift
[19/44] Compiling SwiftTerm BufferLine.swift
[20/44] Compiling SwiftTerm BufferSet.swift
[21/44] Compiling SwiftTerm CharData.swift
[22/44] Compiling SwiftTerm Position.swift
[23/44] Compiling SwiftTerm Pty.swift
[24/44] Compiling SwiftTerm SearchService.swift
[25/44] Compiling SwiftTerm SelectionService.swift
[26/44] Compiling SwiftTerm AppleTerminalView.swift
[27/44] Compiling SwiftTerm CaretView.swift
[28/44] Compiling SwiftTerm Extensions.swift
[29/44] Compiling SwiftTerm TerminalViewDelegate.swift
[30/44] Compiling SwiftTerm CharSets.swift
[31/44] Compiling SwiftTerm CircularList.swift
[32/44] Compiling SwiftTerm Colors.swift
[33/44] Compiling SwiftTerm EscapeSequenceParser.swift
[34/44] Compiling SwiftTerm MacDebugView.swift
[35/44] Compiling SwiftTerm MacExtensions.swift
[36/44] Compiling SwiftTerm MacLocalTerminalView.swift
[37/44] Compiling SwiftTerm MacTerminalView.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! (5.47s)
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"
}
],
"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.1"
}
Done.