Build Information
Failed to build RosSwift with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SynchronizedArray.swift:207:16: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 | let elements = self.array
206 | self.array.removeAll()
207 | if completion != nil {
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' 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'
208 | DispatchQueue(label: "removing").async {
209 | completion?(elements)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SynchronizedArray.swift:209:21: warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if completion != nil {
208 | DispatchQueue(label: "removing").async {
209 | completion?(elements)
| |- warning: capture of 'completion' with non-sendable type '(([Element]) -> Void)?' 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'
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SynchronizedArray.swift:209:33: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | /// A thread-safe array.
11 | final class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | fileprivate let queue = DispatchQueue(label: "SynchronizedArray", attributes: .concurrent)
13 | fileprivate var array = [Element]()
:
207 | if completion != nil {
208 | DispatchQueue(label: "removing").async {
209 | completion?(elements)
| `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SynchronizedArray.swift:241:17: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | /// A thread-safe array.
11 | final class SynchronizedArray<Element> {
| `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
12 | fileprivate let queue = DispatchQueue(label: "SynchronizedArray", attributes: .concurrent)
13 | fileprivate var array = [Element]()
:
239 |
240 | queue.async(flags: .barrier) {
241 | self.array[index] = newValue
| `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
242 | }
243 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SynchronizedArray.swift:241:37: warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | /// A thread-safe array.
11 | final class SynchronizedArray<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | fileprivate let queue = DispatchQueue(label: "SynchronizedArray", attributes: .concurrent)
13 | fileprivate var array = [Element]()
:
239 |
240 | queue.async(flags: .barrier) {
241 | self.array[index] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
242 | }
243 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Timer.swift:43:24: warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'TimerManager<Time, RosDuration, TimerEvent>' may have shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | public final class Timer {
43 | private static let manager = TimerManager<Time,RosDuration,TimerEvent>()
| |- warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'TimerManager<Time, RosDuration, TimerEvent>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'manager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | private var started: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:13:13: note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
[611/638] Compiling RosSwift TimerEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:5:5: warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import Atomics
4 |
5 | let gTimerManager = InternalTimerManager()
| |- warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gTimerManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | func getInternalTimerManager() -> InternalTimerManager {
:
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:86:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
84 | timers[handle] = info
85 | if !threadStarted {
86 | thread = Thread(block: threadFunc)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
87 | thread?.start()
88 | threadStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:21: warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Subscription/Subscription.swift:16:22: note: class 'Subscription' does not conform to the 'Sendable' protocol
14 | protocol TransportUDP {}
15 |
16 | internal final class Subscription {
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
17 | final class CallBackInfo {
18 | let callbackQueue: CallbackQueueInterface
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:33: warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | internal final class TopicManager {
| `- note: class 'TopicManager' does not conform to the 'Sendable' protocol
27 |
28 | let advertisedTopicsMutex = NSRecursiveLock()
:
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:60: warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Publication.swift:51:13: note: class 'Publication' does not conform to the 'Sendable' protocol
49 | }
50 |
51 | final class Publication {
| `- note: class 'Publication' does not conform to the 'Sendable' protocol
52 | let name: String
53 | let datatype: String
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
[612/638] Compiling RosSwift TimerManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:5:5: warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import Atomics
4 |
5 | let gTimerManager = InternalTimerManager()
| |- warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gTimerManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | func getInternalTimerManager() -> InternalTimerManager {
:
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:86:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
84 | timers[handle] = info
85 | if !threadStarted {
86 | thread = Thread(block: threadFunc)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
87 | thread?.start()
88 | threadStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:21: warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Subscription/Subscription.swift:16:22: note: class 'Subscription' does not conform to the 'Sendable' protocol
14 | protocol TransportUDP {}
15 |
16 | internal final class Subscription {
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
17 | final class CallBackInfo {
18 | let callbackQueue: CallbackQueueInterface
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:33: warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | internal final class TopicManager {
| `- note: class 'TopicManager' does not conform to the 'Sendable' protocol
27 |
28 | let advertisedTopicsMutex = NSRecursiveLock()
:
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:60: warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Publication.swift:51:13: note: class 'Publication' does not conform to the 'Sendable' protocol
49 | }
50 |
51 | final class Publication {
| `- note: class 'Publication' does not conform to the 'Sendable' protocol
52 | let name: String
53 | let datatype: String
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
[613/638] Compiling RosSwift TopicManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:5:5: warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import Atomics
4 |
5 | let gTimerManager = InternalTimerManager()
| |- warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gTimerManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | func getInternalTimerManager() -> InternalTimerManager {
:
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:86:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
84 | timers[handle] = info
85 | if !threadStarted {
86 | thread = Thread(block: threadFunc)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
87 | thread?.start()
88 | threadStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:21: warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Subscription/Subscription.swift:16:22: note: class 'Subscription' does not conform to the 'Sendable' protocol
14 | protocol TransportUDP {}
15 |
16 | internal final class Subscription {
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
17 | final class CallBackInfo {
18 | let callbackQueue: CallbackQueueInterface
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:33: warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | internal final class TopicManager {
| `- note: class 'TopicManager' does not conform to the 'Sendable' protocol
27 |
28 | let advertisedTopicsMutex = NSRecursiveLock()
:
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:60: warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Publication.swift:51:13: note: class 'Publication' does not conform to the 'Sendable' protocol
49 | }
50 |
51 | final class Publication {
| `- note: class 'Publication' does not conform to the 'Sendable' protocol
52 | let name: String
53 | let datatype: String
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
[614/638] Compiling RosSwift TransportHints.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:5:5: warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import Atomics
4 |
5 | let gTimerManager = InternalTimerManager()
| |- warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gTimerManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | func getInternalTimerManager() -> InternalTimerManager {
:
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:86:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
84 | timers[handle] = info
85 | if !threadStarted {
86 | thread = Thread(block: threadFunc)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
87 | thread?.start()
88 | threadStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:21: warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Subscription/Subscription.swift:16:22: note: class 'Subscription' does not conform to the 'Sendable' protocol
14 | protocol TransportUDP {}
15 |
16 | internal final class Subscription {
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
17 | final class CallBackInfo {
18 | let callbackQueue: CallbackQueueInterface
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:33: warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | internal final class TopicManager {
| `- note: class 'TopicManager' does not conform to the 'Sendable' protocol
27 |
28 | let advertisedTopicsMutex = NSRecursiveLock()
:
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:60: warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Publication.swift:51:13: note: class 'Publication' does not conform to the 'Sendable' protocol
49 | }
50 |
51 | final class Publication {
| `- note: class 'Publication' does not conform to the 'Sendable' protocol
52 | let name: String
53 | let datatype: String
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
[615/638] Compiling RosSwift TransportPublisherLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:5:5: warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import Atomics
4 |
5 | let gTimerManager = InternalTimerManager()
| |- warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gTimerManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | func getInternalTimerManager() -> InternalTimerManager {
:
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:86:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
84 | timers[handle] = info
85 | if !threadStarted {
86 | thread = Thread(block: threadFunc)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
87 | thread?.start()
88 | threadStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:21: warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Subscription/Subscription.swift:16:22: note: class 'Subscription' does not conform to the 'Sendable' protocol
14 | protocol TransportUDP {}
15 |
16 | internal final class Subscription {
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
17 | final class CallBackInfo {
18 | let callbackQueue: CallbackQueueInterface
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:33: warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | internal final class TopicManager {
| `- note: class 'TopicManager' does not conform to the 'Sendable' protocol
27 |
28 | let advertisedTopicsMutex = NSRecursiveLock()
:
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:60: warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Publication.swift:51:13: note: class 'Publication' does not conform to the 'Sendable' protocol
49 | }
50 |
51 | final class Publication {
| `- note: class 'Publication' does not conform to the 'Sendable' protocol
52 | let name: String
53 | let datatype: String
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
[616/638] Compiling RosSwift TransportSubscriberLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:5:5: warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import Atomics
4 |
5 | let gTimerManager = InternalTimerManager()
| |- warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gTimerManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | func getInternalTimerManager() -> InternalTimerManager {
:
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:86:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
84 | timers[handle] = info
85 | if !threadStarted {
86 | thread = Thread(block: threadFunc)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
87 | thread?.start()
88 | threadStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:21: warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Subscription/Subscription.swift:16:22: note: class 'Subscription' does not conform to the 'Sendable' protocol
14 | protocol TransportUDP {}
15 |
16 | internal final class Subscription {
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
17 | final class CallBackInfo {
18 | let callbackQueue: CallbackQueueInterface
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:33: warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | internal final class TopicManager {
| `- note: class 'TopicManager' does not conform to the 'Sendable' protocol
27 |
28 | let advertisedTopicsMutex = NSRecursiveLock()
:
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:60: warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Publication.swift:51:13: note: class 'Publication' does not conform to the 'Sendable' protocol
49 | }
50 |
51 | final class Publication {
| `- note: class 'Publication' does not conform to the 'Sendable' protocol
52 | let name: String
53 | let datatype: String
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
[617/638] Compiling RosSwift ConnectionManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/ConnectionManager.swift:186:65: warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | }
135 |
136 | internal final class ConnectionManager {
| `- note: class 'ConnectionManager' does not conform to the 'Sendable' protocol
137 | var channel: Channel?
138 | var boot: ServerBootstrap?
:
184 | .childChannelInitializer {
185 | $0.pipeline.addHandlers([ByteToMessageHandler(MessageDelimiterCodec()),
186 | ConnectionHandler(ros: self.ros)])
| `- warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:246:68: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
244 | .channelInitializer { channel in
245 | channel.pipeline.addHandlers([ByteToMessageHandler(XmlRpcMessageDelimiterCodec()),
246 | XmlRpcHandler(owner: self)])
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 | }
248 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:350:17: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | channel.writeAndFlush(buffer).whenFailure { error in
349 | ROS_ERROR("write failed to \(channel.remoteAddress!) [\(error)]")
350 | promise.fail(MasterError.writeError("write failed to \(channel.remoteAddress!) [\(error)]"))
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 |
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import NIO
10 | import NIOConcurrencyHelpers
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosNetwork
13 | #if os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:350:17: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | channel.writeAndFlush(buffer).whenFailure { error in
349 | ROS_ERROR("write failed to \(channel.remoteAddress!) [\(error)]")
350 | promise.fail(MasterError.writeError("write failed to \(channel.remoteAddress!) [\(error)]"))
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 |
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:368:21: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
366 | switch result {
367 | case .success(let r):
368 | promise.succeed(r)
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
369 | case .failure(let err):
370 | promise.fail(err)
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:357:41: warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
| `- warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
359 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:375:13: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
373 | }.whenFailure { error in
374 | ROS_ERROR(error.localizedDescription)
375 | promise.fail(error)
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
376 | }
377 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:91:78: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | let promise = self.keepAlive ? promise : (promise ?? context.eventLoop.makePromise())
90 | if !self.keepAlive {
91 | promise!.futureResult.whenComplete { (_: Result<Void, Error>) in context.close(promise: nil) }
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1456:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1454 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1455 | /// `ChannelHandler`.
1456 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1457 | // visible for ChannelPipeline to modify
1458 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
[618/638] Compiling RosSwift Master.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/ConnectionManager.swift:186:65: warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | }
135 |
136 | internal final class ConnectionManager {
| `- note: class 'ConnectionManager' does not conform to the 'Sendable' protocol
137 | var channel: Channel?
138 | var boot: ServerBootstrap?
:
184 | .childChannelInitializer {
185 | $0.pipeline.addHandlers([ByteToMessageHandler(MessageDelimiterCodec()),
186 | ConnectionHandler(ros: self.ros)])
| `- warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:246:68: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
244 | .channelInitializer { channel in
245 | channel.pipeline.addHandlers([ByteToMessageHandler(XmlRpcMessageDelimiterCodec()),
246 | XmlRpcHandler(owner: self)])
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 | }
248 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:350:17: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | channel.writeAndFlush(buffer).whenFailure { error in
349 | ROS_ERROR("write failed to \(channel.remoteAddress!) [\(error)]")
350 | promise.fail(MasterError.writeError("write failed to \(channel.remoteAddress!) [\(error)]"))
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 |
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import NIO
10 | import NIOConcurrencyHelpers
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosNetwork
13 | #if os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:350:17: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | channel.writeAndFlush(buffer).whenFailure { error in
349 | ROS_ERROR("write failed to \(channel.remoteAddress!) [\(error)]")
350 | promise.fail(MasterError.writeError("write failed to \(channel.remoteAddress!) [\(error)]"))
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 |
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:368:21: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
366 | switch result {
367 | case .success(let r):
368 | promise.succeed(r)
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
369 | case .failure(let err):
370 | promise.fail(err)
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:357:41: warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
| `- warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
359 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:375:13: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
373 | }.whenFailure { error in
374 | ROS_ERROR(error.localizedDescription)
375 | promise.fail(error)
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
376 | }
377 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:91:78: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | let promise = self.keepAlive ? promise : (promise ?? context.eventLoop.makePromise())
90 | if !self.keepAlive {
91 | promise!.futureResult.whenComplete { (_: Result<Void, Error>) in context.close(promise: nil) }
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1456:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1454 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1455 | /// `ChannelHandler`.
1456 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1457 | // visible for ChannelPipeline to modify
1458 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
[619/638] Compiling RosSwift RosMasterBrowser.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/ConnectionManager.swift:186:65: warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | }
135 |
136 | internal final class ConnectionManager {
| `- note: class 'ConnectionManager' does not conform to the 'Sendable' protocol
137 | var channel: Channel?
138 | var boot: ServerBootstrap?
:
184 | .childChannelInitializer {
185 | $0.pipeline.addHandlers([ByteToMessageHandler(MessageDelimiterCodec()),
186 | ConnectionHandler(ros: self.ros)])
| `- warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:246:68: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
244 | .channelInitializer { channel in
245 | channel.pipeline.addHandlers([ByteToMessageHandler(XmlRpcMessageDelimiterCodec()),
246 | XmlRpcHandler(owner: self)])
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 | }
248 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:350:17: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | channel.writeAndFlush(buffer).whenFailure { error in
349 | ROS_ERROR("write failed to \(channel.remoteAddress!) [\(error)]")
350 | promise.fail(MasterError.writeError("write failed to \(channel.remoteAddress!) [\(error)]"))
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 |
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import NIO
10 | import NIOConcurrencyHelpers
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosNetwork
13 | #if os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:350:17: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | channel.writeAndFlush(buffer).whenFailure { error in
349 | ROS_ERROR("write failed to \(channel.remoteAddress!) [\(error)]")
350 | promise.fail(MasterError.writeError("write failed to \(channel.remoteAddress!) [\(error)]"))
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 |
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:368:21: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
366 | switch result {
367 | case .success(let r):
368 | promise.succeed(r)
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
369 | case .failure(let err):
370 | promise.fail(err)
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:357:41: warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
| `- warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
359 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:375:13: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
373 | }.whenFailure { error in
374 | ROS_ERROR(error.localizedDescription)
375 | promise.fail(error)
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
376 | }
377 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:91:78: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | let promise = self.keepAlive ? promise : (promise ?? context.eventLoop.makePromise())
90 | if !self.keepAlive {
91 | promise!.futureResult.whenComplete { (_: Result<Void, Error>) in context.close(promise: nil) }
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1456:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1454 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1455 | /// `ChannelHandler`.
1456 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1457 | // visible for ChannelPipeline to modify
1458 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
[620/638] Compiling RosSwift TransportTCP.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/ConnectionManager.swift:186:65: warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | }
135 |
136 | internal final class ConnectionManager {
| `- note: class 'ConnectionManager' does not conform to the 'Sendable' protocol
137 | var channel: Channel?
138 | var boot: ServerBootstrap?
:
184 | .childChannelInitializer {
185 | $0.pipeline.addHandlers([ByteToMessageHandler(MessageDelimiterCodec()),
186 | ConnectionHandler(ros: self.ros)])
| `- warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:246:68: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
244 | .channelInitializer { channel in
245 | channel.pipeline.addHandlers([ByteToMessageHandler(XmlRpcMessageDelimiterCodec()),
246 | XmlRpcHandler(owner: self)])
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 | }
248 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:350:17: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | channel.writeAndFlush(buffer).whenFailure { error in
349 | ROS_ERROR("write failed to \(channel.remoteAddress!) [\(error)]")
350 | promise.fail(MasterError.writeError("write failed to \(channel.remoteAddress!) [\(error)]"))
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 |
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import NIO
10 | import NIOConcurrencyHelpers
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosNetwork
13 | #if os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:350:17: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | channel.writeAndFlush(buffer).whenFailure { error in
349 | ROS_ERROR("write failed to \(channel.remoteAddress!) [\(error)]")
350 | promise.fail(MasterError.writeError("write failed to \(channel.remoteAddress!) [\(error)]"))
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 |
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:368:21: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
366 | switch result {
367 | case .success(let r):
368 | promise.succeed(r)
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
369 | case .failure(let err):
370 | promise.fail(err)
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:357:41: warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
| `- warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
359 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:375:13: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
373 | }.whenFailure { error in
374 | ROS_ERROR(error.localizedDescription)
375 | promise.fail(error)
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
376 | }
377 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:91:78: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | let promise = self.keepAlive ? promise : (promise ?? context.eventLoop.makePromise())
90 | if !self.keepAlive {
91 | promise!.futureResult.whenComplete { (_: Result<Void, Error>) in context.close(promise: nil) }
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1456:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1454 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1455 | /// `ChannelHandler`.
1456 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1457 | // visible for ChannelPipeline to modify
1458 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
[621/638] Compiling RosSwift XMLRPCManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/ConnectionManager.swift:186:65: warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | }
135 |
136 | internal final class ConnectionManager {
| `- note: class 'ConnectionManager' does not conform to the 'Sendable' protocol
137 | var channel: Channel?
138 | var boot: ServerBootstrap?
:
184 | .childChannelInitializer {
185 | $0.pipeline.addHandlers([ByteToMessageHandler(MessageDelimiterCodec()),
186 | ConnectionHandler(ros: self.ros)])
| `- warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:246:68: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
244 | .channelInitializer { channel in
245 | channel.pipeline.addHandlers([ByteToMessageHandler(XmlRpcMessageDelimiterCodec()),
246 | XmlRpcHandler(owner: self)])
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 | }
248 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:350:17: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | channel.writeAndFlush(buffer).whenFailure { error in
349 | ROS_ERROR("write failed to \(channel.remoteAddress!) [\(error)]")
350 | promise.fail(MasterError.writeError("write failed to \(channel.remoteAddress!) [\(error)]"))
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 |
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import NIO
10 | import NIOConcurrencyHelpers
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosNetwork
13 | #if os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:350:17: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | channel.writeAndFlush(buffer).whenFailure { error in
349 | ROS_ERROR("write failed to \(channel.remoteAddress!) [\(error)]")
350 | promise.fail(MasterError.writeError("write failed to \(channel.remoteAddress!) [\(error)]"))
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 |
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:368:21: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
366 | switch result {
367 | case .success(let r):
368 | promise.succeed(r)
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
369 | case .failure(let err):
370 | promise.fail(err)
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:357:41: warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
| `- warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
359 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:375:13: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
373 | }.whenFailure { error in
374 | ROS_ERROR(error.localizedDescription)
375 | promise.fail(error)
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
376 | }
377 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:91:78: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | let promise = self.keepAlive ? promise : (promise ?? context.eventLoop.makePromise())
90 | if !self.keepAlive {
91 | promise!.futureResult.whenComplete { (_: Result<Void, Error>) in context.close(promise: nil) }
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1456:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1454 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1455 | /// `ChannelHandler`.
1456 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1457 | // visible for ChannelPipeline to modify
1458 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
[622/638] Compiling RosSwift XMLRpcServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/ConnectionManager.swift:186:65: warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | }
135 |
136 | internal final class ConnectionManager {
| `- note: class 'ConnectionManager' does not conform to the 'Sendable' protocol
137 | var channel: Channel?
138 | var boot: ServerBootstrap?
:
184 | .childChannelInitializer {
185 | $0.pipeline.addHandlers([ByteToMessageHandler(MessageDelimiterCodec()),
186 | ConnectionHandler(ros: self.ros)])
| `- warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:246:68: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
244 | .channelInitializer { channel in
245 | channel.pipeline.addHandlers([ByteToMessageHandler(XmlRpcMessageDelimiterCodec()),
246 | XmlRpcHandler(owner: self)])
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 | }
248 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:350:17: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | channel.writeAndFlush(buffer).whenFailure { error in
349 | ROS_ERROR("write failed to \(channel.remoteAddress!) [\(error)]")
350 | promise.fail(MasterError.writeError("write failed to \(channel.remoteAddress!) [\(error)]"))
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 |
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import NIO
10 | import NIOConcurrencyHelpers
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosNetwork
13 | #if os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:350:17: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | channel.writeAndFlush(buffer).whenFailure { error in
349 | ROS_ERROR("write failed to \(channel.remoteAddress!) [\(error)]")
350 | promise.fail(MasterError.writeError("write failed to \(channel.remoteAddress!) [\(error)]"))
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 |
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:368:21: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
366 | switch result {
367 | case .success(let r):
368 | promise.succeed(r)
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
369 | case .failure(let err):
370 | promise.fail(err)
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:357:41: warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
| `- warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
359 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:375:13: warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
373 | }.whenFailure { error in
374 | ROS_ERROR(error.localizedDescription)
375 | promise.fail(error)
| `- warning: capture of 'promise' with non-sendable type 'EventLoopPromise<XmlRpcValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
376 | }
377 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:91:78: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | let promise = self.keepAlive ? promise : (promise ?? context.eventLoop.makePromise())
90 | if !self.keepAlive {
91 | promise!.futureResult.whenComplete { (_: Result<Void, Error>) in context.close(promise: nil) }
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1456:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1454 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1455 | /// `ChannelHandler`.
1456 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1457 | // visible for ChannelPipeline to modify
1458 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
[623/638] Compiling RosSwift inboundConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/inboundConnection.swift:49:44: warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | final class InboundConnection {
| `- note: class 'InboundConnection' does not conform to the 'Sendable' protocol
19 |
20 | var channel: Channel?
:
47 | _ = channel.pipeline.addHandlers([
48 | ByteToMessageHandler(LengthFieldBasedFrameDecoder(lengthFieldLength: .four, lengthFieldEndianness: .little)),
49 | InboundHandler(parent: self)])
| `- warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return channel
51 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:533:16: warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public final class Param {
| `- note: class 'Param' does not conform to the 'Sendable' protocol
47 |
48 | let parameterQueue = DispatchQueue(label: "parameterQueue")
:
531 |
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
| `- warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
534 | self.gParameters[cleanKey] = value
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:534:46: warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
534 | self.gParameters[cleanKey] = value
| `- warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
7 |
8 | import Foundation
9 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
10 | import NIO
11 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:111:16: warning: static property 'gInitialized' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | internal struct Console {
111 | static var gInitialized = false
| |- warning: static property 'gInitialized' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gInitialized' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gInitialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | static var gExtraFixedTokens = StringStringMap()
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:112:16: warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
110 | internal struct Console {
111 | static var gInitialized = false
112 | static var gExtraFixedTokens = StringStringMap()
| |- warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gExtraFixedTokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gExtraFixedTokens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
114 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:32:28: warning: static property 'globalRos' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | fileprivate static var globalRos = Set<Ros>()
| |- warning: static property 'globalRos' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRos' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | fileprivate static var atexitRegistered = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:33:28: warning: static property 'atexitRegistered' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate static var globalRos = Set<Ros>()
33 | fileprivate static var atexitRegistered = false
| |- warning: static property 'atexitRegistered' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'atexitRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'atexitRegistered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public typealias InitOption = Set<InitOptions>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:323:17: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
321 | // we have to avoid calling wait inside an EventLoop
322 | DispatchQueue(label: "shutdown").async {
323 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
346 | }
347 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| |- 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
346 | }
347 | }
[624/638] Compiling RosSwift param.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/inboundConnection.swift:49:44: warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | final class InboundConnection {
| `- note: class 'InboundConnection' does not conform to the 'Sendable' protocol
19 |
20 | var channel: Channel?
:
47 | _ = channel.pipeline.addHandlers([
48 | ByteToMessageHandler(LengthFieldBasedFrameDecoder(lengthFieldLength: .four, lengthFieldEndianness: .little)),
49 | InboundHandler(parent: self)])
| `- warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return channel
51 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:533:16: warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public final class Param {
| `- note: class 'Param' does not conform to the 'Sendable' protocol
47 |
48 | let parameterQueue = DispatchQueue(label: "parameterQueue")
:
531 |
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
| `- warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
534 | self.gParameters[cleanKey] = value
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:534:46: warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
534 | self.gParameters[cleanKey] = value
| `- warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
7 |
8 | import Foundation
9 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
10 | import NIO
11 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:111:16: warning: static property 'gInitialized' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | internal struct Console {
111 | static var gInitialized = false
| |- warning: static property 'gInitialized' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gInitialized' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gInitialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | static var gExtraFixedTokens = StringStringMap()
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:112:16: warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
110 | internal struct Console {
111 | static var gInitialized = false
112 | static var gExtraFixedTokens = StringStringMap()
| |- warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gExtraFixedTokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gExtraFixedTokens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
114 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:32:28: warning: static property 'globalRos' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | fileprivate static var globalRos = Set<Ros>()
| |- warning: static property 'globalRos' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRos' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | fileprivate static var atexitRegistered = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:33:28: warning: static property 'atexitRegistered' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate static var globalRos = Set<Ros>()
33 | fileprivate static var atexitRegistered = false
| |- warning: static property 'atexitRegistered' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'atexitRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'atexitRegistered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public typealias InitOption = Set<InitOptions>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:323:17: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
321 | // we have to avoid calling wait inside an EventLoop
322 | DispatchQueue(label: "shutdown").async {
323 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
346 | }
347 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| |- 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
346 | }
347 | }
[625/638] Compiling RosSwift rosconsole.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/inboundConnection.swift:49:44: warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | final class InboundConnection {
| `- note: class 'InboundConnection' does not conform to the 'Sendable' protocol
19 |
20 | var channel: Channel?
:
47 | _ = channel.pipeline.addHandlers([
48 | ByteToMessageHandler(LengthFieldBasedFrameDecoder(lengthFieldLength: .four, lengthFieldEndianness: .little)),
49 | InboundHandler(parent: self)])
| `- warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return channel
51 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:533:16: warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public final class Param {
| `- note: class 'Param' does not conform to the 'Sendable' protocol
47 |
48 | let parameterQueue = DispatchQueue(label: "parameterQueue")
:
531 |
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
| `- warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
534 | self.gParameters[cleanKey] = value
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:534:46: warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
534 | self.gParameters[cleanKey] = value
| `- warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
7 |
8 | import Foundation
9 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
10 | import NIO
11 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:111:16: warning: static property 'gInitialized' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | internal struct Console {
111 | static var gInitialized = false
| |- warning: static property 'gInitialized' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gInitialized' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gInitialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | static var gExtraFixedTokens = StringStringMap()
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:112:16: warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
110 | internal struct Console {
111 | static var gInitialized = false
112 | static var gExtraFixedTokens = StringStringMap()
| |- warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gExtraFixedTokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gExtraFixedTokens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
114 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:32:28: warning: static property 'globalRos' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | fileprivate static var globalRos = Set<Ros>()
| |- warning: static property 'globalRos' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRos' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | fileprivate static var atexitRegistered = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:33:28: warning: static property 'atexitRegistered' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate static var globalRos = Set<Ros>()
33 | fileprivate static var atexitRegistered = false
| |- warning: static property 'atexitRegistered' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'atexitRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'atexitRegistered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public typealias InitOption = Set<InitOptions>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:323:17: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
321 | // we have to avoid calling wait inside an EventLoop
322 | DispatchQueue(label: "shutdown").async {
323 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
346 | }
347 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| |- 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
346 | }
347 | }
[626/638] Compiling RosSwift rosout_appender.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/inboundConnection.swift:49:44: warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | final class InboundConnection {
| `- note: class 'InboundConnection' does not conform to the 'Sendable' protocol
19 |
20 | var channel: Channel?
:
47 | _ = channel.pipeline.addHandlers([
48 | ByteToMessageHandler(LengthFieldBasedFrameDecoder(lengthFieldLength: .four, lengthFieldEndianness: .little)),
49 | InboundHandler(parent: self)])
| `- warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return channel
51 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:533:16: warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public final class Param {
| `- note: class 'Param' does not conform to the 'Sendable' protocol
47 |
48 | let parameterQueue = DispatchQueue(label: "parameterQueue")
:
531 |
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
| `- warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
534 | self.gParameters[cleanKey] = value
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:534:46: warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
534 | self.gParameters[cleanKey] = value
| `- warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
7 |
8 | import Foundation
9 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
10 | import NIO
11 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:111:16: warning: static property 'gInitialized' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | internal struct Console {
111 | static var gInitialized = false
| |- warning: static property 'gInitialized' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gInitialized' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gInitialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | static var gExtraFixedTokens = StringStringMap()
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:112:16: warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
110 | internal struct Console {
111 | static var gInitialized = false
112 | static var gExtraFixedTokens = StringStringMap()
| |- warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gExtraFixedTokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gExtraFixedTokens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
114 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:32:28: warning: static property 'globalRos' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | fileprivate static var globalRos = Set<Ros>()
| |- warning: static property 'globalRos' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRos' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | fileprivate static var atexitRegistered = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:33:28: warning: static property 'atexitRegistered' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate static var globalRos = Set<Ros>()
33 | fileprivate static var atexitRegistered = false
| |- warning: static property 'atexitRegistered' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'atexitRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'atexitRegistered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public typealias InitOption = Set<InitOptions>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:323:17: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
321 | // we have to avoid calling wait inside an EventLoop
322 | DispatchQueue(label: "shutdown").async {
323 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
346 | }
347 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| |- 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
346 | }
347 | }
[627/638] Compiling RosSwift rosswift.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/inboundConnection.swift:49:44: warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | final class InboundConnection {
| `- note: class 'InboundConnection' does not conform to the 'Sendable' protocol
19 |
20 | var channel: Channel?
:
47 | _ = channel.pipeline.addHandlers([
48 | ByteToMessageHandler(LengthFieldBasedFrameDecoder(lengthFieldLength: .four, lengthFieldEndianness: .little)),
49 | InboundHandler(parent: self)])
| `- warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return channel
51 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:533:16: warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public final class Param {
| `- note: class 'Param' does not conform to the 'Sendable' protocol
47 |
48 | let parameterQueue = DispatchQueue(label: "parameterQueue")
:
531 |
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
| `- warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
534 | self.gParameters[cleanKey] = value
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:534:46: warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
534 | self.gParameters[cleanKey] = value
| `- warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
7 |
8 | import Foundation
9 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
10 | import NIO
11 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:111:16: warning: static property 'gInitialized' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | internal struct Console {
111 | static var gInitialized = false
| |- warning: static property 'gInitialized' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gInitialized' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gInitialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | static var gExtraFixedTokens = StringStringMap()
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:112:16: warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
110 | internal struct Console {
111 | static var gInitialized = false
112 | static var gExtraFixedTokens = StringStringMap()
| |- warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gExtraFixedTokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gExtraFixedTokens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
114 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:32:28: warning: static property 'globalRos' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | fileprivate static var globalRos = Set<Ros>()
| |- warning: static property 'globalRos' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRos' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | fileprivate static var atexitRegistered = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:33:28: warning: static property 'atexitRegistered' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate static var globalRos = Set<Ros>()
33 | fileprivate static var atexitRegistered = false
| |- warning: static property 'atexitRegistered' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'atexitRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'atexitRegistered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public typealias InitOption = Set<InitOptions>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:323:17: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
321 | // we have to avoid calling wait inside an EventLoop
322 | DispatchQueue(label: "shutdown").async {
323 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
346 | }
347 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| |- 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
346 | }
347 | }
[628/638] Compiling RosSwift thisNode.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/inboundConnection.swift:49:44: warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | final class InboundConnection {
| `- note: class 'InboundConnection' does not conform to the 'Sendable' protocol
19 |
20 | var channel: Channel?
:
47 | _ = channel.pipeline.addHandlers([
48 | ByteToMessageHandler(LengthFieldBasedFrameDecoder(lengthFieldLength: .four, lengthFieldEndianness: .little)),
49 | InboundHandler(parent: self)])
| `- warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return channel
51 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:533:16: warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public final class Param {
| `- note: class 'Param' does not conform to the 'Sendable' protocol
47 |
48 | let parameterQueue = DispatchQueue(label: "parameterQueue")
:
531 |
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
| `- warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
534 | self.gParameters[cleanKey] = value
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:534:46: warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
534 | self.gParameters[cleanKey] = value
| `- warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
7 |
8 | import Foundation
9 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
10 | import NIO
11 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:111:16: warning: static property 'gInitialized' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | internal struct Console {
111 | static var gInitialized = false
| |- warning: static property 'gInitialized' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gInitialized' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gInitialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | static var gExtraFixedTokens = StringStringMap()
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:112:16: warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
110 | internal struct Console {
111 | static var gInitialized = false
112 | static var gExtraFixedTokens = StringStringMap()
| |- warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gExtraFixedTokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gExtraFixedTokens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
114 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:32:28: warning: static property 'globalRos' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | fileprivate static var globalRos = Set<Ros>()
| |- warning: static property 'globalRos' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRos' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | fileprivate static var atexitRegistered = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:33:28: warning: static property 'atexitRegistered' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate static var globalRos = Set<Ros>()
33 | fileprivate static var atexitRegistered = false
| |- warning: static property 'atexitRegistered' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'atexitRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'atexitRegistered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public typealias InitOption = Set<InitOptions>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:323:17: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
321 | // we have to avoid calling wait inside an EventLoop
322 | DispatchQueue(label: "shutdown").async {
323 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
346 | }
347 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| |- 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
346 | }
347 | }
[629/643] Emitting module listener
/Users/admin/builder/spi-builder-workspace/Sources/listener/main.swift:3:22: warning: setter for 'arguments' is deprecated: Do not modify CommandLine.arguments. It will become read-only in a future version of Swift.
1 | import RosSwift
2 |
3 | let ros = Ros(argv: &CommandLine.arguments, name: "listener", options: [.anonymousName])
| `- warning: setter for 'arguments' is deprecated: Do not modify CommandLine.arguments. It will become read-only in a future version of Swift.
4 | let n = ros.createNode()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/listener/main.swift:9:9: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
7 | class Config {
8 | @RosParameter(name: "~value", ros: ros)
9 | var value: Int
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | }
11 |
[630/643] Compiling listener main.swift
/Users/admin/builder/spi-builder-workspace/Sources/listener/main.swift:3:22: warning: setter for 'arguments' is deprecated: Do not modify CommandLine.arguments. It will become read-only in a future version of Swift.
1 | import RosSwift
2 |
3 | let ros = Ros(argv: &CommandLine.arguments, name: "listener", options: [.anonymousName])
| `- warning: setter for 'arguments' is deprecated: Do not modify CommandLine.arguments. It will become read-only in a future version of Swift.
4 | let n = ros.createNode()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/listener/main.swift:9:9: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
7 | class Config {
8 | @RosParameter(name: "~value", ros: ros)
9 | var value: Int
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/listener/main.swift:19:32: error: main actor-isolated var 'config' can not be referenced from a non-isolated context
10 | }
11 |
12 | var config = Config()
| `- note: var declared here
13 | config.value = 12
14 |
:
16 | struct B {
17 | let value : Double
18 | func chatterCallback(msg: String) {
| `- note: add '@MainActor' to make instance method 'chatterCallback(msg:)' part of global actor 'MainActor'
19 | print("I [the struct \(config.value)] saw: [\(msg)]")
| `- error: main actor-isolated var 'config' can not be referenced from a non-isolated context
20 | }
21 | }
[630/643] Linking roscore
[630/643] Linking msgbuilder
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/IBM-Swift/HeliumLogger.git
Fetching https://github.com/tgu/BinaryCoder.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-collections.git
[1/168] Fetching binarycoder
[84/1435] Fetching binarycoder, heliumlogger
[300/2998] Fetching binarycoder, heliumlogger, swift-atomics
[410/7831] Fetching binarycoder, heliumlogger, swift-atomics, swift-nio-extras
[982/11192] Fetching binarycoder, heliumlogger, swift-atomics, swift-nio-extras, swift-log
[1682/25207] Fetching binarycoder, heliumlogger, swift-atomics, swift-nio-extras, swift-log, swift-collections
[10785/90814] Fetching binarycoder, heliumlogger, swift-atomics, swift-nio-extras, swift-log, swift-collections, swift-nio
Fetched https://github.com/tgu/BinaryCoder.git from cache (1.93s)
Fetched https://github.com/IBM-Swift/HeliumLogger.git from cache (1.93s)
[55264/89379] Fetching swift-atomics, swift-nio-extras, swift-log, swift-collections, swift-nio
Fetched https://github.com/apple/swift-atomics.git from cache (6.25s)
Fetched https://github.com/apple/swift-collections.git from cache (6.25s)
Fetched https://github.com/apple/swift-nio-extras.git from cache (6.25s)
Fetched https://github.com/apple/swift-nio.git from cache (6.25s)
Fetched https://github.com/apple/swift-log.git from cache (6.25s)
Computing version for https://github.com/IBM-Swift/HeliumLogger.git
Computed https://github.com/IBM-Swift/HeliumLogger.git at 1.9.200 (0.96s)
Fetching https://github.com/Kitura/LoggerAPI.git
[1/771] Fetching loggerapi
Fetched https://github.com/Kitura/LoggerAPI.git from cache (1.10s)
Computing version for https://github.com/tgu/BinaryCoder.git
Computed https://github.com/tgu/BinaryCoder.git at 1.1.0 (2.53s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.68s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.54s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.0 (0.86s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.69s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.22.0 (0.70s)
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-http-types
[1/414] Fetching swift-http-types
[345/10647] Fetching swift-http-types, swift-nio-http2
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.56s)
Fetched https://github.com/apple/swift-http-types from cache (1.56s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.1.0 (0.65s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.31.0 (0.55s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.65.0 (0.65s)
Fetching https://github.com/apple/swift-system.git
[1/3518] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (1.02s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.3.0 (0.51s)
Creating working copy for https://github.com/IBM-Swift/HeliumLogger.git
Working copy of https://github.com/IBM-Swift/HeliumLogger.git resolved at 1.9.200
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.65.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.22.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.31.0
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.1.0
Creating working copy for https://github.com/tgu/BinaryCoder.git
Working copy of https://github.com/tgu/BinaryCoder.git resolved at 1.1.0
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
BUILD FAILURE 6.0 macosSpm