Build Information
Successful build of SwiftLSP with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 2
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
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/codeface-io/SwiftLSP.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/codeface-io/SwiftLSP
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e156fc2 Remove Xcode byproducts from repository. Prune .gitignore.
Cloned https://github.com/codeface-io/SwiftLSP.git
Revision (git rev-parse @):
e156fc27cfb214c9cff79a5770542bd636a45102
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/codeface-io/SwiftLSP.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/codeface-io/SwiftLSP.git
Running build ...
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
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/24] Emitting module SwiftyToolz
[6/26] Compiling SwiftyToolz BackgroundActor.swift
[7/26] Compiling SwiftyToolz BuildEnvironment.swift
[8/26] Compiling SwiftyToolz Clipboard.swift
[9/26] Compiling SwiftyToolz Optional+SwiftyToolz.swift
[10/26] Compiling SwiftyToolz Sequence+Async.swift
[11/26] Compiling SwiftyToolz Copyable.swift
[12/26] Compiling SwiftyToolz JSON.swift
[13/26] Compiling SwiftyToolz Color.swift
[14/26] Compiling SwiftyToolz Font.swift
[15/26] Compiling SwiftyToolz Dictionary+SwiftyToolz.swift
[16/26] Compiling SwiftyToolz Int+SwiftyToolz.swift
[17/26] Compiling SwiftyToolz Task+SwiftyToolz.swift
[18/26] Compiling SwiftyToolz SwiftHelpers.swift
[19/26] Compiling SwiftyToolz Array+SwiftyToolz.swift
[20/26] Compiling SwiftyToolz Collection+Sum.swift
[21/26] Compiling SwiftyToolz Log.swift
[22/26] Compiling SwiftyToolz ReadableError.swift
[23/26] Compiling SwiftyToolz Set+SwiftyToolz.swift
[24/26] Compiling SwiftyToolz String+SwiftyToolz.swift
[25/26] Compiling SwiftyToolz Geometry.swift
[26/26] Compiling SwiftyToolz WeakArray.swift
[27/47] Emitting module FoundationToolz
[28/49] Compiling FoundationToolz String+FoundationToolz.swift
[29/49] Compiling FoundationToolz JSON+FoundationToolz.swift
[30/49] Compiling FoundationToolz ArbitraryLegacyDateHelpers.swift
[31/49] Compiling FoundationToolz Executable.swift
[32/49] Compiling FoundationToolz Bundle+AppInfos.swift
[33/49] Compiling FoundationToolz FileManager+FoundationToolz.swift
[34/49] Compiling FoundationToolz NSPredicate+FoundationToolz.swift
[35/49] Compiling FoundationToolz Process+RunExecutable.swift
[36/49] Compiling FoundationToolz Timer+FoundationToolz.swift
[37/49] Compiling FoundationToolz URL+WebSocket.swift
[38/49] Compiling FoundationToolz UserDefaults+PropertyWrapper.swift
[39/49] Compiling FoundationToolz URL+FoundationToolz.swift
[40/49] Compiling FoundationToolz URL+HTTPRequests.swift
[41/49] Compiling FoundationToolz Array+FoundationToolz.swift
[42/49] Compiling FoundationToolz Dictionary+Foundation.swift
[43/49] Compiling FoundationToolz Int+FoundationToolz.swift
[44/49] Compiling FoundationToolz NumericTypes+MeasureTime.swift
[45/49] Compiling FoundationToolz Codable+FoundationToolz.swift
[46/49] Compiling FoundationToolz Data+FoundationToolz.swift
[47/49] Compiling FoundationToolz Date+FoundationToolz.swift
[48/49] Compiling FoundationToolz NetworkReachability.swift
[49/49] Compiling FoundationToolz StopWatch.swift
[50/74] Compiling SwiftLSP LSP.CodebaseLocation.swift
[51/74] Compiling SwiftLSP LSP.swift
[52/74] Compiling SwiftLSP LSP.Message+Data.swift
[53/76] Compiling SwiftLSP LSP.Message+JSON.swift
[54/76] Compiling SwiftLSP LSP.Message+ReadableDescription.swift
[55/76] Compiling SwiftLSP LSP.Message.swift
[56/76] Compiling SwiftLSP LSP.ServerExecutable.swift
[57/76] Compiling SwiftLSP LSP.WebSocketConnection.swift
[58/76] Compiling SwiftLSP LSPServerConnection.swift
[59/76] Compiling SwiftLSP LSP.Message.Request+Initialize.swift
[60/76] Compiling SwiftLSP LSP.Message.Request+Symbols.swift
[61/76] Emitting module SwiftLSP
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:77:48: warning: non-sendable type '(LSP.Message.Notification) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutNotificationFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
75 | Task
76 | {
77 | [weak self] in await self?.notifyClientAboutNotificationFromServer(notification)
| |- warning: non-sendable type '(LSP.Message.Notification) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutNotificationFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
78 | }
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:87:48: warning: non-sendable type '(String) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutErrorOutputFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
85 | Task
86 | {
87 | [weak self] in await self?.notifyClientAboutErrorOutputFromServer(errorOutput)
| |- warning: non-sendable type '(String) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutErrorOutputFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
88 | }
89 | }
[62/76] Compiling SwiftLSP LSP.ServerCommunicationHandler+Symbols.swift
[63/76] Compiling SwiftLSP LSPDocumentSymbol.swift
[64/76] Compiling SwiftLSP LSP.ServerCommunicationHandler+DocumentSync.swift
[65/76] Compiling SwiftLSP LSP.Message.Request+References.swift
[66/76] Compiling SwiftLSP LSP.PacketDetector.swift
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:77:48: warning: non-sendable type '(LSP.Message.Notification) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutNotificationFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
75 | Task
76 | {
77 | [weak self] in await self?.notifyClientAboutNotificationFromServer(notification)
| |- warning: non-sendable type '(LSP.Message.Notification) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutNotificationFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
78 | }
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:87:48: warning: non-sendable type '(String) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutErrorOutputFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
85 | Task
86 | {
87 | [weak self] in await self?.notifyClientAboutErrorOutputFromServer(errorOutput)
| |- warning: non-sendable type '(String) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutErrorOutputFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:129:23: warning: sending 'self'-isolated value of type '(CheckedContinuation<JSON, any Error>) -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
127 | public func request(_ request: Request) async throws -> JSON
128 | {
129 | try await withCheckedThrowingContinuation
| `- warning: sending 'self'-isolated value of type '(CheckedContinuation<JSON, any Error>) -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
130 | {
131 | continuation in
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:139:46: warning: sending 'self'-isolated value of type 'any LSPServerConnection' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
137 | do
138 | {
139 | try await connection.sendToServer(.request(request))
| `- warning: sending 'self'-isolated value of type 'any LSPServerConnection' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
140 | }
141 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:219:34: warning: sending 'self'-isolated value of type 'any LSPServerConnection' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
217 | public func notify(_ notification: Message.Notification) async throws
218 | {
219 | try await connection.sendToServer(.notification(notification))
| `- warning: sending 'self'-isolated value of type 'any LSPServerConnection' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
220 | }
221 |
[67/76] Compiling SwiftLSP LSP.LanguageIdentifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:77:48: warning: non-sendable type '(LSP.Message.Notification) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutNotificationFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
75 | Task
76 | {
77 | [weak self] in await self?.notifyClientAboutNotificationFromServer(notification)
| |- warning: non-sendable type '(LSP.Message.Notification) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutNotificationFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
78 | }
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:87:48: warning: non-sendable type '(String) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutErrorOutputFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
85 | Task
86 | {
87 | [weak self] in await self?.notifyClientAboutErrorOutputFromServer(errorOutput)
| |- warning: non-sendable type '(String) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutErrorOutputFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:129:23: warning: sending 'self'-isolated value of type '(CheckedContinuation<JSON, any Error>) -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
127 | public func request(_ request: Request) async throws -> JSON
128 | {
129 | try await withCheckedThrowingContinuation
| `- warning: sending 'self'-isolated value of type '(CheckedContinuation<JSON, any Error>) -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
130 | {
131 | continuation in
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:139:46: warning: sending 'self'-isolated value of type 'any LSPServerConnection' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
137 | do
138 | {
139 | try await connection.sendToServer(.request(request))
| `- warning: sending 'self'-isolated value of type 'any LSPServerConnection' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
140 | }
141 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:219:34: warning: sending 'self'-isolated value of type 'any LSPServerConnection' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
217 | public func notify(_ notification: Message.Notification) async throws
218 | {
219 | try await connection.sendToServer(.notification(notification))
| `- warning: sending 'self'-isolated value of type 'any LSPServerConnection' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
220 | }
221 |
[68/76] Compiling SwiftLSP LSP.ServerCommunicationHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:77:48: warning: non-sendable type '(LSP.Message.Notification) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutNotificationFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
75 | Task
76 | {
77 | [weak self] in await self?.notifyClientAboutNotificationFromServer(notification)
| |- warning: non-sendable type '(LSP.Message.Notification) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutNotificationFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
78 | }
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:87:48: warning: non-sendable type '(String) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutErrorOutputFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
85 | Task
86 | {
87 | [weak self] in await self?.notifyClientAboutErrorOutputFromServer(errorOutput)
| |- warning: non-sendable type '(String) -> Void' in implicitly asynchronous access to actor-isolated property 'notifyClientAboutErrorOutputFromServer' cannot cross actor boundary; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:129:23: warning: sending 'self'-isolated value of type '(CheckedContinuation<JSON, any Error>) -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
127 | public func request(_ request: Request) async throws -> JSON
128 | {
129 | try await withCheckedThrowingContinuation
| `- warning: sending 'self'-isolated value of type '(CheckedContinuation<JSON, any Error>) -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
130 | {
131 | continuation in
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:139:46: warning: sending 'self'-isolated value of type 'any LSPServerConnection' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
137 | do
138 | {
139 | try await connection.sendToServer(.request(request))
| `- warning: sending 'self'-isolated value of type 'any LSPServerConnection' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
140 | }
141 | catch
/Users/admin/builder/spi-builder-workspace/Sources/Server Communication/LSP.ServerCommunicationHandler.swift:219:34: warning: sending 'self'-isolated value of type 'any LSPServerConnection' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
217 | public func notify(_ notification: Message.Notification) async throws
218 | {
219 | try await connection.sendToServer(.notification(notification))
| `- warning: sending 'self'-isolated value of type 'any LSPServerConnection' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
220 | }
221 |
[69/76] Compiling SwiftLSP LSP.ServerCommunicationHandler+References.swift
[70/76] Compiling SwiftLSP LSP.Message.Notification+Initialized.swift
[71/76] Compiling SwiftLSP LSP.Notification+LogMessage.swift
[72/76] Compiling SwiftLSP LSP.Packet+Message.swift
[73/76] Compiling SwiftLSP LSP.Packet.swift
[74/76] Compiling SwiftLSP LSPLocation.swift
[75/76] Compiling SwiftLSP LSPTextDocumentPositionParams.swift
[76/76] Compiling SwiftLSP LSP.Message.Notification+DocumentSync.swift
Build complete! (37.07s)
Fetching https://github.com/flowtoolz/FoundationToolz.git
Fetching https://github.com/flowtoolz/SwiftyToolz.git
[1/702] Fetching foundationtoolz
[198/1417] Fetching foundationtoolz, swiftytoolz
Fetched https://github.com/flowtoolz/FoundationToolz.git from cache (0.91s)
Fetched https://github.com/flowtoolz/SwiftyToolz.git from cache (0.92s)
Computing version for https://github.com/flowtoolz/SwiftyToolz.git
Computed https://github.com/flowtoolz/SwiftyToolz.git at 0.5.1 (0.69s)
Computing version for https://github.com/flowtoolz/FoundationToolz.git
Computed https://github.com/flowtoolz/FoundationToolz.git at 0.4.1 (0.64s)
Creating working copy for https://github.com/flowtoolz/FoundationToolz.git
Working copy of https://github.com/flowtoolz/FoundationToolz.git resolved at 0.4.1
Creating working copy for https://github.com/flowtoolz/SwiftyToolz.git
Working copy of https://github.com/flowtoolz/SwiftyToolz.git resolved at 0.5.1
Build complete.
{
"dependencies" : [
{
"identity" : "foundationtoolz",
"requirement" : {
"exact" : [
"0.4.1"
]
},
"type" : "sourceControl",
"url" : "https://github.com/flowtoolz/FoundationToolz.git"
},
{
"identity" : "swiftytoolz",
"requirement" : {
"exact" : [
"0.5.1"
]
},
"type" : "sourceControl",
"url" : "https://github.com/flowtoolz/SwiftyToolz.git"
}
],
"manifest_display_name" : "SwiftLSP",
"name" : "SwiftLSP",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "SwiftLSP",
"targets" : [
"SwiftLSP"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftLSPTests",
"module_type" : "SwiftTarget",
"name" : "SwiftLSPTests",
"path" : "Tests",
"product_dependencies" : [
"FoundationToolz",
"SwiftyToolz"
],
"sources" : [
"PublicAPITests.swift",
"SwiftLSPTests.swift"
],
"target_dependencies" : [
"SwiftLSP"
],
"type" : "test"
},
{
"c99name" : "SwiftLSP",
"module_type" : "SwiftTarget",
"name" : "SwiftLSP",
"path" : "Sources",
"product_dependencies" : [
"FoundationToolz",
"SwiftyToolz"
],
"product_memberships" : [
"SwiftLSP"
],
"sources" : [
"LSP.CodebaseLocation.swift",
"LSP.swift",
"Message/LSP.Message+Data.swift",
"Message/LSP.Message+JSON.swift",
"Message/LSP.Message+ReadableDescription.swift",
"Message/LSP.Message.swift",
"Message/LSP.Notification+LogMessage.swift",
"Packet/LSP.Packet+Message.swift",
"Packet/LSP.Packet.swift",
"Packet/LSP.PacketDetector.swift",
"Server Communication/LSP.LanguageIdentifier.swift",
"Server Communication/LSP.ServerCommunicationHandler.swift",
"Server Communication/LSP.ServerExecutable.swift",
"Server Communication/LSP.WebSocketConnection.swift",
"Server Communication/LSPServerConnection.swift",
"Use Cases/Basic LSP Types/LSPLocation.swift",
"Use Cases/Basic LSP Types/LSPTextDocumentPositionParams.swift",
"Use Cases/Document Sync/LSP.Message.Notification+DocumentSync.swift",
"Use Cases/Document Sync/LSP.ServerCommunicationHandler+DocumentSync.swift",
"Use Cases/References/LSP.Message.Request+References.swift",
"Use Cases/References/LSP.ServerCommunicationHandler+References.swift",
"Use Cases/Server Life Cycle/LSP.Message.Notification+Initialized.swift",
"Use Cases/Server Life Cycle/LSP.Message.Request+Initialize.swift",
"Use Cases/Symbols/LSP.Message.Request+Symbols.swift",
"Use Cases/Symbols/LSP.ServerCommunicationHandler+Symbols.swift",
"Use Cases/Symbols/LSPDocumentSymbol.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.