Build Information
Failed to build Acheron, reference master (5c1b67
), with Swift 6.1 for Linux on 9 Sep 2025 17:37:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
60 | self.serial.async {
61 | if let result {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:61:32: warning: capture of 'result' with non-sendable type 'U?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'U' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
59 | let result: U? = self.worker(key)
60 | self.serial.async {
61 | if let result {
| `- warning: capture of 'result' with non-sendable type 'U?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
63 | self.cache[key] = result
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:62:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
60 | self.serial.async {
61 | if let result {
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | self.cache[key] = result
64 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:62:84: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
60 | self.serial.async {
61 | if let result {
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | self.cache[key] = result
64 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:72:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
70 | }
71 | group.notify(queue: self.serial) {
72 | keys.forEach { self.complete?($0) }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
73 | self.startWorking()
74 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:72:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
70 | }
71 | group.notify(queue: self.serial) {
72 | keys.forEach { self.complete?($0) }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
73 | self.startWorking()
74 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:80:39: warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
78 | guard keys.count > 0 else { return }
79 | serial.async {
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:80:57: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
78 | guard keys.count > 0 else { return }
79 | serial.async {
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:82:53: warning: implicit capture of 'self' requires that 'AsyncMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
| `- warning: implicit capture of 'self' requires that 'AsyncMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
83 | self.requestedKeys.formUnion(newKeys)
84 | if restart {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:99:16: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
97 | func scheduleWipe() {
98 | serial.async {
99 | if self.working { self.needsWipe = true }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
100 | else { self.wipe() }
101 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:12:24: warning: static property 'url' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | class Log {
12 | private static var url: URL? = nil
| |- warning: static property 'url' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'url' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'url' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | static func setPath(_ path: String) {
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:17:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
15 | url = URL(fileURLWithPath: path)
16 | if !FileManager.default.fileExists(atPath: url!.path) {
17 | FileManager.default.createFile(atPath: url!.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | }
19 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:40:36: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
38 | print("\n =======================\n")
39 |
40 | DispatchQueue.main.async { self.onCompleted() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
41 | }
42 |
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:60:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
58 | public func pebble(name: String, _ payload: @escaping () async -> Bool) -> Pebble {
59 | pebble(name: name) { (complete: @escaping (Bool)->()) in
60 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | let result: Bool = await payload()
| `- note: closure captures 'payload' which is accessible to code in the current task
62 | complete(result)
63 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:67:50: warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
65 | }
66 | public func addCompletionTask(_ task: @escaping ()->()) {
67 | if completed { DispatchQueue.main.sync { task() } }
| |- warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'task' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
68 | else { tasks.append(task) }
69 | }
[31/64] Compiling Acheron AsyncMap.swift
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:75:13: warning: capture of 'self' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Pond {
| `- note: class 'Pond' does not conform to the 'Sendable' protocol
12 | private var pebbles: [Pebble] = []
13 | let queue: DispatchQueue = DispatchQueue(label: "pond")
:
73 | reset()
74 | queue.async {
75 | self.onComplete = onComplete
| `- warning: capture of 'self' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
76 | print("\n[ Pond Starting ] ====================================")
77 | self.iterate()
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:75:31: warning: capture of 'onComplete' with non-sendable type '() -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
73 | reset()
74 | queue.async {
75 | self.onComplete = onComplete
| |- warning: capture of 'onComplete' with non-sendable type '() -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
76 | print("\n[ Pond Starting ] ====================================")
77 | self.iterate()
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:43:13: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
41 | private func startWorking() {
42 | serial.async {
43 | self.working = true
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
44 | let keys: [T] = Array(self.requestedKeys)
45 | guard keys.count > 0 else {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:56:20: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
54 | let group: DispatchGroup = DispatchGroup()
55 | keys.forEach { (key: T) in
56 | if self.report { print("[ \(self.label) ] request [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
57 | group.enter()
58 | self.concurrent.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:59:38: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
57 | group.enter()
58 | self.concurrent.async {
59 | let result: U? = self.worker(key)
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
60 | self.serial.async {
61 | if let result {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:59:50: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
57 | group.enter()
58 | self.concurrent.async {
59 | let result: U? = self.worker(key)
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
60 | self.serial.async {
61 | if let result {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:61:32: warning: capture of 'result' with non-sendable type 'U?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'U' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
59 | let result: U? = self.worker(key)
60 | self.serial.async {
61 | if let result {
| `- warning: capture of 'result' with non-sendable type 'U?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
63 | self.cache[key] = result
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:62:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
60 | self.serial.async {
61 | if let result {
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | self.cache[key] = result
64 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:62:84: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
60 | self.serial.async {
61 | if let result {
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | self.cache[key] = result
64 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:72:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
70 | }
71 | group.notify(queue: self.serial) {
72 | keys.forEach { self.complete?($0) }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
73 | self.startWorking()
74 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:72:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
70 | }
71 | group.notify(queue: self.serial) {
72 | keys.forEach { self.complete?($0) }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
73 | self.startWorking()
74 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:80:39: warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
78 | guard keys.count > 0 else { return }
79 | serial.async {
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:80:57: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
78 | guard keys.count > 0 else { return }
79 | serial.async {
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:82:53: warning: implicit capture of 'self' requires that 'AsyncMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
| `- warning: implicit capture of 'self' requires that 'AsyncMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
83 | self.requestedKeys.formUnion(newKeys)
84 | if restart {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:99:16: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
97 | func scheduleWipe() {
98 | serial.async {
99 | if self.working { self.needsWipe = true }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
100 | else { self.wipe() }
101 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:12:24: warning: static property 'url' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | class Log {
12 | private static var url: URL? = nil
| |- warning: static property 'url' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'url' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'url' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | static func setPath(_ path: String) {
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:17:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
15 | url = URL(fileURLWithPath: path)
16 | if !FileManager.default.fileExists(atPath: url!.path) {
17 | FileManager.default.createFile(atPath: url!.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | }
19 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:40:36: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
38 | print("\n =======================\n")
39 |
40 | DispatchQueue.main.async { self.onCompleted() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
41 | }
42 |
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:60:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
58 | public func pebble(name: String, _ payload: @escaping () async -> Bool) -> Pebble {
59 | pebble(name: name) { (complete: @escaping (Bool)->()) in
60 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | let result: Bool = await payload()
| `- note: closure captures 'payload' which is accessible to code in the current task
62 | complete(result)
63 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:67:50: warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
65 | }
66 | public func addCompletionTask(_ task: @escaping ()->()) {
67 | if completed { DispatchQueue.main.sync { task() } }
| |- warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'task' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
68 | else { tasks.append(task) }
69 | }
[32/64] Compiling Acheron CSV.swift
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:75:13: warning: capture of 'self' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Pond {
| `- note: class 'Pond' does not conform to the 'Sendable' protocol
12 | private var pebbles: [Pebble] = []
13 | let queue: DispatchQueue = DispatchQueue(label: "pond")
:
73 | reset()
74 | queue.async {
75 | self.onComplete = onComplete
| `- warning: capture of 'self' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
76 | print("\n[ Pond Starting ] ====================================")
77 | self.iterate()
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:75:31: warning: capture of 'onComplete' with non-sendable type '() -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
73 | reset()
74 | queue.async {
75 | self.onComplete = onComplete
| |- warning: capture of 'onComplete' with non-sendable type '() -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
76 | print("\n[ Pond Starting ] ====================================")
77 | self.iterate()
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:43:13: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
41 | private func startWorking() {
42 | serial.async {
43 | self.working = true
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
44 | let keys: [T] = Array(self.requestedKeys)
45 | guard keys.count > 0 else {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:56:20: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
54 | let group: DispatchGroup = DispatchGroup()
55 | keys.forEach { (key: T) in
56 | if self.report { print("[ \(self.label) ] request [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
57 | group.enter()
58 | self.concurrent.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:59:38: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
57 | group.enter()
58 | self.concurrent.async {
59 | let result: U? = self.worker(key)
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
60 | self.serial.async {
61 | if let result {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:59:50: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
57 | group.enter()
58 | self.concurrent.async {
59 | let result: U? = self.worker(key)
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
60 | self.serial.async {
61 | if let result {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:61:32: warning: capture of 'result' with non-sendable type 'U?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'U' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
59 | let result: U? = self.worker(key)
60 | self.serial.async {
61 | if let result {
| `- warning: capture of 'result' with non-sendable type 'U?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
63 | self.cache[key] = result
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:62:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
60 | self.serial.async {
61 | if let result {
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | self.cache[key] = result
64 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:62:84: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
60 | self.serial.async {
61 | if let result {
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | self.cache[key] = result
64 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:72:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
70 | }
71 | group.notify(queue: self.serial) {
72 | keys.forEach { self.complete?($0) }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
73 | self.startWorking()
74 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:72:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
70 | }
71 | group.notify(queue: self.serial) {
72 | keys.forEach { self.complete?($0) }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
73 | self.startWorking()
74 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:80:39: warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
78 | guard keys.count > 0 else { return }
79 | serial.async {
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:80:57: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
78 | guard keys.count > 0 else { return }
79 | serial.async {
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:82:53: warning: implicit capture of 'self' requires that 'AsyncMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
| `- warning: implicit capture of 'self' requires that 'AsyncMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
83 | self.requestedKeys.formUnion(newKeys)
84 | if restart {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:99:16: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
97 | func scheduleWipe() {
98 | serial.async {
99 | if self.working { self.needsWipe = true }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
100 | else { self.wipe() }
101 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:12:24: warning: static property 'url' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | class Log {
12 | private static var url: URL? = nil
| |- warning: static property 'url' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'url' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'url' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | static func setPath(_ path: String) {
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:17:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
15 | url = URL(fileURLWithPath: path)
16 | if !FileManager.default.fileExists(atPath: url!.path) {
17 | FileManager.default.createFile(atPath: url!.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | }
19 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:40:36: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
38 | print("\n =======================\n")
39 |
40 | DispatchQueue.main.async { self.onCompleted() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
41 | }
42 |
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:60:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
58 | public func pebble(name: String, _ payload: @escaping () async -> Bool) -> Pebble {
59 | pebble(name: name) { (complete: @escaping (Bool)->()) in
60 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | let result: Bool = await payload()
| `- note: closure captures 'payload' which is accessible to code in the current task
62 | complete(result)
63 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:67:50: warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
65 | }
66 | public func addCompletionTask(_ task: @escaping ()->()) {
67 | if completed { DispatchQueue.main.sync { task() } }
| |- warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'task' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
68 | else { tasks.append(task) }
69 | }
[33/64] Compiling Acheron Log.swift
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:75:13: warning: capture of 'self' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Pond {
| `- note: class 'Pond' does not conform to the 'Sendable' protocol
12 | private var pebbles: [Pebble] = []
13 | let queue: DispatchQueue = DispatchQueue(label: "pond")
:
73 | reset()
74 | queue.async {
75 | self.onComplete = onComplete
| `- warning: capture of 'self' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
76 | print("\n[ Pond Starting ] ====================================")
77 | self.iterate()
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:75:31: warning: capture of 'onComplete' with non-sendable type '() -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
73 | reset()
74 | queue.async {
75 | self.onComplete = onComplete
| |- warning: capture of 'onComplete' with non-sendable type '() -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
76 | print("\n[ Pond Starting ] ====================================")
77 | self.iterate()
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:43:13: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
41 | private func startWorking() {
42 | serial.async {
43 | self.working = true
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
44 | let keys: [T] = Array(self.requestedKeys)
45 | guard keys.count > 0 else {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:56:20: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
54 | let group: DispatchGroup = DispatchGroup()
55 | keys.forEach { (key: T) in
56 | if self.report { print("[ \(self.label) ] request [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
57 | group.enter()
58 | self.concurrent.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:59:38: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
57 | group.enter()
58 | self.concurrent.async {
59 | let result: U? = self.worker(key)
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
60 | self.serial.async {
61 | if let result {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:59:50: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
57 | group.enter()
58 | self.concurrent.async {
59 | let result: U? = self.worker(key)
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
60 | self.serial.async {
61 | if let result {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:61:32: warning: capture of 'result' with non-sendable type 'U?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'U' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
59 | let result: U? = self.worker(key)
60 | self.serial.async {
61 | if let result {
| `- warning: capture of 'result' with non-sendable type 'U?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
63 | self.cache[key] = result
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:62:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
60 | self.serial.async {
61 | if let result {
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | self.cache[key] = result
64 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:62:84: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
60 | self.serial.async {
61 | if let result {
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | self.cache[key] = result
64 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:72:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
70 | }
71 | group.notify(queue: self.serial) {
72 | keys.forEach { self.complete?($0) }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
73 | self.startWorking()
74 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:72:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
70 | }
71 | group.notify(queue: self.serial) {
72 | keys.forEach { self.complete?($0) }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
73 | self.startWorking()
74 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:80:39: warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
78 | guard keys.count > 0 else { return }
79 | serial.async {
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:80:57: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
78 | guard keys.count > 0 else { return }
79 | serial.async {
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:82:53: warning: implicit capture of 'self' requires that 'AsyncMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
| `- warning: implicit capture of 'self' requires that 'AsyncMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
83 | self.requestedKeys.formUnion(newKeys)
84 | if restart {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:99:16: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
97 | func scheduleWipe() {
98 | serial.async {
99 | if self.working { self.needsWipe = true }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
100 | else { self.wipe() }
101 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:12:24: warning: static property 'url' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | class Log {
12 | private static var url: URL? = nil
| |- warning: static property 'url' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'url' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'url' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | static func setPath(_ path: String) {
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:17:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
15 | url = URL(fileURLWithPath: path)
16 | if !FileManager.default.fileExists(atPath: url!.path) {
17 | FileManager.default.createFile(atPath: url!.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | }
19 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:40:36: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
38 | print("\n =======================\n")
39 |
40 | DispatchQueue.main.async { self.onCompleted() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
41 | }
42 |
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:60:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
58 | public func pebble(name: String, _ payload: @escaping () async -> Bool) -> Pebble {
59 | pebble(name: name) { (complete: @escaping (Bool)->()) in
60 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | let result: Bool = await payload()
| `- note: closure captures 'payload' which is accessible to code in the current task
62 | complete(result)
63 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:67:50: warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
65 | }
66 | public func addCompletionTask(_ task: @escaping ()->()) {
67 | if completed { DispatchQueue.main.sync { task() } }
| |- warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'task' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
68 | else { tasks.append(task) }
69 | }
[34/64] Compiling Acheron Pen.swift
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:75:13: warning: capture of 'self' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Pond {
| `- note: class 'Pond' does not conform to the 'Sendable' protocol
12 | private var pebbles: [Pebble] = []
13 | let queue: DispatchQueue = DispatchQueue(label: "pond")
:
73 | reset()
74 | queue.async {
75 | self.onComplete = onComplete
| `- warning: capture of 'self' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
76 | print("\n[ Pond Starting ] ====================================")
77 | self.iterate()
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:75:31: warning: capture of 'onComplete' with non-sendable type '() -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
73 | reset()
74 | queue.async {
75 | self.onComplete = onComplete
| |- warning: capture of 'onComplete' with non-sendable type '() -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
76 | print("\n[ Pond Starting ] ====================================")
77 | self.iterate()
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:43:13: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
41 | private func startWorking() {
42 | serial.async {
43 | self.working = true
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
44 | let keys: [T] = Array(self.requestedKeys)
45 | guard keys.count > 0 else {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:56:20: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
54 | let group: DispatchGroup = DispatchGroup()
55 | keys.forEach { (key: T) in
56 | if self.report { print("[ \(self.label) ] request [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
57 | group.enter()
58 | self.concurrent.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:59:38: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
57 | group.enter()
58 | self.concurrent.async {
59 | let result: U? = self.worker(key)
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
60 | self.serial.async {
61 | if let result {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:59:50: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
57 | group.enter()
58 | self.concurrent.async {
59 | let result: U? = self.worker(key)
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
60 | self.serial.async {
61 | if let result {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:61:32: warning: capture of 'result' with non-sendable type 'U?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'U' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
59 | let result: U? = self.worker(key)
60 | self.serial.async {
61 | if let result {
| `- warning: capture of 'result' with non-sendable type 'U?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
63 | self.cache[key] = result
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:62:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
60 | self.serial.async {
61 | if let result {
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | self.cache[key] = result
64 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:62:84: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
60 | self.serial.async {
61 | if let result {
62 | if self.report { print("[ \(self.label) ] complete [ \(key) ]") }
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | self.cache[key] = result
64 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:72:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
70 | }
71 | group.notify(queue: self.serial) {
72 | keys.forEach { self.complete?($0) }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
73 | self.startWorking()
74 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:72:32: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
70 | }
71 | group.notify(queue: self.serial) {
72 | keys.forEach { self.complete?($0) }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
73 | self.startWorking()
74 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:80:39: warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
78 | guard keys.count > 0 else { return }
79 | serial.async {
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:80:57: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
78 | guard keys.count > 0 else { return }
79 | serial.async {
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:82:53: warning: implicit capture of 'self' requires that 'AsyncMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
80 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
81 | guard newKeys.count > 0 else { return }
82 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
| `- warning: implicit capture of 'self' requires that 'AsyncMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
83 | self.requestedKeys.formUnion(newKeys)
84 | if restart {
/host/spi-builder-workspace/Sources/Acheron/Utility/AsyncMap.swift:99:16: warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class AsyncMap<T:Hashable, U> {
| `- note: generic class 'AsyncMap' does not conform to the 'Sendable' protocol
12 | let label: String
13 | let report: Bool
:
97 | func scheduleWipe() {
98 | serial.async {
99 | if self.working { self.needsWipe = true }
| `- warning: capture of 'self' with non-sendable type 'AsyncMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
100 | else { self.wipe() }
101 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:12:24: warning: static property 'url' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | class Log {
12 | private static var url: URL? = nil
| |- warning: static property 'url' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'url' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'url' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | static func setPath(_ path: String) {
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:17:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
15 | url = URL(fileURLWithPath: path)
16 | if !FileManager.default.fileExists(atPath: url!.path) {
17 | FileManager.default.createFile(atPath: url!.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | }
19 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:40:36: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
38 | print("\n =======================\n")
39 |
40 | DispatchQueue.main.async { self.onCompleted() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
41 | }
42 |
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:60:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
58 | public func pebble(name: String, _ payload: @escaping () async -> Bool) -> Pebble {
59 | pebble(name: name) { (complete: @escaping (Bool)->()) in
60 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | let result: Bool = await payload()
| `- note: closure captures 'payload' which is accessible to code in the current task
62 | complete(result)
63 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:67:50: warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
65 | }
66 | public func addCompletionTask(_ task: @escaping ()->()) {
67 | if completed { DispatchQueue.main.sync { task() } }
| |- warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'task' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
68 | else { tasks.append(task) }
69 | }
[35/64] Compiling Acheron NodeData.swift
[36/64] Compiling Acheron NodeHeader.swift
[37/64] Compiling Acheron NodeView.swift
[38/64] Compiling Acheron Screen.swift
[39/64] Compiling Acheron SplitterView.swift
[40/64] Compiling Acheron TripWire.swift
[41/64] Compiling Acheron Anchor.swift
[42/64] Compiling Acheron Basket.swift
[43/64] Compiling Acheron UIImageView+Acheron.swift
[44/64] Compiling Acheron UILabel+Acheron.swift
[45/64] Compiling Acheron UIView+Acheron.swift
[46/64] Compiling Acheron UIViewController+Acheron.swift
[47/64] Compiling Acheron AEControl.swift
[48/64] Compiling Acheron AETableView.swift
[49/64] Compiling Acheron AEView.swift
[50/64] Compiling Acheron AEViewController.swift
[51/64] Compiling Acheron Domain.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:40:21: warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class Pebble {
| `- note: class 'Pebble' does not conform to the 'Sendable' protocol
12 | public enum State {
13 | case pending, running, succeeded, failed
:
38 | self.payload { (success: Bool) in
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
| `- warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
41 | pond.iterate()
42 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:41:21: warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
41 | pond.iterate()
| `- warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:11:12: note: class 'Pond' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class Pond {
| `- note: class 'Pond' does not conform to the 'Sendable' protocol
12 | private var pebbles: [Pebble] = []
13 | let queue: DispatchQueue = DispatchQueue(label: "pond")
[52/64] Compiling Acheron Loom.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:40:21: warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class Pebble {
| `- note: class 'Pebble' does not conform to the 'Sendable' protocol
12 | public enum State {
13 | case pending, running, succeeded, failed
:
38 | self.payload { (success: Bool) in
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
| `- warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
41 | pond.iterate()
42 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:41:21: warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
41 | pond.iterate()
| `- warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:11:12: note: class 'Pond' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class Pond {
| `- note: class 'Pond' does not conform to the 'Sendable' protocol
12 | private var pebbles: [Pebble] = []
13 | let queue: DispatchQueue = DispatchQueue(label: "pond")
[53/64] Compiling Acheron Persist.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:40:21: warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class Pebble {
| `- note: class 'Pebble' does not conform to the 'Sendable' protocol
12 | public enum State {
13 | case pending, running, succeeded, failed
:
38 | self.payload { (success: Bool) in
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
| `- warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
41 | pond.iterate()
42 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:41:21: warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
41 | pond.iterate()
| `- warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:11:12: note: class 'Pond' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class Pond {
| `- note: class 'Pond' does not conform to the 'Sendable' protocol
12 | private var pebbles: [Pebble] = []
13 | let queue: DispatchQueue = DispatchQueue(label: "pond")
[54/64] Compiling Acheron SQLitePersist.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:40:21: warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class Pebble {
| `- note: class 'Pebble' does not conform to the 'Sendable' protocol
12 | public enum State {
13 | case pending, running, succeeded, failed
:
38 | self.payload { (success: Bool) in
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
| `- warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
41 | pond.iterate()
42 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:41:21: warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
41 | pond.iterate()
| `- warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:11:12: note: class 'Pond' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class Pond {
| `- note: class 'Pond' does not conform to the 'Sendable' protocol
12 | private var pebbles: [Pebble] = []
13 | let queue: DispatchQueue = DispatchQueue(label: "pond")
[55/64] Compiling Acheron Wrapper.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:40:21: warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class Pebble {
| `- note: class 'Pebble' does not conform to the 'Sendable' protocol
12 | public enum State {
13 | case pending, running, succeeded, failed
:
38 | self.payload { (success: Bool) in
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
| `- warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
41 | pond.iterate()
42 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:41:21: warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
41 | pond.iterate()
| `- warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:11:12: note: class 'Pond' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class Pond {
| `- note: class 'Pond' does not conform to the 'Sendable' protocol
12 | private var pebbles: [Pebble] = []
13 | let queue: DispatchQueue = DispatchQueue(label: "pond")
[56/64] Compiling Acheron BackgroundPond.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:40:21: warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class Pebble {
| `- note: class 'Pebble' does not conform to the 'Sendable' protocol
12 | public enum State {
13 | case pending, running, succeeded, failed
:
38 | self.payload { (success: Bool) in
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
| `- warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
41 | pond.iterate()
42 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:41:21: warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
41 | pond.iterate()
| `- warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:11:12: note: class 'Pond' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class Pond {
| `- note: class 'Pond' does not conform to the 'Sendable' protocol
12 | private var pebbles: [Pebble] = []
13 | let queue: DispatchQueue = DispatchQueue(label: "pond")
[57/64] Compiling Acheron Pebble.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:40:21: warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class Pebble {
| `- note: class 'Pebble' does not conform to the 'Sendable' protocol
12 | public enum State {
13 | case pending, running, succeeded, failed
:
38 | self.payload { (success: Bool) in
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
| `- warning: capture of 'self' with non-sendable type 'Pebble' in a '@Sendable' closure; this is an error in the Swift 6 language mode
41 | pond.iterate()
42 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pebble.swift:41:21: warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
39 | pond.queue.async {
40 | self.state = success ? .succeeded : .failed
41 | pond.iterate()
| `- warning: capture of 'pond' with non-sendable type 'Pond' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/Acheron/Pebbles/Pond.swift:11:12: note: class 'Pond' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class Pond {
| `- note: class 'Pond' does not conform to the 'Sendable' protocol
12 | private var pebbles: [Pebble] = []
13 | let queue: DispatchQueue = DispatchQueue(label: "pond")
[58/64] Compiling Acheron Profiler.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Profiler.swift:37:23: warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | public class Profiler {
37 | public static var profiler: Profiler = Profiler()
| |- warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'profiler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'profiler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | private let stopwatches: DoubleMap = DoubleMap()
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:54:13: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
52 | private func handleRequests() {
53 | serial.async {
54 | self.working = true
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | let keys: [T] = Array(self.requestedKeys)
56 | guard keys.count > 0 else {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:63:20: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
61 | let group: DispatchGroup = DispatchGroup()
62 | keys.forEach { (key: T) in
63 | if self.report { print("[ \(self.label) ] request [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
64 | group.enter()
65 | self.concurrent.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:36: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:41: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:28: warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'U' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:45: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:71: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:76:48: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
74 | }
75 | }
76 | group.notify(queue: self.serial) { self.handleRequests() }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
77 | }
78 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:39: warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:57: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:84:53: warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
| `- warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
85 | self.requestedKeys.formUnion(newKeys)
86 | if restart {
[59/64] Compiling Acheron RGB.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Profiler.swift:37:23: warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | public class Profiler {
37 | public static var profiler: Profiler = Profiler()
| |- warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'profiler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'profiler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | private let stopwatches: DoubleMap = DoubleMap()
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:54:13: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
52 | private func handleRequests() {
53 | serial.async {
54 | self.working = true
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | let keys: [T] = Array(self.requestedKeys)
56 | guard keys.count > 0 else {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:63:20: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
61 | let group: DispatchGroup = DispatchGroup()
62 | keys.forEach { (key: T) in
63 | if self.report { print("[ \(self.label) ] request [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
64 | group.enter()
65 | self.concurrent.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:36: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:41: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:28: warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'U' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:45: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:71: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:76:48: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
74 | }
75 | }
76 | group.notify(queue: self.serial) { self.handleRequests() }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
77 | }
78 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:39: warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:57: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:84:53: warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
| `- warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
85 | self.requestedKeys.formUnion(newKeys)
86 | if restart {
[60/64] Compiling Acheron SafeMap.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Profiler.swift:37:23: warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | public class Profiler {
37 | public static var profiler: Profiler = Profiler()
| |- warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'profiler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'profiler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | private let stopwatches: DoubleMap = DoubleMap()
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:54:13: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
52 | private func handleRequests() {
53 | serial.async {
54 | self.working = true
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | let keys: [T] = Array(self.requestedKeys)
56 | guard keys.count > 0 else {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:63:20: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
61 | let group: DispatchGroup = DispatchGroup()
62 | keys.forEach { (key: T) in
63 | if self.report { print("[ \(self.label) ] request [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
64 | group.enter()
65 | self.concurrent.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:36: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:41: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:28: warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'U' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:45: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:71: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:76:48: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
74 | }
75 | }
76 | group.notify(queue: self.serial) { self.handleRequests() }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
77 | }
78 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:39: warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:57: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:84:53: warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
| `- warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
85 | self.requestedKeys.formUnion(newKeys)
86 | if restart {
[61/64] Compiling Acheron SafeSet.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Profiler.swift:37:23: warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | public class Profiler {
37 | public static var profiler: Profiler = Profiler()
| |- warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'profiler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'profiler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | private let stopwatches: DoubleMap = DoubleMap()
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:54:13: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
52 | private func handleRequests() {
53 | serial.async {
54 | self.working = true
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | let keys: [T] = Array(self.requestedKeys)
56 | guard keys.count > 0 else {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:63:20: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
61 | let group: DispatchGroup = DispatchGroup()
62 | keys.forEach { (key: T) in
63 | if self.report { print("[ \(self.label) ] request [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
64 | group.enter()
65 | self.concurrent.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:36: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:41: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:28: warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'U' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:45: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:71: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:76:48: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
74 | }
75 | }
76 | group.notify(queue: self.serial) { self.handleRequests() }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
77 | }
78 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:39: warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:57: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:84:53: warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
| `- warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
85 | self.requestedKeys.formUnion(newKeys)
86 | if restart {
[62/64] Compiling Acheron ScramMap.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Profiler.swift:37:23: warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | public class Profiler {
37 | public static var profiler: Profiler = Profiler()
| |- warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'profiler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'profiler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | private let stopwatches: DoubleMap = DoubleMap()
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:54:13: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
52 | private func handleRequests() {
53 | serial.async {
54 | self.working = true
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | let keys: [T] = Array(self.requestedKeys)
56 | guard keys.count > 0 else {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:63:20: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
61 | let group: DispatchGroup = DispatchGroup()
62 | keys.forEach { (key: T) in
63 | if self.report { print("[ \(self.label) ] request [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
64 | group.enter()
65 | self.concurrent.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:36: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:41: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:28: warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'U' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:45: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:71: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:76:48: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
74 | }
75 | }
76 | group.notify(queue: self.serial) { self.handleRequests() }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
77 | }
78 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:39: warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:57: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:84:53: warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
| `- warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
85 | self.requestedKeys.formUnion(newKeys)
86 | if restart {
[63/64] Compiling Acheron WeakSet.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Profiler.swift:37:23: warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | public class Profiler {
37 | public static var profiler: Profiler = Profiler()
| |- warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'profiler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'profiler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | private let stopwatches: DoubleMap = DoubleMap()
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:54:13: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
52 | private func handleRequests() {
53 | serial.async {
54 | self.working = true
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | let keys: [T] = Array(self.requestedKeys)
56 | guard keys.count > 0 else {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:63:20: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
61 | let group: DispatchGroup = DispatchGroup()
62 | keys.forEach { (key: T) in
63 | if self.report { print("[ \(self.label) ] request [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
64 | group.enter()
65 | self.concurrent.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:36: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:41: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:28: warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'U' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:45: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:71: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:76:48: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
74 | }
75 | }
76 | group.notify(queue: self.serial) { self.handleRequests() }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
77 | }
78 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:39: warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:57: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:84:53: warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
| `- warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
85 | self.requestedKeys.formUnion(newKeys)
86 | if restart {
[64/64] Compiling Acheron XMLtoAttributes.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Profiler.swift:37:23: warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | public class Profiler {
37 | public static var profiler: Profiler = Profiler()
| |- warning: static property 'profiler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'profiler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'profiler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | private let stopwatches: DoubleMap = DoubleMap()
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:54:13: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
52 | private func handleRequests() {
53 | serial.async {
54 | self.working = true
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | let keys: [T] = Array(self.requestedKeys)
56 | guard keys.count > 0 else {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:63:20: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
61 | let group: DispatchGroup = DispatchGroup()
62 | keys.forEach { (key: T) in
63 | if self.report { print("[ \(self.label) ] request [ \(key) ]") }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
64 | group.enter()
65 | self.concurrent.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:36: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:66:41: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
64 | group.enter()
65 | self.concurrent.async {
66 | let value: U = self[key]
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | self.onScrape(key, value)
68 | self.serial.async {
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:28: warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'U' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'value' with non-sendable type 'U' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:45: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:69:71: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
67 | self.onScrape(key, value)
68 | self.serial.async {
69 | if value.complete { self.completedKeys.insert(key) }
| `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 | self.requestedKeys.remove(key)
71 | if value.progress { self.onProgress(key) }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:76:48: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
74 | }
75 | }
76 | group.notify(queue: self.serial) { self.handleRequests() }
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in an isolated closure; this is an error in the Swift 6 language mode
77 | }
78 | }
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:39: warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'keys' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:82:57: warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
80 | guard keys.count > 0 else { return }
81 | serial.async {
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
| `- warning: capture of 'self' with non-sendable type 'ScramMap<T, U>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
/host/spi-builder-workspace/Sources/Acheron/Utility/ScramMap.swift:84:53: warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public class ScramMap<T:Hashable, U:Scramble<T>> {
| `- note: generic class 'ScramMap' does not conform to the 'Sendable' protocol
19 | let label: String
20 | let report: Bool
:
82 | let newKeys: Set<T> = Set(keys).subtracting(self.completedKeys).subtracting(self.requestedKeys)
83 | guard newKeys.count > 0 else { return }
84 | let restart: Bool = !newKeys.isEmpty && self.requestedKeys.isEmpty
| `- warning: implicit capture of 'self' requires that 'ScramMap<T, U>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
85 | self.requestedKeys.formUnion(newKeys)
86 | if restart {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:99ea6d26ace67c023f359493a2ac553a612b92a7f2dee009657225f46f43aa0e
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/56] Compiling Acheron UIImageView+Acheron.swift
[3/56] Compiling Acheron UILabel+Acheron.swift
[4/56] Compiling Acheron UIView+Acheron.swift
[5/56] Compiling Acheron UIViewController+Acheron.swift
[6/56] Compiling Acheron AEControl.swift
[7/56] Compiling Acheron AETableView.swift
[8/56] Compiling Acheron AEView.swift
[9/56] Compiling Acheron AEViewController.swift
[10/63] Emitting module Acheron
[11/63] Compiling Acheron Array+Acheron.swift
[12/63] Compiling Acheron CALayer+Acheron.swift
[13/63] Compiling Acheron CGPoint+Acheron.swift
[14/63] Compiling Acheron CGRect+Acheron.swift
[15/63] Compiling Acheron CGSize+Acheron.swift
[16/63] Compiling Acheron CaseIterable+Acheron.swift
[17/63] Compiling Acheron Codable+Acheron.swift
[18/63] Compiling Acheron Comparable+Acheron.swift
[19/63] Compiling Acheron Date+Acheron.swift
[20/63] Compiling Acheron Dictionary+Acheron.swift
[21/63] Compiling Acheron NSMutableAttributedString+Acheron.swift
[22/63] Compiling Acheron String+Acheron.swift
[23/63] Compiling Acheron UIButton+Acheron.swift
[24/63] Compiling Acheron UIColor+Acheron.swift
[25/63] Compiling Acheron UIControl+Acheron.swift
[26/63] Compiling Acheron UIImage+Acheron.swift
[27/63] Compiling Acheron CellsView.swift
[28/63] Compiling Acheron CellsViewCell.swift
[29/63] Compiling Acheron ColorView.swift
[30/63] Compiling Acheron ExpandableCell.swift
[31/63] Compiling Acheron ExpandableTableView.swift
[32/63] Compiling Acheron Node.swift
[33/63] Compiling Acheron NodeCell.swift
[34/63] Compiling Acheron NodeColumn.swift
[35/63] Compiling Acheron Pond.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:17:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
15 | url = URL(fileURLWithPath: path)
16 | if !FileManager.default.fileExists(atPath: url!.path) {
17 | FileManager.default.createFile(atPath: url!.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | }
19 | }
[36/63] Compiling Acheron AESync.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:17:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
15 | url = URL(fileURLWithPath: path)
16 | if !FileManager.default.fileExists(atPath: url!.path) {
17 | FileManager.default.createFile(atPath: url!.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | }
19 | }
[37/63] Compiling Acheron AETimer.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:17:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
15 | url = URL(fileURLWithPath: path)
16 | if !FileManager.default.fileExists(atPath: url!.path) {
17 | FileManager.default.createFile(atPath: url!.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | }
19 | }
[38/63] Compiling Acheron AsyncMap.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:17:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
15 | url = URL(fileURLWithPath: path)
16 | if !FileManager.default.fileExists(atPath: url!.path) {
17 | FileManager.default.createFile(atPath: url!.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | }
19 | }
[39/63] Compiling Acheron CSV.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:17:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
15 | url = URL(fileURLWithPath: path)
16 | if !FileManager.default.fileExists(atPath: url!.path) {
17 | FileManager.default.createFile(atPath: url!.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | }
19 | }
[40/63] Compiling Acheron Log.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:17:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
15 | url = URL(fileURLWithPath: path)
16 | if !FileManager.default.fileExists(atPath: url!.path) {
17 | FileManager.default.createFile(atPath: url!.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | }
19 | }
[41/63] Compiling Acheron Pen.swift
/host/spi-builder-workspace/Sources/Acheron/Utility/Log.swift:17:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
15 | url = URL(fileURLWithPath: path)
16 | if !FileManager.default.fileExists(atPath: url!.path) {
17 | FileManager.default.createFile(atPath: url!.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | }
19 | }
[42/63] Compiling Acheron NodeData.swift
[43/63] Compiling Acheron NodeHeader.swift
[44/63] Compiling Acheron NodeView.swift
[45/63] Compiling Acheron Screen.swift
[46/63] Compiling Acheron SplitterView.swift
[47/63] Compiling Acheron TripWire.swift
[48/63] Compiling Acheron Anchor.swift
[49/63] Compiling Acheron Basket.swift
[50/63] Compiling Acheron Domain.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
[51/63] Compiling Acheron Loom.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
[52/63] Compiling Acheron Persist.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
[53/63] Compiling Acheron SQLitePersist.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
[54/63] Compiling Acheron Wrapper.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
[55/63] Compiling Acheron BackgroundPond.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
[56/63] Compiling Acheron Pebble.swift
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:28:22: error: cannot find type 'URLRequest' in scope
26 |
27 | let url: URL = URL(string: urlString)!
28 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
29 | request.httpMethod = method.token
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:34:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if method == .post, let params { request.httpBody = params.toJSON().data(using: .utf8) }
33 |
34 | let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | guard error == nil else {
36 | print("error: \(error!)")
/host/spi-builder-workspace/Sources/Acheron/Network/Wrapper.swift:43:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | guard let data else { failure(); return }
42 |
43 | if let response = response as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | print("\n[ \(path) : \(response.statusCode) ] ===================================================")
45 | if let headers = request.allHTTPHeaderFields { print("headers ========================\n\(headers.toJSON())\n") }
[57/63] Compiling Acheron Profiler.swift
[58/63] Compiling Acheron RGB.swift
[59/63] Compiling Acheron SafeMap.swift
[60/63] Compiling Acheron SafeSet.swift
[61/63] Compiling Acheron ScramMap.swift
[62/63] Compiling Acheron WeakSet.swift
[63/63] Compiling Acheron XMLtoAttributes.swift
BUILD FAILURE 6.1 linux