The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build LoggingCamp, reference main (385866), with Swift 6.1 for Wasm on 31 May 2025 04:46:16 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DariuszGulbicki/Logging-Camp.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/DariuszGulbicki/Logging-Camp
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3858669 Merge pull request #7 from DariuszGulbicki/full-refactor
Cloned https://github.com/DariuszGulbicki/Logging-Camp.git
Revision (git rev-parse @):
385866908f45d3a89f68a6c7b658dff4a11b76ed
SUCCESS checkout https://github.com/DariuszGulbicki/Logging-Camp.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/DariuszGulbicki/Logging-Camp.git
https://github.com/DariuszGulbicki/Logging-Camp.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "colorizer",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/DariuszGulbicki/Colorizer"
    }
  ],
  "manifest_display_name" : "LoggingCamp",
  "name" : "LoggingCamp",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LoggingCamp",
      "targets" : [
        "LoggingCamp"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggingCampTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggingCampTests",
      "path" : "Tests/LoggingCampTests",
      "sources" : [
        "LoggingCampTests.swift"
      ],
      "target_dependencies" : [
        "LoggingCamp"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LoggingCamp",
      "module_type" : "SwiftTarget",
      "name" : "LoggingCamp",
      "path" : "Sources/LoggingCamp",
      "product_dependencies" : [
        "Colorizer"
      ],
      "product_memberships" : [
        "LoggingCamp"
      ],
      "sources" : [
        "LogDispatcher.swift",
        "LogEntry.swift",
        "LogHandlerManager.swift",
        "LogLevel.swift",
        "Logger.swift",
        "LoggerPool.swift",
        "LoggingConfig.swift",
        "Operators.swift",
        "handlers/ColoredPrintLogHandler.swift",
        "handlers/LogHandler.swift",
        "handlers/PrintLogHandler.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/DariuszGulbicki/Colorizer
[1/59] Fetching colorizer
Fetched https://github.com/DariuszGulbicki/Colorizer from cache (0.39s)
Computing version for https://github.com/DariuszGulbicki/Colorizer
Computed https://github.com/DariuszGulbicki/Colorizer at 1.2.0 (4.47s)
Creating working copy for https://github.com/DariuszGulbicki/Colorizer
Working copy of https://github.com/DariuszGulbicki/Colorizer resolved at 1.2.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Compiling Colorizer StringEffects.swift
[5/7] Emitting module Colorizer
[6/7] Compiling Colorizer EffectEscapeCode.swift
[7/7] Compiling Colorizer Colorizer.swift
[9/19] Compiling LoggingCamp LogHandler.swift
[10/20] Compiling LoggingCamp Operators.swift
[11/20] Compiling LoggingCamp LogHandlerManager.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:7:39: error: cannot find 'DispatchQueue' in scope
 5 |     nonisolated(unsafe) private static var handlers: [String: LogHandler] = ["default": ColoredPrintLogHandler()]
 6 |     nonisolated(unsafe) private static var disabledHandlers: [String] = []
 7 |     private static let handlerQueue = DispatchQueue(label: "LoggingCamp.LogHandlerManager", attributes: .concurrent)
   |                                       `- error: cannot find 'DispatchQueue' in scope
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:7:106: error: cannot infer contextual base in reference to member 'concurrent'
 5 |     nonisolated(unsafe) private static var handlers: [String: LogHandler] = ["default": ColoredPrintLogHandler()]
 6 |     nonisolated(unsafe) private static var disabledHandlers: [String] = []
 7 |     private static let handlerQueue = DispatchQueue(label: "LoggingCamp.LogHandlerManager", attributes: .concurrent)
   |                                                                                                          `- error: cannot infer contextual base in reference to member 'concurrent'
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:10:35: error: cannot infer contextual base in reference to member 'barrier'
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
10 |         handlerQueue.sync(flags: .barrier) {
   |                                   `- error: cannot infer contextual base in reference to member 'barrier'
11 |             handlers[handlerId] = handler
12 |         }
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:22:35: error: cannot infer contextual base in reference to member 'barrier'
20 |
21 |     public static func disableHandler(_ handlerId: String) {
22 |         handlerQueue.sync(flags: .barrier) {
   |                                   `- error: cannot infer contextual base in reference to member 'barrier'
23 |             disabledHandlers.append(handlerId)
24 |         }
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:28:35: error: cannot infer contextual base in reference to member 'barrier'
26 |
27 |     public static func enableHandler(_ handlerId: String) {
28 |         handlerQueue.sync(flags: .barrier) {
   |                                   `- error: cannot infer contextual base in reference to member 'barrier'
29 |             disabledHandlers.removeAll(where: { $0 == handlerId })
30 |         }
[12/20] Compiling LoggingCamp LogLevel.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:7:39: error: cannot find 'DispatchQueue' in scope
 5 |     nonisolated(unsafe) private static var handlers: [String: LogHandler] = ["default": ColoredPrintLogHandler()]
 6 |     nonisolated(unsafe) private static var disabledHandlers: [String] = []
 7 |     private static let handlerQueue = DispatchQueue(label: "LoggingCamp.LogHandlerManager", attributes: .concurrent)
   |                                       `- error: cannot find 'DispatchQueue' in scope
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:7:106: error: cannot infer contextual base in reference to member 'concurrent'
 5 |     nonisolated(unsafe) private static var handlers: [String: LogHandler] = ["default": ColoredPrintLogHandler()]
 6 |     nonisolated(unsafe) private static var disabledHandlers: [String] = []
 7 |     private static let handlerQueue = DispatchQueue(label: "LoggingCamp.LogHandlerManager", attributes: .concurrent)
   |                                                                                                          `- error: cannot infer contextual base in reference to member 'concurrent'
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:10:35: error: cannot infer contextual base in reference to member 'barrier'
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
10 |         handlerQueue.sync(flags: .barrier) {
   |                                   `- error: cannot infer contextual base in reference to member 'barrier'
11 |             handlers[handlerId] = handler
12 |         }
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:22:35: error: cannot infer contextual base in reference to member 'barrier'
20 |
21 |     public static func disableHandler(_ handlerId: String) {
22 |         handlerQueue.sync(flags: .barrier) {
   |                                   `- error: cannot infer contextual base in reference to member 'barrier'
23 |             disabledHandlers.append(handlerId)
24 |         }
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:28:35: error: cannot infer contextual base in reference to member 'barrier'
26 |
27 |     public static func enableHandler(_ handlerId: String) {
28 |         handlerQueue.sync(flags: .barrier) {
   |                                   `- error: cannot infer contextual base in reference to member 'barrier'
29 |             disabledHandlers.removeAll(where: { $0 == handlerId })
30 |         }
[13/20] Compiling LoggingCamp PrintLogHandler.swift
[14/20] Compiling LoggingCamp ColoredPrintLogHandler.swift
[15/20] Compiling LoggingCamp Logger.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LoggerPool.swift:6:36: error: cannot find 'DispatchQueue' in scope
  4 |
  5 |     nonisolated(unsafe) private static var _pools: [String:LoggerPool] = [:]
  6 |     private static let poolQueue = DispatchQueue(label: "pl.dariuszgulbicki.loggingcamp.poolqueue")
    |                                    `- error: cannot find 'DispatchQueue' in scope
  7 |
  8 |     public static var pools: [String:LoggerPool] {
[16/20] Compiling LoggingCamp LoggerPool.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LoggerPool.swift:6:36: error: cannot find 'DispatchQueue' in scope
  4 |
  5 |     nonisolated(unsafe) private static var _pools: [String:LoggerPool] = [:]
  6 |     private static let poolQueue = DispatchQueue(label: "pl.dariuszgulbicki.loggingcamp.poolqueue")
    |                                    `- error: cannot find 'DispatchQueue' in scope
  7 |
  8 |     public static var pools: [String:LoggerPool] {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/20] Emitting module LoggingCamp
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:7:39: error: cannot find 'DispatchQueue' in scope
 5 |
 6 |     public static let shared = LogDispatcher()
 7 |     public static let instanceQueue = DispatchQueue(label: "LoggingCamp.LogDispatcher")
   |                                       `- error: cannot find 'DispatchQueue' in scope
 8 |
 9 |     private init() {
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:15:41: error: cannot find type 'DispatchQueue' in scope
13 |     }
14 |
15 |     private var handlerQueues: [String: DispatchQueue] = [:]
   |                                         `- error: cannot find type 'DispatchQueue' in scope
16 |     private let dispatchGroup = DispatchGroup()
17 |
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:16:33: error: cannot find 'DispatchGroup' in scope
14 |
15 |     private var handlerQueues: [String: DispatchQueue] = [:]
16 |     private let dispatchGroup = DispatchGroup()
   |                                 `- error: cannot find 'DispatchGroup' in scope
17 |
18 |
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:19:59: error: cannot find type 'DispatchQueue' in scope
17 |
18 |
19 |     private func getQueueForHandler(_ handler: String) -> DispatchQueue {
   |                                                           `- error: cannot find type 'DispatchQueue' in scope
20 |         // Use instanceQueue for thread-safe access to handlerQueues
21 |         return LogDispatcher.instanceQueue.sync {
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:7:39: error: cannot find 'DispatchQueue' in scope
 5 |     nonisolated(unsafe) private static var handlers: [String: LogHandler] = ["default": ColoredPrintLogHandler()]
 6 |     nonisolated(unsafe) private static var disabledHandlers: [String] = []
 7 |     private static let handlerQueue = DispatchQueue(label: "LoggingCamp.LogHandlerManager", attributes: .concurrent)
   |                                       `- error: cannot find 'DispatchQueue' in scope
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:7:106: error: cannot infer contextual base in reference to member 'concurrent'
 5 |     nonisolated(unsafe) private static var handlers: [String: LogHandler] = ["default": ColoredPrintLogHandler()]
 6 |     nonisolated(unsafe) private static var disabledHandlers: [String] = []
 7 |     private static let handlerQueue = DispatchQueue(label: "LoggingCamp.LogHandlerManager", attributes: .concurrent)
   |                                                                                                          `- error: cannot infer contextual base in reference to member 'concurrent'
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggerPool.swift:6:36: error: cannot find 'DispatchQueue' in scope
  4 |
  5 |     nonisolated(unsafe) private static var _pools: [String:LoggerPool] = [:]
  6 |     private static let poolQueue = DispatchQueue(label: "pl.dariuszgulbicki.loggingcamp.poolqueue")
    |                                    `- error: cannot find 'DispatchQueue' in scope
  7 |
  8 |     public static var pools: [String:LoggerPool] {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:9:38: error: cannot find 'DispatchQueue' in scope
 7 |     nonisolated(unsafe) private static var defaultLoggerId: String = "Main"
 8 |
 9 |     private static let configQueue = DispatchQueue(label: "LoggingCamp.LoggingConfig", attributes: .concurrent)
   |                                      `- error: cannot find 'DispatchQueue' in scope
10 |
11 |     public static func setDefaultLoggingLevel(_ level: LogLevel) {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:9:101: error: cannot infer contextual base in reference to member 'concurrent'
 7 |     nonisolated(unsafe) private static var defaultLoggerId: String = "Main"
 8 |
 9 |     private static let configQueue = DispatchQueue(label: "LoggingCamp.LoggingConfig", attributes: .concurrent)
   |                                                                                                     `- error: cannot infer contextual base in reference to member 'concurrent'
10 |
11 |     public static func setDefaultLoggingLevel(_ level: LogLevel) {
[18/20] Compiling LoggingCamp LogDispatcher.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:7:39: error: cannot find 'DispatchQueue' in scope
 5 |
 6 |     public static let shared = LogDispatcher()
 7 |     public static let instanceQueue = DispatchQueue(label: "LoggingCamp.LogDispatcher")
   |                                       `- error: cannot find 'DispatchQueue' in scope
 8 |
 9 |     private init() {
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:15:41: error: cannot find type 'DispatchQueue' in scope
13 |     }
14 |
15 |     private var handlerQueues: [String: DispatchQueue] = [:]
   |                                         `- error: cannot find type 'DispatchQueue' in scope
16 |     private let dispatchGroup = DispatchGroup()
17 |
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:16:33: error: cannot find 'DispatchGroup' in scope
14 |
15 |     private var handlerQueues: [String: DispatchQueue] = [:]
16 |     private let dispatchGroup = DispatchGroup()
   |                                 `- error: cannot find 'DispatchGroup' in scope
17 |
18 |
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:19:59: error: cannot find type 'DispatchQueue' in scope
17 |
18 |
19 |     private func getQueueForHandler(_ handler: String) -> DispatchQueue {
   |                                                           `- error: cannot find type 'DispatchQueue' in scope
20 |         // Use instanceQueue for thread-safe access to handlerQueues
21 |         return LogDispatcher.instanceQueue.sync {
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:36:33: error: cannot infer contextual base in reference to member 'barrier'
34 |             dispatchGroup.enter()
35 |             let queue = getQueueForHandler(handlerId)
36 |             queue.async(flags: .barrier) {
   |                                 `- error: cannot infer contextual base in reference to member 'barrier'
37 |                 handler.log(entry)
38 |                 self.dispatchGroup.leave()
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:44:51: error: cannot call value of non-function type 'Date'
42 |
43 |     private func flushLogs() {
44 |         let result = dispatchGroup.wait(timeout: .now() + 10)
   |                                                   `- error: cannot call value of non-function type 'Date'
45 |         if result == .timedOut {
46 |             print("⚠️ Log flushing incomplete! Timeout waiting for logs to finish.")
[19/20] Compiling LoggingCamp LogEntry.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:7:39: error: cannot find 'DispatchQueue' in scope
 5 |
 6 |     public static let shared = LogDispatcher()
 7 |     public static let instanceQueue = DispatchQueue(label: "LoggingCamp.LogDispatcher")
   |                                       `- error: cannot find 'DispatchQueue' in scope
 8 |
 9 |     private init() {
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:15:41: error: cannot find type 'DispatchQueue' in scope
13 |     }
14 |
15 |     private var handlerQueues: [String: DispatchQueue] = [:]
   |                                         `- error: cannot find type 'DispatchQueue' in scope
16 |     private let dispatchGroup = DispatchGroup()
17 |
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:16:33: error: cannot find 'DispatchGroup' in scope
14 |
15 |     private var handlerQueues: [String: DispatchQueue] = [:]
16 |     private let dispatchGroup = DispatchGroup()
   |                                 `- error: cannot find 'DispatchGroup' in scope
17 |
18 |
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:19:59: error: cannot find type 'DispatchQueue' in scope
17 |
18 |
19 |     private func getQueueForHandler(_ handler: String) -> DispatchQueue {
   |                                                           `- error: cannot find type 'DispatchQueue' in scope
20 |         // Use instanceQueue for thread-safe access to handlerQueues
21 |         return LogDispatcher.instanceQueue.sync {
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:36:33: error: cannot infer contextual base in reference to member 'barrier'
34 |             dispatchGroup.enter()
35 |             let queue = getQueueForHandler(handlerId)
36 |             queue.async(flags: .barrier) {
   |                                 `- error: cannot infer contextual base in reference to member 'barrier'
37 |                 handler.log(entry)
38 |                 self.dispatchGroup.leave()
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:44:51: error: cannot call value of non-function type 'Date'
42 |
43 |     private func flushLogs() {
44 |         let result = dispatchGroup.wait(timeout: .now() + 10)
   |                                                   `- error: cannot call value of non-function type 'Date'
45 |         if result == .timedOut {
46 |             print("⚠️ Log flushing incomplete! Timeout waiting for logs to finish.")
[20/20] Compiling LoggingCamp LoggingConfig.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:9:38: error: cannot find 'DispatchQueue' in scope
 7 |     nonisolated(unsafe) private static var defaultLoggerId: String = "Main"
 8 |
 9 |     private static let configQueue = DispatchQueue(label: "LoggingCamp.LoggingConfig", attributes: .concurrent)
   |                                      `- error: cannot find 'DispatchQueue' in scope
10 |
11 |     public static func setDefaultLoggingLevel(_ level: LogLevel) {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:9:101: error: cannot infer contextual base in reference to member 'concurrent'
 7 |     nonisolated(unsafe) private static var defaultLoggerId: String = "Main"
 8 |
 9 |     private static let configQueue = DispatchQueue(label: "LoggingCamp.LoggingConfig", attributes: .concurrent)
   |                                                                                                     `- error: cannot infer contextual base in reference to member 'concurrent'
10 |
11 |     public static func setDefaultLoggingLevel(_ level: LogLevel) {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:12:34: error: cannot infer contextual base in reference to member 'barrier'
10 |
11 |     public static func setDefaultLoggingLevel(_ level: LogLevel) {
12 |         configQueue.sync(flags: .barrier) {
   |                                  `- error: cannot infer contextual base in reference to member 'barrier'
13 |             defaultLoggingLevel = level
14 |             LoggerPool.pools.values.forEach { $0.loggingLevel = level }
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:25:34: error: cannot infer contextual base in reference to member 'barrier'
23 |
24 |     public static func setDefaultLoggerPoolId(_ poolId: String) {
25 |         configQueue.sync(flags: .barrier) {
   |                                  `- error: cannot infer contextual base in reference to member 'barrier'
26 |             defaultLoggerPoolId = poolId
27 |         }
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:37:34: error: cannot infer contextual base in reference to member 'barrier'
35 |
36 |     public static func setDefaultLoggerId(_ loggerId: String) {
37 |         configQueue.sync(flags: .barrier) {
   |                                  `- error: cannot infer contextual base in reference to member 'barrier'
38 |             defaultLoggerId = loggerId
39 |         }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling Colorizer StringEffects.swift
[3/5] Compiling Colorizer Colorizer.swift
[4/5] Emitting module Colorizer
[5/5] Compiling Colorizer EffectEscapeCode.swift
[7/17] Compiling LoggingCamp LogHandlerManager.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:7:39: error: cannot find 'DispatchQueue' in scope
 5 |     nonisolated(unsafe) private static var handlers: [String: LogHandler] = ["default": ColoredPrintLogHandler()]
 6 |     nonisolated(unsafe) private static var disabledHandlers: [String] = []
 7 |     private static let handlerQueue = DispatchQueue(label: "LoggingCamp.LogHandlerManager", attributes: .concurrent)
   |                                       `- error: cannot find 'DispatchQueue' in scope
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:7:106: error: cannot infer contextual base in reference to member 'concurrent'
 5 |     nonisolated(unsafe) private static var handlers: [String: LogHandler] = ["default": ColoredPrintLogHandler()]
 6 |     nonisolated(unsafe) private static var disabledHandlers: [String] = []
 7 |     private static let handlerQueue = DispatchQueue(label: "LoggingCamp.LogHandlerManager", attributes: .concurrent)
   |                                                                                                          `- error: cannot infer contextual base in reference to member 'concurrent'
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:10:35: error: cannot infer contextual base in reference to member 'barrier'
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
10 |         handlerQueue.sync(flags: .barrier) {
   |                                   `- error: cannot infer contextual base in reference to member 'barrier'
11 |             handlers[handlerId] = handler
12 |         }
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:22:35: error: cannot infer contextual base in reference to member 'barrier'
20 |
21 |     public static func disableHandler(_ handlerId: String) {
22 |         handlerQueue.sync(flags: .barrier) {
   |                                   `- error: cannot infer contextual base in reference to member 'barrier'
23 |             disabledHandlers.append(handlerId)
24 |         }
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:28:35: error: cannot infer contextual base in reference to member 'barrier'
26 |
27 |     public static func enableHandler(_ handlerId: String) {
28 |         handlerQueue.sync(flags: .barrier) {
   |                                   `- error: cannot infer contextual base in reference to member 'barrier'
29 |             disabledHandlers.removeAll(where: { $0 == handlerId })
30 |         }
[8/17] Compiling LoggingCamp LogLevel.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:7:39: error: cannot find 'DispatchQueue' in scope
 5 |     nonisolated(unsafe) private static var handlers: [String: LogHandler] = ["default": ColoredPrintLogHandler()]
 6 |     nonisolated(unsafe) private static var disabledHandlers: [String] = []
 7 |     private static let handlerQueue = DispatchQueue(label: "LoggingCamp.LogHandlerManager", attributes: .concurrent)
   |                                       `- error: cannot find 'DispatchQueue' in scope
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:7:106: error: cannot infer contextual base in reference to member 'concurrent'
 5 |     nonisolated(unsafe) private static var handlers: [String: LogHandler] = ["default": ColoredPrintLogHandler()]
 6 |     nonisolated(unsafe) private static var disabledHandlers: [String] = []
 7 |     private static let handlerQueue = DispatchQueue(label: "LoggingCamp.LogHandlerManager", attributes: .concurrent)
   |                                                                                                          `- error: cannot infer contextual base in reference to member 'concurrent'
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:10:35: error: cannot infer contextual base in reference to member 'barrier'
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
10 |         handlerQueue.sync(flags: .barrier) {
   |                                   `- error: cannot infer contextual base in reference to member 'barrier'
11 |             handlers[handlerId] = handler
12 |         }
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:22:35: error: cannot infer contextual base in reference to member 'barrier'
20 |
21 |     public static func disableHandler(_ handlerId: String) {
22 |         handlerQueue.sync(flags: .barrier) {
   |                                   `- error: cannot infer contextual base in reference to member 'barrier'
23 |             disabledHandlers.append(handlerId)
24 |         }
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:28:35: error: cannot infer contextual base in reference to member 'barrier'
26 |
27 |     public static func enableHandler(_ handlerId: String) {
28 |         handlerQueue.sync(flags: .barrier) {
   |                                   `- error: cannot infer contextual base in reference to member 'barrier'
29 |             disabledHandlers.removeAll(where: { $0 == handlerId })
30 |         }
[9/18] Compiling LoggingCamp Logger.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LoggerPool.swift:6:36: error: cannot find 'DispatchQueue' in scope
  4 |
  5 |     nonisolated(unsafe) private static var _pools: [String:LoggerPool] = [:]
  6 |     private static let poolQueue = DispatchQueue(label: "pl.dariuszgulbicki.loggingcamp.poolqueue")
    |                                    `- error: cannot find 'DispatchQueue' in scope
  7 |
  8 |     public static var pools: [String:LoggerPool] {
[10/18] Compiling LoggingCamp LoggerPool.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LoggerPool.swift:6:36: error: cannot find 'DispatchQueue' in scope
  4 |
  5 |     nonisolated(unsafe) private static var _pools: [String:LoggerPool] = [:]
  6 |     private static let poolQueue = DispatchQueue(label: "pl.dariuszgulbicki.loggingcamp.poolqueue")
    |                                    `- error: cannot find 'DispatchQueue' in scope
  7 |
  8 |     public static var pools: [String:LoggerPool] {
[11/18] Compiling LoggingCamp LogHandler.swift
[12/18] Compiling LoggingCamp Operators.swift
[13/18] Compiling LoggingCamp LogDispatcher.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:7:39: error: cannot find 'DispatchQueue' in scope
 5 |
 6 |     public static let shared = LogDispatcher()
 7 |     public static let instanceQueue = DispatchQueue(label: "LoggingCamp.LogDispatcher")
   |                                       `- error: cannot find 'DispatchQueue' in scope
 8 |
 9 |     private init() {
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:15:41: error: cannot find type 'DispatchQueue' in scope
13 |     }
14 |
15 |     private var handlerQueues: [String: DispatchQueue] = [:]
   |                                         `- error: cannot find type 'DispatchQueue' in scope
16 |     private let dispatchGroup = DispatchGroup()
17 |
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:16:33: error: cannot find 'DispatchGroup' in scope
14 |
15 |     private var handlerQueues: [String: DispatchQueue] = [:]
16 |     private let dispatchGroup = DispatchGroup()
   |                                 `- error: cannot find 'DispatchGroup' in scope
17 |
18 |
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:19:59: error: cannot find type 'DispatchQueue' in scope
17 |
18 |
19 |     private func getQueueForHandler(_ handler: String) -> DispatchQueue {
   |                                                           `- error: cannot find type 'DispatchQueue' in scope
20 |         // Use instanceQueue for thread-safe access to handlerQueues
21 |         return LogDispatcher.instanceQueue.sync {
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:36:33: error: cannot infer contextual base in reference to member 'barrier'
34 |             dispatchGroup.enter()
35 |             let queue = getQueueForHandler(handlerId)
36 |             queue.async(flags: .barrier) {
   |                                 `- error: cannot infer contextual base in reference to member 'barrier'
37 |                 handler.log(entry)
38 |                 self.dispatchGroup.leave()
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:44:51: error: cannot call value of non-function type 'Date'
42 |
43 |     private func flushLogs() {
44 |         let result = dispatchGroup.wait(timeout: .now() + 10)
   |                                                   `- error: cannot call value of non-function type 'Date'
45 |         if result == .timedOut {
46 |             print("⚠️ Log flushing incomplete! Timeout waiting for logs to finish.")
[14/18] Compiling LoggingCamp LogEntry.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:7:39: error: cannot find 'DispatchQueue' in scope
 5 |
 6 |     public static let shared = LogDispatcher()
 7 |     public static let instanceQueue = DispatchQueue(label: "LoggingCamp.LogDispatcher")
   |                                       `- error: cannot find 'DispatchQueue' in scope
 8 |
 9 |     private init() {
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:15:41: error: cannot find type 'DispatchQueue' in scope
13 |     }
14 |
15 |     private var handlerQueues: [String: DispatchQueue] = [:]
   |                                         `- error: cannot find type 'DispatchQueue' in scope
16 |     private let dispatchGroup = DispatchGroup()
17 |
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:16:33: error: cannot find 'DispatchGroup' in scope
14 |
15 |     private var handlerQueues: [String: DispatchQueue] = [:]
16 |     private let dispatchGroup = DispatchGroup()
   |                                 `- error: cannot find 'DispatchGroup' in scope
17 |
18 |
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:19:59: error: cannot find type 'DispatchQueue' in scope
17 |
18 |
19 |     private func getQueueForHandler(_ handler: String) -> DispatchQueue {
   |                                                           `- error: cannot find type 'DispatchQueue' in scope
20 |         // Use instanceQueue for thread-safe access to handlerQueues
21 |         return LogDispatcher.instanceQueue.sync {
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:36:33: error: cannot infer contextual base in reference to member 'barrier'
34 |             dispatchGroup.enter()
35 |             let queue = getQueueForHandler(handlerId)
36 |             queue.async(flags: .barrier) {
   |                                 `- error: cannot infer contextual base in reference to member 'barrier'
37 |                 handler.log(entry)
38 |                 self.dispatchGroup.leave()
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:44:51: error: cannot call value of non-function type 'Date'
42 |
43 |     private func flushLogs() {
44 |         let result = dispatchGroup.wait(timeout: .now() + 10)
   |                                                   `- error: cannot call value of non-function type 'Date'
45 |         if result == .timedOut {
46 |             print("⚠️ Log flushing incomplete! Timeout waiting for logs to finish.")
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/18] Emitting module LoggingCamp
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:7:39: error: cannot find 'DispatchQueue' in scope
 5 |
 6 |     public static let shared = LogDispatcher()
 7 |     public static let instanceQueue = DispatchQueue(label: "LoggingCamp.LogDispatcher")
   |                                       `- error: cannot find 'DispatchQueue' in scope
 8 |
 9 |     private init() {
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:15:41: error: cannot find type 'DispatchQueue' in scope
13 |     }
14 |
15 |     private var handlerQueues: [String: DispatchQueue] = [:]
   |                                         `- error: cannot find type 'DispatchQueue' in scope
16 |     private let dispatchGroup = DispatchGroup()
17 |
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:16:33: error: cannot find 'DispatchGroup' in scope
14 |
15 |     private var handlerQueues: [String: DispatchQueue] = [:]
16 |     private let dispatchGroup = DispatchGroup()
   |                                 `- error: cannot find 'DispatchGroup' in scope
17 |
18 |
/host/spi-builder-workspace/Sources/LoggingCamp/LogDispatcher.swift:19:59: error: cannot find type 'DispatchQueue' in scope
17 |
18 |
19 |     private func getQueueForHandler(_ handler: String) -> DispatchQueue {
   |                                                           `- error: cannot find type 'DispatchQueue' in scope
20 |         // Use instanceQueue for thread-safe access to handlerQueues
21 |         return LogDispatcher.instanceQueue.sync {
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:7:39: error: cannot find 'DispatchQueue' in scope
 5 |     nonisolated(unsafe) private static var handlers: [String: LogHandler] = ["default": ColoredPrintLogHandler()]
 6 |     nonisolated(unsafe) private static var disabledHandlers: [String] = []
 7 |     private static let handlerQueue = DispatchQueue(label: "LoggingCamp.LogHandlerManager", attributes: .concurrent)
   |                                       `- error: cannot find 'DispatchQueue' in scope
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
/host/spi-builder-workspace/Sources/LoggingCamp/LogHandlerManager.swift:7:106: error: cannot infer contextual base in reference to member 'concurrent'
 5 |     nonisolated(unsafe) private static var handlers: [String: LogHandler] = ["default": ColoredPrintLogHandler()]
 6 |     nonisolated(unsafe) private static var disabledHandlers: [String] = []
 7 |     private static let handlerQueue = DispatchQueue(label: "LoggingCamp.LogHandlerManager", attributes: .concurrent)
   |                                                                                                          `- error: cannot infer contextual base in reference to member 'concurrent'
 8 |
 9 |     public static func loadHandler(_ handlerId: String, _ handler: LogHandler) {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggerPool.swift:6:36: error: cannot find 'DispatchQueue' in scope
  4 |
  5 |     nonisolated(unsafe) private static var _pools: [String:LoggerPool] = [:]
  6 |     private static let poolQueue = DispatchQueue(label: "pl.dariuszgulbicki.loggingcamp.poolqueue")
    |                                    `- error: cannot find 'DispatchQueue' in scope
  7 |
  8 |     public static var pools: [String:LoggerPool] {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:9:38: error: cannot find 'DispatchQueue' in scope
 7 |     nonisolated(unsafe) private static var defaultLoggerId: String = "Main"
 8 |
 9 |     private static let configQueue = DispatchQueue(label: "LoggingCamp.LoggingConfig", attributes: .concurrent)
   |                                      `- error: cannot find 'DispatchQueue' in scope
10 |
11 |     public static func setDefaultLoggingLevel(_ level: LogLevel) {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:9:101: error: cannot infer contextual base in reference to member 'concurrent'
 7 |     nonisolated(unsafe) private static var defaultLoggerId: String = "Main"
 8 |
 9 |     private static let configQueue = DispatchQueue(label: "LoggingCamp.LoggingConfig", attributes: .concurrent)
   |                                                                                                     `- error: cannot infer contextual base in reference to member 'concurrent'
10 |
11 |     public static func setDefaultLoggingLevel(_ level: LogLevel) {
[16/18] Compiling LoggingCamp PrintLogHandler.swift
[17/18] Compiling LoggingCamp ColoredPrintLogHandler.swift
[18/18] Compiling LoggingCamp LoggingConfig.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:9:38: error: cannot find 'DispatchQueue' in scope
 7 |     nonisolated(unsafe) private static var defaultLoggerId: String = "Main"
 8 |
 9 |     private static let configQueue = DispatchQueue(label: "LoggingCamp.LoggingConfig", attributes: .concurrent)
   |                                      `- error: cannot find 'DispatchQueue' in scope
10 |
11 |     public static func setDefaultLoggingLevel(_ level: LogLevel) {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:9:101: error: cannot infer contextual base in reference to member 'concurrent'
 7 |     nonisolated(unsafe) private static var defaultLoggerId: String = "Main"
 8 |
 9 |     private static let configQueue = DispatchQueue(label: "LoggingCamp.LoggingConfig", attributes: .concurrent)
   |                                                                                                     `- error: cannot infer contextual base in reference to member 'concurrent'
10 |
11 |     public static func setDefaultLoggingLevel(_ level: LogLevel) {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:12:34: error: cannot infer contextual base in reference to member 'barrier'
10 |
11 |     public static func setDefaultLoggingLevel(_ level: LogLevel) {
12 |         configQueue.sync(flags: .barrier) {
   |                                  `- error: cannot infer contextual base in reference to member 'barrier'
13 |             defaultLoggingLevel = level
14 |             LoggerPool.pools.values.forEach { $0.loggingLevel = level }
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:25:34: error: cannot infer contextual base in reference to member 'barrier'
23 |
24 |     public static func setDefaultLoggerPoolId(_ poolId: String) {
25 |         configQueue.sync(flags: .barrier) {
   |                                  `- error: cannot infer contextual base in reference to member 'barrier'
26 |             defaultLoggerPoolId = poolId
27 |         }
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingConfig.swift:37:34: error: cannot infer contextual base in reference to member 'barrier'
35 |
36 |     public static func setDefaultLoggerId(_ loggerId: String) {
37 |         configQueue.sync(flags: .barrier) {
   |                                  `- error: cannot infer contextual base in reference to member 'barrier'
38 |             defaultLoggerId = loggerId
39 |         }
BUILD FAILURE 6.1 wasm