Build Information
Failed to build SwiftFormat, reference 0.64.5 (048f2e), with Swift 6.3 for Wasm on 2 Nov 2026 09:42:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:76: error: cannot infer contextual base in reference to member 'userInteractive'
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:925:25: error: cannot find 'DispatchQueue' in scope
923 | /// Index of the rule currently being applied, shared between the formatting queue and the waiting thread.
924 | private final class RuleProgress {
925 | private let queue = DispatchQueue(label: "swiftformat.ruleprogress")
| `- error: cannot find 'DispatchQueue' in scope
926 | private var _index = 0
927 |
/host/spi-builder-workspace/Sources/SwiftFormat.swift:160:17: error: cannot find 'DispatchGroup' in scope
158 | ]
159 |
160 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
/host/spi-builder-workspace/Sources/SwiftFormat.swift:162:27: error: cannot find 'DispatchQueue' in scope
160 | let group = DispatchGroup()
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
| `- error: cannot find 'DispatchQueue' in scope
163 | func onComplete(_ block: @escaping () throws -> Void) {
164 | completionQueue.async(group: group) {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:30: error: cannot find 'DispatchQueue' in scope
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot find 'DispatchQueue' in scope
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:57: error: cannot infer contextual base in reference to member 'userInitiated'
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot infer contextual base in reference to member 'userInitiated'
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:722:17: error: cannot find 'DispatchGroup' in scope
720 |
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:17: error: cannot find 'DispatchQueue' in scope
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:70: error: cannot infer contextual base in reference to member 'userInteractive'
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:744:36: error: cannot call value of non-function type 'Date'
742 | // so a single dispatch per iteration is enough.
743 | var lastIndex = -1
744 | while group.wait(timeout: .now() + timeout) == .timedOut {
| `- error: cannot call value of non-function type 'Date'
745 | let index = progress.index
746 | guard index != lastIndex else {
[313/398] Compiling SwiftFormat WrapSwitchCases.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:27: error: cannot find 'DispatchQueue' in scope
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:76: error: cannot infer contextual base in reference to member 'userInteractive'
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:925:25: error: cannot find 'DispatchQueue' in scope
923 | /// Index of the rule currently being applied, shared between the formatting queue and the waiting thread.
924 | private final class RuleProgress {
925 | private let queue = DispatchQueue(label: "swiftformat.ruleprogress")
| `- error: cannot find 'DispatchQueue' in scope
926 | private var _index = 0
927 |
/host/spi-builder-workspace/Sources/SwiftFormat.swift:160:17: error: cannot find 'DispatchGroup' in scope
158 | ]
159 |
160 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
/host/spi-builder-workspace/Sources/SwiftFormat.swift:162:27: error: cannot find 'DispatchQueue' in scope
160 | let group = DispatchGroup()
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
| `- error: cannot find 'DispatchQueue' in scope
163 | func onComplete(_ block: @escaping () throws -> Void) {
164 | completionQueue.async(group: group) {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:30: error: cannot find 'DispatchQueue' in scope
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot find 'DispatchQueue' in scope
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:57: error: cannot infer contextual base in reference to member 'userInitiated'
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot infer contextual base in reference to member 'userInitiated'
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:722:17: error: cannot find 'DispatchGroup' in scope
720 |
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:17: error: cannot find 'DispatchQueue' in scope
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:70: error: cannot infer contextual base in reference to member 'userInteractive'
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:744:36: error: cannot call value of non-function type 'Date'
742 | // so a single dispatch per iteration is enough.
743 | var lastIndex = -1
744 | while group.wait(timeout: .now() + timeout) == .timedOut {
| `- error: cannot call value of non-function type 'Date'
745 | let index = progress.index
746 | guard index != lastIndex else {
[314/398] Compiling SwiftFormat YodaConditions.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:27: error: cannot find 'DispatchQueue' in scope
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:76: error: cannot infer contextual base in reference to member 'userInteractive'
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:925:25: error: cannot find 'DispatchQueue' in scope
923 | /// Index of the rule currently being applied, shared between the formatting queue and the waiting thread.
924 | private final class RuleProgress {
925 | private let queue = DispatchQueue(label: "swiftformat.ruleprogress")
| `- error: cannot find 'DispatchQueue' in scope
926 | private var _index = 0
927 |
/host/spi-builder-workspace/Sources/SwiftFormat.swift:160:17: error: cannot find 'DispatchGroup' in scope
158 | ]
159 |
160 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
/host/spi-builder-workspace/Sources/SwiftFormat.swift:162:27: error: cannot find 'DispatchQueue' in scope
160 | let group = DispatchGroup()
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
| `- error: cannot find 'DispatchQueue' in scope
163 | func onComplete(_ block: @escaping () throws -> Void) {
164 | completionQueue.async(group: group) {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:30: error: cannot find 'DispatchQueue' in scope
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot find 'DispatchQueue' in scope
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:57: error: cannot infer contextual base in reference to member 'userInitiated'
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot infer contextual base in reference to member 'userInitiated'
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:722:17: error: cannot find 'DispatchGroup' in scope
720 |
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:17: error: cannot find 'DispatchQueue' in scope
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:70: error: cannot infer contextual base in reference to member 'userInteractive'
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:744:36: error: cannot call value of non-function type 'Date'
742 | // so a single dispatch per iteration is enough.
743 | var lastIndex = -1
744 | while group.wait(timeout: .now() + timeout) == .timedOut {
| `- error: cannot call value of non-function type 'Date'
745 | let index = progress.index
746 | guard index != lastIndex else {
[315/398] Compiling SwiftFormat SARIFReporter.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:27: error: cannot find 'DispatchQueue' in scope
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:76: error: cannot infer contextual base in reference to member 'userInteractive'
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:925:25: error: cannot find 'DispatchQueue' in scope
923 | /// Index of the rule currently being applied, shared between the formatting queue and the waiting thread.
924 | private final class RuleProgress {
925 | private let queue = DispatchQueue(label: "swiftformat.ruleprogress")
| `- error: cannot find 'DispatchQueue' in scope
926 | private var _index = 0
927 |
/host/spi-builder-workspace/Sources/SwiftFormat.swift:160:17: error: cannot find 'DispatchGroup' in scope
158 | ]
159 |
160 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
/host/spi-builder-workspace/Sources/SwiftFormat.swift:162:27: error: cannot find 'DispatchQueue' in scope
160 | let group = DispatchGroup()
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
| `- error: cannot find 'DispatchQueue' in scope
163 | func onComplete(_ block: @escaping () throws -> Void) {
164 | completionQueue.async(group: group) {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:30: error: cannot find 'DispatchQueue' in scope
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot find 'DispatchQueue' in scope
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:57: error: cannot infer contextual base in reference to member 'userInitiated'
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot infer contextual base in reference to member 'userInitiated'
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:722:17: error: cannot find 'DispatchGroup' in scope
720 |
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:17: error: cannot find 'DispatchQueue' in scope
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:70: error: cannot infer contextual base in reference to member 'userInteractive'
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:744:36: error: cannot call value of non-function type 'Date'
742 | // so a single dispatch per iteration is enough.
743 | var lastIndex = -1
744 | while group.wait(timeout: .now() + timeout) == .timedOut {
| `- error: cannot call value of non-function type 'Date'
745 | let index = progress.index
746 | guard index != lastIndex else {
[316/398] Compiling SwiftFormat Singularize.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:27: error: cannot find 'DispatchQueue' in scope
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:76: error: cannot infer contextual base in reference to member 'userInteractive'
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:925:25: error: cannot find 'DispatchQueue' in scope
923 | /// Index of the rule currently being applied, shared between the formatting queue and the waiting thread.
924 | private final class RuleProgress {
925 | private let queue = DispatchQueue(label: "swiftformat.ruleprogress")
| `- error: cannot find 'DispatchQueue' in scope
926 | private var _index = 0
927 |
/host/spi-builder-workspace/Sources/SwiftFormat.swift:160:17: error: cannot find 'DispatchGroup' in scope
158 | ]
159 |
160 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
/host/spi-builder-workspace/Sources/SwiftFormat.swift:162:27: error: cannot find 'DispatchQueue' in scope
160 | let group = DispatchGroup()
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
| `- error: cannot find 'DispatchQueue' in scope
163 | func onComplete(_ block: @escaping () throws -> Void) {
164 | completionQueue.async(group: group) {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:30: error: cannot find 'DispatchQueue' in scope
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot find 'DispatchQueue' in scope
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:57: error: cannot infer contextual base in reference to member 'userInitiated'
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot infer contextual base in reference to member 'userInitiated'
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:722:17: error: cannot find 'DispatchGroup' in scope
720 |
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:17: error: cannot find 'DispatchQueue' in scope
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:70: error: cannot infer contextual base in reference to member 'userInteractive'
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:744:36: error: cannot call value of non-function type 'Date'
742 | // so a single dispatch per iteration is enough.
743 | var lastIndex = -1
744 | while group.wait(timeout: .now() + timeout) == .timedOut {
| `- error: cannot call value of non-function type 'Date'
745 | let index = progress.index
746 | guard index != lastIndex else {
[317/398] Compiling SwiftFormat SwiftFormat.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:27: error: cannot find 'DispatchQueue' in scope
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:76: error: cannot infer contextual base in reference to member 'userInteractive'
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:925:25: error: cannot find 'DispatchQueue' in scope
923 | /// Index of the rule currently being applied, shared between the formatting queue and the waiting thread.
924 | private final class RuleProgress {
925 | private let queue = DispatchQueue(label: "swiftformat.ruleprogress")
| `- error: cannot find 'DispatchQueue' in scope
926 | private var _index = 0
927 |
/host/spi-builder-workspace/Sources/SwiftFormat.swift:160:17: error: cannot find 'DispatchGroup' in scope
158 | ]
159 |
160 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
/host/spi-builder-workspace/Sources/SwiftFormat.swift:162:27: error: cannot find 'DispatchQueue' in scope
160 | let group = DispatchGroup()
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
| `- error: cannot find 'DispatchQueue' in scope
163 | func onComplete(_ block: @escaping () throws -> Void) {
164 | completionQueue.async(group: group) {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:30: error: cannot find 'DispatchQueue' in scope
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot find 'DispatchQueue' in scope
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:57: error: cannot infer contextual base in reference to member 'userInitiated'
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot infer contextual base in reference to member 'userInitiated'
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:722:17: error: cannot find 'DispatchGroup' in scope
720 |
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:17: error: cannot find 'DispatchQueue' in scope
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:70: error: cannot infer contextual base in reference to member 'userInteractive'
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:744:36: error: cannot call value of non-function type 'Date'
742 | // so a single dispatch per iteration is enough.
743 | var lastIndex = -1
744 | while group.wait(timeout: .now() + timeout) == .timedOut {
| `- error: cannot call value of non-function type 'Date'
745 | let index = progress.index
746 | guard index != lastIndex else {
[318/398] Compiling SwiftFormat Tokenizer.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:27: error: cannot find 'DispatchQueue' in scope
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:76: error: cannot infer contextual base in reference to member 'userInteractive'
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:925:25: error: cannot find 'DispatchQueue' in scope
923 | /// Index of the rule currently being applied, shared between the formatting queue and the waiting thread.
924 | private final class RuleProgress {
925 | private let queue = DispatchQueue(label: "swiftformat.ruleprogress")
| `- error: cannot find 'DispatchQueue' in scope
926 | private var _index = 0
927 |
/host/spi-builder-workspace/Sources/SwiftFormat.swift:160:17: error: cannot find 'DispatchGroup' in scope
158 | ]
159 |
160 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
/host/spi-builder-workspace/Sources/SwiftFormat.swift:162:27: error: cannot find 'DispatchQueue' in scope
160 | let group = DispatchGroup()
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
| `- error: cannot find 'DispatchQueue' in scope
163 | func onComplete(_ block: @escaping () throws -> Void) {
164 | completionQueue.async(group: group) {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:30: error: cannot find 'DispatchQueue' in scope
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot find 'DispatchQueue' in scope
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:57: error: cannot infer contextual base in reference to member 'userInitiated'
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot infer contextual base in reference to member 'userInitiated'
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:722:17: error: cannot find 'DispatchGroup' in scope
720 |
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:17: error: cannot find 'DispatchQueue' in scope
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:70: error: cannot infer contextual base in reference to member 'userInteractive'
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:744:36: error: cannot call value of non-function type 'Date'
742 | // so a single dispatch per iteration is enough.
743 | var lastIndex = -1
744 | while group.wait(timeout: .now() + timeout) == .timedOut {
| `- error: cannot call value of non-function type 'Date'
745 | let index = progress.index
746 | guard index != lastIndex else {
[319/398] Compiling SwiftFormat TypeName.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:27: error: cannot find 'DispatchQueue' in scope
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:76: error: cannot infer contextual base in reference to member 'userInteractive'
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:925:25: error: cannot find 'DispatchQueue' in scope
923 | /// Index of the rule currently being applied, shared between the formatting queue and the waiting thread.
924 | private final class RuleProgress {
925 | private let queue = DispatchQueue(label: "swiftformat.ruleprogress")
| `- error: cannot find 'DispatchQueue' in scope
926 | private var _index = 0
927 |
/host/spi-builder-workspace/Sources/SwiftFormat.swift:160:17: error: cannot find 'DispatchGroup' in scope
158 | ]
159 |
160 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
/host/spi-builder-workspace/Sources/SwiftFormat.swift:162:27: error: cannot find 'DispatchQueue' in scope
160 | let group = DispatchGroup()
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
| `- error: cannot find 'DispatchQueue' in scope
163 | func onComplete(_ block: @escaping () throws -> Void) {
164 | completionQueue.async(group: group) {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:30: error: cannot find 'DispatchQueue' in scope
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot find 'DispatchQueue' in scope
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:57: error: cannot infer contextual base in reference to member 'userInitiated'
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot infer contextual base in reference to member 'userInitiated'
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:722:17: error: cannot find 'DispatchGroup' in scope
720 |
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:17: error: cannot find 'DispatchQueue' in scope
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:70: error: cannot infer contextual base in reference to member 'userInteractive'
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:744:36: error: cannot call value of non-function type 'Date'
742 | // so a single dispatch per iteration is enough.
743 | var lastIndex = -1
744 | while group.wait(timeout: .now() + timeout) == .timedOut {
| `- error: cannot call value of non-function type 'Date'
745 | let index = progress.index
746 | guard index != lastIndex else {
[320/398] Compiling SwiftFormat XMLReporter.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:27: error: cannot find 'DispatchQueue' in scope
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:386:76: error: cannot infer contextual base in reference to member 'userInteractive'
384 | /// Process configuration files in specified directory.
385 | private var configCache = [URL: [[String: String]]]()
386 | private let configQueue = DispatchQueue(label: "swiftformat.config", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
387 | private func processDirectory(_ inputURL: URL, with options: inout Options, logger: Logger?) throws {
388 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:925:25: error: cannot find 'DispatchQueue' in scope
923 | /// Index of the rule currently being applied, shared between the formatting queue and the waiting thread.
924 | private final class RuleProgress {
925 | private let queue = DispatchQueue(label: "swiftformat.ruleprogress")
| `- error: cannot find 'DispatchQueue' in scope
926 | private var _index = 0
927 |
/host/spi-builder-workspace/Sources/SwiftFormat.swift:160:17: error: cannot find 'DispatchGroup' in scope
158 | ]
159 |
160 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
/host/spi-builder-workspace/Sources/SwiftFormat.swift:162:27: error: cannot find 'DispatchQueue' in scope
160 | let group = DispatchGroup()
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
| `- error: cannot find 'DispatchQueue' in scope
163 | func onComplete(_ block: @escaping () throws -> Void) {
164 | completionQueue.async(group: group) {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:30: error: cannot find 'DispatchQueue' in scope
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot find 'DispatchQueue' in scope
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:169:57: error: cannot infer contextual base in reference to member 'userInitiated'
167 | }
168 |
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
| `- error: cannot infer contextual base in reference to member 'userInitiated'
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
/host/spi-builder-workspace/Sources/SwiftFormat.swift:722:17: error: cannot find 'DispatchGroup' in scope
720 |
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:17: error: cannot find 'DispatchQueue' in scope
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:723:70: error: cannot infer contextual base in reference to member 'userInteractive'
721 | // Recursively apply rules until no changes are detected
722 | let group = DispatchGroup()
723 | let queue = DispatchQueue(label: "swiftformat.formatting", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
724 | let timeout = options.timeout + TimeInterval(originalTokens.count) / 1000
725 | var changes = [Formatter.Change]()
/host/spi-builder-workspace/Sources/SwiftFormat.swift:744:36: error: cannot call value of non-function type 'Date'
742 | // so a single dispatch per iteration is enough.
743 | var lastIndex = -1
744 | while group.wait(timeout: .now() + timeout) == .timedOut {
| `- error: cannot call value of non-function type 'Date'
745 | let index = progress.index
746 | guard index != lastIndex else {
[321/398] Compiling SwiftFormat Arguments.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[322/398] Compiling SwiftFormat CommandLine.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[323/398] Compiling SwiftFormat Declaration.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[324/398] Compiling SwiftFormat DeclarationType.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[325/398] Compiling SwiftFormat EnumAssociable.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[326/398] Compiling SwiftFormat FormatRule.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[327/398] Compiling SwiftFormat Formatter.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[328/398] Compiling SwiftFormat FormattingHelpers.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[329/398] Compiling SwiftFormat GitFileInfo.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[330/398] Compiling SwiftFormat GithubActionsLogReporter.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[331/398] Compiling SwiftFormat Globs.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[332/398] Compiling SwiftFormat Inference.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[333/398] Compiling SwiftFormat JSONReporter.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[334/398] Compiling SwiftFormat OptionDescriptor.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[335/398] Compiling SwiftFormat Options.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[336/398] Compiling SwiftFormat ParsingHelpers.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[337/398] Compiling SwiftFormat Reporter.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[338/398] Compiling SwiftFormat RuleRegistry.generated.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[339/398] Compiling SwiftFormat Acronyms.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[340/398] Compiling SwiftFormat AndOperator.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[341/398] Compiling SwiftFormat AnyObjectProtocol.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[342/398] Compiling SwiftFormat ApplicationMain.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[343/398] Compiling SwiftFormat AssertionFailures.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[344/398] Compiling SwiftFormat BlankLineAfterImports.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[345/398] Compiling SwiftFormat BlankLineAfterSwitchCase.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:902:79: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
900 | if let reportURL {
901 | print("Writing report file to \(reportURL.path)", as: .info)
902 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
903 | } else {
904 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:939:13: error: cannot find 'DispatchQueue' in scope
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:939:40: error: cannot infer contextual base in reference to member 'userInitiated'
937 | } else if inputURLs.isEmpty {
938 | // If no input file, try stdin
939 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
940 | processFromStdin()
941 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:993:67: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
991 | if let reportURL {
992 | print("Writing report file to \(reportURL.path)", as: .info)
993 | try reporterOutput.write(to: reportURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
994 | } else {
995 | print(String(decoding: reporterOutput, as: UTF8.self), as: .raw)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1253:34: error: cannot find 'DispatchQueue' in scope
1251 | // the same options apart from `fileInfo`, so the overrides only need to be merged once per directory.
1252 | var overriddenOptionsCache = [String: Options]()
1253 | let overriddenOptionsQueue = DispatchQueue(label: "swiftformat.overrides")
| `- error: cannot find 'DispatchQueue' in scope
1254 | func applyOverrides(to options: Options, for inputURL: URL) throws -> Options {
1255 | guard !overrides.isEmpty else {
/host/spi-builder-workspace/Sources/CommandLine.swift:1556:52: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1554 | do {
1555 | let data = try JSONEncoder().encode(cache)
1556 | try data.write(to: cacheURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1557 | } catch {
1558 | if FileManager.default.fileExists(atPath: cacheDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/CommandLine.swift:1585:55: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1583 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
1584 | }
1585 | try data.write(to: snapshotURL, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
1586 | } catch {
1587 | if FileManager.default.fileExists(atPath: snapshotDirectory.path) {
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftFormat.swift:165:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
163 | func onComplete(_ block: @escaping () throws -> Void) {
164 | completionQueue.async(group: group) {
165 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
166 | }
167 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:220:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
218 | }
219 |
220 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
221 | outputURL: URL?,
222 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:171:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
169 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
170 |
171 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
172 | let fileOptions = options.fileOptions ?? .default
173 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:163:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
161 | var completionBlocks = [() throws -> Void]()
162 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
163 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
164 | completionQueue.async(group: group) {
165 | completionBlocks.append(block)
BUILD FAILURE 6.3 wasm