The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Neon, reference main (f3c717), with Swift 6.0 for Linux on 4 Nov 2024 05:08:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ChimeHQ/Neon.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ChimeHQ/Neon
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f3c717b Use fast init for IndexSet
Submodule path 'tree-sitter-swift': checked out '50b8c5e61c29fa30e760c7a1cbf24b59970e6233'
Submodule 'tree-sitter-swift' (https://github.com/alex-pinkus/tree-sitter-swift) registered for path 'tree-sitter-swift'
Cloning into '/host/spi-builder-workspace/tree-sitter-swift'...
Cloned https://github.com/ChimeHQ/Neon.git
Revision (git rev-parse @):
f3c717b5bbf2118aa93f16a0aa4adf9a9c39ad43
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ChimeHQ/Neon.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ChimeHQ/Neon.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/ChimeHQ/SwiftTreeSitter
[1/1582] Fetching swifttreesitter
Fetched https://github.com/ChimeHQ/SwiftTreeSitter from cache (0.22s)
Fetching https://github.com/tree-sitter/tree-sitter
Fetching https://github.com/ChimeHQ/Rearrange
[1/532] Fetching rearrange
[533/52496] Fetching rearrange, tree-sitter
Fetched https://github.com/ChimeHQ/Rearrange from cache (1.98s)
Fetched https://github.com/tree-sitter/tree-sitter from cache (2.01s)
Computing version for https://github.com/ChimeHQ/Rearrange
Computed https://github.com/ChimeHQ/Rearrange at 1.8.1 (1.79s)
Computing version for https://github.com/tree-sitter/tree-sitter
Computed https://github.com/tree-sitter/tree-sitter at 0.23.2 (0.38s)
Creating working copy for https://github.com/ChimeHQ/Rearrange
Working copy of https://github.com/ChimeHQ/Rearrange resolved at 1.8.1
Creating working copy for https://github.com/tree-sitter/tree-sitter
Working copy of https://github.com/tree-sitter/tree-sitter resolved at 0.23.2
Creating working copy for https://github.com/ChimeHQ/SwiftTreeSitter
Working copy of https://github.com/ChimeHQ/SwiftTreeSitter resolved at f01316eaf3aae07e30478f8afa76192ab4a96420
Building for debugging...
[0/11] Write sources
[7/11] Compiling scanner.c
[8/11] Write swift-version-24593BA9C3E375BF.txt
[8/11] Compiling lib.c
[11/42] Emitting module SwiftTreeSitter
[11/44] Compiling parser.c
[13/44] Compiling SwiftTreeSitter SendableTypes.swift
[14/44] Compiling SwiftTreeSitter String+Data.swift
[15/44] Compiling SwiftTreeSitter Bundle+Extensions.swift
[16/44] Compiling SwiftTreeSitter Encoding+Helpers.swift
[17/44] Compiling SwiftTreeSitter Input.swift
[18/44] Compiling SwiftTreeSitter Tree.swift
[19/44] Compiling SwiftTreeSitter TreeCursor.swift
[21/44] Compiling SwiftTreeSitter InputEdit.swift
[22/44] Compiling Rearrange NSRange+Shift.swift
[23/44] Emitting module Rearrange
[26/45] Compiling Rearrange NSTextLocation+Comparable.swift
[27/45] Compiling SwiftTreeSitter ResolvingQueryCursor.swift
[28/45] Compiling SwiftTreeSitter ResolvingQueryMatchSequence.swift
[29/45] Compiling SwiftTreeSitter String+TextProvider.swift
[30/45] Compiling SwiftTreeSitter TSRange.swift
[31/45] Emitting module ConcurrencyCompatibility
[32/45] Compiling ConcurrencyCompatibility Compatibility.swift
/host/spi-builder-workspace/Sources/ConcurrencyCompatibility/Compatibility.swift:11:25: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 6 | 	/// It will crash if run on any non-main thread.
 7 | 	@_unavailableFromAsync
 8 | 	public func assumeIsolated<T>(_ body: @MainActor () throws -> T) rethrows -> T {
   |                             `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 9 | #if swift(>=5.9)
10 | 		if #available(macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0, *) {
11 | 			return try MainActor.assumeIsolated(body)
   |                         `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | 		}
13 | #endif
[34/45] Compiling SwiftTreeSitter Language.swift
[35/45] Compiling SwiftTreeSitter LanguageConfiguration.swift
[36/46] Compiling Rearrange NSTextRange+NSRange.swift
[37/46] Compiling Rearrange String+NSRange.swift
[38/46] Compiling Rearrange RangeMutation.swift
[39/46] Compiling SwiftTreeSitter Node.swift
[40/46] Compiling SwiftTreeSitter Parser.swift
[41/46] Compiling SwiftTreeSitter Point.swift
[42/46] Compiling SwiftTreeSitter Predicate.swift
[43/46] Compiling SwiftTreeSitter Query.swift
[44/46] Compiling SwiftTreeSitter QueryDefinitions.swift
[45/46] Compiling Rearrange UITextRange+Convenience.swift
[49/65] Emitting module SwiftTreeSitterLayer
[50/65] Compiling SwiftTreeSitterLayer Queryable.swift
[51/65] Compiling SwiftTreeSitterLayer Snapshots.swift
[52/65] Compiling RangeState ThreePhaseRangeValidator.swift
[53/66] Emitting module RangeState
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider+RangeProcessor.swift:23:28: warning: sending 'inputTransformer' risks causing data races; this is an error in the Swift 6 language mode
21 | 			},
22 | 			asyncValue: { input, actor in
23 | 				let (location, fill) = inputTransformer(input)
   |                            |- warning: sending 'inputTransformer' risks causing data races; this is an error in the Swift 6 language mode
   |                            `- note: main actor-isolated 'inputTransformer' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
24 |
25 | 				await rangeProcessor.processLocation(location, mode: fill)
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider+RangeProcessor.swift:28:18: warning: sending 'asyncValue' risks causing data races; this is an error in the Swift 6 language mode
26 | 				await rangeProcessor.processingCompleted()
27 |
28 | 				return await asyncValue(input)
   |                  |- warning: sending 'asyncValue' risks causing data races; this is an error in the Swift 6 language mode
   |                  `- note: main actor-isolated 'asyncValue' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
29 | 			}
30 | 		)
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider+RangeProcessor.swift:54:28: warning: sending 'inputTransformer' risks causing data races; this is an error in the Swift 6 language mode
52 | 			},
53 | 			asyncValue: { input, actor in
54 | 				let (location, fill) = inputTransformer(input)
   |                            |- warning: sending 'inputTransformer' risks causing data races; this is an error in the Swift 6 language mode
   |                            `- note: main actor-isolated 'inputTransformer' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
55 |
56 | 				await rangeProcessor.processLocation(location, mode: fill)
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider+RangeProcessor.swift:59:22: warning: sending 'asyncValue' risks causing data races; this is an error in the Swift 6 language mode
57 | 				await rangeProcessor.processingCompleted()
58 |
59 | 				return try await asyncValue(input)
   |                      |- warning: sending 'asyncValue' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: main actor-isolated 'asyncValue' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
60 | 			}
61 | 		)
[54/66] Compiling SwiftTreeSitterLayer ParseState.swift
[55/66] Compiling RangeState RangeTarget.swift
[56/66] Compiling RangeState RangeInvalidationBuffer.swift
[57/66] Compiling RangeState RangeProcessor.swift
[58/66] Compiling RangeState HybridValueProvider+RangeProcessor.swift
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider+RangeProcessor.swift:23:28: warning: sending 'inputTransformer' risks causing data races; this is an error in the Swift 6 language mode
21 | 			},
22 | 			asyncValue: { input, actor in
23 | 				let (location, fill) = inputTransformer(input)
   |                            |- warning: sending 'inputTransformer' risks causing data races; this is an error in the Swift 6 language mode
   |                            `- note: main actor-isolated 'inputTransformer' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
24 |
25 | 				await rangeProcessor.processLocation(location, mode: fill)
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider+RangeProcessor.swift:28:18: warning: sending 'asyncValue' risks causing data races; this is an error in the Swift 6 language mode
26 | 				await rangeProcessor.processingCompleted()
27 |
28 | 				return await asyncValue(input)
   |                  |- warning: sending 'asyncValue' risks causing data races; this is an error in the Swift 6 language mode
   |                  `- note: main actor-isolated 'asyncValue' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
29 | 			}
30 | 		)
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider+RangeProcessor.swift:54:28: warning: sending 'inputTransformer' risks causing data races; this is an error in the Swift 6 language mode
52 | 			},
53 | 			asyncValue: { input, actor in
54 | 				let (location, fill) = inputTransformer(input)
   |                            |- warning: sending 'inputTransformer' risks causing data races; this is an error in the Swift 6 language mode
   |                            `- note: main actor-isolated 'inputTransformer' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
55 |
56 | 				await rangeProcessor.processLocation(location, mode: fill)
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider+RangeProcessor.swift:59:22: warning: sending 'asyncValue' risks causing data races; this is an error in the Swift 6 language mode
57 | 				await rangeProcessor.processingCompleted()
58 |
59 | 				return try await asyncValue(input)
   |                      |- warning: sending 'asyncValue' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: main actor-isolated 'asyncValue' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
60 | 			}
61 | 		)
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider.swift:37:17: warning: sending 'mainActorAsyncValue' risks causing data races; this is an error in the Swift 6 language mode
 35 | 		self.syncValueProvider = syncValue
 36 | 		self.asyncValueProvider = { input, _ in
 37 | 			return await mainActorAsyncValue(input)
    |                 |- warning: sending 'mainActorAsyncValue' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'mainActorAsyncValue' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
 38 | 		}
 39 | 	}
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider.swift:81:17: warning: sending 'mainActorAsyncValue' risks causing data races; this is an error in the Swift 6 language mode
 79 | 		self.syncValueProvider = syncValue
 80 | 		self.asyncValueProvider = { input, _ in
 81 | 			return await mainActorAsyncValue(input)
    |                 |- warning: sending 'mainActorAsyncValue' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'mainActorAsyncValue' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
 82 | 		}
 83 | 	}
[59/66] Compiling RangeState HybridValueProvider.swift
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider+RangeProcessor.swift:23:28: warning: sending 'inputTransformer' risks causing data races; this is an error in the Swift 6 language mode
21 | 			},
22 | 			asyncValue: { input, actor in
23 | 				let (location, fill) = inputTransformer(input)
   |                            |- warning: sending 'inputTransformer' risks causing data races; this is an error in the Swift 6 language mode
   |                            `- note: main actor-isolated 'inputTransformer' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
24 |
25 | 				await rangeProcessor.processLocation(location, mode: fill)
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider+RangeProcessor.swift:28:18: warning: sending 'asyncValue' risks causing data races; this is an error in the Swift 6 language mode
26 | 				await rangeProcessor.processingCompleted()
27 |
28 | 				return await asyncValue(input)
   |                  |- warning: sending 'asyncValue' risks causing data races; this is an error in the Swift 6 language mode
   |                  `- note: main actor-isolated 'asyncValue' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
29 | 			}
30 | 		)
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider+RangeProcessor.swift:54:28: warning: sending 'inputTransformer' risks causing data races; this is an error in the Swift 6 language mode
52 | 			},
53 | 			asyncValue: { input, actor in
54 | 				let (location, fill) = inputTransformer(input)
   |                            |- warning: sending 'inputTransformer' risks causing data races; this is an error in the Swift 6 language mode
   |                            `- note: main actor-isolated 'inputTransformer' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
55 |
56 | 				await rangeProcessor.processLocation(location, mode: fill)
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider+RangeProcessor.swift:59:22: warning: sending 'asyncValue' risks causing data races; this is an error in the Swift 6 language mode
57 | 				await rangeProcessor.processingCompleted()
58 |
59 | 				return try await asyncValue(input)
   |                      |- warning: sending 'asyncValue' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: main actor-isolated 'asyncValue' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
60 | 			}
61 | 		)
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider.swift:37:17: warning: sending 'mainActorAsyncValue' risks causing data races; this is an error in the Swift 6 language mode
 35 | 		self.syncValueProvider = syncValue
 36 | 		self.asyncValueProvider = { input, _ in
 37 | 			return await mainActorAsyncValue(input)
    |                 |- warning: sending 'mainActorAsyncValue' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'mainActorAsyncValue' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
 38 | 		}
 39 | 	}
/host/spi-builder-workspace/Sources/RangeState/HybridValueProvider.swift:81:17: warning: sending 'mainActorAsyncValue' risks causing data races; this is an error in the Swift 6 language mode
 79 | 		self.syncValueProvider = syncValue
 80 | 		self.asyncValueProvider = { input, _ in
 81 | 			return await mainActorAsyncValue(input)
    |                 |- warning: sending 'mainActorAsyncValue' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'mainActorAsyncValue' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
 82 | 		}
 83 | 	}
[60/66] Compiling RangeState RangeValidator.swift
[61/66] Compiling RangeState SinglePhaseRangeValidator.swift
[62/66] Compiling SwiftTreeSitterLayer LanguageLayerQueryCursor.swift
[63/66] Compiling SwiftTreeSitterLayer TreeSitter+Extensions.swift
[64/66] Compiling RangeState Versioned.swift
[66/67] Compiling SwiftTreeSitterLayer IndexSet+Range.swift
[67/67] Compiling SwiftTreeSitterLayer LanguageLayer.swift
[69/72] Compiling TreeSitterClient TreeSitterClient.swift
[70/72] Compiling TreeSitterClient TreeSitter+Extensions.swift
[71/72] Emitting module TreeSitterClient
[72/72] Compiling TreeSitterClient BackgroundingLanguageLayerTree.swift
/host/spi-builder-workspace/Sources/TreeSitterClient/BackgroundingLanguageLayerTree.swift:145:19: warning: sending 'cursorResult' risks causing data races; this is an error in the Swift 6 language mode
143 | 					}
144 |
145 | 					continuation.resume(with: cursorResult)
    |                   |- warning: sending 'cursorResult' risks causing data races; this is an error in the Swift 6 language mode
    |                   `- note: main actor-isolated 'cursorResult' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
146 | 				}
147 | 			}
[74/84] Emitting module Neon
[75/85] Compiling Neon TokenSystemValidator.swift
[76/85] Compiling Neon PlatformTextSystem.swift
[77/85] Compiling Neon TextStorageDelegateBuffer.swift
[78/85] Compiling Neon TextSystemInterface+Validation.swift
[79/85] Compiling Neon TextSystemInterface.swift
[80/85] Compiling Neon ThreePhaseTextSystemStyler.swift
[81/85] Compiling Neon TextSystemStyler.swift
[82/85] Compiling Neon TextViewHighlighter.swift
[83/85] Compiling Neon TextViewSystemInterface.swift
[84/85] Compiling Neon Token.swift
[85/85] Compiling Neon TreeSitterClient+Neon.swift
/host/spi-builder-workspace/Sources/Neon/TreeSitterClient+Neon.swift:102:25: error: initializer 'init(_:in:)' requires that 'NSRange' (aka '_NSRange') conform to 'RangeExpression'
100 | 			let token = Token(name: range.name, range: range.range)
101 | 			let attrs = attributeProvider(token)
102 | 			guard let strRange = Range<AttributedString.Index>(token.range, in: attributedString) else { continue }
    |                         `- error: initializer 'init(_:in:)' requires that 'NSRange' (aka '_NSRange') conform to 'RangeExpression'
103 |
104 | 			attributedString[strRange].foregroundColor = attrs[.foregroundColor] as? PlatformColor
FoundationEssentials.Range:3:12: note: where 'R' = 'NSRange' (aka '_NSRange')
1 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
2 | extension Range where Bound == AttributedString.Index {
3 |     public init?<R, S>(_ region: R, in attributedString: S) where R : RangeExpression, S : AttributedStringProtocol, R.Bound == String.Index
  |            `- note: where 'R' = 'NSRange' (aka '_NSRange')
4 | }
/host/spi-builder-workspace/Sources/Neon/TreeSitterClient+Neon.swift:104:77: error: cannot find type 'PlatformColor' in scope
102 | 			guard let strRange = Range<AttributedString.Index>(token.range, in: attributedString) else { continue }
103 |
104 | 			attributedString[strRange].foregroundColor = attrs[.foregroundColor] as? PlatformColor
    |                                                                             `- error: cannot find type 'PlatformColor' in scope
105 | 		}
106 |
/host/spi-builder-workspace/Sources/Neon/TreeSitterClient+Neon.swift:104:31: error: reference to member 'foregroundColor' cannot be resolved without a contextual type
102 | 			guard let strRange = Range<AttributedString.Index>(token.range, in: attributedString) else { continue }
103 |
104 | 			attributedString[strRange].foregroundColor = attrs[.foregroundColor] as? PlatformColor
    |                               `- error: reference to member 'foregroundColor' cannot be resolved without a contextual type
105 | 		}
106 |
/host/spi-builder-workspace/Sources/Neon/TreeSitterClient+Neon.swift:104:56: error: reference to member 'foregroundColor' cannot be resolved without a contextual type
102 | 			guard let strRange = Range<AttributedString.Index>(token.range, in: attributedString) else { continue }
103 |
104 | 			attributedString[strRange].foregroundColor = attrs[.foregroundColor] as? PlatformColor
    |                                                        `- error: reference to member 'foregroundColor' cannot be resolved without a contextual type
105 | 		}
106 |
BUILD FAILURE 6.0 linux