Build Information
Failed to build Neon, reference 0.6.0 (7df7d0
), with Swift 6.0 for Linux on 26 Nov 2024 21:43:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ChimeHQ/Neon.git
Reference: 0.6.0
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
* tag 0.6.0 -> FETCH_HEAD
HEAD is now at 7df7d08 Removing these - will come back in another form
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 @):
7df7d080a271cfa4dc87f94cccc024665a75047e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ChimeHQ/Neon.git at 0.6.0
========================================
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-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
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
Fetching https://github.com/ChimeHQ/Rearrange
[1/532] Fetching rearrange
[533/2146] Fetching rearrange, swifttreesitter
Fetched https://github.com/ChimeHQ/Rearrange from cache (0.37s)
Fetched https://github.com/ChimeHQ/SwiftTreeSitter from cache (0.45s)
Computing version for https://github.com/ChimeHQ/SwiftTreeSitter
Computed https://github.com/ChimeHQ/SwiftTreeSitter at 0.9.0 (0.66s)
Fetching https://github.com/tree-sitter/tree-sitter
[1/52934] Fetching tree-sitter
Fetched https://github.com/tree-sitter/tree-sitter from cache (3.41s)
Computing version for https://github.com/tree-sitter/tree-sitter
Computed https://github.com/tree-sitter/tree-sitter at 0.23.2 (0.74s)
Computing version for https://github.com/ChimeHQ/Rearrange
Computed https://github.com/ChimeHQ/Rearrange at 1.8.1 (3.19s)
Creating working copy for https://github.com/ChimeHQ/SwiftTreeSitter
Working copy of https://github.com/ChimeHQ/SwiftTreeSitter resolved at 0.9.0
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/Rearrange
Working copy of https://github.com/ChimeHQ/Rearrange resolved at 1.8.1
Building for debugging...
[0/8] Write sources
[4/8] Compiling scanner.c
[5/8] Write swift-version-24593BA9C3E375BF.txt
[6/8] Compiling lib.c
[8/37] Emitting module SwiftTreeSitter
[8/39] Compiling parser.c
[10/39] Compiling Rearrange NSTextLocation+Comparable.swift
[11/40] Compiling Rearrange NSTextRange+NSRange.swift
[12/40] Compiling Rearrange UITextRange+Convenience.swift
[13/40] Compiling Rearrange RangeMutation.swift
[14/40] Emitting module Rearrange
[15/40] Compiling SwiftTreeSitter Bundle+Extensions.swift
[16/40] Compiling SwiftTreeSitter Encoding+Helpers.swift
[17/40] Compiling SwiftTreeSitter Node.swift
[18/40] Compiling SwiftTreeSitter Parser.swift
[19/40] Compiling SwiftTreeSitter Point.swift
[20/40] Compiling SwiftTreeSitter Tree.swift
[21/40] Compiling SwiftTreeSitter TreeCursor.swift
[22/40] Compiling Rearrange NSRange+Shift.swift
[25/40] Compiling SwiftTreeSitter Input.swift
[28/40] Compiling SwiftTreeSitter ResolvingQueryCursor.swift
[29/40] Compiling SwiftTreeSitter ResolvingQueryMatchSequence.swift
[30/40] Compiling Rearrange String+NSRange.swift
[31/41] Compiling SwiftTreeSitter SendableTypes.swift
[32/41] Compiling SwiftTreeSitter String+Data.swift
[33/41] Compiling SwiftTreeSitter String+TextProvider.swift
[34/41] Compiling SwiftTreeSitter TSRange.swift
[35/41] Compiling SwiftTreeSitter InputEdit.swift
[36/41] Compiling SwiftTreeSitter Language.swift
[37/41] Compiling SwiftTreeSitter LanguageConfiguration.swift
[38/41] Compiling SwiftTreeSitter Predicate.swift
[39/41] Compiling SwiftTreeSitter Query.swift
[40/41] Compiling SwiftTreeSitter QueryDefinitions.swift
[43/47] Compiling TreeSitterClient Compatibility.swift
[44/47] Compiling TreeSitterClient TreeSitter+Extensions.swift
[45/47] Emitting module TreeSitterClient
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:272:58: warning: 'ResolvingQueryCursor' is deprecated: Please use ResolvingQueryMatchSequence
270 | extension TreeSitterClient {
271 | public typealias QueryCursorResult = Result<QueryCursor, TreeSitterClientError>
272 | public typealias ResolvingQueryCursorResult = Result<ResolvingQueryCursor, TreeSitterClientError>
| `- warning: 'ResolvingQueryCursor' is deprecated: Please use ResolvingQueryMatchSequence
273 |
274 | /// Determine if it is likely that a synchronous query will execute quickly
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:374:62: warning: 'ResolvingQueryCursor' is deprecated: Please use ResolvingQueryMatchSequence
372 | in range: NSRange,
373 | executionMode: ExecutionMode = .asynchronous(prefetch: true),
374 | textProvider: TextProvider? = nil) async throws -> ResolvingQueryCursor {
| `- warning: 'ResolvingQueryCursor' is deprecated: Please use ResolvingQueryMatchSequence
375 | try await withCheckedThrowingContinuation { continuation in
376 | self.executeResolvingQuery(query, in: range, executionMode: executionMode, textProvider: textProvider) { result in
[46/47] Compiling TreeSitterClient TreeSitterParseState.swift
[47/47] Compiling TreeSitterClient TreeSitterClient.swift
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:272:58: warning: 'ResolvingQueryCursor' is deprecated: Please use ResolvingQueryMatchSequence
270 | extension TreeSitterClient {
271 | public typealias QueryCursorResult = Result<QueryCursor, TreeSitterClientError>
272 | public typealias ResolvingQueryCursorResult = Result<ResolvingQueryCursor, TreeSitterClientError>
| `- warning: 'ResolvingQueryCursor' is deprecated: Please use ResolvingQueryMatchSequence
273 |
274 | /// Determine if it is likely that a synchronous query will execute quickly
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:374:62: warning: 'ResolvingQueryCursor' is deprecated: Please use ResolvingQueryMatchSequence
372 | in range: NSRange,
373 | executionMode: ExecutionMode = .asynchronous(prefetch: true),
374 | textProvider: TextProvider? = nil) async throws -> ResolvingQueryCursor {
| `- warning: 'ResolvingQueryCursor' is deprecated: Please use ResolvingQueryMatchSequence
375 | try await withCheckedThrowingContinuation { continuation in
376 | self.executeResolvingQuery(query, in: range, executionMode: executionMode, textProvider: textProvider) { result in
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:213:40: warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | }
12 |
13 | public final class TreeSitterClient {
| `- note: class 'TreeSitterClient' does not conform to the 'Sendable' protocol
14 | public typealias TextProvider = SwiftTreeSitter.Predicate.TextProvider
15 |
:
211 |
212 | queue.async {
213 | let (oldState, newState) = self.applyEdit(edit, readHandler: readHandler)
| `- warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
214 | let set = doInvalidations ? self.computeInvalidatedSet(from: oldState, to: newState, with: edit) : IndexSet()
215 |
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:213:74: warning: capture of 'readHandler' with non-sendable type 'Parser.ReadBlock' (aka '(Int, Point) -> Optional<Data>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
211 |
212 | queue.async {
213 | let (oldState, newState) = self.applyEdit(edit, readHandler: readHandler)
| |- warning: capture of 'readHandler' with non-sendable type 'Parser.ReadBlock' (aka '(Int, Point) -> Optional<Data>') 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'
214 | let set = doInvalidations ? self.computeInvalidatedSet(from: oldState, to: newState, with: edit) : IndexSet()
215 |
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:223:5: warning: capture of 'completionHandler' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | self.dispatchInvalidatedSet(set)
222 |
223 | completionHandler()
| |- warning: capture of 'completionHandler' with non-sendable type '() -> 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'
224 | }
225 | }
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:217:25: warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | }
12 |
13 | public final class TreeSitterClient {
| `- note: class 'TreeSitterClient' does not conform to the 'Sendable' protocol
14 | public typealias TextProvider = SwiftTreeSitter.Predicate.TextProvider
15 |
:
215 |
216 | OperationQueue.main.addOperation {
217 | let completedEdit = self.outstandingEdits.removeFirst()
| `- warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
218 |
219 | assert(completedEdit.inputEdit == edit.inputEdit)
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:223:5: warning: capture of 'completionHandler' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | self.dispatchInvalidatedSet(set)
222 |
223 | completionHandler()
| |- warning: capture of 'completionHandler' with non-sendable type '() -> 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'
224 | }
225 | }
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:336:13: warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | }
12 |
13 | public final class TreeSitterClient {
| `- note: class 'TreeSitterClient' does not conform to the 'Sendable' protocol
14 | public typealias TextProvider = SwiftTreeSitter.Predicate.TextProvider
15 |
:
334 | // let's be optimistic and only check once at the end.
335 |
336 | self.semaphore.wait()
| `- warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
337 | let state = self.parseState.copy()
338 | self.semaphore.signal()
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:351:25: warning: capture of 'completionHandler' with non-sendable type '(TreeSitterClient.ResolvingQueryCursorResult) -> Void' (aka '(Result<ResolvingQueryCursor, TreeSitterClientError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
349 | OperationQueue.main.addOperation {
350 | guard startedVersion == self.version else {
351 | completionHandler(.failure(.staleContent))
| |- warning: capture of 'completionHandler' with non-sendable type '(TreeSitterClient.ResolvingQueryCursorResult) -> Void' (aka '(Result<ResolvingQueryCursor, TreeSitterClientError>) -> ()') 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'
352 |
353 | return
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:356:28: warning: capture of 'textProvider' with non-sendable type 'TreeSitterClient.TextProvider?' (aka 'Optional<(_NSRange, Range<Point>) -> Optional<String>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
354 | }
355 |
356 | if let textProvider = textProvider, let cursor = try? result.get() {
| |- warning: capture of 'textProvider' with non-sendable type 'TreeSitterClient.TextProvider?' (aka 'Optional<(_NSRange, Range<Point>) -> Optional<String>>') 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'
357 | cursor.prepare(with: textProvider)
358 | }
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:341:30: warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | }
12 |
13 | public final class TreeSitterClient {
| `- note: class 'TreeSitterClient' does not conform to the 'Sendable' protocol
14 | public typealias TextProvider = SwiftTreeSitter.Predicate.TextProvider
15 |
:
339 |
340 | DispatchQueue.global().async {
341 | let result = self.executeResolvingQuerySynchronouslyWithoutCheck(query,
| `- warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
342 | in: range,
343 | with: state)
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:343:88: warning: capture of 'state' with non-sendable type 'TreeSitterParseState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
341 | let result = self.executeResolvingQuerySynchronouslyWithoutCheck(query,
342 | in: range,
343 | with: state)
| `- warning: capture of 'state' with non-sendable type 'TreeSitterParseState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
344 |
345 | if case .success(let cursor) = result, prefetchMatches {
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterParseState.swift:4:8: note: consider making struct 'TreeSitterParseState' conform to the 'Sendable' protocol
2 | import SwiftTreeSitter
3 |
4 | struct TreeSitterParseState {
| `- note: consider making struct 'TreeSitterParseState' conform to the 'Sendable' protocol
5 | var tree: MutableTree?
6 |
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:351:25: warning: capture of 'completionHandler' with non-sendable type '(TreeSitterClient.ResolvingQueryCursorResult) -> Void' (aka '(Result<ResolvingQueryCursor, TreeSitterClientError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
349 | OperationQueue.main.addOperation {
350 | guard startedVersion == self.version else {
351 | completionHandler(.failure(.staleContent))
| |- warning: capture of 'completionHandler' with non-sendable type '(TreeSitterClient.ResolvingQueryCursorResult) -> Void' (aka '(Result<ResolvingQueryCursor, TreeSitterClientError>) -> ()') 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'
352 |
353 | return
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:356:28: warning: capture of 'textProvider' with non-sendable type 'TreeSitterClient.TextProvider?' (aka 'Optional<(_NSRange, Range<Point>) -> Optional<String>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
354 | }
355 |
356 | if let textProvider = textProvider, let cursor = try? result.get() {
| |- warning: capture of 'textProvider' with non-sendable type 'TreeSitterClient.TextProvider?' (aka 'Optional<(_NSRange, Range<Point>) -> Optional<String>>') 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'
357 | cursor.prepare(with: textProvider)
358 | }
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:350:45: warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | }
12 |
13 | public final class TreeSitterClient {
| `- note: class 'TreeSitterClient' does not conform to the 'Sendable' protocol
14 | public typealias TextProvider = SwiftTreeSitter.Predicate.TextProvider
15 |
:
348 |
349 | OperationQueue.main.addOperation {
350 | guard startedVersion == self.version else {
| `- warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | completionHandler(.failure(.staleContent))
352 |
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:351:25: warning: capture of 'completionHandler' with non-sendable type '(TreeSitterClient.ResolvingQueryCursorResult) -> Void' (aka '(Result<ResolvingQueryCursor, TreeSitterClientError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
349 | OperationQueue.main.addOperation {
350 | guard startedVersion == self.version else {
351 | completionHandler(.failure(.staleContent))
| |- warning: capture of 'completionHandler' with non-sendable type '(TreeSitterClient.ResolvingQueryCursorResult) -> Void' (aka '(Result<ResolvingQueryCursor, TreeSitterClientError>) -> ()') 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'
352 |
353 | return
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:356:28: warning: capture of 'textProvider' with non-sendable type 'TreeSitterClient.TextProvider?' (aka 'Optional<(_NSRange, Range<Point>) -> Optional<String>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
354 | }
355 |
356 | if let textProvider = textProvider, let cursor = try? result.get() {
| |- warning: capture of 'textProvider' with non-sendable type 'TreeSitterClient.TextProvider?' (aka 'Optional<(_NSRange, Range<Point>) -> Optional<String>>') 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'
357 | cursor.prepare(with: textProvider)
358 | }
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:356:60: warning: capture of 'result' with non-sendable type 'TreeSitterClient.ResolvingQueryCursorResult' (aka 'Result<ResolvingQueryCursor, TreeSitterClientError>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
354 | }
355 |
356 | if let textProvider = textProvider, let cursor = try? result.get() {
| `- warning: capture of 'result' with non-sendable type 'TreeSitterClient.ResolvingQueryCursorResult' (aka 'Result<ResolvingQueryCursor, TreeSitterClientError>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | cursor.prepare(with: textProvider)
358 | }
/host/spi-builder-workspace/.build/checkouts/SwiftTreeSitter/Sources/SwiftTreeSitter/ResolvingQueryCursor.swift:36:20: note: class 'ResolvingQueryCursor' does not conform to the 'Sendable' protocol
34 | /// ```
35 | @available(*, deprecated, message: "Please use ResolvingQueryMatchSequence")
36 | public final class ResolvingQueryCursor {
| `- note: class 'ResolvingQueryCursor' does not conform to the 'Sendable' protocol
37 | /// A function that can produce text content.
38 | public typealias TextProvider = Predicate.TextProvider
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftTreeSitter'
1 | import Foundation
2 | import SwiftTreeSitter
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftTreeSitter'
3 | import Rearrange
4 |
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:391:13: warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | }
12 |
13 | public final class TreeSitterClient {
| `- note: class 'TreeSitterClient' does not conform to the 'Sendable' protocol
14 | public typealias TextProvider = SwiftTreeSitter.Predicate.TextProvider
15 |
:
389 | let startedVersion = version
390 | queue.async {
391 | self.semaphore.wait()
| `- warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
392 | let tree = self.parseState.tree?.copy()
393 | self.semaphore.signal()
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:397:21: warning: capture of 'completionHandler' with non-sendable type '(Result<Tree, TreeSitterClientError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
395 | OperationQueue.main.addOperation {
396 | guard startedVersion == self.version else {
397 | completionHandler(.failure(.staleContent))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<Tree, TreeSitterClientError>) -> 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'
398 | return
399 | }
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:396:41: warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | }
12 |
13 | public final class TreeSitterClient {
| `- note: class 'TreeSitterClient' does not conform to the 'Sendable' protocol
14 | public typealias TextProvider = SwiftTreeSitter.Predicate.TextProvider
15 |
:
394 |
395 | OperationQueue.main.addOperation {
396 | guard startedVersion == self.version else {
| `- warning: capture of 'self' with non-sendable type 'TreeSitterClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
397 | completionHandler(.failure(.staleContent))
398 | return
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:397:21: warning: capture of 'completionHandler' with non-sendable type '(Result<Tree, TreeSitterClientError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
395 | OperationQueue.main.addOperation {
396 | guard startedVersion == self.version else {
397 | completionHandler(.failure(.staleContent))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<Tree, TreeSitterClientError>) -> 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'
398 | return
399 | }
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:451:20: warning: 'ResolvingQueryCursor' is deprecated: Please use ResolvingQueryMatchSequence
449 | private func executeResolvingQuerySynchronouslyWithoutCheck(_ query: Query, in range: NSRange, with state: TreeSitterParseState) -> ResolvingQueryCursorResult {
450 | return executeQuerySynchronouslyWithoutCheck(query, in: range, with: state)
451 | .map({ ResolvingQueryCursor(cursor: $0) })
| `- warning: 'ResolvingQueryCursor' is deprecated: Please use ResolvingQueryMatchSequence
452 | }
453 | }
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:451:20: error: call to main actor-isolated initializer 'init(cursor:)' in a synchronous nonisolated context
449 | private func executeResolvingQuerySynchronouslyWithoutCheck(_ query: Query, in range: NSRange, with state: TreeSitterParseState) -> ResolvingQueryCursorResult {
450 | return executeQuerySynchronouslyWithoutCheck(query, in: range, with: state)
451 | .map({ ResolvingQueryCursor(cursor: $0) })
| `- error: call to main actor-isolated initializer 'init(cursor:)' in a synchronous nonisolated context
452 | }
453 | }
/host/spi-builder-workspace/.build/checkouts/SwiftTreeSitter/Sources/SwiftTreeSitter/ResolvingQueryCursor.swift:53:9: note: calls to initializer 'init(cursor:)' from outside of its actor context are implicitly asynchronous
51 |
52 | @MainActor
53 | public init(cursor: QueryCursor) {
| `- note: calls to initializer 'init(cursor:)' from outside of its actor context are implicitly asynchronous
54 | self.cursor = cursor
55 | self.matches = []
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:493:39: warning: conformance of 'ResolvingQueryCursor' to 'Sequence' is deprecated: Please use ResolvingQueryMatchSequence
491 | completionHandler: @escaping (Result<[NamedRange], TreeSitterClientError>) -> Void) {
492 | executeResolvingQuery(query, in: range, executionMode: executionMode, textProvider: textProvider) { cursorResult in
493 | let result = cursorResult.map { $0.highlights() }
| `- warning: conformance of 'ResolvingQueryCursor' to 'Sequence' is deprecated: Please use ResolvingQueryMatchSequence
494 |
495 | completionHandler(result)
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:524:39: warning: 'injections()' is deprecated: Please use ResolvingQueryMatchSequence
522 | completionHandler: @escaping (Result<[NamedRange], TreeSitterClientError>) -> Void) {
523 | executeResolvingQuery(query, in: range, executionMode: executionMode, textProvider: textProvider) { cursorResult in
524 | let result = cursorResult.map { $0.injections() }
| `- warning: 'injections()' is deprecated: Please use ResolvingQueryMatchSequence
525 |
526 | completionHandler(result)
BUILD FAILURE 6.0 linux