Build Information
Failed to build slash, reference master (01e55c
), with Swift 6.0 for Linux on 26 Nov 2024 23:35:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
Build Log
115 | openingParenthesis: UInt8 = 40,
/host/spi-builder-workspace/Sources/Server.swift:114:5: warning: static property 'doubleQuotes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
| |- warning: static property 'doubleQuotes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'doubleQuotes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'doubleQuotes' 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
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
/host/spi-builder-workspace/Sources/Server.swift:115:5: warning: static property 'openingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
| |- warning: static property 'openingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'openingParenthesis' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'openingParenthesis' 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
116 | closingParenthesis: UInt8 = 41,
117 | comma: UInt8 = 44
/host/spi-builder-workspace/Sources/Server.swift:116:5: warning: static property 'closingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
| |- warning: static property 'closingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'closingParenthesis' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'closingParenthesis' 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
117 | comma: UInt8 = 44
118 | }
/host/spi-builder-workspace/Sources/Server.swift:117:5: warning: static property 'comma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
117 | comma: UInt8 = 44
| |- warning: static property 'comma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'comma' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'comma' 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
118 | }
119 |
/host/spi-builder-workspace/Sources/Server.swift:189:9: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead
187 | }
188 |
189 | var hashValue: Int { return Int(self.socket) }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead
190 |
191 | func process(_ chunk: ArraySlice<UInt8>) throws {
/host/spi-builder-workspace/Sources/Server.swift:601:51: error: cannot find 'kevent' in scope
599 | class KernelQueue {
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
| `- error: cannot find 'kevent' in scope
602 | private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:601:32: error: cannot find type 'kevent' in scope
599 | class KernelQueue {
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
| `- error: cannot find type 'kevent' in scope
602 | private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:602:33: error: cannot find type 'kevent' in scope
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
602 | private var changes = Array<kevent>()
| `- error: cannot find type 'kevent' in scope
603 |
604 | private let queue: Int32
/host/spi-builder-workspace/Sources/Server.swift:644:76: error: cannot find type 'kevent' in scope
642 | }
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
| `- error: cannot find type 'kevent' in scope
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
646 | }
/host/spi-builder-workspace/Sources/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
7 | import Foundation
8 |
9 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 |
11 | /// Synchonized version of dataTask(with URLRequest)
/host/spi-builder-workspace/Sources/WebSocketClient.swift:37:25: error: cannot find type 'TLSSocket' in scope
35 |
36 | private let mask: [UInt8]
37 | private let socket: TLSSocket
| `- error: cannot find type 'TLSSocket' in scope
38 |
39 | private var inputBuffer = [UInt8]()
[4/36] Compiling slash SlackIM.swift
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:88: error: cannot find 'URLRequest' in scope
59 | do {
60 |
61 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
62 | guard let data = theData else {
63 | responder(TextResponse(200, "No response from Slack."))
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | do {
60 |
61 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | guard let data = theData else {
63 | responder(TextResponse(200, "No response from Slack."))
[5/36] Compiling slash SlackMessage.swift
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:88: error: cannot find 'URLRequest' in scope
59 | do {
60 |
61 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
62 | guard let data = theData else {
63 | responder(TextResponse(200, "No response from Slack."))
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | do {
60 |
61 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | guard let data = theData else {
63 | responder(TextResponse(200, "No response from Slack."))
[6/36] Compiling slash SlackMessageReaction.swift
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:88: error: cannot find 'URLRequest' in scope
59 | do {
60 |
61 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
62 | guard let data = theData else {
63 | responder(TextResponse(200, "No response from Slack."))
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | do {
60 |
61 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | guard let data = theData else {
63 | responder(TextResponse(200, "No response from Slack."))
[7/36] Compiling slash SlackOAuth2.swift
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:88: error: cannot find 'URLRequest' in scope
59 | do {
60 |
61 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
62 | guard let data = theData else {
63 | responder(TextResponse(200, "No response from Slack."))
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | do {
60 |
61 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | guard let data = theData else {
63 | responder(TextResponse(200, "No response from Slack."))
[8/36] Compiling slash Utils.swift
/host/spi-builder-workspace/Sources/Utils.swift:14:14: warning: 'launchPath' is deprecated: renamed to 'executableURL'
12 | class func shell(_ args: String...) {
13 | let task = Process()
14 | task.launchPath = "/usr/bin/env"
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
| `- note: use 'executableURL' instead
15 | task.arguments = args
16 | task.launch()
/host/spi-builder-workspace/Sources/Utils.swift:16:14: warning: 'launch()' is deprecated: renamed to 'run'
14 | task.launchPath = "/usr/bin/env"
15 | task.arguments = args
16 | task.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run'
| `- note: use 'run' instead
17 | }
18 |
/host/spi-builder-workspace/Sources/WebSocketClient.swift:37:25: error: cannot find type 'TLSSocket' in scope
35 |
36 | private let mask: [UInt8]
37 | private let socket: TLSSocket
| `- error: cannot find type 'TLSSocket' in scope
38 |
39 | private var inputBuffer = [UInt8]()
/host/spi-builder-workspace/Sources/WebSocketClient.swift:45:27: error: cannot find 'TLSSocket' in scope
43 | self.mask = WebSocketClient.provideRandomValues(4)
44 |
45 | self.socket = try TLSSocket(try WebSocketClient.addressForHost(host))
| `- error: cannot find 'TLSSocket' in scope
46 |
47 | let secWebSocketKey = Data(WebSocketClient.provideRandomValues(16)).base64EncodedString()
/host/spi-builder-workspace/Sources/WebSocketClient.swift:90:33: error: cannot find 'arc4random' in scope
88 | var result = [UInt8]()
89 | for _ in 0..<count {
90 | result.append(UInt8(arc4random() % UInt32(UInt8.max)))
| `- error: cannot find 'arc4random' in scope
91 | }
92 | return result
[9/36] Compiling slash WebSocketClient.swift
/host/spi-builder-workspace/Sources/Utils.swift:14:14: warning: 'launchPath' is deprecated: renamed to 'executableURL'
12 | class func shell(_ args: String...) {
13 | let task = Process()
14 | task.launchPath = "/usr/bin/env"
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
| `- note: use 'executableURL' instead
15 | task.arguments = args
16 | task.launch()
/host/spi-builder-workspace/Sources/Utils.swift:16:14: warning: 'launch()' is deprecated: renamed to 'run'
14 | task.launchPath = "/usr/bin/env"
15 | task.arguments = args
16 | task.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run'
| `- note: use 'run' instead
17 | }
18 |
/host/spi-builder-workspace/Sources/WebSocketClient.swift:37:25: error: cannot find type 'TLSSocket' in scope
35 |
36 | private let mask: [UInt8]
37 | private let socket: TLSSocket
| `- error: cannot find type 'TLSSocket' in scope
38 |
39 | private var inputBuffer = [UInt8]()
/host/spi-builder-workspace/Sources/WebSocketClient.swift:45:27: error: cannot find 'TLSSocket' in scope
43 | self.mask = WebSocketClient.provideRandomValues(4)
44 |
45 | self.socket = try TLSSocket(try WebSocketClient.addressForHost(host))
| `- error: cannot find 'TLSSocket' in scope
46 |
47 | let secWebSocketKey = Data(WebSocketClient.provideRandomValues(16)).base64EncodedString()
/host/spi-builder-workspace/Sources/WebSocketClient.swift:90:33: error: cannot find 'arc4random' in scope
88 | var result = [UInt8]()
89 | for _ in 0..<count {
90 | result.append(UInt8(arc4random() % UInt32(UInt8.max)))
| `- error: cannot find 'arc4random' in scope
91 | }
92 | return result
[10/36] Compiling slash main.swift
/host/spi-builder-workspace/Sources/Utils.swift:14:14: warning: 'launchPath' is deprecated: renamed to 'executableURL'
12 | class func shell(_ args: String...) {
13 | let task = Process()
14 | task.launchPath = "/usr/bin/env"
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
| `- note: use 'executableURL' instead
15 | task.arguments = args
16 | task.launch()
/host/spi-builder-workspace/Sources/Utils.swift:16:14: warning: 'launch()' is deprecated: renamed to 'run'
14 | task.launchPath = "/usr/bin/env"
15 | task.arguments = args
16 | task.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run'
| `- note: use 'run' instead
17 | }
18 |
/host/spi-builder-workspace/Sources/WebSocketClient.swift:37:25: error: cannot find type 'TLSSocket' in scope
35 |
36 | private let mask: [UInt8]
37 | private let socket: TLSSocket
| `- error: cannot find type 'TLSSocket' in scope
38 |
39 | private var inputBuffer = [UInt8]()
/host/spi-builder-workspace/Sources/WebSocketClient.swift:45:27: error: cannot find 'TLSSocket' in scope
43 | self.mask = WebSocketClient.provideRandomValues(4)
44 |
45 | self.socket = try TLSSocket(try WebSocketClient.addressForHost(host))
| `- error: cannot find 'TLSSocket' in scope
46 |
47 | let secWebSocketKey = Data(WebSocketClient.provideRandomValues(16)).base64EncodedString()
/host/spi-builder-workspace/Sources/WebSocketClient.swift:90:33: error: cannot find 'arc4random' in scope
88 | var result = [UInt8]()
89 | for _ in 0..<count {
90 | result.append(UInt8(arc4random() % UInt32(UInt8.max)))
| `- error: cannot find 'arc4random' in scope
91 | }
92 | return result
[11/36] Compiling slash SlackRealTimeClient.swift
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:76: error: cannot find 'URLRequest' in scope
76 | }
77 |
78 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
79 | guard let data = theData else {
80 | throw SlackWebClientError.error("Error receiving data.")
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
76 | }
77 |
78 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
79 | guard let data = theData else {
80 | throw SlackWebClientError.error("Error receiving data.")
[12/36] Compiling slash SlackTeam.swift
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:76: error: cannot find 'URLRequest' in scope
76 | }
77 |
78 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
79 | guard let data = theData else {
80 | throw SlackWebClientError.error("Error receiving data.")
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
76 | }
77 |
78 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
79 | guard let data = theData else {
80 | throw SlackWebClientError.error("Error receiving data.")
[13/36] Compiling slash SlackUser.swift
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:76: error: cannot find 'URLRequest' in scope
76 | }
77 |
78 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
79 | guard let data = theData else {
80 | throw SlackWebClientError.error("Error receiving data.")
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
76 | }
77 |
78 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
79 | guard let data = theData else {
80 | throw SlackWebClientError.error("Error receiving data.")
[14/36] Compiling slash SlackWebClient.swift
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:76: error: cannot find 'URLRequest' in scope
76 | }
77 |
78 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
79 | guard let data = theData else {
80 | throw SlackWebClientError.error("Error receiving data.")
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
76 | }
77 |
78 | let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
79 | guard let data = theData else {
80 | throw SlackWebClientError.error("Error receiving data.")
[15/36] Compiling slash Application.swift
/host/spi-builder-workspace/Sources/Application.swift:60:44: warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
10 |
11 | private let terminalDevice : TerminalDevice
:
58 | do {
59 | while true {
60 | if let event = try self.rtmClient.waitForEvent() {
| `- warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | self.handleRealTimeSessionEvent(event)
62 | }
/host/spi-builder-workspace/Sources/Application.swift:138:40: warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it
136 | return
137 |
138 | case .messageReactionAdded(let reaction, let channel, let ts):
| `- warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it
139 |
140 | if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/Application.swift:138:67: warning: immutable value 'ts' was never used; consider replacing with '_' or removing it
136 | return
137 |
138 | case .messageReactionAdded(let reaction, let channel, let ts):
| `- warning: immutable value 'ts' was never used; consider replacing with '_' or removing it
139 |
140 | if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/Application.swift:181:32: warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
10 |
11 | private let terminalDevice : TerminalDevice
:
179 | DispatchQueue.global(qos: .background).async { [unowned self] in
180 | do {
181 | let rows = try self.webClient.history(for: channelId).map {
| `- warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | self.messageListRowFor(message: $0)
183 | }
/host/spi-builder-workspace/Sources/Application.swift:182:21: warning: capture of 'self' with non-sendable type 'Application' in an isolated closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
10 |
11 | private let terminalDevice : TerminalDevice
:
180 | do {
181 | let rows = try self.webClient.history(for: channelId).map {
182 | self.messageListRowFor(message: $0)
| `- warning: capture of 'self' with non-sendable type 'Application' in an isolated closure; this is an error in the Swift 6 language mode
183 | }
184 | //TODO notify about the results in a common queue for all the background tasks.
/host/spi-builder-workspace/Sources/CrashReporter.swift:12:24: warning: static property 'terminalDevice' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | struct CrashReporter {
11 |
12 | private static var terminalDevice: TerminalDevice? = nil
| |- warning: static property 'terminalDevice' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'terminalDevice' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'terminalDevice' 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
13 |
14 | static func watch(usingDevice device: TerminalDevice) {
/host/spi-builder-workspace/Sources/CrashReporter.swift:18:9: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
16 | CrashReporter.terminalDevice = device
17 |
18 | NSSetUncaughtExceptionHandler { _ in
| `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
19 | CrashReporter.report()
20 | }
[16/36] Compiling slash ChannelsListView.swift
/host/spi-builder-workspace/Sources/Application.swift:60:44: warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
10 |
11 | private let terminalDevice : TerminalDevice
:
58 | do {
59 | while true {
60 | if let event = try self.rtmClient.waitForEvent() {
| `- warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | self.handleRealTimeSessionEvent(event)
62 | }
/host/spi-builder-workspace/Sources/Application.swift:138:40: warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it
136 | return
137 |
138 | case .messageReactionAdded(let reaction, let channel, let ts):
| `- warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it
139 |
140 | if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/Application.swift:138:67: warning: immutable value 'ts' was never used; consider replacing with '_' or removing it
136 | return
137 |
138 | case .messageReactionAdded(let reaction, let channel, let ts):
| `- warning: immutable value 'ts' was never used; consider replacing with '_' or removing it
139 |
140 | if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/Application.swift:181:32: warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
10 |
11 | private let terminalDevice : TerminalDevice
:
179 | DispatchQueue.global(qos: .background).async { [unowned self] in
180 | do {
181 | let rows = try self.webClient.history(for: channelId).map {
| `- warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | self.messageListRowFor(message: $0)
183 | }
/host/spi-builder-workspace/Sources/Application.swift:182:21: warning: capture of 'self' with non-sendable type 'Application' in an isolated closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
10 |
11 | private let terminalDevice : TerminalDevice
:
180 | do {
181 | let rows = try self.webClient.history(for: channelId).map {
182 | self.messageListRowFor(message: $0)
| `- warning: capture of 'self' with non-sendable type 'Application' in an isolated closure; this is an error in the Swift 6 language mode
183 | }
184 | //TODO notify about the results in a common queue for all the background tasks.
/host/spi-builder-workspace/Sources/CrashReporter.swift:12:24: warning: static property 'terminalDevice' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | struct CrashReporter {
11 |
12 | private static var terminalDevice: TerminalDevice? = nil
| |- warning: static property 'terminalDevice' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'terminalDevice' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'terminalDevice' 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
13 |
14 | static func watch(usingDevice device: TerminalDevice) {
/host/spi-builder-workspace/Sources/CrashReporter.swift:18:9: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
16 | CrashReporter.terminalDevice = device
17 |
18 | NSSetUncaughtExceptionHandler { _ in
| `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
19 | CrashReporter.report()
20 | }
[17/36] Compiling slash CrashReporter.swift
/host/spi-builder-workspace/Sources/Application.swift:60:44: warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
10 |
11 | private let terminalDevice : TerminalDevice
:
58 | do {
59 | while true {
60 | if let event = try self.rtmClient.waitForEvent() {
| `- warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | self.handleRealTimeSessionEvent(event)
62 | }
/host/spi-builder-workspace/Sources/Application.swift:138:40: warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it
136 | return
137 |
138 | case .messageReactionAdded(let reaction, let channel, let ts):
| `- warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it
139 |
140 | if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/Application.swift:138:67: warning: immutable value 'ts' was never used; consider replacing with '_' or removing it
136 | return
137 |
138 | case .messageReactionAdded(let reaction, let channel, let ts):
| `- warning: immutable value 'ts' was never used; consider replacing with '_' or removing it
139 |
140 | if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/Application.swift:181:32: warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
10 |
11 | private let terminalDevice : TerminalDevice
:
179 | DispatchQueue.global(qos: .background).async { [unowned self] in
180 | do {
181 | let rows = try self.webClient.history(for: channelId).map {
| `- warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | self.messageListRowFor(message: $0)
183 | }
/host/spi-builder-workspace/Sources/Application.swift:182:21: warning: capture of 'self' with non-sendable type 'Application' in an isolated closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
10 |
11 | private let terminalDevice : TerminalDevice
:
180 | do {
181 | let rows = try self.webClient.history(for: channelId).map {
182 | self.messageListRowFor(message: $0)
| `- warning: capture of 'self' with non-sendable type 'Application' in an isolated closure; this is an error in the Swift 6 language mode
183 | }
184 | //TODO notify about the results in a common queue for all the background tasks.
/host/spi-builder-workspace/Sources/CrashReporter.swift:12:24: warning: static property 'terminalDevice' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | struct CrashReporter {
11 |
12 | private static var terminalDevice: TerminalDevice? = nil
| |- warning: static property 'terminalDevice' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'terminalDevice' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'terminalDevice' 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
13 |
14 | static func watch(usingDevice device: TerminalDevice) {
/host/spi-builder-workspace/Sources/CrashReporter.swift:18:9: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
16 | CrashReporter.terminalDevice = device
17 |
18 | NSSetUncaughtExceptionHandler { _ in
| `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
19 | CrashReporter.report()
20 | }
[18/36] Compiling slash MessagesListView.swift
/host/spi-builder-workspace/Sources/Application.swift:60:44: warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
10 |
11 | private let terminalDevice : TerminalDevice
:
58 | do {
59 | while true {
60 | if let event = try self.rtmClient.waitForEvent() {
| `- warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | self.handleRealTimeSessionEvent(event)
62 | }
/host/spi-builder-workspace/Sources/Application.swift:138:40: warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it
136 | return
137 |
138 | case .messageReactionAdded(let reaction, let channel, let ts):
| `- warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it
139 |
140 | if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/Application.swift:138:67: warning: immutable value 'ts' was never used; consider replacing with '_' or removing it
136 | return
137 |
138 | case .messageReactionAdded(let reaction, let channel, let ts):
| `- warning: immutable value 'ts' was never used; consider replacing with '_' or removing it
139 |
140 | if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/Application.swift:181:32: warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
10 |
11 | private let terminalDevice : TerminalDevice
:
179 | DispatchQueue.global(qos: .background).async { [unowned self] in
180 | do {
181 | let rows = try self.webClient.history(for: channelId).map {
| `- warning: capture of 'self' with non-sendable type 'Application' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | self.messageListRowFor(message: $0)
183 | }
/host/spi-builder-workspace/Sources/Application.swift:182:21: warning: capture of 'self' with non-sendable type 'Application' in an isolated closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
10 |
11 | private let terminalDevice : TerminalDevice
:
180 | do {
181 | let rows = try self.webClient.history(for: channelId).map {
182 | self.messageListRowFor(message: $0)
| `- warning: capture of 'self' with non-sendable type 'Application' in an isolated closure; this is an error in the Swift 6 language mode
183 | }
184 | //TODO notify about the results in a common queue for all the background tasks.
/host/spi-builder-workspace/Sources/CrashReporter.swift:12:24: warning: static property 'terminalDevice' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | struct CrashReporter {
11 |
12 | private static var terminalDevice: TerminalDevice? = nil
| |- warning: static property 'terminalDevice' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'terminalDevice' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'terminalDevice' 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
13 |
14 | static func watch(usingDevice device: TerminalDevice) {
/host/spi-builder-workspace/Sources/CrashReporter.swift:18:9: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
16 | CrashReporter.terminalDevice = device
17 |
18 | NSSetUncaughtExceptionHandler { _ in
| `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
19 | CrashReporter.report()
20 | }
[19/36] Compiling slash TextLayout.swift
/host/spi-builder-workspace/Sources/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
7 | import Foundation
8 |
9 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 |
11 | /// Synchonized version of dataTask(with URLRequest)
/host/spi-builder-workspace/Sources/URLSession.swift:12:44: error: cannot find type 'URLRequest' in scope
10 |
11 | /// Synchonized version of dataTask(with URLRequest)
12 | func synchronousDataTask(with request: URLRequest) throws -> (data: Data?, response: HTTPURLResponse?) {
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | let semaphore = DispatchSemaphore(value: 0)
[20/36] Compiling slash URLSession.swift
/host/spi-builder-workspace/Sources/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
7 | import Foundation
8 |
9 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 |
11 | /// Synchonized version of dataTask(with URLRequest)
/host/spi-builder-workspace/Sources/URLSession.swift:12:44: error: cannot find type 'URLRequest' in scope
10 |
11 | /// Synchonized version of dataTask(with URLRequest)
12 | func synchronousDataTask(with request: URLRequest) throws -> (data: Data?, response: HTTPURLResponse?) {
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | let semaphore = DispatchSemaphore(value: 0)
[21/36] Compiling slash UserInputView.swift
/host/spi-builder-workspace/Sources/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
7 | import Foundation
8 |
9 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 |
11 | /// Synchonized version of dataTask(with URLRequest)
/host/spi-builder-workspace/Sources/URLSession.swift:12:44: error: cannot find type 'URLRequest' in scope
10 |
11 | /// Synchonized version of dataTask(with URLRequest)
12 | func synchronousDataTask(with request: URLRequest) throws -> (data: Data?, response: HTTPURLResponse?) {
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | let semaphore = DispatchSemaphore(value: 0)
[22/36] Compiling slash Socket.swift
/host/spi-builder-workspace/Sources/TerminalDevice.swift:42:32: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | init() throws {
42 | guard tcgetattr(fileno(stdin), &self.originalTermios) == 0 else {
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
43 | throw TerminalError.error("Could not load current terminal config: \(errno)")
44 | }
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:37: error: cannot convert value of type 'Int32' to expected argument type 'UInt'
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
| `- error: cannot convert value of type 'Int32' to expected argument type 'UInt'
53 | exit(1)
54 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:60:17: error: cannot find 'getwchar' in scope
58 | func key() -> ControlKey {
59 |
60 | let c = getwchar()
| `- error: cannot find 'getwchar' in scope
61 |
62 | switch c {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:79:26: error: cannot find 'getwchar' in scope
77 | case 27:
78 |
79 | let c1 = getwchar()
| `- error: cannot find 'getwchar' in scope
80 | let c2 = getwchar()
81 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:80:26: error: cannot find 'getwchar' in scope
78 |
79 | let c1 = getwchar()
80 | let c2 = getwchar()
| `- error: cannot find 'getwchar' in scope
81 |
82 | if c1 == 91 {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:102:22: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | func flush(_ buffer: [UInt8]) {
102 | write(fileno(stdout), buffer, buffer.count)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
103 | }
104 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/TerminalDevice.swift:106:32: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
104 |
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
108 | }
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/TerminalDevice.swift:118:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
116 | memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
117 |
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:122:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:126:34: error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
| `- error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
127 | rawModeTermios.c_oflag = 0
128 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:132:32: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
130 | rawModeTermios.c_cc.16 /*[VMIN] */ = 1
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
134 | }
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[23/36] Compiling slash TLSSocket.swift
/host/spi-builder-workspace/Sources/TerminalDevice.swift:42:32: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | init() throws {
42 | guard tcgetattr(fileno(stdin), &self.originalTermios) == 0 else {
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
43 | throw TerminalError.error("Could not load current terminal config: \(errno)")
44 | }
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:37: error: cannot convert value of type 'Int32' to expected argument type 'UInt'
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
| `- error: cannot convert value of type 'Int32' to expected argument type 'UInt'
53 | exit(1)
54 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:60:17: error: cannot find 'getwchar' in scope
58 | func key() -> ControlKey {
59 |
60 | let c = getwchar()
| `- error: cannot find 'getwchar' in scope
61 |
62 | switch c {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:79:26: error: cannot find 'getwchar' in scope
77 | case 27:
78 |
79 | let c1 = getwchar()
| `- error: cannot find 'getwchar' in scope
80 | let c2 = getwchar()
81 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:80:26: error: cannot find 'getwchar' in scope
78 |
79 | let c1 = getwchar()
80 | let c2 = getwchar()
| `- error: cannot find 'getwchar' in scope
81 |
82 | if c1 == 91 {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:102:22: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | func flush(_ buffer: [UInt8]) {
102 | write(fileno(stdout), buffer, buffer.count)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
103 | }
104 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/TerminalDevice.swift:106:32: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
104 |
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
108 | }
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/TerminalDevice.swift:118:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
116 | memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
117 |
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:122:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:126:34: error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
| `- error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
127 | rawModeTermios.c_oflag = 0
128 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:132:32: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
130 | rawModeTermios.c_cc.16 /*[VMIN] */ = 1
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
134 | }
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[24/36] Compiling slash TerminalCanvas.swift
/host/spi-builder-workspace/Sources/TerminalDevice.swift:42:32: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | init() throws {
42 | guard tcgetattr(fileno(stdin), &self.originalTermios) == 0 else {
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
43 | throw TerminalError.error("Could not load current terminal config: \(errno)")
44 | }
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:37: error: cannot convert value of type 'Int32' to expected argument type 'UInt'
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
| `- error: cannot convert value of type 'Int32' to expected argument type 'UInt'
53 | exit(1)
54 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:60:17: error: cannot find 'getwchar' in scope
58 | func key() -> ControlKey {
59 |
60 | let c = getwchar()
| `- error: cannot find 'getwchar' in scope
61 |
62 | switch c {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:79:26: error: cannot find 'getwchar' in scope
77 | case 27:
78 |
79 | let c1 = getwchar()
| `- error: cannot find 'getwchar' in scope
80 | let c2 = getwchar()
81 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:80:26: error: cannot find 'getwchar' in scope
78 |
79 | let c1 = getwchar()
80 | let c2 = getwchar()
| `- error: cannot find 'getwchar' in scope
81 |
82 | if c1 == 91 {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:102:22: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | func flush(_ buffer: [UInt8]) {
102 | write(fileno(stdout), buffer, buffer.count)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
103 | }
104 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/TerminalDevice.swift:106:32: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
104 |
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
108 | }
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/TerminalDevice.swift:118:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
116 | memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
117 |
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:122:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:126:34: error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
| `- error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
127 | rawModeTermios.c_oflag = 0
128 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:132:32: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
130 | rawModeTermios.c_cc.16 /*[VMIN] */ = 1
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
134 | }
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[25/36] Compiling slash TerminalDevice.swift
/host/spi-builder-workspace/Sources/TerminalDevice.swift:42:32: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | init() throws {
42 | guard tcgetattr(fileno(stdin), &self.originalTermios) == 0 else {
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
43 | throw TerminalError.error("Could not load current terminal config: \(errno)")
44 | }
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:37: error: cannot convert value of type 'Int32' to expected argument type 'UInt'
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
| `- error: cannot convert value of type 'Int32' to expected argument type 'UInt'
53 | exit(1)
54 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:60:17: error: cannot find 'getwchar' in scope
58 | func key() -> ControlKey {
59 |
60 | let c = getwchar()
| `- error: cannot find 'getwchar' in scope
61 |
62 | switch c {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:79:26: error: cannot find 'getwchar' in scope
77 | case 27:
78 |
79 | let c1 = getwchar()
| `- error: cannot find 'getwchar' in scope
80 | let c2 = getwchar()
81 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:80:26: error: cannot find 'getwchar' in scope
78 |
79 | let c1 = getwchar()
80 | let c2 = getwchar()
| `- error: cannot find 'getwchar' in scope
81 |
82 | if c1 == 91 {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:102:22: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | func flush(_ buffer: [UInt8]) {
102 | write(fileno(stdout), buffer, buffer.count)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
103 | }
104 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/TerminalDevice.swift:106:32: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
104 |
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
108 | }
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/TerminalDevice.swift:118:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
116 | memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
117 |
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:122:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:126:34: error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
| `- error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
127 | rawModeTermios.c_oflag = 0
128 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:132:32: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
130 | rawModeTermios.c_cc.16 /*[VMIN] */ = 1
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
134 | }
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[26/36] Compiling slash R.swift
/host/spi-builder-workspace/Sources/Server.swift:105:5: warning: static property 'lf' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | static var
105 | lf: UInt8 = 10,
| |- warning: static property 'lf' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lf' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lf' 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
106 | cr: UInt8 = 13,
107 | space: UInt8 = 32,
/host/spi-builder-workspace/Sources/Server.swift:106:5: warning: static property 'cr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
104 | static var
105 | lf: UInt8 = 10,
106 | cr: UInt8 = 13,
| |- warning: static property 'cr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cr' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cr' 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
107 | space: UInt8 = 32,
108 | colon: UInt8 = 58,
/host/spi-builder-workspace/Sources/Server.swift:107:5: warning: static property 'space' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 | lf: UInt8 = 10,
106 | cr: UInt8 = 13,
107 | space: UInt8 = 32,
| |- warning: static property 'space' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'space' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'space' 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
108 | colon: UInt8 = 58,
109 | ampersand: UInt8 = 38,
/host/spi-builder-workspace/Sources/Server.swift:108:5: warning: static property 'colon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 | cr: UInt8 = 13,
107 | space: UInt8 = 32,
108 | colon: UInt8 = 58,
| |- warning: static property 'colon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'colon' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'colon' 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
109 | ampersand: UInt8 = 38,
110 | lessThan: UInt8 = 60,
/host/spi-builder-workspace/Sources/Server.swift:109:5: warning: static property 'ampersand' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
107 | space: UInt8 = 32,
108 | colon: UInt8 = 58,
109 | ampersand: UInt8 = 38,
| |- warning: static property 'ampersand' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ampersand' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ampersand' 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
110 | lessThan: UInt8 = 60,
111 | greaterThan: UInt8 = 62,
/host/spi-builder-workspace/Sources/Server.swift:110:5: warning: static property 'lessThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | colon: UInt8 = 58,
109 | ampersand: UInt8 = 38,
110 | lessThan: UInt8 = 60,
| |- warning: static property 'lessThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lessThan' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lessThan' 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
111 | greaterThan: UInt8 = 62,
112 | slash: UInt8 = 47,
/host/spi-builder-workspace/Sources/Server.swift:111:5: warning: static property 'greaterThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | ampersand: UInt8 = 38,
110 | lessThan: UInt8 = 60,
111 | greaterThan: UInt8 = 62,
| |- warning: static property 'greaterThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'greaterThan' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'greaterThan' 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
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
/host/spi-builder-workspace/Sources/Server.swift:112:5: warning: static property 'slash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | lessThan: UInt8 = 60,
111 | greaterThan: UInt8 = 62,
112 | slash: UInt8 = 47,
| |- warning: static property 'slash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'slash' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'slash' 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
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
/host/spi-builder-workspace/Sources/Server.swift:113:5: warning: static property 'equal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
111 | greaterThan: UInt8 = 62,
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
| |- warning: static property 'equal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'equal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'equal' 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
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
/host/spi-builder-workspace/Sources/Server.swift:114:5: warning: static property 'doubleQuotes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
| |- warning: static property 'doubleQuotes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'doubleQuotes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'doubleQuotes' 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
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
/host/spi-builder-workspace/Sources/Server.swift:115:5: warning: static property 'openingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
| |- warning: static property 'openingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'openingParenthesis' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'openingParenthesis' 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
116 | closingParenthesis: UInt8 = 41,
117 | comma: UInt8 = 44
/host/spi-builder-workspace/Sources/Server.swift:116:5: warning: static property 'closingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
| |- warning: static property 'closingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'closingParenthesis' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'closingParenthesis' 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
117 | comma: UInt8 = 44
118 | }
/host/spi-builder-workspace/Sources/Server.swift:117:5: warning: static property 'comma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
117 | comma: UInt8 = 44
| |- warning: static property 'comma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'comma' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'comma' 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
118 | }
119 |
/host/spi-builder-workspace/Sources/Server.swift:189:9: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead
187 | }
188 |
189 | var hashValue: Int { return Int(self.socket) }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead
190 |
191 | func process(_ chunk: ArraySlice<UInt8>) throws {
/host/spi-builder-workspace/Sources/Server.swift:601:51: error: cannot find 'kevent' in scope
599 | class KernelQueue {
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
| `- error: cannot find 'kevent' in scope
602 | private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:601:32: error: cannot find type 'kevent' in scope
599 | class KernelQueue {
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
| `- error: cannot find type 'kevent' in scope
602 | private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:602:33: error: cannot find type 'kevent' in scope
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
602 | private var changes = Array<kevent>()
| `- error: cannot find type 'kevent' in scope
603 |
604 | private let queue: Int32
/host/spi-builder-workspace/Sources/Server.swift:644:76: error: cannot find type 'kevent' in scope
642 | }
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
| `- error: cannot find type 'kevent' in scope
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
646 | }
/host/spi-builder-workspace/Sources/Server.swift:320:31: error: cannot find 'LinuxAsyncServer' in scope
318 | init(_ port: in_port_t = 8080) throws {
319 | #if os(Linux)
320 | self.server = try LinuxAsyncServer(port)
| `- error: cannot find 'LinuxAsyncServer' in scope
321 | #else
322 | self.server = try MacOSAsyncTCPServer(port)
/host/spi-builder-workspace/Sources/Server.swift:481:25: warning: variable 'chunk' was never mutated; consider changing to 'let' constant
479 | case .write:
480 | while let backlogElement = self.backlog[Int32(signal.ident)]?.first {
481 | var chunk = backlogElement.chunk
| `- warning: variable 'chunk' was never mutated; consider changing to 'let' constant
482 | let result = Socket.write(Int32(signal.ident), chunk, min(chunk.count, signal.data))
483 | if result == -1 {
/host/spi-builder-workspace/Sources/Server.swift:533:22: error: cannot find 'Darwin' in scope
531 | static func nonBlockingSocketForListenening(_ port: in_port_t = 8080) throws -> Int32 {
532 |
533 | let server = Darwin.socket(AF_INET, SOCK_STREAM, 0)
| `- error: cannot find 'Darwin' in scope
534 |
535 | guard server != -1 else {
/host/spi-builder-workspace/Sources/Server.swift:540:12: error: cannot find 'Darwin' in scope
538 |
539 | var value: Int32 = 1
540 | if Darwin.setsockopt(server, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
| `- error: cannot find 'Darwin' in scope
541 | defer { let _ = Socket.close(server) }
542 | throw AsyncError.setReuseAddrFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:550:43: error: cannot find 'Darwin' in scope
548 | var addr = anyAddrForPort(port)
549 |
550 | if withUnsafePointer(to: &addr, { Darwin.bind(server, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size)) }) == -1 {
| `- error: cannot find 'Darwin' in scope
551 | defer { let _ = Socket.close(server) }
552 | throw AsyncError.bindFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:555:12: error: cannot find 'Darwin' in scope
553 | }
554 |
555 | if Darwin.listen(server, SOMAXCONN) == -1 {
| `- error: cannot find 'Darwin' in scope
556 | defer { let _ = Socket.close(server) }
557 | throw AsyncError.listenFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:565:33: error: cannot find 'Darwin' in scope
563 | static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 | guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
| `- error: cannot find 'Darwin' in scope
566 | throw AsyncError.acceptFailed(Process.error)
567 | }
/host/spi-builder-workspace/Sources/Server.swift:565:55: error: 'nil' requires a contextual type
563 | static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 | guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
| `- error: 'nil' requires a contextual type
566 | throw AsyncError.acceptFailed(Process.error)
567 | }
/host/spi-builder-workspace/Sources/Server.swift:565:60: error: 'nil' requires a contextual type
563 | static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 | guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
| `- error: 'nil' requires a contextual type
566 | throw AsyncError.acceptFailed(Process.error)
567 | }
/host/spi-builder-workspace/Sources/Server.swift:577:14: error: value of type 'sockaddr_in' has no member 'sin_len'
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
| `- error: value of type 'sockaddr_in' has no member 'sin_len'
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
/host/spi-builder-workspace/Sources/Server.swift:586:12: error: cannot find 'Darwin' in scope
584 |
585 | static func setSocketNonBlocking(_ socket: Int32) throws {
586 | if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
| `- error: cannot find 'Darwin' in scope
587 | throw AsyncError.setNonBlockFailed(Process.error)
588 | }
/host/spi-builder-workspace/Sources/Server.swift:586:42: error: cannot find 'Darwin' in scope
584 |
585 | static func setSocketNonBlocking(_ socket: Int32) throws {
586 | if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
| `- error: cannot find 'Darwin' in scope
587 | throw AsyncError.setNonBlockFailed(Process.error)
588 | }
/host/spi-builder-workspace/Sources/Server.swift:593:12: error: cannot find 'Darwin' in scope
591 | static func setSocketNoSigPipe(_ socket: Int32) throws {
592 | var value = 1
593 | if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
| `- error: cannot find 'Darwin' in scope
594 | throw AsyncError.setNoSigPipeFailed(Process.error)
595 | }
/host/spi-builder-workspace/Sources/Server.swift:593:50: error: cannot find 'SO_NOSIGPIPE' in scope
591 | static func setSocketNoSigPipe(_ socket: Int32) throws {
592 | var value = 1
593 | if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
| `- error: cannot find 'SO_NOSIGPIPE' in scope
594 | throw AsyncError.setNoSigPipeFailed(Process.error)
595 | }
/host/spi-builder-workspace/Sources/Server.swift:610:32: error: cannot find 'kqueue' in scope
608 |
609 | init() throws {
610 | guard case let queue = kqueue(), queue != -1 else {
| `- error: cannot find 'kqueue' in scope
611 | throw AsyncError.async(Process.error)
612 | }
/host/spi-builder-workspace/Sources/Server.swift:618:68: error: cannot find 'EVFILT_READ' in scope
616 | func subscribe(_ ident: UInt, _ event: Subscription) {
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_READ' in scope
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 | }
/host/spi-builder-workspace/Sources/Server.swift:618:89: error: cannot find 'EV_ADD' in scope
616 | func subscribe(_ ident: UInt, _ event: Subscription) {
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ADD' in scope
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 | }
/host/spi-builder-workspace/Sources/Server.swift:618:106: error: cannot find 'EV_ENABLE' in scope
616 | func subscribe(_ ident: UInt, _ event: Subscription) {
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 | }
/host/spi-builder-workspace/Sources/Server.swift:619:68: error: cannot find 'EVFILT_WRITE' in scope
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
620 | }
621 | }
/host/spi-builder-workspace/Sources/Server.swift:619:90: error: cannot find 'EV_ADD' in scope
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ADD' in scope
620 | }
621 | }
/host/spi-builder-workspace/Sources/Server.swift:619:107: error: cannot find 'EV_ENABLE' in scope
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
620 | }
621 | }
/host/spi-builder-workspace/Sources/Server.swift:625:68: error: cannot find 'EVFILT_READ' in scope
623 | func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
| `- error: cannot find 'EVFILT_READ' in scope
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 | }
/host/spi-builder-workspace/Sources/Server.swift:625:89: error: cannot find 'EV_DELETE' in scope
623 | func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
| `- error: cannot find 'EV_DELETE' in scope
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 | }
/host/spi-builder-workspace/Sources/Server.swift:626:68: error: cannot find 'EVFILT_WRITE' in scope
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
627 | }
628 | }
/host/spi-builder-workspace/Sources/Server.swift:626:90: error: cannot find 'EV_DELETE' in scope
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
| `- error: cannot find 'EV_DELETE' in scope
627 | }
628 | }
/host/spi-builder-workspace/Sources/Server.swift:632:68: error: cannot find 'EVFILT_READ' in scope
630 | func pause(_ ident: UInt, _ event: Subscription) {
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
| `- error: cannot find 'EVFILT_READ' in scope
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 | }
/host/spi-builder-workspace/Sources/Server.swift:632:89: error: cannot find 'EV_DISABLE' in scope
630 | func pause(_ ident: UInt, _ event: Subscription) {
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
| `- error: cannot find 'EV_DISABLE' in scope
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 | }
/host/spi-builder-workspace/Sources/Server.swift:633:68: error: cannot find 'EVFILT_WRITE' in scope
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
634 | }
635 | }
/host/spi-builder-workspace/Sources/Server.swift:633:90: error: cannot find 'EV_DISABLE' in scope
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
| `- error: cannot find 'EV_DISABLE' in scope
634 | }
635 | }
/host/spi-builder-workspace/Sources/Server.swift:639:68: error: cannot find 'EVFILT_READ' in scope
637 | func resume(_ ident: UInt, _ event: Subscription) {
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_READ' in scope
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 | }
/host/spi-builder-workspace/Sources/Server.swift:639:89: error: cannot find 'EV_ENABLE' in scope
637 | func resume(_ ident: UInt, _ event: Subscription) {
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 | }
/host/spi-builder-workspace/Sources/Server.swift:640:68: error: cannot find 'EVFILT_WRITE' in scope
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
641 | }
642 | }
/host/spi-builder-workspace/Sources/Server.swift:640:90: error: cannot find 'EV_ENABLE' in scope
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
641 | }
642 | }
/host/spi-builder-workspace/Sources/Server.swift:651:16: error: cannot find 'kevent' in scope
649 |
650 | if !changes.isEmpty {
651 | if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
| `- error: cannot find 'kevent' in scope
652 | throw AsyncError.async(Process.error)
653 | }
/host/spi-builder-workspace/Sources/Server.swift:651:67: error: 'nil' requires a contextual type
649 |
650 | if !changes.isEmpty {
651 | if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
| `- error: 'nil' requires a contextual type
652 | throw AsyncError.async(Process.error)
653 | }
/host/spi-builder-workspace/Sources/Server.swift:651:75: error: 'nil' requires a contextual type
649 |
650 | if !changes.isEmpty {
651 | if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
| `- error: 'nil' requires a contextual type
652 | throw AsyncError.async(Process.error)
653 | }
/host/spi-builder-workspace/Sources/Server.swift:658:32: error: cannot find 'kevent' in scope
656 | self.changes.removeAll(keepingCapacity: true)
657 |
658 | guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
| `- error: cannot find 'kevent' in scope
659 | throw AsyncError.async(Process.error)
660 | }
/host/spi-builder-workspace/Sources/Server.swift:658:51: error: 'nil' requires a contextual type
656 | self.changes.removeAll(keepingCapacity: true)
657 |
658 | guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
| `- error: 'nil' requires a contextual type
659 | throw AsyncError.async(Process.error)
660 | }
/host/spi-builder-workspace/Sources/Server.swift:658:89: error: 'nil' requires a contextual type
656 | self.changes.removeAll(keepingCapacity: true)
657 |
658 | guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
| `- error: 'nil' requires a contextual type
659 | throw AsyncError.async(Process.error)
660 | }
[27/36] Compiling slash Server.swift
/host/spi-builder-workspace/Sources/Server.swift:105:5: warning: static property 'lf' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | static var
105 | lf: UInt8 = 10,
| |- warning: static property 'lf' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lf' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lf' 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
106 | cr: UInt8 = 13,
107 | space: UInt8 = 32,
/host/spi-builder-workspace/Sources/Server.swift:106:5: warning: static property 'cr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
104 | static var
105 | lf: UInt8 = 10,
106 | cr: UInt8 = 13,
| |- warning: static property 'cr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cr' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cr' 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
107 | space: UInt8 = 32,
108 | colon: UInt8 = 58,
/host/spi-builder-workspace/Sources/Server.swift:107:5: warning: static property 'space' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 | lf: UInt8 = 10,
106 | cr: UInt8 = 13,
107 | space: UInt8 = 32,
| |- warning: static property 'space' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'space' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'space' 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
108 | colon: UInt8 = 58,
109 | ampersand: UInt8 = 38,
/host/spi-builder-workspace/Sources/Server.swift:108:5: warning: static property 'colon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 | cr: UInt8 = 13,
107 | space: UInt8 = 32,
108 | colon: UInt8 = 58,
| |- warning: static property 'colon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'colon' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'colon' 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
109 | ampersand: UInt8 = 38,
110 | lessThan: UInt8 = 60,
/host/spi-builder-workspace/Sources/Server.swift:109:5: warning: static property 'ampersand' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
107 | space: UInt8 = 32,
108 | colon: UInt8 = 58,
109 | ampersand: UInt8 = 38,
| |- warning: static property 'ampersand' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ampersand' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ampersand' 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
110 | lessThan: UInt8 = 60,
111 | greaterThan: UInt8 = 62,
/host/spi-builder-workspace/Sources/Server.swift:110:5: warning: static property 'lessThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | colon: UInt8 = 58,
109 | ampersand: UInt8 = 38,
110 | lessThan: UInt8 = 60,
| |- warning: static property 'lessThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lessThan' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lessThan' 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
111 | greaterThan: UInt8 = 62,
112 | slash: UInt8 = 47,
/host/spi-builder-workspace/Sources/Server.swift:111:5: warning: static property 'greaterThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | ampersand: UInt8 = 38,
110 | lessThan: UInt8 = 60,
111 | greaterThan: UInt8 = 62,
| |- warning: static property 'greaterThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'greaterThan' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'greaterThan' 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
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
/host/spi-builder-workspace/Sources/Server.swift:112:5: warning: static property 'slash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | lessThan: UInt8 = 60,
111 | greaterThan: UInt8 = 62,
112 | slash: UInt8 = 47,
| |- warning: static property 'slash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'slash' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'slash' 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
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
/host/spi-builder-workspace/Sources/Server.swift:113:5: warning: static property 'equal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
111 | greaterThan: UInt8 = 62,
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
| |- warning: static property 'equal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'equal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'equal' 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
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
/host/spi-builder-workspace/Sources/Server.swift:114:5: warning: static property 'doubleQuotes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
| |- warning: static property 'doubleQuotes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'doubleQuotes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'doubleQuotes' 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
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
/host/spi-builder-workspace/Sources/Server.swift:115:5: warning: static property 'openingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
| |- warning: static property 'openingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'openingParenthesis' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'openingParenthesis' 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
116 | closingParenthesis: UInt8 = 41,
117 | comma: UInt8 = 44
/host/spi-builder-workspace/Sources/Server.swift:116:5: warning: static property 'closingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
| |- warning: static property 'closingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'closingParenthesis' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'closingParenthesis' 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
117 | comma: UInt8 = 44
118 | }
/host/spi-builder-workspace/Sources/Server.swift:117:5: warning: static property 'comma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
117 | comma: UInt8 = 44
| |- warning: static property 'comma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'comma' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'comma' 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
118 | }
119 |
/host/spi-builder-workspace/Sources/Server.swift:189:9: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead
187 | }
188 |
189 | var hashValue: Int { return Int(self.socket) }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead
190 |
191 | func process(_ chunk: ArraySlice<UInt8>) throws {
/host/spi-builder-workspace/Sources/Server.swift:601:51: error: cannot find 'kevent' in scope
599 | class KernelQueue {
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
| `- error: cannot find 'kevent' in scope
602 | private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:601:32: error: cannot find type 'kevent' in scope
599 | class KernelQueue {
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
| `- error: cannot find type 'kevent' in scope
602 | private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:602:33: error: cannot find type 'kevent' in scope
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
602 | private var changes = Array<kevent>()
| `- error: cannot find type 'kevent' in scope
603 |
604 | private let queue: Int32
/host/spi-builder-workspace/Sources/Server.swift:644:76: error: cannot find type 'kevent' in scope
642 | }
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
| `- error: cannot find type 'kevent' in scope
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
646 | }
/host/spi-builder-workspace/Sources/Server.swift:320:31: error: cannot find 'LinuxAsyncServer' in scope
318 | init(_ port: in_port_t = 8080) throws {
319 | #if os(Linux)
320 | self.server = try LinuxAsyncServer(port)
| `- error: cannot find 'LinuxAsyncServer' in scope
321 | #else
322 | self.server = try MacOSAsyncTCPServer(port)
/host/spi-builder-workspace/Sources/Server.swift:481:25: warning: variable 'chunk' was never mutated; consider changing to 'let' constant
479 | case .write:
480 | while let backlogElement = self.backlog[Int32(signal.ident)]?.first {
481 | var chunk = backlogElement.chunk
| `- warning: variable 'chunk' was never mutated; consider changing to 'let' constant
482 | let result = Socket.write(Int32(signal.ident), chunk, min(chunk.count, signal.data))
483 | if result == -1 {
/host/spi-builder-workspace/Sources/Server.swift:533:22: error: cannot find 'Darwin' in scope
531 | static func nonBlockingSocketForListenening(_ port: in_port_t = 8080) throws -> Int32 {
532 |
533 | let server = Darwin.socket(AF_INET, SOCK_STREAM, 0)
| `- error: cannot find 'Darwin' in scope
534 |
535 | guard server != -1 else {
/host/spi-builder-workspace/Sources/Server.swift:540:12: error: cannot find 'Darwin' in scope
538 |
539 | var value: Int32 = 1
540 | if Darwin.setsockopt(server, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
| `- error: cannot find 'Darwin' in scope
541 | defer { let _ = Socket.close(server) }
542 | throw AsyncError.setReuseAddrFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:550:43: error: cannot find 'Darwin' in scope
548 | var addr = anyAddrForPort(port)
549 |
550 | if withUnsafePointer(to: &addr, { Darwin.bind(server, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size)) }) == -1 {
| `- error: cannot find 'Darwin' in scope
551 | defer { let _ = Socket.close(server) }
552 | throw AsyncError.bindFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:555:12: error: cannot find 'Darwin' in scope
553 | }
554 |
555 | if Darwin.listen(server, SOMAXCONN) == -1 {
| `- error: cannot find 'Darwin' in scope
556 | defer { let _ = Socket.close(server) }
557 | throw AsyncError.listenFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:565:33: error: cannot find 'Darwin' in scope
563 | static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 | guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
| `- error: cannot find 'Darwin' in scope
566 | throw AsyncError.acceptFailed(Process.error)
567 | }
/host/spi-builder-workspace/Sources/Server.swift:565:55: error: 'nil' requires a contextual type
563 | static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 | guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
| `- error: 'nil' requires a contextual type
566 | throw AsyncError.acceptFailed(Process.error)
567 | }
/host/spi-builder-workspace/Sources/Server.swift:565:60: error: 'nil' requires a contextual type
563 | static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 | guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
| `- error: 'nil' requires a contextual type
566 | throw AsyncError.acceptFailed(Process.error)
567 | }
/host/spi-builder-workspace/Sources/Server.swift:577:14: error: value of type 'sockaddr_in' has no member 'sin_len'
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
| `- error: value of type 'sockaddr_in' has no member 'sin_len'
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
/host/spi-builder-workspace/Sources/Server.swift:586:12: error: cannot find 'Darwin' in scope
584 |
585 | static func setSocketNonBlocking(_ socket: Int32) throws {
586 | if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
| `- error: cannot find 'Darwin' in scope
587 | throw AsyncError.setNonBlockFailed(Process.error)
588 | }
/host/spi-builder-workspace/Sources/Server.swift:586:42: error: cannot find 'Darwin' in scope
584 |
585 | static func setSocketNonBlocking(_ socket: Int32) throws {
586 | if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
| `- error: cannot find 'Darwin' in scope
587 | throw AsyncError.setNonBlockFailed(Process.error)
588 | }
/host/spi-builder-workspace/Sources/Server.swift:593:12: error: cannot find 'Darwin' in scope
591 | static func setSocketNoSigPipe(_ socket: Int32) throws {
592 | var value = 1
593 | if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
| `- error: cannot find 'Darwin' in scope
594 | throw AsyncError.setNoSigPipeFailed(Process.error)
595 | }
/host/spi-builder-workspace/Sources/Server.swift:593:50: error: cannot find 'SO_NOSIGPIPE' in scope
591 | static func setSocketNoSigPipe(_ socket: Int32) throws {
592 | var value = 1
593 | if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
| `- error: cannot find 'SO_NOSIGPIPE' in scope
594 | throw AsyncError.setNoSigPipeFailed(Process.error)
595 | }
/host/spi-builder-workspace/Sources/Server.swift:610:32: error: cannot find 'kqueue' in scope
608 |
609 | init() throws {
610 | guard case let queue = kqueue(), queue != -1 else {
| `- error: cannot find 'kqueue' in scope
611 | throw AsyncError.async(Process.error)
612 | }
/host/spi-builder-workspace/Sources/Server.swift:618:68: error: cannot find 'EVFILT_READ' in scope
616 | func subscribe(_ ident: UInt, _ event: Subscription) {
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_READ' in scope
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 | }
/host/spi-builder-workspace/Sources/Server.swift:618:89: error: cannot find 'EV_ADD' in scope
616 | func subscribe(_ ident: UInt, _ event: Subscription) {
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ADD' in scope
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 | }
/host/spi-builder-workspace/Sources/Server.swift:618:106: error: cannot find 'EV_ENABLE' in scope
616 | func subscribe(_ ident: UInt, _ event: Subscription) {
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 | }
/host/spi-builder-workspace/Sources/Server.swift:619:68: error: cannot find 'EVFILT_WRITE' in scope
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
620 | }
621 | }
/host/spi-builder-workspace/Sources/Server.swift:619:90: error: cannot find 'EV_ADD' in scope
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ADD' in scope
620 | }
621 | }
/host/spi-builder-workspace/Sources/Server.swift:619:107: error: cannot find 'EV_ENABLE' in scope
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
620 | }
621 | }
/host/spi-builder-workspace/Sources/Server.swift:625:68: error: cannot find 'EVFILT_READ' in scope
623 | func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
| `- error: cannot find 'EVFILT_READ' in scope
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 | }
/host/spi-builder-workspace/Sources/Server.swift:625:89: error: cannot find 'EV_DELETE' in scope
623 | func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
| `- error: cannot find 'EV_DELETE' in scope
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 | }
/host/spi-builder-workspace/Sources/Server.swift:626:68: error: cannot find 'EVFILT_WRITE' in scope
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
627 | }
628 | }
/host/spi-builder-workspace/Sources/Server.swift:626:90: error: cannot find 'EV_DELETE' in scope
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
| `- error: cannot find 'EV_DELETE' in scope
627 | }
628 | }
/host/spi-builder-workspace/Sources/Server.swift:632:68: error: cannot find 'EVFILT_READ' in scope
630 | func pause(_ ident: UInt, _ event: Subscription) {
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
| `- error: cannot find 'EVFILT_READ' in scope
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 | }
/host/spi-builder-workspace/Sources/Server.swift:632:89: error: cannot find 'EV_DISABLE' in scope
630 | func pause(_ ident: UInt, _ event: Subscription) {
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
| `- error: cannot find 'EV_DISABLE' in scope
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 | }
/host/spi-builder-workspace/Sources/Server.swift:633:68: error: cannot find 'EVFILT_WRITE' in scope
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
634 | }
635 | }
/host/spi-builder-workspace/Sources/Server.swift:633:90: error: cannot find 'EV_DISABLE' in scope
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
| `- error: cannot find 'EV_DISABLE' in scope
634 | }
635 | }
/host/spi-builder-workspace/Sources/Server.swift:639:68: error: cannot find 'EVFILT_READ' in scope
637 | func resume(_ ident: UInt, _ event: Subscription) {
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_READ' in scope
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 | }
/host/spi-builder-workspace/Sources/Server.swift:639:89: error: cannot find 'EV_ENABLE' in scope
637 | func resume(_ ident: UInt, _ event: Subscription) {
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 | }
/host/spi-builder-workspace/Sources/Server.swift:640:68: error: cannot find 'EVFILT_WRITE' in scope
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
641 | }
642 | }
/host/spi-builder-workspace/Sources/Server.swift:640:90: error: cannot find 'EV_ENABLE' in scope
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
641 | }
642 | }
/host/spi-builder-workspace/Sources/Server.swift:651:16: error: cannot find 'kevent' in scope
649 |
650 | if !changes.isEmpty {
651 | if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
| `- error: cannot find 'kevent' in scope
652 | throw AsyncError.async(Process.error)
653 | }
/host/spi-builder-workspace/Sources/Server.swift:651:67: error: 'nil' requires a contextual type
649 |
650 | if !changes.isEmpty {
651 | if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
| `- error: 'nil' requires a contextual type
652 | throw AsyncError.async(Process.error)
653 | }
/host/spi-builder-workspace/Sources/Server.swift:651:75: error: 'nil' requires a contextual type
649 |
650 | if !changes.isEmpty {
651 | if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
| `- error: 'nil' requires a contextual type
652 | throw AsyncError.async(Process.error)
653 | }
/host/spi-builder-workspace/Sources/Server.swift:658:32: error: cannot find 'kevent' in scope
656 | self.changes.removeAll(keepingCapacity: true)
657 |
658 | guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
| `- error: cannot find 'kevent' in scope
659 | throw AsyncError.async(Process.error)
660 | }
/host/spi-builder-workspace/Sources/Server.swift:658:51: error: 'nil' requires a contextual type
656 | self.changes.removeAll(keepingCapacity: true)
657 |
658 | guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
| `- error: 'nil' requires a contextual type
659 | throw AsyncError.async(Process.error)
660 | }
/host/spi-builder-workspace/Sources/Server.swift:658:89: error: 'nil' requires a contextual type
656 | self.changes.removeAll(keepingCapacity: true)
657 |
658 | guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
| `- error: 'nil' requires a contextual type
659 | throw AsyncError.async(Process.error)
660 | }
[28/36] Compiling slash SlackAdapter.swift
/host/spi-builder-workspace/Sources/Server.swift:105:5: warning: static property 'lf' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | static var
105 | lf: UInt8 = 10,
| |- warning: static property 'lf' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lf' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lf' 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
106 | cr: UInt8 = 13,
107 | space: UInt8 = 32,
/host/spi-builder-workspace/Sources/Server.swift:106:5: warning: static property 'cr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
104 | static var
105 | lf: UInt8 = 10,
106 | cr: UInt8 = 13,
| |- warning: static property 'cr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cr' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cr' 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
107 | space: UInt8 = 32,
108 | colon: UInt8 = 58,
/host/spi-builder-workspace/Sources/Server.swift:107:5: warning: static property 'space' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 | lf: UInt8 = 10,
106 | cr: UInt8 = 13,
107 | space: UInt8 = 32,
| |- warning: static property 'space' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'space' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'space' 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
108 | colon: UInt8 = 58,
109 | ampersand: UInt8 = 38,
/host/spi-builder-workspace/Sources/Server.swift:108:5: warning: static property 'colon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 | cr: UInt8 = 13,
107 | space: UInt8 = 32,
108 | colon: UInt8 = 58,
| |- warning: static property 'colon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'colon' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'colon' 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
109 | ampersand: UInt8 = 38,
110 | lessThan: UInt8 = 60,
/host/spi-builder-workspace/Sources/Server.swift:109:5: warning: static property 'ampersand' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
107 | space: UInt8 = 32,
108 | colon: UInt8 = 58,
109 | ampersand: UInt8 = 38,
| |- warning: static property 'ampersand' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ampersand' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ampersand' 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
110 | lessThan: UInt8 = 60,
111 | greaterThan: UInt8 = 62,
/host/spi-builder-workspace/Sources/Server.swift:110:5: warning: static property 'lessThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | colon: UInt8 = 58,
109 | ampersand: UInt8 = 38,
110 | lessThan: UInt8 = 60,
| |- warning: static property 'lessThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lessThan' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lessThan' 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
111 | greaterThan: UInt8 = 62,
112 | slash: UInt8 = 47,
/host/spi-builder-workspace/Sources/Server.swift:111:5: warning: static property 'greaterThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | ampersand: UInt8 = 38,
110 | lessThan: UInt8 = 60,
111 | greaterThan: UInt8 = 62,
| |- warning: static property 'greaterThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'greaterThan' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'greaterThan' 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
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
/host/spi-builder-workspace/Sources/Server.swift:112:5: warning: static property 'slash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | lessThan: UInt8 = 60,
111 | greaterThan: UInt8 = 62,
112 | slash: UInt8 = 47,
| |- warning: static property 'slash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'slash' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'slash' 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
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
/host/spi-builder-workspace/Sources/Server.swift:113:5: warning: static property 'equal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
111 | greaterThan: UInt8 = 62,
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
| |- warning: static property 'equal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'equal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'equal' 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
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
/host/spi-builder-workspace/Sources/Server.swift:114:5: warning: static property 'doubleQuotes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
| |- warning: static property 'doubleQuotes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'doubleQuotes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'doubleQuotes' 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
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
/host/spi-builder-workspace/Sources/Server.swift:115:5: warning: static property 'openingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
| |- warning: static property 'openingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'openingParenthesis' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'openingParenthesis' 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
116 | closingParenthesis: UInt8 = 41,
117 | comma: UInt8 = 44
/host/spi-builder-workspace/Sources/Server.swift:116:5: warning: static property 'closingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
| |- warning: static property 'closingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'closingParenthesis' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'closingParenthesis' 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
117 | comma: UInt8 = 44
118 | }
/host/spi-builder-workspace/Sources/Server.swift:117:5: warning: static property 'comma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
117 | comma: UInt8 = 44
| |- warning: static property 'comma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'comma' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'comma' 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
118 | }
119 |
/host/spi-builder-workspace/Sources/Server.swift:189:9: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead
187 | }
188 |
189 | var hashValue: Int { return Int(self.socket) }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead
190 |
191 | func process(_ chunk: ArraySlice<UInt8>) throws {
/host/spi-builder-workspace/Sources/Server.swift:601:51: error: cannot find 'kevent' in scope
599 | class KernelQueue {
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
| `- error: cannot find 'kevent' in scope
602 | private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:601:32: error: cannot find type 'kevent' in scope
599 | class KernelQueue {
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
| `- error: cannot find type 'kevent' in scope
602 | private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:602:33: error: cannot find type 'kevent' in scope
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
602 | private var changes = Array<kevent>()
| `- error: cannot find type 'kevent' in scope
603 |
604 | private let queue: Int32
/host/spi-builder-workspace/Sources/Server.swift:644:76: error: cannot find type 'kevent' in scope
642 | }
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
| `- error: cannot find type 'kevent' in scope
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
646 | }
/host/spi-builder-workspace/Sources/Server.swift:320:31: error: cannot find 'LinuxAsyncServer' in scope
318 | init(_ port: in_port_t = 8080) throws {
319 | #if os(Linux)
320 | self.server = try LinuxAsyncServer(port)
| `- error: cannot find 'LinuxAsyncServer' in scope
321 | #else
322 | self.server = try MacOSAsyncTCPServer(port)
/host/spi-builder-workspace/Sources/Server.swift:481:25: warning: variable 'chunk' was never mutated; consider changing to 'let' constant
479 | case .write:
480 | while let backlogElement = self.backlog[Int32(signal.ident)]?.first {
481 | var chunk = backlogElement.chunk
| `- warning: variable 'chunk' was never mutated; consider changing to 'let' constant
482 | let result = Socket.write(Int32(signal.ident), chunk, min(chunk.count, signal.data))
483 | if result == -1 {
/host/spi-builder-workspace/Sources/Server.swift:533:22: error: cannot find 'Darwin' in scope
531 | static func nonBlockingSocketForListenening(_ port: in_port_t = 8080) throws -> Int32 {
532 |
533 | let server = Darwin.socket(AF_INET, SOCK_STREAM, 0)
| `- error: cannot find 'Darwin' in scope
534 |
535 | guard server != -1 else {
/host/spi-builder-workspace/Sources/Server.swift:540:12: error: cannot find 'Darwin' in scope
538 |
539 | var value: Int32 = 1
540 | if Darwin.setsockopt(server, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
| `- error: cannot find 'Darwin' in scope
541 | defer { let _ = Socket.close(server) }
542 | throw AsyncError.setReuseAddrFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:550:43: error: cannot find 'Darwin' in scope
548 | var addr = anyAddrForPort(port)
549 |
550 | if withUnsafePointer(to: &addr, { Darwin.bind(server, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size)) }) == -1 {
| `- error: cannot find 'Darwin' in scope
551 | defer { let _ = Socket.close(server) }
552 | throw AsyncError.bindFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:555:12: error: cannot find 'Darwin' in scope
553 | }
554 |
555 | if Darwin.listen(server, SOMAXCONN) == -1 {
| `- error: cannot find 'Darwin' in scope
556 | defer { let _ = Socket.close(server) }
557 | throw AsyncError.listenFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:565:33: error: cannot find 'Darwin' in scope
563 | static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 | guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
| `- error: cannot find 'Darwin' in scope
566 | throw AsyncError.acceptFailed(Process.error)
567 | }
/host/spi-builder-workspace/Sources/Server.swift:565:55: error: 'nil' requires a contextual type
563 | static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 | guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
| `- error: 'nil' requires a contextual type
566 | throw AsyncError.acceptFailed(Process.error)
567 | }
/host/spi-builder-workspace/Sources/Server.swift:565:60: error: 'nil' requires a contextual type
563 | static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 | guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
| `- error: 'nil' requires a contextual type
566 | throw AsyncError.acceptFailed(Process.error)
567 | }
/host/spi-builder-workspace/Sources/Server.swift:577:14: error: value of type 'sockaddr_in' has no member 'sin_len'
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
| `- error: value of type 'sockaddr_in' has no member 'sin_len'
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
/host/spi-builder-workspace/Sources/Server.swift:586:12: error: cannot find 'Darwin' in scope
584 |
585 | static func setSocketNonBlocking(_ socket: Int32) throws {
586 | if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
| `- error: cannot find 'Darwin' in scope
587 | throw AsyncError.setNonBlockFailed(Process.error)
588 | }
/host/spi-builder-workspace/Sources/Server.swift:586:42: error: cannot find 'Darwin' in scope
584 |
585 | static func setSocketNonBlocking(_ socket: Int32) throws {
586 | if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
| `- error: cannot find 'Darwin' in scope
587 | throw AsyncError.setNonBlockFailed(Process.error)
588 | }
/host/spi-builder-workspace/Sources/Server.swift:593:12: error: cannot find 'Darwin' in scope
591 | static func setSocketNoSigPipe(_ socket: Int32) throws {
592 | var value = 1
593 | if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
| `- error: cannot find 'Darwin' in scope
594 | throw AsyncError.setNoSigPipeFailed(Process.error)
595 | }
/host/spi-builder-workspace/Sources/Server.swift:593:50: error: cannot find 'SO_NOSIGPIPE' in scope
591 | static func setSocketNoSigPipe(_ socket: Int32) throws {
592 | var value = 1
593 | if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
| `- error: cannot find 'SO_NOSIGPIPE' in scope
594 | throw AsyncError.setNoSigPipeFailed(Process.error)
595 | }
/host/spi-builder-workspace/Sources/Server.swift:610:32: error: cannot find 'kqueue' in scope
608 |
609 | init() throws {
610 | guard case let queue = kqueue(), queue != -1 else {
| `- error: cannot find 'kqueue' in scope
611 | throw AsyncError.async(Process.error)
612 | }
/host/spi-builder-workspace/Sources/Server.swift:618:68: error: cannot find 'EVFILT_READ' in scope
616 | func subscribe(_ ident: UInt, _ event: Subscription) {
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_READ' in scope
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 | }
/host/spi-builder-workspace/Sources/Server.swift:618:89: error: cannot find 'EV_ADD' in scope
616 | func subscribe(_ ident: UInt, _ event: Subscription) {
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ADD' in scope
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 | }
/host/spi-builder-workspace/Sources/Server.swift:618:106: error: cannot find 'EV_ENABLE' in scope
616 | func subscribe(_ ident: UInt, _ event: Subscription) {
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 | }
/host/spi-builder-workspace/Sources/Server.swift:619:68: error: cannot find 'EVFILT_WRITE' in scope
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
620 | }
621 | }
/host/spi-builder-workspace/Sources/Server.swift:619:90: error: cannot find 'EV_ADD' in scope
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ADD' in scope
620 | }
621 | }
/host/spi-builder-workspace/Sources/Server.swift:619:107: error: cannot find 'EV_ENABLE' in scope
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
620 | }
621 | }
/host/spi-builder-workspace/Sources/Server.swift:625:68: error: cannot find 'EVFILT_READ' in scope
623 | func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
| `- error: cannot find 'EVFILT_READ' in scope
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 | }
/host/spi-builder-workspace/Sources/Server.swift:625:89: error: cannot find 'EV_DELETE' in scope
623 | func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
| `- error: cannot find 'EV_DELETE' in scope
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 | }
/host/spi-builder-workspace/Sources/Server.swift:626:68: error: cannot find 'EVFILT_WRITE' in scope
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
627 | }
628 | }
/host/spi-builder-workspace/Sources/Server.swift:626:90: error: cannot find 'EV_DELETE' in scope
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
| `- error: cannot find 'EV_DELETE' in scope
627 | }
628 | }
/host/spi-builder-workspace/Sources/Server.swift:632:68: error: cannot find 'EVFILT_READ' in scope
630 | func pause(_ ident: UInt, _ event: Subscription) {
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
| `- error: cannot find 'EVFILT_READ' in scope
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 | }
/host/spi-builder-workspace/Sources/Server.swift:632:89: error: cannot find 'EV_DISABLE' in scope
630 | func pause(_ ident: UInt, _ event: Subscription) {
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
| `- error: cannot find 'EV_DISABLE' in scope
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 | }
/host/spi-builder-workspace/Sources/Server.swift:633:68: error: cannot find 'EVFILT_WRITE' in scope
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
634 | }
635 | }
/host/spi-builder-workspace/Sources/Server.swift:633:90: error: cannot find 'EV_DISABLE' in scope
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
| `- error: cannot find 'EV_DISABLE' in scope
634 | }
635 | }
/host/spi-builder-workspace/Sources/Server.swift:639:68: error: cannot find 'EVFILT_READ' in scope
637 | func resume(_ ident: UInt, _ event: Subscription) {
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_READ' in scope
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 | }
/host/spi-builder-workspace/Sources/Server.swift:639:89: error: cannot find 'EV_ENABLE' in scope
637 | func resume(_ ident: UInt, _ event: Subscription) {
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 | }
/host/spi-builder-workspace/Sources/Server.swift:640:68: error: cannot find 'EVFILT_WRITE' in scope
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
641 | }
642 | }
/host/spi-builder-workspace/Sources/Server.swift:640:90: error: cannot find 'EV_ENABLE' in scope
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
641 | }
642 | }
/host/spi-builder-workspace/Sources/Server.swift:651:16: error: cannot find 'kevent' in scope
649 |
650 | if !changes.isEmpty {
651 | if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
| `- error: cannot find 'kevent' in scope
652 | throw AsyncError.async(Process.error)
653 | }
/host/spi-builder-workspace/Sources/Server.swift:651:67: error: 'nil' requires a contextual type
649 |
650 | if !changes.isEmpty {
651 | if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
| `- error: 'nil' requires a contextual type
652 | throw AsyncError.async(Process.error)
653 | }
/host/spi-builder-workspace/Sources/Server.swift:651:75: error: 'nil' requires a contextual type
649 |
650 | if !changes.isEmpty {
651 | if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
| `- error: 'nil' requires a contextual type
652 | throw AsyncError.async(Process.error)
653 | }
/host/spi-builder-workspace/Sources/Server.swift:658:32: error: cannot find 'kevent' in scope
656 | self.changes.removeAll(keepingCapacity: true)
657 |
658 | guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
| `- error: cannot find 'kevent' in scope
659 | throw AsyncError.async(Process.error)
660 | }
/host/spi-builder-workspace/Sources/Server.swift:658:51: error: 'nil' requires a contextual type
656 | self.changes.removeAll(keepingCapacity: true)
657 |
658 | guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
| `- error: 'nil' requires a contextual type
659 | throw AsyncError.async(Process.error)
660 | }
/host/spi-builder-workspace/Sources/Server.swift:658:89: error: 'nil' requires a contextual type
656 | self.changes.removeAll(keepingCapacity: true)
657 |
658 | guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
| `- error: 'nil' requires a contextual type
659 | throw AsyncError.async(Process.error)
660 | }
[29/36] Compiling slash SlackChannel.swift
/host/spi-builder-workspace/Sources/Server.swift:105:5: warning: static property 'lf' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | static var
105 | lf: UInt8 = 10,
| |- warning: static property 'lf' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lf' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lf' 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
106 | cr: UInt8 = 13,
107 | space: UInt8 = 32,
/host/spi-builder-workspace/Sources/Server.swift:106:5: warning: static property 'cr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
104 | static var
105 | lf: UInt8 = 10,
106 | cr: UInt8 = 13,
| |- warning: static property 'cr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cr' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cr' 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
107 | space: UInt8 = 32,
108 | colon: UInt8 = 58,
/host/spi-builder-workspace/Sources/Server.swift:107:5: warning: static property 'space' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 | lf: UInt8 = 10,
106 | cr: UInt8 = 13,
107 | space: UInt8 = 32,
| |- warning: static property 'space' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'space' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'space' 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
108 | colon: UInt8 = 58,
109 | ampersand: UInt8 = 38,
/host/spi-builder-workspace/Sources/Server.swift:108:5: warning: static property 'colon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 | cr: UInt8 = 13,
107 | space: UInt8 = 32,
108 | colon: UInt8 = 58,
| |- warning: static property 'colon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'colon' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'colon' 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
109 | ampersand: UInt8 = 38,
110 | lessThan: UInt8 = 60,
/host/spi-builder-workspace/Sources/Server.swift:109:5: warning: static property 'ampersand' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
107 | space: UInt8 = 32,
108 | colon: UInt8 = 58,
109 | ampersand: UInt8 = 38,
| |- warning: static property 'ampersand' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ampersand' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ampersand' 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
110 | lessThan: UInt8 = 60,
111 | greaterThan: UInt8 = 62,
/host/spi-builder-workspace/Sources/Server.swift:110:5: warning: static property 'lessThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | colon: UInt8 = 58,
109 | ampersand: UInt8 = 38,
110 | lessThan: UInt8 = 60,
| |- warning: static property 'lessThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lessThan' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lessThan' 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
111 | greaterThan: UInt8 = 62,
112 | slash: UInt8 = 47,
/host/spi-builder-workspace/Sources/Server.swift:111:5: warning: static property 'greaterThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | ampersand: UInt8 = 38,
110 | lessThan: UInt8 = 60,
111 | greaterThan: UInt8 = 62,
| |- warning: static property 'greaterThan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'greaterThan' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'greaterThan' 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
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
/host/spi-builder-workspace/Sources/Server.swift:112:5: warning: static property 'slash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | lessThan: UInt8 = 60,
111 | greaterThan: UInt8 = 62,
112 | slash: UInt8 = 47,
| |- warning: static property 'slash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'slash' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'slash' 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
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
/host/spi-builder-workspace/Sources/Server.swift:113:5: warning: static property 'equal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
111 | greaterThan: UInt8 = 62,
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
| |- warning: static property 'equal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'equal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'equal' 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
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
/host/spi-builder-workspace/Sources/Server.swift:114:5: warning: static property 'doubleQuotes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
112 | slash: UInt8 = 47,
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
| |- warning: static property 'doubleQuotes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'doubleQuotes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'doubleQuotes' 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
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
/host/spi-builder-workspace/Sources/Server.swift:115:5: warning: static property 'openingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 | equal: UInt8 = 61,
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
| |- warning: static property 'openingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'openingParenthesis' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'openingParenthesis' 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
116 | closingParenthesis: UInt8 = 41,
117 | comma: UInt8 = 44
/host/spi-builder-workspace/Sources/Server.swift:116:5: warning: static property 'closingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | doubleQuotes: UInt8 = 34,
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
| |- warning: static property 'closingParenthesis' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'closingParenthesis' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'closingParenthesis' 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
117 | comma: UInt8 = 44
118 | }
/host/spi-builder-workspace/Sources/Server.swift:117:5: warning: static property 'comma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
115 | openingParenthesis: UInt8 = 40,
116 | closingParenthesis: UInt8 = 41,
117 | comma: UInt8 = 44
| |- warning: static property 'comma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'comma' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'comma' 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
118 | }
119 |
/host/spi-builder-workspace/Sources/Server.swift:189:9: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead
187 | }
188 |
189 | var hashValue: Int { return Int(self.socket) }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead
190 |
191 | func process(_ chunk: ArraySlice<UInt8>) throws {
/host/spi-builder-workspace/Sources/Server.swift:601:51: error: cannot find 'kevent' in scope
599 | class KernelQueue {
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
| `- error: cannot find 'kevent' in scope
602 | private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:601:32: error: cannot find type 'kevent' in scope
599 | class KernelQueue {
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
| `- error: cannot find type 'kevent' in scope
602 | private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:602:33: error: cannot find type 'kevent' in scope
600 |
601 | private var events = Array<kevent>(repeating: kevent(), count: 256)
602 | private var changes = Array<kevent>()
| `- error: cannot find type 'kevent' in scope
603 |
604 | private let queue: Int32
/host/spi-builder-workspace/Sources/Server.swift:644:76: error: cannot find type 'kevent' in scope
642 | }
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
| `- error: cannot find type 'kevent' in scope
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
646 | }
/host/spi-builder-workspace/Sources/Server.swift:320:31: error: cannot find 'LinuxAsyncServer' in scope
318 | init(_ port: in_port_t = 8080) throws {
319 | #if os(Linux)
320 | self.server = try LinuxAsyncServer(port)
| `- error: cannot find 'LinuxAsyncServer' in scope
321 | #else
322 | self.server = try MacOSAsyncTCPServer(port)
/host/spi-builder-workspace/Sources/Server.swift:481:25: warning: variable 'chunk' was never mutated; consider changing to 'let' constant
479 | case .write:
480 | while let backlogElement = self.backlog[Int32(signal.ident)]?.first {
481 | var chunk = backlogElement.chunk
| `- warning: variable 'chunk' was never mutated; consider changing to 'let' constant
482 | let result = Socket.write(Int32(signal.ident), chunk, min(chunk.count, signal.data))
483 | if result == -1 {
/host/spi-builder-workspace/Sources/Server.swift:533:22: error: cannot find 'Darwin' in scope
531 | static func nonBlockingSocketForListenening(_ port: in_port_t = 8080) throws -> Int32 {
532 |
533 | let server = Darwin.socket(AF_INET, SOCK_STREAM, 0)
| `- error: cannot find 'Darwin' in scope
534 |
535 | guard server != -1 else {
/host/spi-builder-workspace/Sources/Server.swift:540:12: error: cannot find 'Darwin' in scope
538 |
539 | var value: Int32 = 1
540 | if Darwin.setsockopt(server, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
| `- error: cannot find 'Darwin' in scope
541 | defer { let _ = Socket.close(server) }
542 | throw AsyncError.setReuseAddrFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:550:43: error: cannot find 'Darwin' in scope
548 | var addr = anyAddrForPort(port)
549 |
550 | if withUnsafePointer(to: &addr, { Darwin.bind(server, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size)) }) == -1 {
| `- error: cannot find 'Darwin' in scope
551 | defer { let _ = Socket.close(server) }
552 | throw AsyncError.bindFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:555:12: error: cannot find 'Darwin' in scope
553 | }
554 |
555 | if Darwin.listen(server, SOMAXCONN) == -1 {
| `- error: cannot find 'Darwin' in scope
556 | defer { let _ = Socket.close(server) }
557 | throw AsyncError.listenFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:565:33: error: cannot find 'Darwin' in scope
563 | static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 | guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
| `- error: cannot find 'Darwin' in scope
566 | throw AsyncError.acceptFailed(Process.error)
567 | }
/host/spi-builder-workspace/Sources/Server.swift:565:55: error: 'nil' requires a contextual type
563 | static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 | guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
| `- error: 'nil' requires a contextual type
566 | throw AsyncError.acceptFailed(Process.error)
567 | }
/host/spi-builder-workspace/Sources/Server.swift:565:60: error: 'nil' requires a contextual type
563 | static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 | guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
| `- error: 'nil' requires a contextual type
566 | throw AsyncError.acceptFailed(Process.error)
567 | }
/host/spi-builder-workspace/Sources/Server.swift:577:14: error: value of type 'sockaddr_in' has no member 'sin_len'
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
| `- error: value of type 'sockaddr_in' has no member 'sin_len'
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
/host/spi-builder-workspace/Sources/Server.swift:586:12: error: cannot find 'Darwin' in scope
584 |
585 | static func setSocketNonBlocking(_ socket: Int32) throws {
586 | if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
| `- error: cannot find 'Darwin' in scope
587 | throw AsyncError.setNonBlockFailed(Process.error)
588 | }
/host/spi-builder-workspace/Sources/Server.swift:586:42: error: cannot find 'Darwin' in scope
584 |
585 | static func setSocketNonBlocking(_ socket: Int32) throws {
586 | if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
| `- error: cannot find 'Darwin' in scope
587 | throw AsyncError.setNonBlockFailed(Process.error)
588 | }
/host/spi-builder-workspace/Sources/Server.swift:593:12: error: cannot find 'Darwin' in scope
591 | static func setSocketNoSigPipe(_ socket: Int32) throws {
592 | var value = 1
593 | if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
| `- error: cannot find 'Darwin' in scope
594 | throw AsyncError.setNoSigPipeFailed(Process.error)
595 | }
/host/spi-builder-workspace/Sources/Server.swift:593:50: error: cannot find 'SO_NOSIGPIPE' in scope
591 | static func setSocketNoSigPipe(_ socket: Int32) throws {
592 | var value = 1
593 | if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
| `- error: cannot find 'SO_NOSIGPIPE' in scope
594 | throw AsyncError.setNoSigPipeFailed(Process.error)
595 | }
/host/spi-builder-workspace/Sources/Server.swift:610:32: error: cannot find 'kqueue' in scope
608 |
609 | init() throws {
610 | guard case let queue = kqueue(), queue != -1 else {
| `- error: cannot find 'kqueue' in scope
611 | throw AsyncError.async(Process.error)
612 | }
/host/spi-builder-workspace/Sources/Server.swift:618:68: error: cannot find 'EVFILT_READ' in scope
616 | func subscribe(_ ident: UInt, _ event: Subscription) {
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_READ' in scope
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 | }
/host/spi-builder-workspace/Sources/Server.swift:618:89: error: cannot find 'EV_ADD' in scope
616 | func subscribe(_ ident: UInt, _ event: Subscription) {
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ADD' in scope
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 | }
/host/spi-builder-workspace/Sources/Server.swift:618:106: error: cannot find 'EV_ENABLE' in scope
616 | func subscribe(_ ident: UInt, _ event: Subscription) {
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 | }
/host/spi-builder-workspace/Sources/Server.swift:619:68: error: cannot find 'EVFILT_WRITE' in scope
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
620 | }
621 | }
/host/spi-builder-workspace/Sources/Server.swift:619:90: error: cannot find 'EV_ADD' in scope
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ADD' in scope
620 | }
621 | }
/host/spi-builder-workspace/Sources/Server.swift:619:107: error: cannot find 'EV_ENABLE' in scope
617 | switch event {
618 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
620 | }
621 | }
/host/spi-builder-workspace/Sources/Server.swift:625:68: error: cannot find 'EVFILT_READ' in scope
623 | func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
| `- error: cannot find 'EVFILT_READ' in scope
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 | }
/host/spi-builder-workspace/Sources/Server.swift:625:89: error: cannot find 'EV_DELETE' in scope
623 | func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
| `- error: cannot find 'EV_DELETE' in scope
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 | }
/host/spi-builder-workspace/Sources/Server.swift:626:68: error: cannot find 'EVFILT_WRITE' in scope
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
627 | }
628 | }
/host/spi-builder-workspace/Sources/Server.swift:626:90: error: cannot find 'EV_DELETE' in scope
624 | switch event {
625 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
| `- error: cannot find 'EV_DELETE' in scope
627 | }
628 | }
/host/spi-builder-workspace/Sources/Server.swift:632:68: error: cannot find 'EVFILT_READ' in scope
630 | func pause(_ ident: UInt, _ event: Subscription) {
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
| `- error: cannot find 'EVFILT_READ' in scope
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 | }
/host/spi-builder-workspace/Sources/Server.swift:632:89: error: cannot find 'EV_DISABLE' in scope
630 | func pause(_ ident: UInt, _ event: Subscription) {
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
| `- error: cannot find 'EV_DISABLE' in scope
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 | }
/host/spi-builder-workspace/Sources/Server.swift:633:68: error: cannot find 'EVFILT_WRITE' in scope
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
634 | }
635 | }
/host/spi-builder-workspace/Sources/Server.swift:633:90: error: cannot find 'EV_DISABLE' in scope
631 | switch event {
632 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
| `- error: cannot find 'EV_DISABLE' in scope
634 | }
635 | }
/host/spi-builder-workspace/Sources/Server.swift:639:68: error: cannot find 'EVFILT_READ' in scope
637 | func resume(_ ident: UInt, _ event: Subscription) {
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_READ' in scope
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 | }
/host/spi-builder-workspace/Sources/Server.swift:639:89: error: cannot find 'EV_ENABLE' in scope
637 | func resume(_ ident: UInt, _ event: Subscription) {
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 | }
/host/spi-builder-workspace/Sources/Server.swift:640:68: error: cannot find 'EVFILT_WRITE' in scope
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
| `- error: cannot find 'EVFILT_WRITE' in scope
641 | }
642 | }
/host/spi-builder-workspace/Sources/Server.swift:640:90: error: cannot find 'EV_ENABLE' in scope
638 | switch event {
639 | case .read : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 | case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
| `- error: cannot find 'EV_ENABLE' in scope
641 | }
642 | }
/host/spi-builder-workspace/Sources/Server.swift:651:16: error: cannot find 'kevent' in scope
649 |
650 | if !changes.isEmpty {
651 | if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
| `- error: cannot find 'kevent' in scope
652 | throw AsyncError.async(Process.error)
653 | }
/host/spi-builder-workspace/Sources/Server.swift:651:67: error: 'nil' requires a contextual type
649 |
650 | if !changes.isEmpty {
651 | if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
| `- error: 'nil' requires a contextual type
652 | throw AsyncError.async(Process.error)
653 | }
/host/spi-builder-workspace/Sources/Server.swift:651:75: error: 'nil' requires a contextual type
649 |
650 | if !changes.isEmpty {
651 | if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
| `- error: 'nil' requires a contextual type
652 | throw AsyncError.async(Process.error)
653 | }
/host/spi-builder-workspace/Sources/Server.swift:658:32: error: cannot find 'kevent' in scope
656 | self.changes.removeAll(keepingCapacity: true)
657 |
658 | guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
| `- error: cannot find 'kevent' in scope
659 | throw AsyncError.async(Process.error)
660 | }
/host/spi-builder-workspace/Sources/Server.swift:658:51: error: 'nil' requires a contextual type
656 | self.changes.removeAll(keepingCapacity: true)
657 |
658 | guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
| `- error: 'nil' requires a contextual type
659 | throw AsyncError.async(Process.error)
660 | }
/host/spi-builder-workspace/Sources/Server.swift:658:89: error: 'nil' requires a contextual type
656 | self.changes.removeAll(keepingCapacity: true)
657 |
658 | guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
| `- error: 'nil' requires a contextual type
659 | throw AsyncError.async(Process.error)
660 | }
[30/36] Compiling slash SlackContext.swift
/host/spi-builder-workspace/Sources/SlackEmojiDecoder.swift:13:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
11 | func decode(_ text: String) -> String {
12 | //TODO - improve this by iterating only once over the text.
13 | return text
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
14 | .replacingOccurrences(of: ":skin-tone-1:", with: "🏻")
15 | .replacingOccurrences(of: ":skin-tone-2:", with: "🏻")
[31/36] Compiling slash SlackEmojiDecoder.swift
/host/spi-builder-workspace/Sources/SlackEmojiDecoder.swift:13:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
11 | func decode(_ text: String) -> String {
12 | //TODO - improve this by iterating only once over the text.
13 | return text
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
14 | .replacingOccurrences(of: ":skin-tone-1:", with: "🏻")
15 | .replacingOccurrences(of: ":skin-tone-2:", with: "🏻")
[32/36] Compiling slash SlackEvent.swift
/host/spi-builder-workspace/Sources/SlackEmojiDecoder.swift:13:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
11 | func decode(_ text: String) -> String {
12 | //TODO - improve this by iterating only once over the text.
13 | return text
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
14 | .replacingOccurrences(of: ":skin-tone-1:", with: "🏻")
15 | .replacingOccurrences(of: ":skin-tone-2:", with: "🏻")
[33/36] Compiling slash SlackGroup.swift
/host/spi-builder-workspace/Sources/SlackEmojiDecoder.swift:13:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
11 | func decode(_ text: String) -> String {
12 | //TODO - improve this by iterating only once over the text.
13 | return text
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
14 | .replacingOccurrences(of: ":skin-tone-1:", with: "🏻")
15 | .replacingOccurrences(of: ":skin-tone-2:", with: "🏻")
BUILD FAILURE 6.0 linux