Build Information
Failed to build Promissum, reference main (34aa14), with Swift 6.1 for Wasm on 28 May 2025 04:49:52 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tomlokhorst/Promissum.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/tomlokhorst/Promissum
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 34aa142 Add async/await documentation to README
Cloned https://github.com/tomlokhorst/Promissum.git
Revision (git rev-parse @):
34aa14261488f99e1221eb3e534000ca6ecf9d8e
SUCCESS checkout https://github.com/tomlokhorst/Promissum.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/tomlokhorst/Promissum.git
https://github.com/tomlokhorst/Promissum.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Promissum",
"name" : "Promissum",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "Promissum",
"targets" : [
"Promissum"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "PromissumTests",
"module_type" : "SwiftTarget",
"name" : "PromissumTests",
"path" : "Tests/PromissumTests",
"sources" : [
"AsyncAwaitTests.swift",
"CombinatorTests.swift",
"DispatchOnTests.swift",
"DispatchQueueTests.swift",
"DispatchSynchronousTests.swift",
"DispatchUnspecifiedTests.swift",
"HandlerTests.swift",
"InitialErrorTests.swift",
"InitialValueTests.swift",
"MultipleErrorTests.swift",
"MultipleValueTests.swift",
"ResolveRejectTests.swift",
"SideEffectOrderTests.swift",
"SourceErrorTests.swift",
"SourceResultTests.swift",
"SourceValueTests.swift",
"XCTestCase+Expectation.swift"
],
"target_dependencies" : [
"Promissum"
],
"type" : "test"
},
{
"c99name" : "Promissum",
"module_type" : "SwiftTarget",
"name" : "Promissum",
"path" : "Sources/Promissum",
"product_memberships" : [
"Promissum"
],
"sources" : [
"AsyncExtensions.swift",
"Combinators.swift",
"DispatchMethod.swift",
"Promise.swift",
"PromiseSource.swift",
"Result.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling Promissum AsyncExtensions.swift
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:119:44: error: cannot find type 'DispatchSpecificKey' in scope
117 | }
118 |
119 | internal init(state: State, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod, warnUnresolvedDeinit: Bool) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
120 | self.internalState = PromiseSourceState(state: state)
121 | self.dispatchKey = dispatchKey
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/9] Compiling Promissum Result.swift
[5/9] Compiling Promissum PromiseSource.swift
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:70:29: error: cannot find type 'DispatchSpecificKey' in scope
68 | */
69 | public class PromiseSource<Value, Error> where Error: Swift.Error {
70 | internal let dispatchKey: DispatchSpecificKey<Void>
| `- error: cannot find type 'DispatchSpecificKey' in scope
71 | internal let dispatchMethod: DispatchMethod
72 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:119:44: error: cannot find type 'DispatchSpecificKey' in scope
117 | }
118 |
119 | internal init(state: State, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod, warnUnresolvedDeinit: Bool) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
120 | self.internalState = PromiseSourceState(state: state)
121 | self.dispatchKey = dispatchKey
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:253:86: error: cannot find type 'DispatchSpecificKey' in scope
251 | }
252 |
253 | internal func callHandlers<T>(_ handlers: [(T) -> Void], with value: T, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
254 |
255 | for handler in handlers {
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:105:53: error: cannot find 'DispatchSpecificKey' in scope
103 |
104 | internal convenience init(value: Value) {
105 | self.init(state: .resolved(value), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: cannot find 'DispatchSpecificKey' in scope
106 | }
107 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:105:14: error: extra arguments at positions #1, #3 in call
103 |
104 | internal convenience init(value: Value) {
105 | self.init(state: .resolved(value), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: extra arguments at positions #1, #3 in call
106 | }
107 |
:
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:105:23: error: cannot infer contextual base in reference to member 'resolved'
103 |
104 | internal convenience init(value: Value) {
105 | self.init(state: .resolved(value), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: cannot infer contextual base in reference to member 'resolved'
106 | }
107 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:105:93: error: cannot infer contextual base in reference to member 'unspecified'
103 |
104 | internal convenience init(value: Value) {
105 | self.init(state: .resolved(value), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: cannot infer contextual base in reference to member 'unspecified'
106 | }
107 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:109:53: error: cannot find 'DispatchSpecificKey' in scope
107 |
108 | internal convenience init(error: Error) {
109 | self.init(state: .rejected(error), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: cannot find 'DispatchSpecificKey' in scope
110 | }
111 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:109:14: error: extra arguments at positions #1, #3 in call
107 |
108 | internal convenience init(error: Error) {
109 | self.init(state: .rejected(error), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: extra arguments at positions #1, #3 in call
110 | }
111 |
:
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:109:23: error: cannot infer contextual base in reference to member 'rejected'
107 |
108 | internal convenience init(error: Error) {
109 | self.init(state: .rejected(error), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: cannot infer contextual base in reference to member 'rejected'
110 | }
111 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:109:93: error: cannot infer contextual base in reference to member 'unspecified'
107 |
108 | internal convenience init(error: Error) {
109 | self.init(state: .rejected(error), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: cannot infer contextual base in reference to member 'unspecified'
110 | }
111 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:116:48: error: cannot find 'DispatchSpecificKey' in scope
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
| `- error: cannot find 'DispatchSpecificKey' in scope
117 | }
118 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:116:14: error: extra arguments at positions #1, #3 in call
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
| `- error: extra arguments at positions #1, #3 in call
117 | }
118 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:116:23: error: cannot infer contextual base in reference to member 'unresolved'
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
| `- error: cannot infer contextual base in reference to member 'unresolved'
117 | }
118 |
/host/spi-builder-workspace/Sources/Promissum/DispatchMethod.swift:14:14: error: cannot find type 'DispatchQueue' in scope
12 | case unspecified
13 | case synchronous
14 | case queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:141:50: error: 'nil' requires a contextual type
139 |
140 | if case .queue(let queue) = dispatchMethod {
141 | queue.setSpecific(key: dispatchKey, value: nil)
| `- error: 'nil' requires a contextual type
142 | }
143 | }
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:260:10: error: cannot find 'Thread' in scope
258 |
259 | // Main queue doesn't guarantee main thread, so this is merely an optimization
260 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
261 | handler(value)
262 | }
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:264:9: error: cannot find 'DispatchQueue' in scope
262 | }
263 | else {
264 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
265 | handler(value)
266 | }
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:274:28: error: cannot find 'DispatchQueue' in scope
272 |
273 | case .queue(let targetQueue):
274 | let alreadyOnQueue = DispatchQueue.getSpecific(key: dispatchKey) != nil
| `- error: cannot find 'DispatchQueue' in scope
275 |
276 | if alreadyOnQueue {
[6/9] Compiling Promissum Promise.swift
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:298:34: error: cannot find type 'DispatchQueue' in scope
296 |
297 | /// Returns a Promise that dispatches its handlers on the specified dispatch queue.
298 | public func dispatch(on queue: DispatchQueue) -> Promise<Value, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
299 | let key = DispatchSpecificKey<Void>()
300 | queue.setSpecific(key: key, value: ())
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:310:73: error: cannot find type 'DispatchSpecificKey' in scope
308 | }
309 |
310 | private func dispatch(on dispatchMethod: DispatchMethod, dispatchKey: DispatchSpecificKey<Void>) -> Promise<Value, Error> {
| `- error: cannot find type 'DispatchSpecificKey' in scope
311 | let resultSource = PromiseSource<Value, Error>(
312 | state: .unresolved,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:479:53: error: cannot find type 'DispatchQueue' in scope
477 |
478 | /// Return a Promise with the resolve or reject delayed by the specified number of seconds.
479 | public func delay(_ seconds: TimeInterval, queue: DispatchQueue? = nil) -> Promise<Value, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
480 | let dispatchQueue = queue ?? source.dispatchMethod.queue
481 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:501:14: error: cannot find type 'DispatchQueue' in scope
499 |
500 | private extension DispatchMethod {
501 | var queue: DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
502 | switch self {
503 | case .unspecified:
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:119:44: error: cannot find type 'DispatchSpecificKey' in scope
117 | }
118 |
119 | internal init(state: State, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod, warnUnresolvedDeinit: Bool) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
120 | self.internalState = PromiseSourceState(state: state)
121 | self.dispatchKey = dispatchKey
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:299:15: error: cannot find 'DispatchSpecificKey' in scope
297 | /// Returns a Promise that dispatches its handlers on the specified dispatch queue.
298 | public func dispatch(on queue: DispatchQueue) -> Promise<Value, Error> {
299 | let key = DispatchSpecificKey<Void>()
| `- error: cannot find 'DispatchSpecificKey' in scope
300 | queue.setSpecific(key: key, value: ())
301 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:302:26: error: cannot infer contextual base in reference to member 'queue'
300 | queue.setSpecific(key: key, value: ())
301 |
302 | return dispatch(on: .queue(queue), dispatchKey: key)
| `- error: cannot infer contextual base in reference to member 'queue'
303 | }
304 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:307:26: error: cannot infer contextual base in reference to member 'main'
305 | /// Returns a Promise that dispatches its handlers on the main dispatch queue.
306 | public func dispatchMain() -> Promise<Value, Error> {
307 | return dispatch(on: .main)
| `- error: cannot infer contextual base in reference to member 'main'
308 | }
309 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:311:51: error: extra arguments at positions #1, #3 in call
309 |
310 | private func dispatch(on dispatchMethod: DispatchMethod, dispatchKey: DispatchSpecificKey<Void>) -> Promise<Value, Error> {
311 | let resultSource = PromiseSource<Value, Error>(
| `- error: extra arguments at positions #1, #3 in call
312 | state: .unresolved,
313 | dispatchKey: dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:312:15: error: cannot infer contextual base in reference to member 'unresolved'
310 | private func dispatch(on dispatchMethod: DispatchMethod, dispatchKey: DispatchSpecificKey<Void>) -> Promise<Value, Error> {
311 | let resultSource = PromiseSource<Value, Error>(
312 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
313 | dispatchKey: dispatchKey,
314 | dispatchMethod: dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:70:29: error: cannot find type 'DispatchSpecificKey' in scope
68 | */
69 | public class PromiseSource<Value, Error> where Error: Swift.Error {
70 | internal let dispatchKey: DispatchSpecificKey<Void>
| `- error: cannot find type 'DispatchSpecificKey' in scope
71 | internal let dispatchMethod: DispatchMethod
72 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:328:54: error: extra arguments at positions #1, #3 in call
326 | /// Return a Promise containing the results of mapping `transform` over the value of `self`.
327 | public func map<NewValue>(_ transform: @escaping (Value) -> NewValue) -> Promise<NewValue, Error> {
328 | let resultSource = PromiseSource<NewValue, Error>(
| `- error: extra arguments at positions #1, #3 in call
329 | state: .unresolved,
330 | dispatchKey: source.dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:329:15: error: cannot infer contextual base in reference to member 'unresolved'
327 | public func map<NewValue>(_ transform: @escaping (Value) -> NewValue) -> Promise<NewValue, Error> {
328 | let resultSource = PromiseSource<NewValue, Error>(
329 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
330 | dispatchKey: source.dispatchKey,
331 | dispatchMethod: source.dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:353:54: error: extra arguments at positions #1, #3 in call
351 | /// Returns the flattened result of mapping `transform` over the value of `self`.
352 | public func flatMap<NewValue>(_ transform: @escaping (Value) -> Promise<NewValue, Error>) -> Promise<NewValue, Error> {
353 | let resultSource = PromiseSource<NewValue, Error>(
| `- error: extra arguments at positions #1, #3 in call
354 | state: .unresolved,
355 | dispatchKey: source.dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:354:15: error: cannot infer contextual base in reference to member 'unresolved'
352 | public func flatMap<NewValue>(_ transform: @escaping (Value) -> Promise<NewValue, Error>) -> Promise<NewValue, Error> {
353 | let resultSource = PromiseSource<NewValue, Error>(
354 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
355 | dispatchKey: source.dispatchKey,
356 | dispatchMethod: source.dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:382:54: error: extra arguments at positions #1, #3 in call
380 | /// Return a Promise containing the results of mapping `transform` over the error of `self`.
381 | public func mapError<NewError>(_ transform: @escaping (Error) -> NewError) -> Promise<Value, NewError> {
382 | let resultSource = PromiseSource<Value, NewError>(
| `- error: extra arguments at positions #1, #3 in call
383 | state: .unresolved,
384 | dispatchKey: source.dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:383:15: error: cannot infer contextual base in reference to member 'unresolved'
381 | public func mapError<NewError>(_ transform: @escaping (Error) -> NewError) -> Promise<Value, NewError> {
382 | let resultSource = PromiseSource<Value, NewError>(
383 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
384 | dispatchKey: source.dispatchKey,
385 | dispatchMethod: source.dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:407:54: error: extra arguments at positions #1, #3 in call
405 | /// Returns the flattened result of mapping `transform` over the error of `self`.
406 | public func flatMapError<NewError>(_ transform: @escaping (Error) -> Promise<Value, NewError>) -> Promise<Value, NewError> {
407 | let resultSource = PromiseSource<Value, NewError>(
| `- error: extra arguments at positions #1, #3 in call
408 | state: .unresolved,
409 | dispatchKey: source.dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:408:15: error: cannot infer contextual base in reference to member 'unresolved'
406 | public func flatMapError<NewError>(_ transform: @escaping (Error) -> Promise<Value, NewError>) -> Promise<Value, NewError> {
407 | let resultSource = PromiseSource<Value, NewError>(
408 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
409 | dispatchKey: source.dispatchKey,
410 | dispatchMethod: source.dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:435:57: error: extra arguments at positions #1, #3 in call
433 | /// Return a Promise containing the results of mapping `transform` over the result of `self`.
434 | public func mapResult<NewValue, NewError>(_ transform: @escaping (Result<Value, Error>) -> Result<NewValue, NewError>) -> Promise<NewValue, NewError> {
435 | let resultSource = PromiseSource<NewValue, NewError>(
| `- error: extra arguments at positions #1, #3 in call
436 | state: .unresolved,
437 | dispatchKey: source.dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:436:15: error: cannot infer contextual base in reference to member 'unresolved'
434 | public func mapResult<NewValue, NewError>(_ transform: @escaping (Result<Value, Error>) -> Result<NewValue, NewError>) -> Promise<NewValue, NewError> {
435 | let resultSource = PromiseSource<NewValue, NewError>(
436 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
437 | dispatchKey: source.dispatchKey,
438 | dispatchMethod: source.dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:459:57: error: extra arguments at positions #1, #3 in call
457 | /// Returns the flattened result of mapping `transform` over the result of `self`.
458 | public func flatMapResult<NewValue, NewError>(_ transform: @escaping (Result<Value, Error>) -> Promise<NewValue, NewError>) -> Promise<NewValue, NewError> {
459 | let resultSource = PromiseSource<NewValue, NewError>(
| `- error: extra arguments at positions #1, #3 in call
460 | state: .unresolved,
461 | dispatchKey: source.dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:460:15: error: cannot infer contextual base in reference to member 'unresolved'
458 | public func flatMapResult<NewValue, NewError>(_ transform: @escaping (Result<Value, Error>) -> Promise<NewValue, NewError>) -> Promise<NewValue, NewError> {
459 | let resultSource = PromiseSource<NewValue, NewError>(
460 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
461 | dispatchKey: source.dispatchKey,
462 | dispatchMethod: source.dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/DispatchMethod.swift:14:14: error: cannot find type 'DispatchQueue' in scope
12 | case unspecified
13 | case synchronous
14 | case queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:486:45: error: cannot call value of non-function type 'Date'
484 | let source = PromiseSource<Value, Error>()
485 |
486 | dispatchQueue.asyncAfter(deadline: .now() + seconds) {
| `- error: cannot call value of non-function type 'Date'
487 | switch result {
488 | case .success(let value):
[7/9] Compiling Promissum Combinators.swift
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:119:44: error: cannot find type 'DispatchSpecificKey' in scope
117 | }
118 |
119 | internal init(state: State, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod, warnUnresolvedDeinit: Bool) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
120 | self.internalState = PromiseSourceState(state: state)
121 | self.dispatchKey = dispatchKey
[8/9] Compiling Promissum DispatchMethod.swift
/host/spi-builder-workspace/Sources/Promissum/DispatchMethod.swift:14:14: error: cannot find type 'DispatchQueue' in scope
12 | case unspecified
13 | case synchronous
14 | case queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
15 | }
16 |
[9/9] Emitting module Promissum
/host/spi-builder-workspace/Sources/Promissum/DispatchMethod.swift:14:14: error: cannot find type 'DispatchQueue' in scope
12 | case unspecified
13 | case synchronous
14 | case queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:298:34: error: cannot find type 'DispatchQueue' in scope
296 |
297 | /// Returns a Promise that dispatches its handlers on the specified dispatch queue.
298 | public func dispatch(on queue: DispatchQueue) -> Promise<Value, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
299 | let key = DispatchSpecificKey<Void>()
300 | queue.setSpecific(key: key, value: ())
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:310:73: error: cannot find type 'DispatchSpecificKey' in scope
308 | }
309 |
310 | private func dispatch(on dispatchMethod: DispatchMethod, dispatchKey: DispatchSpecificKey<Void>) -> Promise<Value, Error> {
| `- error: cannot find type 'DispatchSpecificKey' in scope
311 | let resultSource = PromiseSource<Value, Error>(
312 | state: .unresolved,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:479:53: error: cannot find type 'DispatchQueue' in scope
477 |
478 | /// Return a Promise with the resolve or reject delayed by the specified number of seconds.
479 | public func delay(_ seconds: TimeInterval, queue: DispatchQueue? = nil) -> Promise<Value, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
480 | let dispatchQueue = queue ?? source.dispatchMethod.queue
481 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:501:14: error: cannot find type 'DispatchQueue' in scope
499 |
500 | private extension DispatchMethod {
501 | var queue: DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
502 | switch self {
503 | case .unspecified:
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:70:29: error: cannot find type 'DispatchSpecificKey' in scope
68 | */
69 | public class PromiseSource<Value, Error> where Error: Swift.Error {
70 | internal let dispatchKey: DispatchSpecificKey<Void>
| `- error: cannot find type 'DispatchSpecificKey' in scope
71 | internal let dispatchMethod: DispatchMethod
72 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:119:44: error: cannot find type 'DispatchSpecificKey' in scope
117 | }
118 |
119 | internal init(state: State, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod, warnUnresolvedDeinit: Bool) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
120 | self.internalState = PromiseSourceState(state: state)
121 | self.dispatchKey = dispatchKey
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:253:86: error: cannot find type 'DispatchSpecificKey' in scope
251 | }
252 |
253 | internal func callHandlers<T>(_ handlers: [(T) -> Void], with value: T, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
254 |
255 | for handler in handlers {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling Promissum Result.swift
[3/8] Compiling Promissum Promise.swift
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:298:34: error: cannot find type 'DispatchQueue' in scope
296 |
297 | /// Returns a Promise that dispatches its handlers on the specified dispatch queue.
298 | public func dispatch(on queue: DispatchQueue) -> Promise<Value, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
299 | let key = DispatchSpecificKey<Void>()
300 | queue.setSpecific(key: key, value: ())
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:310:73: error: cannot find type 'DispatchSpecificKey' in scope
308 | }
309 |
310 | private func dispatch(on dispatchMethod: DispatchMethod, dispatchKey: DispatchSpecificKey<Void>) -> Promise<Value, Error> {
| `- error: cannot find type 'DispatchSpecificKey' in scope
311 | let resultSource = PromiseSource<Value, Error>(
312 | state: .unresolved,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:479:53: error: cannot find type 'DispatchQueue' in scope
477 |
478 | /// Return a Promise with the resolve or reject delayed by the specified number of seconds.
479 | public func delay(_ seconds: TimeInterval, queue: DispatchQueue? = nil) -> Promise<Value, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
480 | let dispatchQueue = queue ?? source.dispatchMethod.queue
481 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:501:14: error: cannot find type 'DispatchQueue' in scope
499 |
500 | private extension DispatchMethod {
501 | var queue: DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
502 | switch self {
503 | case .unspecified:
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:119:44: error: cannot find type 'DispatchSpecificKey' in scope
117 | }
118 |
119 | internal init(state: State, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod, warnUnresolvedDeinit: Bool) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
120 | self.internalState = PromiseSourceState(state: state)
121 | self.dispatchKey = dispatchKey
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:299:15: error: cannot find 'DispatchSpecificKey' in scope
297 | /// Returns a Promise that dispatches its handlers on the specified dispatch queue.
298 | public func dispatch(on queue: DispatchQueue) -> Promise<Value, Error> {
299 | let key = DispatchSpecificKey<Void>()
| `- error: cannot find 'DispatchSpecificKey' in scope
300 | queue.setSpecific(key: key, value: ())
301 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:302:26: error: cannot infer contextual base in reference to member 'queue'
300 | queue.setSpecific(key: key, value: ())
301 |
302 | return dispatch(on: .queue(queue), dispatchKey: key)
| `- error: cannot infer contextual base in reference to member 'queue'
303 | }
304 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:307:26: error: cannot infer contextual base in reference to member 'main'
305 | /// Returns a Promise that dispatches its handlers on the main dispatch queue.
306 | public func dispatchMain() -> Promise<Value, Error> {
307 | return dispatch(on: .main)
| `- error: cannot infer contextual base in reference to member 'main'
308 | }
309 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:311:51: error: extra arguments at positions #1, #3 in call
309 |
310 | private func dispatch(on dispatchMethod: DispatchMethod, dispatchKey: DispatchSpecificKey<Void>) -> Promise<Value, Error> {
311 | let resultSource = PromiseSource<Value, Error>(
| `- error: extra arguments at positions #1, #3 in call
312 | state: .unresolved,
313 | dispatchKey: dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:312:15: error: cannot infer contextual base in reference to member 'unresolved'
310 | private func dispatch(on dispatchMethod: DispatchMethod, dispatchKey: DispatchSpecificKey<Void>) -> Promise<Value, Error> {
311 | let resultSource = PromiseSource<Value, Error>(
312 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
313 | dispatchKey: dispatchKey,
314 | dispatchMethod: dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:70:29: error: cannot find type 'DispatchSpecificKey' in scope
68 | */
69 | public class PromiseSource<Value, Error> where Error: Swift.Error {
70 | internal let dispatchKey: DispatchSpecificKey<Void>
| `- error: cannot find type 'DispatchSpecificKey' in scope
71 | internal let dispatchMethod: DispatchMethod
72 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:328:54: error: extra arguments at positions #1, #3 in call
326 | /// Return a Promise containing the results of mapping `transform` over the value of `self`.
327 | public func map<NewValue>(_ transform: @escaping (Value) -> NewValue) -> Promise<NewValue, Error> {
328 | let resultSource = PromiseSource<NewValue, Error>(
| `- error: extra arguments at positions #1, #3 in call
329 | state: .unresolved,
330 | dispatchKey: source.dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:329:15: error: cannot infer contextual base in reference to member 'unresolved'
327 | public func map<NewValue>(_ transform: @escaping (Value) -> NewValue) -> Promise<NewValue, Error> {
328 | let resultSource = PromiseSource<NewValue, Error>(
329 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
330 | dispatchKey: source.dispatchKey,
331 | dispatchMethod: source.dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:353:54: error: extra arguments at positions #1, #3 in call
351 | /// Returns the flattened result of mapping `transform` over the value of `self`.
352 | public func flatMap<NewValue>(_ transform: @escaping (Value) -> Promise<NewValue, Error>) -> Promise<NewValue, Error> {
353 | let resultSource = PromiseSource<NewValue, Error>(
| `- error: extra arguments at positions #1, #3 in call
354 | state: .unresolved,
355 | dispatchKey: source.dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:354:15: error: cannot infer contextual base in reference to member 'unresolved'
352 | public func flatMap<NewValue>(_ transform: @escaping (Value) -> Promise<NewValue, Error>) -> Promise<NewValue, Error> {
353 | let resultSource = PromiseSource<NewValue, Error>(
354 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
355 | dispatchKey: source.dispatchKey,
356 | dispatchMethod: source.dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:382:54: error: extra arguments at positions #1, #3 in call
380 | /// Return a Promise containing the results of mapping `transform` over the error of `self`.
381 | public func mapError<NewError>(_ transform: @escaping (Error) -> NewError) -> Promise<Value, NewError> {
382 | let resultSource = PromiseSource<Value, NewError>(
| `- error: extra arguments at positions #1, #3 in call
383 | state: .unresolved,
384 | dispatchKey: source.dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:383:15: error: cannot infer contextual base in reference to member 'unresolved'
381 | public func mapError<NewError>(_ transform: @escaping (Error) -> NewError) -> Promise<Value, NewError> {
382 | let resultSource = PromiseSource<Value, NewError>(
383 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
384 | dispatchKey: source.dispatchKey,
385 | dispatchMethod: source.dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:407:54: error: extra arguments at positions #1, #3 in call
405 | /// Returns the flattened result of mapping `transform` over the error of `self`.
406 | public func flatMapError<NewError>(_ transform: @escaping (Error) -> Promise<Value, NewError>) -> Promise<Value, NewError> {
407 | let resultSource = PromiseSource<Value, NewError>(
| `- error: extra arguments at positions #1, #3 in call
408 | state: .unresolved,
409 | dispatchKey: source.dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:408:15: error: cannot infer contextual base in reference to member 'unresolved'
406 | public func flatMapError<NewError>(_ transform: @escaping (Error) -> Promise<Value, NewError>) -> Promise<Value, NewError> {
407 | let resultSource = PromiseSource<Value, NewError>(
408 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
409 | dispatchKey: source.dispatchKey,
410 | dispatchMethod: source.dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:435:57: error: extra arguments at positions #1, #3 in call
433 | /// Return a Promise containing the results of mapping `transform` over the result of `self`.
434 | public func mapResult<NewValue, NewError>(_ transform: @escaping (Result<Value, Error>) -> Result<NewValue, NewError>) -> Promise<NewValue, NewError> {
435 | let resultSource = PromiseSource<NewValue, NewError>(
| `- error: extra arguments at positions #1, #3 in call
436 | state: .unresolved,
437 | dispatchKey: source.dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:436:15: error: cannot infer contextual base in reference to member 'unresolved'
434 | public func mapResult<NewValue, NewError>(_ transform: @escaping (Result<Value, Error>) -> Result<NewValue, NewError>) -> Promise<NewValue, NewError> {
435 | let resultSource = PromiseSource<NewValue, NewError>(
436 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
437 | dispatchKey: source.dispatchKey,
438 | dispatchMethod: source.dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:459:57: error: extra arguments at positions #1, #3 in call
457 | /// Returns the flattened result of mapping `transform` over the result of `self`.
458 | public func flatMapResult<NewValue, NewError>(_ transform: @escaping (Result<Value, Error>) -> Promise<NewValue, NewError>) -> Promise<NewValue, NewError> {
459 | let resultSource = PromiseSource<NewValue, NewError>(
| `- error: extra arguments at positions #1, #3 in call
460 | state: .unresolved,
461 | dispatchKey: source.dispatchKey,
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:115:22: note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:460:15: error: cannot infer contextual base in reference to member 'unresolved'
458 | public func flatMapResult<NewValue, NewError>(_ transform: @escaping (Result<Value, Error>) -> Promise<NewValue, NewError>) -> Promise<NewValue, NewError> {
459 | let resultSource = PromiseSource<NewValue, NewError>(
460 | state: .unresolved,
| `- error: cannot infer contextual base in reference to member 'unresolved'
461 | dispatchKey: source.dispatchKey,
462 | dispatchMethod: source.dispatchMethod,
/host/spi-builder-workspace/Sources/Promissum/DispatchMethod.swift:14:14: error: cannot find type 'DispatchQueue' in scope
12 | case unspecified
13 | case synchronous
14 | case queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:486:45: error: cannot call value of non-function type 'Date'
484 | let source = PromiseSource<Value, Error>()
485 |
486 | dispatchQueue.asyncAfter(deadline: .now() + seconds) {
| `- error: cannot call value of non-function type 'Date'
487 | switch result {
488 | case .success(let value):
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Compiling Promissum PromiseSource.swift
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:70:29: error: cannot find type 'DispatchSpecificKey' in scope
68 | */
69 | public class PromiseSource<Value, Error> where Error: Swift.Error {
70 | internal let dispatchKey: DispatchSpecificKey<Void>
| `- error: cannot find type 'DispatchSpecificKey' in scope
71 | internal let dispatchMethod: DispatchMethod
72 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:119:44: error: cannot find type 'DispatchSpecificKey' in scope
117 | }
118 |
119 | internal init(state: State, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod, warnUnresolvedDeinit: Bool) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
120 | self.internalState = PromiseSourceState(state: state)
121 | self.dispatchKey = dispatchKey
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:253:86: error: cannot find type 'DispatchSpecificKey' in scope
251 | }
252 |
253 | internal func callHandlers<T>(_ handlers: [(T) -> Void], with value: T, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
254 |
255 | for handler in handlers {
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:105:53: error: cannot find 'DispatchSpecificKey' in scope
103 |
104 | internal convenience init(value: Value) {
105 | self.init(state: .resolved(value), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: cannot find 'DispatchSpecificKey' in scope
106 | }
107 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:105:14: error: extra arguments at positions #1, #3 in call
103 |
104 | internal convenience init(value: Value) {
105 | self.init(state: .resolved(value), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: extra arguments at positions #1, #3 in call
106 | }
107 |
:
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:105:23: error: cannot infer contextual base in reference to member 'resolved'
103 |
104 | internal convenience init(value: Value) {
105 | self.init(state: .resolved(value), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: cannot infer contextual base in reference to member 'resolved'
106 | }
107 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:105:93: error: cannot infer contextual base in reference to member 'unspecified'
103 |
104 | internal convenience init(value: Value) {
105 | self.init(state: .resolved(value), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: cannot infer contextual base in reference to member 'unspecified'
106 | }
107 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:109:53: error: cannot find 'DispatchSpecificKey' in scope
107 |
108 | internal convenience init(error: Error) {
109 | self.init(state: .rejected(error), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: cannot find 'DispatchSpecificKey' in scope
110 | }
111 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:109:14: error: extra arguments at positions #1, #3 in call
107 |
108 | internal convenience init(error: Error) {
109 | self.init(state: .rejected(error), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: extra arguments at positions #1, #3 in call
110 | }
111 |
:
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
117 | }
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:109:23: error: cannot infer contextual base in reference to member 'rejected'
107 |
108 | internal convenience init(error: Error) {
109 | self.init(state: .rejected(error), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: cannot infer contextual base in reference to member 'rejected'
110 | }
111 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:109:93: error: cannot infer contextual base in reference to member 'unspecified'
107 |
108 | internal convenience init(error: Error) {
109 | self.init(state: .rejected(error), dispatchKey: DispatchSpecificKey(), dispatchMethod: .unspecified, warnUnresolvedDeinit: false)
| `- error: cannot infer contextual base in reference to member 'unspecified'
110 | }
111 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:116:48: error: cannot find 'DispatchSpecificKey' in scope
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
| `- error: cannot find 'DispatchSpecificKey' in scope
117 | }
118 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:116:14: error: extra arguments at positions #1, #3 in call
113 | ///
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
| `- note: 'init(dispatch:warnUnresolvedDeinit:)' declared here
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
| `- error: extra arguments at positions #1, #3 in call
117 | }
118 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:116:23: error: cannot infer contextual base in reference to member 'unresolved'
114 | /// - parameter warnUnresolvedDeinit: Print a warning on deinit of an unresolved PromiseSource
115 | public convenience init(dispatch dispatchMethod: DispatchMethod = .unspecified, warnUnresolvedDeinit: Bool = true) {
116 | self.init(state: .unresolved, dispatchKey: DispatchSpecificKey(), dispatchMethod: dispatchMethod, warnUnresolvedDeinit: warnUnresolvedDeinit)
| `- error: cannot infer contextual base in reference to member 'unresolved'
117 | }
118 |
/host/spi-builder-workspace/Sources/Promissum/DispatchMethod.swift:14:14: error: cannot find type 'DispatchQueue' in scope
12 | case unspecified
13 | case synchronous
14 | case queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:141:50: error: 'nil' requires a contextual type
139 |
140 | if case .queue(let queue) = dispatchMethod {
141 | queue.setSpecific(key: dispatchKey, value: nil)
| `- error: 'nil' requires a contextual type
142 | }
143 | }
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:260:10: error: cannot find 'Thread' in scope
258 |
259 | // Main queue doesn't guarantee main thread, so this is merely an optimization
260 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
261 | handler(value)
262 | }
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:264:9: error: cannot find 'DispatchQueue' in scope
262 | }
263 | else {
264 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
265 | handler(value)
266 | }
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:274:28: error: cannot find 'DispatchQueue' in scope
272 |
273 | case .queue(let targetQueue):
274 | let alreadyOnQueue = DispatchQueue.getSpecific(key: dispatchKey) != nil
| `- error: cannot find 'DispatchQueue' in scope
275 |
276 | if alreadyOnQueue {
[5/8] Compiling Promissum AsyncExtensions.swift
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:119:44: error: cannot find type 'DispatchSpecificKey' in scope
117 | }
118 |
119 | internal init(state: State, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod, warnUnresolvedDeinit: Bool) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
120 | self.internalState = PromiseSourceState(state: state)
121 | self.dispatchKey = dispatchKey
[6/8] Emitting module Promissum
/host/spi-builder-workspace/Sources/Promissum/DispatchMethod.swift:14:14: error: cannot find type 'DispatchQueue' in scope
12 | case unspecified
13 | case synchronous
14 | case queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:298:34: error: cannot find type 'DispatchQueue' in scope
296 |
297 | /// Returns a Promise that dispatches its handlers on the specified dispatch queue.
298 | public func dispatch(on queue: DispatchQueue) -> Promise<Value, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
299 | let key = DispatchSpecificKey<Void>()
300 | queue.setSpecific(key: key, value: ())
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:310:73: error: cannot find type 'DispatchSpecificKey' in scope
308 | }
309 |
310 | private func dispatch(on dispatchMethod: DispatchMethod, dispatchKey: DispatchSpecificKey<Void>) -> Promise<Value, Error> {
| `- error: cannot find type 'DispatchSpecificKey' in scope
311 | let resultSource = PromiseSource<Value, Error>(
312 | state: .unresolved,
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:479:53: error: cannot find type 'DispatchQueue' in scope
477 |
478 | /// Return a Promise with the resolve or reject delayed by the specified number of seconds.
479 | public func delay(_ seconds: TimeInterval, queue: DispatchQueue? = nil) -> Promise<Value, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
480 | let dispatchQueue = queue ?? source.dispatchMethod.queue
481 |
/host/spi-builder-workspace/Sources/Promissum/Promise.swift:501:14: error: cannot find type 'DispatchQueue' in scope
499 |
500 | private extension DispatchMethod {
501 | var queue: DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
502 | switch self {
503 | case .unspecified:
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:70:29: error: cannot find type 'DispatchSpecificKey' in scope
68 | */
69 | public class PromiseSource<Value, Error> where Error: Swift.Error {
70 | internal let dispatchKey: DispatchSpecificKey<Void>
| `- error: cannot find type 'DispatchSpecificKey' in scope
71 | internal let dispatchMethod: DispatchMethod
72 |
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:119:44: error: cannot find type 'DispatchSpecificKey' in scope
117 | }
118 |
119 | internal init(state: State, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod, warnUnresolvedDeinit: Bool) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
120 | self.internalState = PromiseSourceState(state: state)
121 | self.dispatchKey = dispatchKey
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:253:86: error: cannot find type 'DispatchSpecificKey' in scope
251 | }
252 |
253 | internal func callHandlers<T>(_ handlers: [(T) -> Void], with value: T, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
254 |
255 | for handler in handlers {
[7/8] Compiling Promissum DispatchMethod.swift
/host/spi-builder-workspace/Sources/Promissum/DispatchMethod.swift:14:14: error: cannot find type 'DispatchQueue' in scope
12 | case unspecified
13 | case synchronous
14 | case queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
15 | }
16 |
[8/8] Compiling Promissum Combinators.swift
/host/spi-builder-workspace/Sources/Promissum/PromiseSource.swift:119:44: error: cannot find type 'DispatchSpecificKey' in scope
117 | }
118 |
119 | internal init(state: State, dispatchKey: DispatchSpecificKey<Void>, dispatchMethod: DispatchMethod, warnUnresolvedDeinit: Bool) {
| `- error: cannot find type 'DispatchSpecificKey' in scope
120 | self.internalState = PromiseSourceState(state: state)
121 | self.dispatchKey = dispatchKey
BUILD FAILURE 6.1 wasm