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 VimTerminalKit, reference master (c83b2d), with Swift 6.1 for Wasm on 29 May 2025 21:42:47 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marcusziade/VimTerminalKit.git
Reference: master
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/marcusziade/VimTerminalKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c83b2d6 Create swift.yml
Cloned https://github.com/marcusziade/VimTerminalKit.git
Revision (git rev-parse @):
c83b2d6b068d02b3cc579d918919fa55a5cd9f00
SUCCESS checkout https://github.com/marcusziade/VimTerminalKit.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/marcusziade/VimTerminalKit.git
https://github.com/marcusziade/VimTerminalKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "VimTerminalKit",
  "name" : "VimTerminalKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "VimTerminalKit",
      "targets" : [
        "VimTerminalKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "FileExplorer",
      "targets" : [
        "FileExplorer"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "VimTerminalKitTests",
      "module_type" : "SwiftTarget",
      "name" : "VimTerminalKitTests",
      "path" : "Tests/VimTerminalKitTests",
      "sources" : [
        "LoadingAnimatorTests.swift",
        "NavigatorTests.swift",
        "StateManagerTests.swift",
        "TerminalControlTests.swift"
      ],
      "target_dependencies" : [
        "VimTerminalKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "VimTerminalKit",
      "module_type" : "SwiftTarget",
      "name" : "VimTerminalKit",
      "path" : "Sources/VimTerminalKit",
      "product_memberships" : [
        "VimTerminalKit",
        "FileExplorer"
      ],
      "sources" : [
        "Direction.swift",
        "InputReader.swift",
        "InputType.swift",
        "LoadingAnimation.swift",
        "Navigator.swift",
        "StateManager.swift",
        "Terminal.swift",
        "VimTerminalKit.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "FileExplorer",
      "module_type" : "SwiftTarget",
      "name" : "FileExplorer",
      "path" : "Sources/FileExplorer",
      "product_memberships" : [
        "FileExplorer"
      ],
      "sources" : [
        "FileExplorer.swift"
      ],
      "target_dependencies" : [
        "VimTerminalKit"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/15] Compiling VimTerminalKit Navigator.swift
[5/15] Compiling VimTerminalKit StateManager.swift
/host/spi-builder-workspace/Sources/VimTerminalKit/LoadingAnimation.swift:49:37: error: cannot find type 'DispatchQueue' in scope
47 |
48 |         /// Queue used for running the animation.
49 |         private var animationQueue: DispatchQueue?
   |                                     `- error: cannot find type 'DispatchQueue' in scope
50 |
51 |         /// Creates a new loading animator.
[6/15] Compiling VimTerminalKit Terminal.swift
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:40:27: error: cannot find 'termios' in scope
38 |             /// and special characters (like Ctrl+C) are passed through uninterpreted.
39 |             public static func enable() {
40 |                 var raw = termios()
   |                           `- error: cannot find 'termios' in scope
41 |                 tcgetattr(STDIN_FILENO, &raw)
42 |                 raw.c_lflag &= ~UInt(ECHO | ICANON)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:41:17: error: cannot find 'tcgetattr' in scope
39 |             public static func enable() {
40 |                 var raw = termios()
41 |                 tcgetattr(STDIN_FILENO, &raw)
   |                 `- error: cannot find 'tcgetattr' in scope
42 |                 raw.c_lflag &= ~UInt(ECHO | ICANON)
43 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:42:38: error: cannot find 'ECHO' in scope
40 |                 var raw = termios()
41 |                 tcgetattr(STDIN_FILENO, &raw)
42 |                 raw.c_lflag &= ~UInt(ECHO | ICANON)
   |                                      `- error: cannot find 'ECHO' in scope
43 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
44 |                 print(Control.hideCursor)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:42:45: error: cannot find 'ICANON' in scope
40 |                 var raw = termios()
41 |                 tcgetattr(STDIN_FILENO, &raw)
42 |                 raw.c_lflag &= ~UInt(ECHO | ICANON)
   |                                             `- error: cannot find 'ICANON' in scope
43 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
44 |                 print(Control.hideCursor)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:43:17: error: cannot find 'tcsetattr' in scope
41 |                 tcgetattr(STDIN_FILENO, &raw)
42 |                 raw.c_lflag &= ~UInt(ECHO | ICANON)
43 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
   |                 `- error: cannot find 'tcsetattr' in scope
44 |                 print(Control.hideCursor)
45 |             }
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:43:41: error: cannot find 'TCSAFLUSH' in scope
41 |                 tcgetattr(STDIN_FILENO, &raw)
42 |                 raw.c_lflag &= ~UInt(ECHO | ICANON)
43 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
   |                                         `- error: cannot find 'TCSAFLUSH' in scope
44 |                 print(Control.hideCursor)
45 |             }
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:49:27: error: cannot find 'termios' in scope
47 |             /// Restores the terminal to its normal (cooked) mode.
48 |             public static func disable() {
49 |                 var raw = termios()
   |                           `- error: cannot find 'termios' in scope
50 |                 tcgetattr(STDIN_FILENO, &raw)
51 |                 raw.c_lflag |= UInt(ECHO | ICANON)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:50:17: error: cannot find 'tcgetattr' in scope
48 |             public static func disable() {
49 |                 var raw = termios()
50 |                 tcgetattr(STDIN_FILENO, &raw)
   |                 `- error: cannot find 'tcgetattr' in scope
51 |                 raw.c_lflag |= UInt(ECHO | ICANON)
52 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:51:37: error: cannot find 'ECHO' in scope
49 |                 var raw = termios()
50 |                 tcgetattr(STDIN_FILENO, &raw)
51 |                 raw.c_lflag |= UInt(ECHO | ICANON)
   |                                     `- error: cannot find 'ECHO' in scope
52 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
53 |                 print(Control.showCursor)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:51:44: error: cannot find 'ICANON' in scope
49 |                 var raw = termios()
50 |                 tcgetattr(STDIN_FILENO, &raw)
51 |                 raw.c_lflag |= UInt(ECHO | ICANON)
   |                                            `- error: cannot find 'ICANON' in scope
52 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
53 |                 print(Control.showCursor)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:52:17: error: cannot find 'tcsetattr' in scope
50 |                 tcgetattr(STDIN_FILENO, &raw)
51 |                 raw.c_lflag |= UInt(ECHO | ICANON)
52 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
   |                 `- error: cannot find 'tcsetattr' in scope
53 |                 print(Control.showCursor)
54 |             }
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:52:41: error: cannot find 'TCSAFLUSH' in scope
50 |                 tcgetattr(STDIN_FILENO, &raw)
51 |                 raw.c_lflag |= UInt(ECHO | ICANON)
52 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
   |                                         `- error: cannot find 'TCSAFLUSH' in scope
53 |                 print(Control.showCursor)
54 |             }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/16] Compiling VimTerminalKit InputReader.swift
[8/16] Compiling VimTerminalKit Direction.swift
[9/16] Compiling VimTerminalKit InputType.swift
[10/16] Emitting module VimTerminalKit
/host/spi-builder-workspace/Sources/VimTerminalKit/LoadingAnimation.swift:49:37: error: cannot find type 'DispatchQueue' in scope
47 |
48 |         /// Queue used for running the animation.
49 |         private var animationQueue: DispatchQueue?
   |                                     `- error: cannot find type 'DispatchQueue' in scope
50 |
51 |         /// Creates a new loading animator.
[11/16] Compiling VimTerminalKit LoadingAnimation.swift
/host/spi-builder-workspace/Sources/VimTerminalKit/LoadingAnimation.swift:49:37: error: cannot find type 'DispatchQueue' in scope
47 |
48 |         /// Queue used for running the animation.
49 |         private var animationQueue: DispatchQueue?
   |                                     `- error: cannot find type 'DispatchQueue' in scope
50 |
51 |         /// Creates a new loading animator.
/host/spi-builder-workspace/Sources/VimTerminalKit/LoadingAnimation.swift:72:30: error: cannot find 'DispatchQueue' in scope
70 |             isRunning = true
71 |
72 |             animationQueue = DispatchQueue(label: "com.vimterminalkit.loading")
   |                              `- error: cannot find 'DispatchQueue' in scope
73 |             animationQueue?.async { [weak self] in
74 |                 guard let self = self else { return }
/host/spi-builder-workspace/Sources/VimTerminalKit/LoadingAnimation.swift:78:21: error: cannot find 'Thread' in scope
76 |                     let newMessage = "\(self.initialMessage) \(self.frames[self.animationFrame])"
77 |                     self.onUpdate(newMessage)
78 |                     Thread.sleep(forTimeInterval: 0.1)
   |                     `- error: cannot find 'Thread' in scope
79 |                     self.animationFrame = (self.animationFrame + 1) % self.frames.count
80 |                 }
[12/16] Compiling VimTerminalKit VimTerminalKit.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/13] Compiling VimTerminalKit StateManager.swift
/host/spi-builder-workspace/Sources/VimTerminalKit/LoadingAnimation.swift:49:37: error: cannot find type 'DispatchQueue' in scope
47 |
48 |         /// Queue used for running the animation.
49 |         private var animationQueue: DispatchQueue?
   |                                     `- error: cannot find type 'DispatchQueue' in scope
50 |
51 |         /// Creates a new loading animator.
[3/14] Compiling VimTerminalKit Terminal.swift
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:40:27: error: cannot find 'termios' in scope
38 |             /// and special characters (like Ctrl+C) are passed through uninterpreted.
39 |             public static func enable() {
40 |                 var raw = termios()
   |                           `- error: cannot find 'termios' in scope
41 |                 tcgetattr(STDIN_FILENO, &raw)
42 |                 raw.c_lflag &= ~UInt(ECHO | ICANON)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:41:17: error: cannot find 'tcgetattr' in scope
39 |             public static func enable() {
40 |                 var raw = termios()
41 |                 tcgetattr(STDIN_FILENO, &raw)
   |                 `- error: cannot find 'tcgetattr' in scope
42 |                 raw.c_lflag &= ~UInt(ECHO | ICANON)
43 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:42:38: error: cannot find 'ECHO' in scope
40 |                 var raw = termios()
41 |                 tcgetattr(STDIN_FILENO, &raw)
42 |                 raw.c_lflag &= ~UInt(ECHO | ICANON)
   |                                      `- error: cannot find 'ECHO' in scope
43 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
44 |                 print(Control.hideCursor)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:42:45: error: cannot find 'ICANON' in scope
40 |                 var raw = termios()
41 |                 tcgetattr(STDIN_FILENO, &raw)
42 |                 raw.c_lflag &= ~UInt(ECHO | ICANON)
   |                                             `- error: cannot find 'ICANON' in scope
43 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
44 |                 print(Control.hideCursor)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:43:17: error: cannot find 'tcsetattr' in scope
41 |                 tcgetattr(STDIN_FILENO, &raw)
42 |                 raw.c_lflag &= ~UInt(ECHO | ICANON)
43 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
   |                 `- error: cannot find 'tcsetattr' in scope
44 |                 print(Control.hideCursor)
45 |             }
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:43:41: error: cannot find 'TCSAFLUSH' in scope
41 |                 tcgetattr(STDIN_FILENO, &raw)
42 |                 raw.c_lflag &= ~UInt(ECHO | ICANON)
43 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
   |                                         `- error: cannot find 'TCSAFLUSH' in scope
44 |                 print(Control.hideCursor)
45 |             }
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:49:27: error: cannot find 'termios' in scope
47 |             /// Restores the terminal to its normal (cooked) mode.
48 |             public static func disable() {
49 |                 var raw = termios()
   |                           `- error: cannot find 'termios' in scope
50 |                 tcgetattr(STDIN_FILENO, &raw)
51 |                 raw.c_lflag |= UInt(ECHO | ICANON)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:50:17: error: cannot find 'tcgetattr' in scope
48 |             public static func disable() {
49 |                 var raw = termios()
50 |                 tcgetattr(STDIN_FILENO, &raw)
   |                 `- error: cannot find 'tcgetattr' in scope
51 |                 raw.c_lflag |= UInt(ECHO | ICANON)
52 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:51:37: error: cannot find 'ECHO' in scope
49 |                 var raw = termios()
50 |                 tcgetattr(STDIN_FILENO, &raw)
51 |                 raw.c_lflag |= UInt(ECHO | ICANON)
   |                                     `- error: cannot find 'ECHO' in scope
52 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
53 |                 print(Control.showCursor)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:51:44: error: cannot find 'ICANON' in scope
49 |                 var raw = termios()
50 |                 tcgetattr(STDIN_FILENO, &raw)
51 |                 raw.c_lflag |= UInt(ECHO | ICANON)
   |                                            `- error: cannot find 'ICANON' in scope
52 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
53 |                 print(Control.showCursor)
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:52:17: error: cannot find 'tcsetattr' in scope
50 |                 tcgetattr(STDIN_FILENO, &raw)
51 |                 raw.c_lflag |= UInt(ECHO | ICANON)
52 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
   |                 `- error: cannot find 'tcsetattr' in scope
53 |                 print(Control.showCursor)
54 |             }
/host/spi-builder-workspace/Sources/VimTerminalKit/Terminal.swift:52:41: error: cannot find 'TCSAFLUSH' in scope
50 |                 tcgetattr(STDIN_FILENO, &raw)
51 |                 raw.c_lflag |= UInt(ECHO | ICANON)
52 |                 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw)
   |                                         `- error: cannot find 'TCSAFLUSH' in scope
53 |                 print(Control.showCursor)
54 |             }
[4/14] Compiling VimTerminalKit InputType.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/14] Compiling VimTerminalKit Direction.swift
[6/14] Compiling VimTerminalKit InputReader.swift
[7/14] Emitting module VimTerminalKit
/host/spi-builder-workspace/Sources/VimTerminalKit/LoadingAnimation.swift:49:37: error: cannot find type 'DispatchQueue' in scope
47 |
48 |         /// Queue used for running the animation.
49 |         private var animationQueue: DispatchQueue?
   |                                     `- error: cannot find type 'DispatchQueue' in scope
50 |
51 |         /// Creates a new loading animator.
[8/14] Compiling VimTerminalKit LoadingAnimation.swift
/host/spi-builder-workspace/Sources/VimTerminalKit/LoadingAnimation.swift:49:37: error: cannot find type 'DispatchQueue' in scope
47 |
48 |         /// Queue used for running the animation.
49 |         private var animationQueue: DispatchQueue?
   |                                     `- error: cannot find type 'DispatchQueue' in scope
50 |
51 |         /// Creates a new loading animator.
/host/spi-builder-workspace/Sources/VimTerminalKit/LoadingAnimation.swift:72:30: error: cannot find 'DispatchQueue' in scope
70 |             isRunning = true
71 |
72 |             animationQueue = DispatchQueue(label: "com.vimterminalkit.loading")
   |                              `- error: cannot find 'DispatchQueue' in scope
73 |             animationQueue?.async { [weak self] in
74 |                 guard let self = self else { return }
/host/spi-builder-workspace/Sources/VimTerminalKit/LoadingAnimation.swift:78:21: error: cannot find 'Thread' in scope
76 |                     let newMessage = "\(self.initialMessage) \(self.frames[self.animationFrame])"
77 |                     self.onUpdate(newMessage)
78 |                     Thread.sleep(forTimeInterval: 0.1)
   |                     `- error: cannot find 'Thread' in scope
79 |                     self.animationFrame = (self.animationFrame + 1) % self.frames.count
80 |                 }
[9/14] Compiling VimTerminalKit Navigator.swift
[10/14] Compiling VimTerminalKit VimTerminalKit.swift
BUILD FAILURE 6.1 wasm