Build Information
Failed to build SwiftTerm, reference 1.2.5 (e2b431
), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 20:37:05 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
150 | //
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:86:10: note: mark the protocol requirement 'rangeChanged(source:startY:endY:)' 'async' to allow actor-isolated conformances
84 | * the `notifyUpdateChanges` variable is set to true.
85 | */
86 | func rangeChanged (source: TerminalView, startY: Int, endY: Int)
| `- note: mark the protocol requirement 'rangeChanged(source:startY:endY:)' 'async' to allow actor-isolated conformances
87 |
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:168:15: warning: main actor-isolated instance method 'processTerminated(_:exitCode:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
65 | * subclass this and override the methods
66 | */
67 | open class LocalProcessTerminalView: TerminalView, TerminalViewDelegate, LocalProcessDelegate {
| `- note: add '@preconcurrency' to the 'LocalProcessDelegate' conformance to defer isolation checking to run time
68 |
69 | var process: LocalProcess!
:
166 | * Implements the LocalProcessDelegate method.
167 | */
168 | open func processTerminated(_ source: LocalProcess, exitCode: Int32?) {
| |- warning: main actor-isolated instance method 'processTerminated(_:exitCode:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'processTerminated(_:exitCode:)' to make this instance method not isolated to the actor
169 | processDelegate?.processTerminated(source: self, exitCode: exitCode)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:18:10: note: mark the protocol requirement 'processTerminated(_:exitCode:)' 'async' to allow actor-isolated conformances
16 | /// - Parameter source: the local process that terminated
17 | /// - Parameter exitCode: the exit code returned by the process, or nil if this was an error caused during the IO reading/writing
18 | func processTerminated (_ source: LocalProcess, exitCode: Int32?)
| `- note: mark the protocol requirement 'processTerminated(_:exitCode:)' 'async' to allow actor-isolated conformances
19 |
20 | /// This method is invoked when data has been received from the local process that should be send to the terminal for processing.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:175:15: warning: main actor-isolated instance method 'dataReceived(slice:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
173 | * Implements the LocalProcessDelegate.dataReceived method
174 | */
175 | open func dataReceived(slice: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'dataReceived(slice:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'dataReceived(slice:)' to make this instance method not isolated to the actor
176 | feed (byteArray: slice)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:21:10: note: mark the protocol requirement 'dataReceived(slice:)' 'async' to allow actor-isolated conformances
19 |
20 | /// This method is invoked when data has been received from the local process that should be send to the terminal for processing.
21 | func dataReceived (slice: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'dataReceived(slice:)' 'async' to allow actor-isolated conformances
22 |
23 | /// This method should return the window size to report to the local process.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:182:15: warning: main actor-isolated instance method 'getWindowSize()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
180 | * Implements the LocalProcessDelegate.getWindowSize method
181 | */
182 | open func getWindowSize () -> winsize
| |- warning: main actor-isolated instance method 'getWindowSize()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'getWindowSize()' to make this instance method not isolated to the actor
183 | {
184 | let f: CGRect = self.frame
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:24:10: note: mark the protocol requirement 'getWindowSize()' 'async' to allow actor-isolated conformances
22 |
23 | /// This method should return the window size to report to the local process.
24 | func getWindowSize () -> winsize
| `- note: mark the protocol requirement 'getWindowSize()' 'async' to allow actor-isolated conformances
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:700:15: warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
36 | * defaults, otherwise, this uses its own set of defaults colors.
37 | */
38 | open class TerminalView: NSView, NSTextInputClient, NSUserInterfaceValidations, TerminalDelegate {
| `- note: add '@preconcurrency' to the 'NSTextInputClient' conformance to defer isolation checking to run time
39 | struct FontSet {
40 | public let normal: NSFont
:
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'insertText(_:replacementRange:)' to make this instance method not isolated to the actor
701 | if let str = string as? NSString {
702 | send (txt: str as String)
AppKit.NSTextInputClient:2:10: note: 'insertText(_:replacementRange:)' declared here
1 | public protocol NSTextInputClient {
2 | func insertText(_ string: Any, replacementRange: NSRange)
| `- note: 'insertText(_:replacementRange:)' declared here
3 | @available(macOS 10.0, *)
4 | func doCommand(by selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:643:26: warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
641 | }
642 |
643 | public override func doCommand(by selector: Selector) {
| |- warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'doCommand(by:)' to make this instance method not isolated to the actor
644 | switch selector {
645 | case #selector(insertNewline(_:)):
AppKit.NSTextInputClient:4:10: note: 'doCommand(by:)' declared here
2 | func insertText(_ string: Any, replacementRange: NSRange)
3 | @available(macOS 10.0, *)
4 | func doCommand(by selector: Selector)
| `- note: 'doCommand(by:)' declared here
5 | @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
6 | func doCommandBySelector(_ selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:709:15: warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setMarkedText(_:selectedRange:replacementRange:)' to make this instance method not isolated to the actor
710 | // nothing
711 | }
AppKit.NSTextInputClient:7:10: note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
5 | @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
6 | func doCommandBySelector(_ selector: Selector)
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
| `- note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
8 | func unmarkText()
9 | func selectedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:714:15: warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
712 |
713 | // NSTextInputClient protocol implementation
714 | open func unmarkText() {
| |- warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'unmarkText()' to make this instance method not isolated to the actor
715 | // nothing
716 | }
AppKit.NSTextInputClient:8:10: note: 'unmarkText()' declared here
6 | func doCommandBySelector(_ selector: Selector)
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
8 | func unmarkText()
| `- note: 'unmarkText()' declared here
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:719:15: warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
717 |
718 | // NSTextInputClient protocol implementation
719 | open func selectedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectedRange()' to make this instance method not isolated to the actor
720 | guard let selection = self.selection, selection.active else {
721 | // This means "no selection":
AppKit.NSTextInputClient:9:10: note: 'selectedRange()' declared here
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
8 | func unmarkText()
9 | func selectedRange() -> NSRange
| `- note: 'selectedRange()' declared here
10 | func markedRange() -> NSRange
11 | func hasMarkedText() -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:738:15: warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
736 |
737 | // NSTextInputClient protocol implementation
738 | open func markedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'markedRange()' to make this instance method not isolated to the actor
739 | print ("markedRange: This should return the actual range from the selection")
740 |
AppKit.NSTextInputClient:10:10: note: 'markedRange()' declared here
8 | func unmarkText()
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
| `- note: 'markedRange()' declared here
11 | func hasMarkedText() -> Bool
12 | @available(macOS 10.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:746:15: warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
744 |
745 | // NSTextInputClient protocol implementation
746 | open func hasMarkedText() -> Bool {
| |- warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hasMarkedText()' to make this instance method not isolated to the actor
747 | // print ("hasMarkedText: This should return the actual range from the selection")
748 | // TODO
AppKit.NSTextInputClient:11:10: note: 'hasMarkedText()' declared here
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
11 | func hasMarkedText() -> Bool
| `- note: 'hasMarkedText()' declared here
12 | @available(macOS 10.0, *)
13 | func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:753:15: warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'attributedSubstring(forProposedRange:actualRange:)' to make this instance method not isolated to the actor
754 | print ("Attribuetd string")
755 | return nil
AppKit.NSTextInputClient:13:10: note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
11 | func hasMarkedText() -> Bool
12 | @available(macOS 10.0, *)
13 | func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
| `- note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
14 | @available(swift, obsoleted: 3, renamed: "attributedSubstring(forProposedRange:actualRange:)")
15 | func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:759:15: warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
757 |
758 | // NSTextInputClient Protocol implementation
759 | open func validAttributesForMarkedText() -> [NSAttributedString.Key] {
| |- warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'validAttributesForMarkedText()' to make this instance method not isolated to the actor
760 | // TODO print ("validAttributesForMarkedText: This should return the actual range from the selection")
761 | return []
AppKit.NSTextInputClient:17:10: note: 'validAttributesForMarkedText()' declared here
15 | func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
16 | @available(macOS 10.0, *)
17 | func validAttributesForMarkedText() -> [NSAttributedString.Key]
| `- note: 'validAttributesForMarkedText()' declared here
18 | func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:765:15: warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'firstRect(forCharacterRange:actualRange:)' to make this instance method not isolated to the actor
766 | actualRange?.pointee = range
767 |
AppKit.NSTextInputClient:18:10: note: 'firstRect(forCharacterRange:actualRange:)' declared here
16 | @available(macOS 10.0, *)
17 | func validAttributesForMarkedText() -> [NSAttributedString.Key]
18 | func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
| `- note: 'firstRect(forCharacterRange:actualRange:)' declared here
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 | func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:776:15: warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'characterIndex(for:)' to make this instance method not isolated to the actor
777 | print ("characterIndex:for point: This should return the actual range from the selection")
778 | return NSNotFound
AppKit.NSTextInputClient:21:10: note: 'characterIndex(for:)' declared here
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 | func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
21 | func characterIndex(for point: NSPoint) -> Int
| `- note: 'characterIndex(for:)' declared here
22 | @available(swift, obsoleted: 3, renamed: "characterIndex(for:)")
23 | func characterIndexForPoint(_ point: NSPoint) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1143:15: warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
36 | * defaults, otherwise, this uses its own set of defaults colors.
37 | */
38 | open class TerminalView: NSView, NSTextInputClient, NSUserInterfaceValidations, TerminalDelegate {
| `- note: add '@preconcurrency' to the 'TerminalDelegate' conformance to defer isolation checking to run time
39 | struct FontSet {
40 | public let normal: NSFont
:
1141 | }
1142 |
1143 | open func showCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'showCursor(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hideCursor(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalTitle(source:title:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalIconTitle(source:title:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'windowCommand(source:command:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sizeChanged(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'send(source:data:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'scrolled(source:yDisp:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'linefeed(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'bufferActivated(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'bell(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectionChanged(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'isProcessTrusted(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'mouseModeChanged(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'cursorStyleChanged(source:newStyle:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hostCurrentDirectoryUpdated(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'colorChanged(source:idx:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setForegroundColor(source:color:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setBackgroundColor(source:color:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'iTermContent(source:content:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'createImageFromBitmap(source:bytes:width:height:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'createImage(source:data:width:height:preserveAspectRatio:)' to make this instance method not isolated to the actor
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
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
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
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 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
11 |
12 | #if os(macOS)
13 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
14 | import AppKit
15 | import CoreText
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift: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 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
[39/47] Compiling SwiftTerm MacLocalTerminalView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:97:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
95 | /// The empty attribute is configured to be use the defaultColor for the foreground, and the
96 | /// defaultInvertedColor for the background and an emptu style
97 | public static let empty = Attribute (fg: .defaultColor, bg: .defaultInvertedColor, style: .none)
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | /// Foreground and background colors
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:23:16: warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public var blue: UInt16
22 |
23 | static var defaultForeground = Color (red: 35389, green: 35389, blue: 35389)
| |- warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultForeground' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultForeground' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static var defaultBackground = Color (red: 0, green: 0, blue: 0)
25 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:97:17: warning: main actor-isolated instance method 'sizeChanged(source:newCols:newRows:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
65 | * subclass this and override the methods
66 | */
67 | open class LocalProcessTerminalView: TerminalView, TerminalViewDelegate, LocalProcessDelegate {
| `- note: add '@preconcurrency' to the 'TerminalViewDelegate' conformance to defer isolation checking to run time
68 |
69 | var process: LocalProcess!
:
95 | * This method is invoked to notify the client of the new columsn and rows that have been set by the UI
96 | */
97 | public func sizeChanged(source: TerminalView, newCols: Int, newRows: Int) {
| |- warning: main actor-isolated instance method 'sizeChanged(source:newCols:newRows:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sizeChanged(source:newCols:newRows:)' to make this instance method not isolated to the actor
98 | guard process.running else {
99 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:21:10: note: mark the protocol requirement 'sizeChanged(source:newCols:newRows:)' 'async' to allow actor-isolated conformances
19 | * it is a rare feature and you most likely can ignore this request.
20 | */
21 | func sizeChanged (source: TerminalView, newCols: Int, newRows: Int)
| `- note: mark the protocol requirement 'sizeChanged(source:newCols:newRows:)' 'async' to allow actor-isolated conformances
22 |
23 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:118:17: warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
116 | * Invoke this method to notify the processDelegate of the new title for the terminal window
117 | */
118 | public func setTerminalTitle(source: TerminalView, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalTitle(source:title:)' to make this instance method not isolated to the actor
119 | processDelegate?.setTerminalTitle (source: self, title: title)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:26:10: note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
24 | * Request to change the title of the terminal.
25 | */
26 | func setTerminalTitle(source: TerminalView, title: String)
| `- note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
27 |
28 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:122:17: warning: main actor-isolated instance method 'hostCurrentDirectoryUpdate(source:directory:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
120 | }
121 |
122 | public func hostCurrentDirectoryUpdate(source: TerminalView, directory: String?) {
| |- warning: main actor-isolated instance method 'hostCurrentDirectoryUpdate(source:directory:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hostCurrentDirectoryUpdate(source:directory:)' to make this instance method not isolated to the actor
123 | processDelegate?.hostCurrentDirectoryUpdate(source: source, directory: directory)
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:31:10: note: mark the protocol requirement 'hostCurrentDirectoryUpdate(source:directory:)' 'async' to allow actor-isolated conformances
29 | * Invoked when the OSC command 7 for "current directory has changed" command is sent
30 | */
31 | func hostCurrentDirectoryUpdate (source: TerminalView, directory: String?)
| `- note: mark the protocol requirement 'hostCurrentDirectoryUpdate(source:directory:)' 'async' to allow actor-isolated conformances
32 |
33 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:131:15: warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
129 | * Implementation of the TerminalViewDelegate method
130 | */
131 | open func send(source: TerminalView, data: ArraySlice<UInt8>)
| |- warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'send(source:data:)' to make this instance method not isolated to the actor
132 | {
133 | process.send (data: data)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:37:10: note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
35 | * - Parameter data: Slice of data that should be sent
36 | */
37 | func send (source: TerminalView, data: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
38 |
39 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:145:15: warning: main actor-isolated instance method 'scrolled(source:position:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
143 |
144 | /// Implementation of the TerminalViewDelegate method
145 | open func scrolled(source: TerminalView, position: Double) {
| |- warning: main actor-isolated instance method 'scrolled(source:position:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'scrolled(source:position:)' to make this instance method not isolated to the actor
146 | // noting
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:43:10: note: mark the protocol requirement 'scrolled(source:position:)' 'async' to allow actor-isolated conformances
41 | * - Parameter position: the relative position that the code was scrolled to, a value between 0 and 1
42 | */
43 | func scrolled (source: TerminalView, position: Double)
| `- note: mark the protocol requirement 'scrolled(source:position:)' 'async' to allow actor-isolated conformances
44 |
45 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:107:17: warning: main actor-isolated instance method 'clipboardCopy(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
105 | }
106 |
107 | public func clipboardCopy(source: TerminalView, content: Data) {
| |- warning: main actor-isolated instance method 'clipboardCopy(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'clipboardCopy(source:content:)' to make this instance method not isolated to the actor
108 | if let str = String (bytes: content, encoding: .utf8) {
109 | let pasteBoard = NSPasteboard.general
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:72:10: note: mark the protocol requirement 'clipboardCopy(source:content:)' 'async' to allow actor-isolated conformances
70 | * The default implementation does nothing.
71 | */
72 | func clipboardCopy(source: TerminalView, content: Data)
| `- note: mark the protocol requirement 'clipboardCopy(source:content:)' 'async' to allow actor-isolated conformances
73 |
74 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:149:15: warning: main actor-isolated instance method 'rangeChanged(source:startY:endY:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
147 | }
148 |
149 | open func rangeChanged(source: TerminalView, startY: Int, endY: Int) {
| |- warning: main actor-isolated instance method 'rangeChanged(source:startY:endY:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'rangeChanged(source:startY:endY:)' to make this instance method not isolated to the actor
150 | //
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:86:10: note: mark the protocol requirement 'rangeChanged(source:startY:endY:)' 'async' to allow actor-isolated conformances
84 | * the `notifyUpdateChanges` variable is set to true.
85 | */
86 | func rangeChanged (source: TerminalView, startY: Int, endY: Int)
| `- note: mark the protocol requirement 'rangeChanged(source:startY:endY:)' 'async' to allow actor-isolated conformances
87 |
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:168:15: warning: main actor-isolated instance method 'processTerminated(_:exitCode:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
65 | * subclass this and override the methods
66 | */
67 | open class LocalProcessTerminalView: TerminalView, TerminalViewDelegate, LocalProcessDelegate {
| `- note: add '@preconcurrency' to the 'LocalProcessDelegate' conformance to defer isolation checking to run time
68 |
69 | var process: LocalProcess!
:
166 | * Implements the LocalProcessDelegate method.
167 | */
168 | open func processTerminated(_ source: LocalProcess, exitCode: Int32?) {
| |- warning: main actor-isolated instance method 'processTerminated(_:exitCode:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'processTerminated(_:exitCode:)' to make this instance method not isolated to the actor
169 | processDelegate?.processTerminated(source: self, exitCode: exitCode)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:18:10: note: mark the protocol requirement 'processTerminated(_:exitCode:)' 'async' to allow actor-isolated conformances
16 | /// - Parameter source: the local process that terminated
17 | /// - Parameter exitCode: the exit code returned by the process, or nil if this was an error caused during the IO reading/writing
18 | func processTerminated (_ source: LocalProcess, exitCode: Int32?)
| `- note: mark the protocol requirement 'processTerminated(_:exitCode:)' 'async' to allow actor-isolated conformances
19 |
20 | /// This method is invoked when data has been received from the local process that should be send to the terminal for processing.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:175:15: warning: main actor-isolated instance method 'dataReceived(slice:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
173 | * Implements the LocalProcessDelegate.dataReceived method
174 | */
175 | open func dataReceived(slice: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'dataReceived(slice:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'dataReceived(slice:)' to make this instance method not isolated to the actor
176 | feed (byteArray: slice)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:21:10: note: mark the protocol requirement 'dataReceived(slice:)' 'async' to allow actor-isolated conformances
19 |
20 | /// This method is invoked when data has been received from the local process that should be send to the terminal for processing.
21 | func dataReceived (slice: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'dataReceived(slice:)' 'async' to allow actor-isolated conformances
22 |
23 | /// This method should return the window size to report to the local process.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:182:15: warning: main actor-isolated instance method 'getWindowSize()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
180 | * Implements the LocalProcessDelegate.getWindowSize method
181 | */
182 | open func getWindowSize () -> winsize
| |- warning: main actor-isolated instance method 'getWindowSize()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'getWindowSize()' to make this instance method not isolated to the actor
183 | {
184 | let f: CGRect = self.frame
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:24:10: note: mark the protocol requirement 'getWindowSize()' 'async' to allow actor-isolated conformances
22 |
23 | /// This method should return the window size to report to the local process.
24 | func getWindowSize () -> winsize
| `- note: mark the protocol requirement 'getWindowSize()' 'async' to allow actor-isolated conformances
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:700:15: warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
36 | * defaults, otherwise, this uses its own set of defaults colors.
37 | */
38 | open class TerminalView: NSView, NSTextInputClient, NSUserInterfaceValidations, TerminalDelegate {
| `- note: add '@preconcurrency' to the 'NSTextInputClient' conformance to defer isolation checking to run time
39 | struct FontSet {
40 | public let normal: NSFont
:
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'insertText(_:replacementRange:)' to make this instance method not isolated to the actor
701 | if let str = string as? NSString {
702 | send (txt: str as String)
AppKit.NSTextInputClient:2:10: note: 'insertText(_:replacementRange:)' declared here
1 | public protocol NSTextInputClient {
2 | func insertText(_ string: Any, replacementRange: NSRange)
| `- note: 'insertText(_:replacementRange:)' declared here
3 | @available(macOS 10.0, *)
4 | func doCommand(by selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:643:26: warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
641 | }
642 |
643 | public override func doCommand(by selector: Selector) {
| |- warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'doCommand(by:)' to make this instance method not isolated to the actor
644 | switch selector {
645 | case #selector(insertNewline(_:)):
AppKit.NSTextInputClient:4:10: note: 'doCommand(by:)' declared here
2 | func insertText(_ string: Any, replacementRange: NSRange)
3 | @available(macOS 10.0, *)
4 | func doCommand(by selector: Selector)
| `- note: 'doCommand(by:)' declared here
5 | @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
6 | func doCommandBySelector(_ selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:709:15: warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setMarkedText(_:selectedRange:replacementRange:)' to make this instance method not isolated to the actor
710 | // nothing
711 | }
AppKit.NSTextInputClient:7:10: note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
5 | @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
6 | func doCommandBySelector(_ selector: Selector)
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
| `- note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
8 | func unmarkText()
9 | func selectedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:714:15: warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
712 |
713 | // NSTextInputClient protocol implementation
714 | open func unmarkText() {
| |- warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'unmarkText()' to make this instance method not isolated to the actor
715 | // nothing
716 | }
AppKit.NSTextInputClient:8:10: note: 'unmarkText()' declared here
6 | func doCommandBySelector(_ selector: Selector)
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
8 | func unmarkText()
| `- note: 'unmarkText()' declared here
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:719:15: warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
717 |
718 | // NSTextInputClient protocol implementation
719 | open func selectedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectedRange()' to make this instance method not isolated to the actor
720 | guard let selection = self.selection, selection.active else {
721 | // This means "no selection":
AppKit.NSTextInputClient:9:10: note: 'selectedRange()' declared here
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
8 | func unmarkText()
9 | func selectedRange() -> NSRange
| `- note: 'selectedRange()' declared here
10 | func markedRange() -> NSRange
11 | func hasMarkedText() -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:738:15: warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
736 |
737 | // NSTextInputClient protocol implementation
738 | open func markedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'markedRange()' to make this instance method not isolated to the actor
739 | print ("markedRange: This should return the actual range from the selection")
740 |
AppKit.NSTextInputClient:10:10: note: 'markedRange()' declared here
8 | func unmarkText()
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
| `- note: 'markedRange()' declared here
11 | func hasMarkedText() -> Bool
12 | @available(macOS 10.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:746:15: warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
744 |
745 | // NSTextInputClient protocol implementation
746 | open func hasMarkedText() -> Bool {
| |- warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hasMarkedText()' to make this instance method not isolated to the actor
747 | // print ("hasMarkedText: This should return the actual range from the selection")
748 | // TODO
AppKit.NSTextInputClient:11:10: note: 'hasMarkedText()' declared here
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
11 | func hasMarkedText() -> Bool
| `- note: 'hasMarkedText()' declared here
12 | @available(macOS 10.0, *)
13 | func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:753:15: warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'attributedSubstring(forProposedRange:actualRange:)' to make this instance method not isolated to the actor
754 | print ("Attribuetd string")
755 | return nil
AppKit.NSTextInputClient:13:10: note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
11 | func hasMarkedText() -> Bool
12 | @available(macOS 10.0, *)
13 | func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
| `- note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
14 | @available(swift, obsoleted: 3, renamed: "attributedSubstring(forProposedRange:actualRange:)")
15 | func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:759:15: warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
757 |
758 | // NSTextInputClient Protocol implementation
759 | open func validAttributesForMarkedText() -> [NSAttributedString.Key] {
| |- warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'validAttributesForMarkedText()' to make this instance method not isolated to the actor
760 | // TODO print ("validAttributesForMarkedText: This should return the actual range from the selection")
761 | return []
AppKit.NSTextInputClient:17:10: note: 'validAttributesForMarkedText()' declared here
15 | func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
16 | @available(macOS 10.0, *)
17 | func validAttributesForMarkedText() -> [NSAttributedString.Key]
| `- note: 'validAttributesForMarkedText()' declared here
18 | func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:765:15: warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'firstRect(forCharacterRange:actualRange:)' to make this instance method not isolated to the actor
766 | actualRange?.pointee = range
767 |
AppKit.NSTextInputClient:18:10: note: 'firstRect(forCharacterRange:actualRange:)' declared here
16 | @available(macOS 10.0, *)
17 | func validAttributesForMarkedText() -> [NSAttributedString.Key]
18 | func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
| `- note: 'firstRect(forCharacterRange:actualRange:)' declared here
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 | func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:776:15: warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'characterIndex(for:)' to make this instance method not isolated to the actor
777 | print ("characterIndex:for point: This should return the actual range from the selection")
778 | return NSNotFound
AppKit.NSTextInputClient:21:10: note: 'characterIndex(for:)' declared here
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 | func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
21 | func characterIndex(for point: NSPoint) -> Int
| `- note: 'characterIndex(for:)' declared here
22 | @available(swift, obsoleted: 3, renamed: "characterIndex(for:)")
23 | func characterIndexForPoint(_ point: NSPoint) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1143:15: warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
36 | * defaults, otherwise, this uses its own set of defaults colors.
37 | */
38 | open class TerminalView: NSView, NSTextInputClient, NSUserInterfaceValidations, TerminalDelegate {
| `- note: add '@preconcurrency' to the 'TerminalDelegate' conformance to defer isolation checking to run time
39 | struct FontSet {
40 | public let normal: NSFont
:
1141 | }
1142 |
1143 | open func showCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'showCursor(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hideCursor(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalTitle(source:title:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalIconTitle(source:title:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'windowCommand(source:command:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sizeChanged(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'send(source:data:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'scrolled(source:yDisp:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'linefeed(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'bufferActivated(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'bell(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectionChanged(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'isProcessTrusted(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'mouseModeChanged(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'cursorStyleChanged(source:newStyle:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hostCurrentDirectoryUpdated(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'colorChanged(source:idx:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setForegroundColor(source:color:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setBackgroundColor(source:color:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'iTermContent(source:content:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'createImageFromBitmap(source:bytes:width:height:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'createImage(source:data:width:height:preserveAspectRatio:)' to make this instance method not isolated to the actor
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
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
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
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 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
11 |
12 | #if os(macOS)
13 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
14 | import AppKit
15 | import CoreText
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift: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 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
[40/47] Compiling SwiftTerm MacTerminalView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:97:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
95 | /// The empty attribute is configured to be use the defaultColor for the foreground, and the
96 | /// defaultInvertedColor for the background and an emptu style
97 | public static let empty = Attribute (fg: .defaultColor, bg: .defaultInvertedColor, style: .none)
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | /// Foreground and background colors
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:23:16: warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public var blue: UInt16
22 |
23 | static var defaultForeground = Color (red: 35389, green: 35389, blue: 35389)
| |- warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultForeground' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultForeground' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static var defaultBackground = Color (red: 0, green: 0, blue: 0)
25 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:97:17: warning: main actor-isolated instance method 'sizeChanged(source:newCols:newRows:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
65 | * subclass this and override the methods
66 | */
67 | open class LocalProcessTerminalView: TerminalView, TerminalViewDelegate, LocalProcessDelegate {
| `- note: add '@preconcurrency' to the 'TerminalViewDelegate' conformance to defer isolation checking to run time
68 |
69 | var process: LocalProcess!
:
95 | * This method is invoked to notify the client of the new columsn and rows that have been set by the UI
96 | */
97 | public func sizeChanged(source: TerminalView, newCols: Int, newRows: Int) {
| |- warning: main actor-isolated instance method 'sizeChanged(source:newCols:newRows:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sizeChanged(source:newCols:newRows:)' to make this instance method not isolated to the actor
98 | guard process.running else {
99 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:21:10: note: mark the protocol requirement 'sizeChanged(source:newCols:newRows:)' 'async' to allow actor-isolated conformances
19 | * it is a rare feature and you most likely can ignore this request.
20 | */
21 | func sizeChanged (source: TerminalView, newCols: Int, newRows: Int)
| `- note: mark the protocol requirement 'sizeChanged(source:newCols:newRows:)' 'async' to allow actor-isolated conformances
22 |
23 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:118:17: warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
116 | * Invoke this method to notify the processDelegate of the new title for the terminal window
117 | */
118 | public func setTerminalTitle(source: TerminalView, title: String) {
| |- warning: main actor-isolated instance method 'setTerminalTitle(source:title:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalTitle(source:title:)' to make this instance method not isolated to the actor
119 | processDelegate?.setTerminalTitle (source: self, title: title)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:26:10: note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
24 | * Request to change the title of the terminal.
25 | */
26 | func setTerminalTitle(source: TerminalView, title: String)
| `- note: mark the protocol requirement 'setTerminalTitle(source:title:)' 'async' to allow actor-isolated conformances
27 |
28 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:122:17: warning: main actor-isolated instance method 'hostCurrentDirectoryUpdate(source:directory:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
120 | }
121 |
122 | public func hostCurrentDirectoryUpdate(source: TerminalView, directory: String?) {
| |- warning: main actor-isolated instance method 'hostCurrentDirectoryUpdate(source:directory:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hostCurrentDirectoryUpdate(source:directory:)' to make this instance method not isolated to the actor
123 | processDelegate?.hostCurrentDirectoryUpdate(source: source, directory: directory)
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:31:10: note: mark the protocol requirement 'hostCurrentDirectoryUpdate(source:directory:)' 'async' to allow actor-isolated conformances
29 | * Invoked when the OSC command 7 for "current directory has changed" command is sent
30 | */
31 | func hostCurrentDirectoryUpdate (source: TerminalView, directory: String?)
| `- note: mark the protocol requirement 'hostCurrentDirectoryUpdate(source:directory:)' 'async' to allow actor-isolated conformances
32 |
33 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:131:15: warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
129 | * Implementation of the TerminalViewDelegate method
130 | */
131 | open func send(source: TerminalView, data: ArraySlice<UInt8>)
| |- warning: main actor-isolated instance method 'send(source:data:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'send(source:data:)' to make this instance method not isolated to the actor
132 | {
133 | process.send (data: data)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:37:10: note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
35 | * - Parameter data: Slice of data that should be sent
36 | */
37 | func send (source: TerminalView, data: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'send(source:data:)' 'async' to allow actor-isolated conformances
38 |
39 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:145:15: warning: main actor-isolated instance method 'scrolled(source:position:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
143 |
144 | /// Implementation of the TerminalViewDelegate method
145 | open func scrolled(source: TerminalView, position: Double) {
| |- warning: main actor-isolated instance method 'scrolled(source:position:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'scrolled(source:position:)' to make this instance method not isolated to the actor
146 | // noting
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:43:10: note: mark the protocol requirement 'scrolled(source:position:)' 'async' to allow actor-isolated conformances
41 | * - Parameter position: the relative position that the code was scrolled to, a value between 0 and 1
42 | */
43 | func scrolled (source: TerminalView, position: Double)
| `- note: mark the protocol requirement 'scrolled(source:position:)' 'async' to allow actor-isolated conformances
44 |
45 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:107:17: warning: main actor-isolated instance method 'clipboardCopy(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
105 | }
106 |
107 | public func clipboardCopy(source: TerminalView, content: Data) {
| |- warning: main actor-isolated instance method 'clipboardCopy(source:content:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'clipboardCopy(source:content:)' to make this instance method not isolated to the actor
108 | if let str = String (bytes: content, encoding: .utf8) {
109 | let pasteBoard = NSPasteboard.general
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:72:10: note: mark the protocol requirement 'clipboardCopy(source:content:)' 'async' to allow actor-isolated conformances
70 | * The default implementation does nothing.
71 | */
72 | func clipboardCopy(source: TerminalView, content: Data)
| `- note: mark the protocol requirement 'clipboardCopy(source:content:)' 'async' to allow actor-isolated conformances
73 |
74 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:149:15: warning: main actor-isolated instance method 'rangeChanged(source:startY:endY:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
147 | }
148 |
149 | open func rangeChanged(source: TerminalView, startY: Int, endY: Int) {
| |- warning: main actor-isolated instance method 'rangeChanged(source:startY:endY:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'rangeChanged(source:startY:endY:)' to make this instance method not isolated to the actor
150 | //
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Apple/TerminalViewDelegate.swift:86:10: note: mark the protocol requirement 'rangeChanged(source:startY:endY:)' 'async' to allow actor-isolated conformances
84 | * the `notifyUpdateChanges` variable is set to true.
85 | */
86 | func rangeChanged (source: TerminalView, startY: Int, endY: Int)
| `- note: mark the protocol requirement 'rangeChanged(source:startY:endY:)' 'async' to allow actor-isolated conformances
87 |
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:168:15: warning: main actor-isolated instance method 'processTerminated(_:exitCode:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
65 | * subclass this and override the methods
66 | */
67 | open class LocalProcessTerminalView: TerminalView, TerminalViewDelegate, LocalProcessDelegate {
| `- note: add '@preconcurrency' to the 'LocalProcessDelegate' conformance to defer isolation checking to run time
68 |
69 | var process: LocalProcess!
:
166 | * Implements the LocalProcessDelegate method.
167 | */
168 | open func processTerminated(_ source: LocalProcess, exitCode: Int32?) {
| |- warning: main actor-isolated instance method 'processTerminated(_:exitCode:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'processTerminated(_:exitCode:)' to make this instance method not isolated to the actor
169 | processDelegate?.processTerminated(source: self, exitCode: exitCode)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:18:10: note: mark the protocol requirement 'processTerminated(_:exitCode:)' 'async' to allow actor-isolated conformances
16 | /// - Parameter source: the local process that terminated
17 | /// - Parameter exitCode: the exit code returned by the process, or nil if this was an error caused during the IO reading/writing
18 | func processTerminated (_ source: LocalProcess, exitCode: Int32?)
| `- note: mark the protocol requirement 'processTerminated(_:exitCode:)' 'async' to allow actor-isolated conformances
19 |
20 | /// This method is invoked when data has been received from the local process that should be send to the terminal for processing.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:175:15: warning: main actor-isolated instance method 'dataReceived(slice:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
173 | * Implements the LocalProcessDelegate.dataReceived method
174 | */
175 | open func dataReceived(slice: ArraySlice<UInt8>) {
| |- warning: main actor-isolated instance method 'dataReceived(slice:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'dataReceived(slice:)' to make this instance method not isolated to the actor
176 | feed (byteArray: slice)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:21:10: note: mark the protocol requirement 'dataReceived(slice:)' 'async' to allow actor-isolated conformances
19 |
20 | /// This method is invoked when data has been received from the local process that should be send to the terminal for processing.
21 | func dataReceived (slice: ArraySlice<UInt8>)
| `- note: mark the protocol requirement 'dataReceived(slice:)' 'async' to allow actor-isolated conformances
22 |
23 | /// This method should return the window size to report to the local process.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:182:15: warning: main actor-isolated instance method 'getWindowSize()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
180 | * Implements the LocalProcessDelegate.getWindowSize method
181 | */
182 | open func getWindowSize () -> winsize
| |- warning: main actor-isolated instance method 'getWindowSize()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'getWindowSize()' to make this instance method not isolated to the actor
183 | {
184 | let f: CGRect = self.frame
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:24:10: note: mark the protocol requirement 'getWindowSize()' 'async' to allow actor-isolated conformances
22 |
23 | /// This method should return the window size to report to the local process.
24 | func getWindowSize () -> winsize
| `- note: mark the protocol requirement 'getWindowSize()' 'async' to allow actor-isolated conformances
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:700:15: warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
36 | * defaults, otherwise, this uses its own set of defaults colors.
37 | */
38 | open class TerminalView: NSView, NSTextInputClient, NSUserInterfaceValidations, TerminalDelegate {
| `- note: add '@preconcurrency' to the 'NSTextInputClient' conformance to defer isolation checking to run time
39 | struct FontSet {
40 | public let normal: NSFont
:
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'insertText(_:replacementRange:)' to make this instance method not isolated to the actor
701 | if let str = string as? NSString {
702 | send (txt: str as String)
AppKit.NSTextInputClient:2:10: note: 'insertText(_:replacementRange:)' declared here
1 | public protocol NSTextInputClient {
2 | func insertText(_ string: Any, replacementRange: NSRange)
| `- note: 'insertText(_:replacementRange:)' declared here
3 | @available(macOS 10.0, *)
4 | func doCommand(by selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:643:26: warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
641 | }
642 |
643 | public override func doCommand(by selector: Selector) {
| |- warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'doCommand(by:)' to make this instance method not isolated to the actor
644 | switch selector {
645 | case #selector(insertNewline(_:)):
AppKit.NSTextInputClient:4:10: note: 'doCommand(by:)' declared here
2 | func insertText(_ string: Any, replacementRange: NSRange)
3 | @available(macOS 10.0, *)
4 | func doCommand(by selector: Selector)
| `- note: 'doCommand(by:)' declared here
5 | @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
6 | func doCommandBySelector(_ selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:709:15: warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setMarkedText(_:selectedRange:replacementRange:)' to make this instance method not isolated to the actor
710 | // nothing
711 | }
AppKit.NSTextInputClient:7:10: note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
5 | @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
6 | func doCommandBySelector(_ selector: Selector)
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
| `- note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
8 | func unmarkText()
9 | func selectedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:714:15: warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
712 |
713 | // NSTextInputClient protocol implementation
714 | open func unmarkText() {
| |- warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'unmarkText()' to make this instance method not isolated to the actor
715 | // nothing
716 | }
AppKit.NSTextInputClient:8:10: note: 'unmarkText()' declared here
6 | func doCommandBySelector(_ selector: Selector)
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
8 | func unmarkText()
| `- note: 'unmarkText()' declared here
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:719:15: warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
717 |
718 | // NSTextInputClient protocol implementation
719 | open func selectedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectedRange()' to make this instance method not isolated to the actor
720 | guard let selection = self.selection, selection.active else {
721 | // This means "no selection":
AppKit.NSTextInputClient:9:10: note: 'selectedRange()' declared here
7 | func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
8 | func unmarkText()
9 | func selectedRange() -> NSRange
| `- note: 'selectedRange()' declared here
10 | func markedRange() -> NSRange
11 | func hasMarkedText() -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:738:15: warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
736 |
737 | // NSTextInputClient protocol implementation
738 | open func markedRange() -> NSRange {
| |- warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'markedRange()' to make this instance method not isolated to the actor
739 | print ("markedRange: This should return the actual range from the selection")
740 |
AppKit.NSTextInputClient:10:10: note: 'markedRange()' declared here
8 | func unmarkText()
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
| `- note: 'markedRange()' declared here
11 | func hasMarkedText() -> Bool
12 | @available(macOS 10.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:746:15: warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
744 |
745 | // NSTextInputClient protocol implementation
746 | open func hasMarkedText() -> Bool {
| |- warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hasMarkedText()' to make this instance method not isolated to the actor
747 | // print ("hasMarkedText: This should return the actual range from the selection")
748 | // TODO
AppKit.NSTextInputClient:11:10: note: 'hasMarkedText()' declared here
9 | func selectedRange() -> NSRange
10 | func markedRange() -> NSRange
11 | func hasMarkedText() -> Bool
| `- note: 'hasMarkedText()' declared here
12 | @available(macOS 10.0, *)
13 | func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:753:15: warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'attributedSubstring(forProposedRange:actualRange:)' to make this instance method not isolated to the actor
754 | print ("Attribuetd string")
755 | return nil
AppKit.NSTextInputClient:13:10: note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
11 | func hasMarkedText() -> Bool
12 | @available(macOS 10.0, *)
13 | func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
| `- note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
14 | @available(swift, obsoleted: 3, renamed: "attributedSubstring(forProposedRange:actualRange:)")
15 | func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:759:15: warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
757 |
758 | // NSTextInputClient Protocol implementation
759 | open func validAttributesForMarkedText() -> [NSAttributedString.Key] {
| |- warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'validAttributesForMarkedText()' to make this instance method not isolated to the actor
760 | // TODO print ("validAttributesForMarkedText: This should return the actual range from the selection")
761 | return []
AppKit.NSTextInputClient:17:10: note: 'validAttributesForMarkedText()' declared here
15 | func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
16 | @available(macOS 10.0, *)
17 | func validAttributesForMarkedText() -> [NSAttributedString.Key]
| `- note: 'validAttributesForMarkedText()' declared here
18 | func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:765:15: warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'firstRect(forCharacterRange:actualRange:)' to make this instance method not isolated to the actor
766 | actualRange?.pointee = range
767 |
AppKit.NSTextInputClient:18:10: note: 'firstRect(forCharacterRange:actualRange:)' declared here
16 | @available(macOS 10.0, *)
17 | func validAttributesForMarkedText() -> [NSAttributedString.Key]
18 | func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
| `- note: 'firstRect(forCharacterRange:actualRange:)' declared here
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 | func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:776:15: warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'characterIndex(for:)' to make this instance method not isolated to the actor
777 | print ("characterIndex:for point: This should return the actual range from the selection")
778 | return NSNotFound
AppKit.NSTextInputClient:21:10: note: 'characterIndex(for:)' declared here
19 | @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 | func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
21 | func characterIndex(for point: NSPoint) -> Int
| `- note: 'characterIndex(for:)' declared here
22 | @available(swift, obsoleted: 3, renamed: "characterIndex(for:)")
23 | func characterIndexForPoint(_ point: NSPoint) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:1143:15: warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
36 | * defaults, otherwise, this uses its own set of defaults colors.
37 | */
38 | open class TerminalView: NSView, NSTextInputClient, NSUserInterfaceValidations, TerminalDelegate {
| `- note: add '@preconcurrency' to the 'TerminalDelegate' conformance to defer isolation checking to run time
39 | struct FontSet {
40 | public let normal: NSFont
:
1141 | }
1142 |
1143 | open func showCursor(source: Terminal) {
| |- warning: main actor-isolated instance method 'showCursor(source:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'showCursor(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hideCursor(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalTitle(source:title:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setTerminalIconTitle(source:title:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'windowCommand(source:command:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sizeChanged(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'send(source:data:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'scrolled(source:yDisp:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'linefeed(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'bufferActivated(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'bell(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectionChanged(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'isProcessTrusted(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'mouseModeChanged(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'cursorStyleChanged(source:newStyle:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'hostCurrentDirectoryUpdated(source:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'colorChanged(source:idx:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setForegroundColor(source:color:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setBackgroundColor(source:color:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'iTermContent(source:content:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'createImageFromBitmap(source:bytes:width:height:)' to make this instance method not isolated to the actor
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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'createImage(source:data:width:height:preserveAspectRatio:)' to make this instance method not isolated to the actor
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
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
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
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 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
11 |
12 | #if os(macOS)
13 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
14 | import AppKit
15 | import CoreText
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTerm/Mac/MacTerminalView.swift: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 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
[41/47] Compiling SwiftTerm iOSAccessoryView.swift
[42/47] Compiling SwiftTerm iOSCaretView.swift
[43/47] Compiling SwiftTerm iOSDoubleButton.swift
[44/47] Compiling SwiftTerm iOSExtensions.swift
[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!
BUILD FAILURE 6.0 macosSpm