The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Neon, reference 0.6.0 (7df7d0), with Swift 6.1 for Wasm on 29 May 2025 03:08:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ChimeHQ/Neon.git
https://github.com/ChimeHQ/Neon.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swifttreesitter",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.8.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ChimeHQ/SwiftTreeSitter"
    },
    {
      "identity" : "rearrange",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ChimeHQ/Rearrange"
    }
  ],
  "manifest_display_name" : "Neon",
  "name" : "Neon",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "5.0"
    }
  ],
  "products" : [
    {
      "name" : "Neon",
      "targets" : [
        "Neon"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TreeSitterClientTests",
      "module_type" : "SwiftTarget",
      "name" : "TreeSitterClientTests",
      "path" : "Tests/TreeSitterClientTests",
      "sources" : [
        "TreeSitterClientTests.swift"
      ],
      "target_dependencies" : [
        "TreeSitterClient",
        "TestTreeSitterSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TreeSitterClient",
      "module_type" : "SwiftTarget",
      "name" : "TreeSitterClient",
      "path" : "Sources/TreeSitterClient",
      "product_dependencies" : [
        "Rearrange",
        "SwiftTreeSitter"
      ],
      "product_memberships" : [
        "Neon"
      ],
      "sources" : [
        "Compatibility.swift",
        "TreeSitter+Extensions.swift",
        "TreeSitterClient.swift",
        "TreeSitterParseState.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TestTreeSitterSwift",
      "module_type" : "ClangTarget",
      "name" : "TestTreeSitterSwift",
      "path" : "tree-sitter-swift",
      "sources" : [
        "src/parser.c",
        "src/scanner.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "NeonTests",
      "module_type" : "SwiftTarget",
      "name" : "NeonTests",
      "path" : "Tests/NeonTests",
      "sources" : [
        "HighlighterTests.swift",
        "TextViewSystemInterfaceTests.swift"
      ],
      "target_dependencies" : [
        "Neon"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Neon",
      "module_type" : "SwiftTarget",
      "name" : "Neon",
      "path" : "Sources/Neon",
      "product_dependencies" : [
        "SwiftTreeSitter",
        "Rearrange"
      ],
      "product_memberships" : [
        "Neon"
      ],
      "sources" : [
        "Compatibility.swift",
        "Highlighter.swift",
        "HighlighterInvalidationBuffer.swift",
        "NSTextView+VisibleRange.swift",
        "TextSystemInterface.swift",
        "TextTarget.swift",
        "TextViewHighlighter.swift",
        "TextViewSystemInterface.swift",
        "Token.swift",
        "TokenApplication.swift",
        "TreeSitterClient+Highlight.swift",
        "UITextView+VisibleRange.swift"
      ],
      "target_dependencies" : [
        "TreeSitterClient"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/ChimeHQ/Rearrange
Fetching https://github.com/ChimeHQ/SwiftTreeSitter
[1/569] Fetching rearrange
[417/2202] Fetching rearrange, swifttreesitter
Fetched https://github.com/ChimeHQ/Rearrange from cache (0.42s)
[1046/1633] Fetching swifttreesitter
Fetched https://github.com/ChimeHQ/SwiftTreeSitter from cache (0.53s)
Computing version for https://github.com/ChimeHQ/SwiftTreeSitter
Computed https://github.com/ChimeHQ/SwiftTreeSitter at 0.9.0 (1.59s)
Fetching https://github.com/tree-sitter/tree-sitter
[1/57426] Fetching tree-sitter
Fetched https://github.com/tree-sitter/tree-sitter from cache (4.60s)
Computing version for https://github.com/tree-sitter/tree-sitter
Computed https://github.com/tree-sitter/tree-sitter at 0.23.2 (5.23s)
Computing version for https://github.com/ChimeHQ/Rearrange
Computed https://github.com/ChimeHQ/Rearrange at 1.8.1 (3.43s)
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
Creating working copy for https://github.com/ChimeHQ/SwiftTreeSitter
Working copy of https://github.com/ChimeHQ/SwiftTreeSitter resolved at 0.9.0
Building for debugging...
[0/8] Write sources
[4/8] Compiling scanner.c
[5/8] Write swift-version-24593BA9C3E375BF.txt
[6/18] Compiling lib.c
[8/37] Emitting module SwiftTreeSitter
[9/39] Compiling Rearrange String+NSRange.swift
[10/40] Compiling SwiftTreeSitter Tree.swift
[11/40] Compiling SwiftTreeSitter TreeCursor.swift
[12/40] Emitting module Rearrange
[13/40] Compiling SwiftTreeSitter Bundle+Extensions.swift
[14/40] Compiling SwiftTreeSitter Encoding+Helpers.swift
[15/40] Compiling SwiftTreeSitter Input.swift
[16/40] Compiling SwiftTreeSitter Node.swift
[18/40] Compiling SwiftTreeSitter Parser.swift
[19/40] Compiling SwiftTreeSitter Point.swift
[20/40] Compiling Rearrange UITextRange+Convenience.swift
[21/40] Compiling SwiftTreeSitter ResolvingQueryCursor.swift
[22/40] Compiling SwiftTreeSitter ResolvingQueryMatchSequence.swift
[23/40] Compiling SwiftTreeSitter SendableTypes.swift
[24/40] Compiling SwiftTreeSitter String+Data.swift
[25/40] Compiling SwiftTreeSitter String+TextProvider.swift
[26/40] Compiling SwiftTreeSitter TSRange.swift
[27/40] Compiling Rearrange NSTextRange+NSRange.swift
[28/40] Compiling Rearrange NSTextLocation+Comparable.swift
[29/40] Compiling Rearrange RangeMutation.swift
[30/40] Compiling Rearrange NSRange+Shift.swift
[34/40] Compiling SwiftTreeSitter InputEdit.swift
[35/40] Compiling SwiftTreeSitter Language.swift
[36/40] Compiling SwiftTreeSitter LanguageConfiguration.swift
[37/41] Compiling SwiftTreeSitter Predicate.swift
[38/41] Compiling SwiftTreeSitter Query.swift
[39/41] Compiling SwiftTreeSitter QueryDefinitions.swift
[42/47] Compiling TreeSitterClient TreeSitterParseState.swift
[43/47] Compiling TreeSitterClient TreeSitterClient.swift
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:50:24: error: cannot find type 'DispatchQueue' in scope
 48 |     private var outstandingEdits: [ContentEdit]
 49 |     private var version: Int
 50 |     private let queue: DispatchQueue
    |                        `- error: cannot find type 'DispatchQueue' in scope
 51 |     private let semaphore: DispatchSemaphore
 52 |     private let synchronousLengthThreshold: Int
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:51:28: error: cannot find type 'DispatchSemaphore' in scope
 49 |     private var version: Int
 50 |     private let queue: DispatchQueue
 51 |     private let semaphore: DispatchSemaphore
    |                            `- error: cannot find type 'DispatchSemaphore' in scope
 52 |     private let synchronousLengthThreshold: Int
 53 |
/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:78:22: error: cannot find 'DispatchQueue' in scope
 76 |         self.computeInvalidations = true
 77 |         self.version = 0
 78 |         self.queue = DispatchQueue(label: "com.chimehq.Neon.TreeSitterClient")
    |                      `- error: cannot find 'DispatchQueue' in scope
 79 |         self.semaphore = DispatchSemaphore(value: 1)
 80 |
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:79:26: error: cannot find 'DispatchSemaphore' in scope
 77 |         self.version = 0
 78 |         self.queue = DispatchQueue(label: "com.chimehq.Neon.TreeSitterClient")
 79 |         self.semaphore = DispatchSemaphore(value: 1)
    |                          `- error: cannot find 'DispatchSemaphore' in scope
 80 |
 81 |         try parser.setLanguage(language)
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:216:4: error: cannot find 'OperationQueue' in scope
214 | 			let set = doInvalidations ? self.computeInvalidatedSet(from: oldState, to: newState, with: edit) : IndexSet()
215 |
216 | 			OperationQueue.main.addOperation {
    |    `- error: cannot find 'OperationQueue' in scope
217 | 				let completedEdit = self.outstandingEdits.removeFirst()
218 |
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:340:13: error: cannot find 'DispatchQueue' in scope
338 |             self.semaphore.signal()
339 |
340 |             DispatchQueue.global().async {
    |             `- error: cannot find 'DispatchQueue' in scope
341 |                 let result = self.executeResolvingQuerySynchronouslyWithoutCheck(query,
342 |                                                                                  in: range,
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:349:17: error: cannot find 'OperationQueue' in scope
347 |                 }
348 |
349 |                 OperationQueue.main.addOperation {
    |                 `- error: cannot find 'OperationQueue' in scope
350 |                     guard startedVersion == self.version else {
351 |                         completionHandler(.failure(.staleContent))
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:395:13: error: cannot find 'OperationQueue' in scope
393 |             self.semaphore.signal()
394 |
395 |             OperationQueue.main.addOperation {
    |             `- error: cannot find 'OperationQueue' in scope
396 |                 guard startedVersion == self.version else {
397 |                     completionHandler(.failure(.staleContent))
/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)
[44/47] Compiling TreeSitterClient Compatibility.swift
/host/spi-builder-workspace/Sources/TreeSitterClient/Compatibility.swift:5:9: error: cannot find 'dispatchPrecondition' in scope
3 | func preconditionOnMainQueue() {
4 |     if #available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *) {
5 |         dispatchPrecondition(condition: .onQueue(.main))
  |         `- error: cannot find 'dispatchPrecondition' in scope
6 |     }
7 | }
/host/spi-builder-workspace/Sources/TreeSitterClient/Compatibility.swift:5:42: error: cannot infer contextual base in reference to member 'onQueue'
3 | func preconditionOnMainQueue() {
4 |     if #available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *) {
5 |         dispatchPrecondition(condition: .onQueue(.main))
  |                                          `- error: cannot infer contextual base in reference to member 'onQueue'
6 |     }
7 | }
/host/spi-builder-workspace/Sources/TreeSitterClient/Compatibility.swift:5:51: error: cannot infer contextual base in reference to member 'main'
3 | func preconditionOnMainQueue() {
4 |     if #available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *) {
5 |         dispatchPrecondition(condition: .onQueue(.main))
  |                                                   `- error: cannot infer contextual base in reference to member 'main'
6 |     }
7 | }
[45/47] Compiling TreeSitterClient TreeSitter+Extensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[46/47] Emitting module TreeSitterClient
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:50:24: error: cannot find type 'DispatchQueue' in scope
 48 |     private var outstandingEdits: [ContentEdit]
 49 |     private var version: Int
 50 |     private let queue: DispatchQueue
    |                        `- error: cannot find type 'DispatchQueue' in scope
 51 |     private let semaphore: DispatchSemaphore
 52 |     private let synchronousLengthThreshold: Int
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:51:28: error: cannot find type 'DispatchSemaphore' in scope
 49 |     private var version: Int
 50 |     private let queue: DispatchQueue
 51 |     private let semaphore: DispatchSemaphore
    |                            `- error: cannot find type 'DispatchSemaphore' in scope
 52 |     private let synchronousLengthThreshold: Int
 53 |
/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 parser.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/2] Write swift-version-24593BA9C3E375BF.txt
[2/31] Compiling Rearrange NSTextRange+NSRange.swift
[3/32] Compiling Rearrange NSTextLocation+Comparable.swift
[4/32] Compiling Rearrange UITextRange+Convenience.swift
[5/32] Compiling Rearrange IndexSet+ApplyMutation.swift
[6/32] Compiling Rearrange IndexSet+NSRange.swift
[7/32] Compiling Rearrange NSRange+ApplyMutation.swift
[8/34] Compiling SwiftTreeSitter String+TextProvider.swift
[9/34] Compiling SwiftTreeSitter TSRange.swift
[10/34] Compiling Rearrange NSRange+Shift.swift
[11/34] Compiling Rearrange String+NSRange.swift
[13/34] Compiling Rearrange NSRange+Convenience.swift
[14/34] Compiling Rearrange RangeMutation.swift
[15/34] Emitting module Rearrange
[18/35] Emitting module SwiftTreeSitter
[20/35] Compiling SwiftTreeSitter Tree.swift
[21/35] Compiling SwiftTreeSitter TreeCursor.swift
[22/35] Compiling SwiftTreeSitter Node.swift
[23/35] Compiling SwiftTreeSitter Parser.swift
[24/35] Compiling SwiftTreeSitter Point.swift
[25/35] Compiling SwiftTreeSitter SendableTypes.swift
[26/35] Compiling SwiftTreeSitter String+Data.swift
[27/35] Compiling SwiftTreeSitter ResolvingQueryCursor.swift
[28/35] Compiling SwiftTreeSitter ResolvingQueryMatchSequence.swift
[30/35] Compiling SwiftTreeSitter Language.swift
[31/35] Compiling SwiftTreeSitter LanguageConfiguration.swift
[32/35] Compiling SwiftTreeSitter Predicate.swift
[33/35] Compiling SwiftTreeSitter Query.swift
[34/35] Compiling SwiftTreeSitter QueryDefinitions.swift
[36/41] Compiling TreeSitterClient TreeSitterClient.swift
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:50:24: error: cannot find type 'DispatchQueue' in scope
 48 |     private var outstandingEdits: [ContentEdit]
 49 |     private var version: Int
 50 |     private let queue: DispatchQueue
    |                        `- error: cannot find type 'DispatchQueue' in scope
 51 |     private let semaphore: DispatchSemaphore
 52 |     private let synchronousLengthThreshold: Int
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:51:28: error: cannot find type 'DispatchSemaphore' in scope
 49 |     private var version: Int
 50 |     private let queue: DispatchQueue
 51 |     private let semaphore: DispatchSemaphore
    |                            `- error: cannot find type 'DispatchSemaphore' in scope
 52 |     private let synchronousLengthThreshold: Int
 53 |
/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:78:22: error: cannot find 'DispatchQueue' in scope
 76 |         self.computeInvalidations = true
 77 |         self.version = 0
 78 |         self.queue = DispatchQueue(label: "com.chimehq.Neon.TreeSitterClient")
    |                      `- error: cannot find 'DispatchQueue' in scope
 79 |         self.semaphore = DispatchSemaphore(value: 1)
 80 |
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:79:26: error: cannot find 'DispatchSemaphore' in scope
 77 |         self.version = 0
 78 |         self.queue = DispatchQueue(label: "com.chimehq.Neon.TreeSitterClient")
 79 |         self.semaphore = DispatchSemaphore(value: 1)
    |                          `- error: cannot find 'DispatchSemaphore' in scope
 80 |
 81 |         try parser.setLanguage(language)
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:216:4: error: cannot find 'OperationQueue' in scope
214 | 			let set = doInvalidations ? self.computeInvalidatedSet(from: oldState, to: newState, with: edit) : IndexSet()
215 |
216 | 			OperationQueue.main.addOperation {
    |    `- error: cannot find 'OperationQueue' in scope
217 | 				let completedEdit = self.outstandingEdits.removeFirst()
218 |
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:340:13: error: cannot find 'DispatchQueue' in scope
338 |             self.semaphore.signal()
339 |
340 |             DispatchQueue.global().async {
    |             `- error: cannot find 'DispatchQueue' in scope
341 |                 let result = self.executeResolvingQuerySynchronouslyWithoutCheck(query,
342 |                                                                                  in: range,
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:349:17: error: cannot find 'OperationQueue' in scope
347 |                 }
348 |
349 |                 OperationQueue.main.addOperation {
    |                 `- error: cannot find 'OperationQueue' in scope
350 |                     guard startedVersion == self.version else {
351 |                         completionHandler(.failure(.staleContent))
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:395:13: error: cannot find 'OperationQueue' in scope
393 |             self.semaphore.signal()
394 |
395 |             OperationQueue.main.addOperation {
    |             `- error: cannot find 'OperationQueue' in scope
396 |                 guard startedVersion == self.version else {
397 |                     completionHandler(.failure(.staleContent))
/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)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[37/41] Compiling TreeSitterClient TreeSitter+Extensions.swift
[38/41] Emitting module TreeSitterClient
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:50:24: error: cannot find type 'DispatchQueue' in scope
 48 |     private var outstandingEdits: [ContentEdit]
 49 |     private var version: Int
 50 |     private let queue: DispatchQueue
    |                        `- error: cannot find type 'DispatchQueue' in scope
 51 |     private let semaphore: DispatchSemaphore
 52 |     private let synchronousLengthThreshold: Int
/host/spi-builder-workspace/Sources/TreeSitterClient/TreeSitterClient.swift:51:28: error: cannot find type 'DispatchSemaphore' in scope
 49 |     private var version: Int
 50 |     private let queue: DispatchQueue
 51 |     private let semaphore: DispatchSemaphore
    |                            `- error: cannot find type 'DispatchSemaphore' in scope
 52 |     private let synchronousLengthThreshold: Int
 53 |
/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
[39/41] Compiling TreeSitterClient Compatibility.swift
/host/spi-builder-workspace/Sources/TreeSitterClient/Compatibility.swift:5:9: error: cannot find 'dispatchPrecondition' in scope
3 | func preconditionOnMainQueue() {
4 |     if #available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *) {
5 |         dispatchPrecondition(condition: .onQueue(.main))
  |         `- error: cannot find 'dispatchPrecondition' in scope
6 |     }
7 | }
/host/spi-builder-workspace/Sources/TreeSitterClient/Compatibility.swift:5:42: error: cannot infer contextual base in reference to member 'onQueue'
3 | func preconditionOnMainQueue() {
4 |     if #available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *) {
5 |         dispatchPrecondition(condition: .onQueue(.main))
  |                                          `- error: cannot infer contextual base in reference to member 'onQueue'
6 |     }
7 | }
/host/spi-builder-workspace/Sources/TreeSitterClient/Compatibility.swift:5:51: error: cannot infer contextual base in reference to member 'main'
3 | func preconditionOnMainQueue() {
4 |     if #available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *) {
5 |         dispatchPrecondition(condition: .onQueue(.main))
  |                                                   `- error: cannot infer contextual base in reference to member 'main'
6 |     }
7 | }
[40/41] Compiling TreeSitterClient TreeSitterParseState.swift
[40/41] Compiling parser.c
BUILD FAILURE 6.1 wasm