Build Information
Successful build of SwiftTerm, reference v1.5.1 (0b8d99
), with Swift 6.1 for Linux on 9 Aug 2025 07:33:38 UTC.
Swift 6 data race errors: 33
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
Build Log
========================================
RunAll
========================================
Builder version: 4.65.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/migueldeicaza/SwiftTerm.git
Reference: v1.5.1
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/migueldeicaza/SwiftTerm
* tag v1.5.1 -> FETCH_HEAD
HEAD is now at 0b8d99b Do not compile HeadlessTerminal on Windows as it uses LocalProcess, we should upgrade at some point to the new subprocess API in Swift
Cloned https://github.com/migueldeicaza/SwiftTerm.git
Revision (git rev-parse @):
0b8d99bd19b694df44e1ccaa3891309719d34330
SUCCESS checkout https://github.com/migueldeicaza/SwiftTerm.git at v1.5.1
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/migueldeicaza/SwiftTerm.git
https://github.com/migueldeicaza/SwiftTerm.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "SwiftTerm",
"name" : "SwiftTerm",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "SwiftTermFuzz",
"targets" : [
"SwiftTermFuzz"
],
"type" : {
"executable" : null
}
},
{
"name" : "termcast",
"targets" : [
"Termcast"
],
"type" : {
"executable" : null
}
},
{
"name" : "SwiftTerm",
"targets" : [
"SwiftTerm"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "Termcast",
"module_type" : "SwiftTarget",
"name" : "Termcast",
"path" : "Sources/Termcast",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"termcast"
],
"sources" : [
"AsciicastFormat.swift",
"TermcastPlayer.swift",
"TermcastRecorder.swift",
"main.swift"
],
"target_dependencies" : [
"SwiftTerm"
],
"type" : "executable"
},
{
"c99name" : "SwiftTermTests",
"module_type" : "SwiftTarget",
"name" : "SwiftTermTests",
"path" : "Tests/SwiftTermTests",
"sources" : [
"ColorTests.swift",
"FuzzerTests.swift",
"ImageTests.swift",
"MeanTests.swift",
"Memory.swift",
"OscTests.swift",
"PerformanceTest.swift",
"ReflowTests.swift",
"SelectionTests.swift",
"SwiftTermTests.swift",
"UnicodeTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"SwiftTerm"
],
"type" : "test"
},
{
"c99name" : "SwiftTermFuzz",
"module_type" : "SwiftTarget",
"name" : "SwiftTermFuzz",
"path" : "Sources/SwiftTermFuzz",
"product_memberships" : [
"SwiftTermFuzz"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"SwiftTerm"
],
"type" : "executable"
},
{
"c99name" : "SwiftTerm",
"module_type" : "SwiftTarget",
"name" : "SwiftTerm",
"path" : "Sources/SwiftTerm",
"product_memberships" : [
"SwiftTermFuzz",
"termcast",
"SwiftTerm"
],
"sources" : [
"Buffer.swift",
"BufferLine.swift",
"BufferSet.swift",
"CharData.swift",
"CharSets.swift",
"CircularList.swift",
"Colors.swift",
"EscapeSequenceParser.swift",
"EscapeSequences.swift",
"ExternsionsTerminal.swift",
"File.swift",
"HeadlessTerminal.swift",
"Line.swift",
"LocalProcess.swift",
"Position.swift",
"Pty.swift",
"SearchService.swift",
"SelectionService.swift",
"SixelDcsHandler.swift",
"Terminal.swift",
"TerminalOptions.swift",
"Utilities.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-argument-parser
[1/15630] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.04s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.1 (1.59s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.6.1
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/17] Write sources
[7/17] Write swift-version-24593BA9C3E375BF.txt
[9/40] Compiling ArgumentParserToolInfo ToolInfo.swift
[10/40] Emitting module ArgumentParserToolInfo
[11/41] Wrapping AST for ArgumentParserToolInfo for debugging
[13/85] Compiling ArgumentParser OptionGroup.swift
[14/85] Compiling ArgumentParser AsyncParsableCommand.swift
[15/85] Compiling ArgumentParser CommandConfiguration.swift
[16/85] Compiling ArgumentParser CommandGroup.swift
[17/85] Compiling ArgumentParser EnumerableFlag.swift
[18/85] Compiling ArgumentParser ExpressibleByArgument.swift
[19/91] Emitting module ArgumentParser
[20/91] Compiling ArgumentParser Tree.swift
[21/91] Compiling ArgumentParser CodingKeyValidator.swift
[22/91] Compiling ArgumentParser NonsenseFlagsValidator.swift
[23/91] Compiling ArgumentParser ParsableArgumentsValidation.swift
[24/91] Compiling ArgumentParser PositionalArgumentsValidator.swift
[25/91] Compiling ArgumentParser UniqueNamesValidator.swift
[26/91] Compiling ArgumentParser ZshCompletionsGenerator.swift
[27/91] Compiling ArgumentParser Argument.swift
[28/91] Compiling ArgumentParser ArgumentDiscussion.swift
[29/91] Compiling ArgumentParser ArgumentHelp.swift
[30/91] Compiling ArgumentParser ArgumentVisibility.swift
[31/91] Compiling ArgumentParser CompletionKind.swift
[32/93] Compiling ArgumentParser CollectionExtensions.swift
[33/93] Compiling ArgumentParser Mutex.swift
[34/93] Compiling ArgumentParser Platform.swift
[35/93] Compiling ArgumentParser SequenceExtensions.swift
[36/93] Compiling ArgumentParser StringExtensions.swift
[37/93] Compiling ArgumentParser SwiftExtensions.swift
[38/93] Compiling ArgumentParser BashCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:23:16: warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public var blue: UInt16
22 |
23 | static var defaultForeground = Color (red: 35389, green: 35389, blue: 35389)
| |- warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultForeground' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultForeground' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static var defaultBackground = Color (red: 0, green: 0, blue: 0)
25 |
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:24:16: warning: static property 'defaultBackground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | static var defaultForeground = Color (red: 35389, green: 35389, blue: 35389)
24 | static var defaultBackground = Color (red: 0, green: 0, blue: 0)
| |- warning: static property 'defaultBackground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultBackground' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultBackground' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | public static func == (lhs: Color, rhs: Color) -> Bool {
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:36:16: warning: static property 'paleColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
34 | }
35 |
36 | static let paleColors: [Color] = [
| |- warning: static property 'paleColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'paleColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | // dark colors
38 | Color (red8: 0x2e, green8: 0x34, blue8: 0x36),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:58:16: warning: static property 'vgaColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
56 | ]
57 |
58 | static let vgaColors: [Color] = [
| |- warning: static property 'vgaColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vgaColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | // dark colors
60 | Color (red8: 0, green8: 0, blue8: 0),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:78:16: warning: static property 'terminalAppColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
76 | ]
77 |
78 | static let terminalAppColors: [Color] = [
| |- warning: static property 'terminalAppColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'terminalAppColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 | Color (red8: 0, green8: 0, blue8: 0),
80 | Color (red8: 194, green8: 54, blue8: 33),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:97:16: warning: static property 'xtermColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
95 | ]
96 |
97 | static let xtermColors: [Color] = [
| |- warning: static property 'xtermColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xtermColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | Color (red8: 0, green8: 0, blue8: 0),
99 | Color (red8: 205, green8: 0, blue8: 0),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:116:16: warning: static property 'defaultInstalledColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
114 | ]
115 |
116 | static let defaultInstalledColors: [Color] = [
| |- warning: static property 'defaultInstalledColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstalledColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | Color (red8: 0, green8: 0, blue8: 0),
118 | Color (red8: 153, green8: 0, blue8: 1),
[39/93] Compiling ArgumentParser CompletionsGenerator.swift
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:23:16: warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public var blue: UInt16
22 |
23 | static var defaultForeground = Color (red: 35389, green: 35389, blue: 35389)
| |- warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultForeground' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultForeground' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static var defaultBackground = Color (red: 0, green: 0, blue: 0)
25 |
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:24:16: warning: static property 'defaultBackground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | static var defaultForeground = Color (red: 35389, green: 35389, blue: 35389)
24 | static var defaultBackground = Color (red: 0, green: 0, blue: 0)
| |- warning: static property 'defaultBackground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultBackground' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultBackground' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | public static func == (lhs: Color, rhs: Color) -> Bool {
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:36:16: warning: static property 'paleColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
34 | }
35 |
36 | static let paleColors: [Color] = [
| |- warning: static property 'paleColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'paleColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | // dark colors
38 | Color (red8: 0x2e, green8: 0x34, blue8: 0x36),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:58:16: warning: static property 'vgaColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
56 | ]
57 |
58 | static let vgaColors: [Color] = [
| |- warning: static property 'vgaColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vgaColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | // dark colors
60 | Color (red8: 0, green8: 0, blue8: 0),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:78:16: warning: static property 'terminalAppColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
76 | ]
77 |
78 | static let terminalAppColors: [Color] = [
| |- warning: static property 'terminalAppColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'terminalAppColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 | Color (red8: 0, green8: 0, blue8: 0),
80 | Color (red8: 194, green8: 54, blue8: 33),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:97:16: warning: static property 'xtermColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
95 | ]
96 |
97 | static let xtermColors: [Color] = [
| |- warning: static property 'xtermColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xtermColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | Color (red8: 0, green8: 0, blue8: 0),
99 | Color (red8: 205, green8: 0, blue8: 0),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:116:16: warning: static property 'defaultInstalledColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
114 | ]
115 |
116 | static let defaultInstalledColors: [Color] = [
| |- warning: static property 'defaultInstalledColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstalledColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | Color (red8: 0, green8: 0, blue8: 0),
118 | Color (red8: 153, green8: 0, blue8: 1),
[40/93] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:23:16: warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public var blue: UInt16
22 |
23 | static var defaultForeground = Color (red: 35389, green: 35389, blue: 35389)
| |- warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultForeground' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultForeground' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static var defaultBackground = Color (red: 0, green: 0, blue: 0)
25 |
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:24:16: warning: static property 'defaultBackground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | static var defaultForeground = Color (red: 35389, green: 35389, blue: 35389)
24 | static var defaultBackground = Color (red: 0, green: 0, blue: 0)
| |- warning: static property 'defaultBackground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultBackground' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultBackground' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | public static func == (lhs: Color, rhs: Color) -> Bool {
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:36:16: warning: static property 'paleColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
34 | }
35 |
36 | static let paleColors: [Color] = [
| |- warning: static property 'paleColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'paleColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | // dark colors
38 | Color (red8: 0x2e, green8: 0x34, blue8: 0x36),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:58:16: warning: static property 'vgaColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
56 | ]
57 |
58 | static let vgaColors: [Color] = [
| |- warning: static property 'vgaColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vgaColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | // dark colors
60 | Color (red8: 0, green8: 0, blue8: 0),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:78:16: warning: static property 'terminalAppColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
76 | ]
77 |
78 | static let terminalAppColors: [Color] = [
| |- warning: static property 'terminalAppColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'terminalAppColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 | Color (red8: 0, green8: 0, blue8: 0),
80 | Color (red8: 194, green8: 54, blue8: 33),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:97:16: warning: static property 'xtermColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
95 | ]
96 |
97 | static let xtermColors: [Color] = [
| |- warning: static property 'xtermColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xtermColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | Color (red8: 0, green8: 0, blue8: 0),
99 | Color (red8: 205, green8: 0, blue8: 0),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:116:16: warning: static property 'defaultInstalledColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
114 | ]
115 |
116 | static let defaultInstalledColors: [Color] = [
| |- warning: static property 'defaultInstalledColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstalledColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | Color (red8: 0, green8: 0, blue8: 0),
118 | Color (red8: 153, green8: 0, blue8: 1),
[41/93] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:33:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
31 |
32 | /// Empty style
33 | public static let none = CharacterStyle ([])
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | /// Use a bold font
35 | public static let bold = CharacterStyle (rawValue: 1)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:35:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
33 | public static let none = CharacterStyle ([])
34 | /// Use a bold font
35 | public static let bold = CharacterStyle (rawValue: 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | /// Underline the currentlin line
37 | public static let underline = CharacterStyle (rawValue: 2)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:37:23: warning: static property 'underline' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
35 | public static let bold = CharacterStyle (rawValue: 1)
36 | /// Underline the currentlin line
37 | public static let underline = CharacterStyle (rawValue: 2)
| |- warning: static property 'underline' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'underline' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | /// The text should blink
39 | public static let blink = CharacterStyle (rawValue: 4)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:39:23: warning: static property 'blink' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
37 | public static let underline = CharacterStyle (rawValue: 2)
38 | /// The text should blink
39 | public static let blink = CharacterStyle (rawValue: 4)
| |- warning: static property 'blink' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'blink' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | /// The text should be inverted (background and foreground are swapped)
41 | public static let inverse = CharacterStyle (rawValue: 8)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:41:23: warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
39 | public static let blink = CharacterStyle (rawValue: 4)
40 | /// The text should be inverted (background and foreground are swapped)
41 | public static let inverse = CharacterStyle (rawValue: 8)
| |- warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'inverse' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | /// The text should be replaced with white space - there is a debate as to what to do about it when copy/pasting
43 | /// code as different terminal emulators have taken conflicting takes, so your UI driver might have to choose
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:44:23: warning: static property 'invisible' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
42 | /// The text should be replaced with white space - there is a debate as to what to do about it when copy/pasting
43 | /// code as different terminal emulators have taken conflicting takes, so your UI driver might have to choose
44 | public static let invisible = CharacterStyle (rawValue: 16)
| |- warning: static property 'invisible' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invisible' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | /// Font should be rendered more lightly, implementation specific
46 | public static let dim = CharacterStyle (rawValue: 32)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:46:23: warning: static property 'dim' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
44 | public static let invisible = CharacterStyle (rawValue: 16)
45 | /// Font should be rendered more lightly, implementation specific
46 | public static let dim = CharacterStyle (rawValue: 32)
| |- warning: static property 'dim' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dim' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// Use italic fonts
48 | public static let italic = CharacterStyle (rawValue: 64)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:48:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
46 | public static let dim = CharacterStyle (rawValue: 32)
47 | /// Use italic fonts
48 | public static let italic = CharacterStyle (rawValue: 64)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'italic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// Cross out the text
50 | public static let crossedOut = CharacterStyle (rawValue: 128)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:50:23: warning: static property 'crossedOut' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
48 | public static let italic = CharacterStyle (rawValue: 64)
49 | /// Cross out the text
50 | public static let crossedOut = CharacterStyle (rawValue: 128)
| |- warning: static property 'crossedOut' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'crossedOut' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | }
52 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:97:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
95 | /// The empty attribute is configured to be use the defaultColor for the foreground, and the
96 | /// defaultInvertedColor for the background and an emptu style
97 | public static let empty = Attribute (fg: .defaultColor, bg: .defaultInvertedColor, style: .none)
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | /// Foreground and background colors
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:179:16: warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
177 | public struct TinyAtom {
178 | var code: UInt16
179 | static var map: [UInt16:Any] = [:]
| |- warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'map' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'map' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
180 | static var lastUsed: Int = 0
181 | static var lastCollected: Int = 0
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:180:16: warning: static property 'lastUsed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
178 | var code: UInt16
179 | static var map: [UInt16:Any] = [:]
180 | static var lastUsed: Int = 0
| |- warning: static property 'lastUsed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastUsed' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastUsed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
181 | static var lastCollected: Int = 0
182 | static let empty = TinyAtom (code: 0)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:181:16: warning: static property 'lastCollected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
179 | static var map: [UInt16:Any] = [:]
180 | static var lastUsed: Int = 0
181 | static var lastCollected: Int = 0
| |- warning: static property 'lastCollected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastCollected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastCollected' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
182 | static let empty = TinyAtom (code: 0)
183 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:182:16: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'TinyAtom' may have shared mutable state; this is an error in the Swift 6 language mode
175 | /// This is kept to 16 bits for now, so that we keep the CharData to less than 15 bytes
176 | /// it could in theory be changed to be 24 bits without much trouble
177 | public struct TinyAtom {
| `- note: consider making struct 'TinyAtom' conform to the 'Sendable' protocol
178 | var code: UInt16
179 | static var map: [UInt16:Any] = [:]
180 | static var lastUsed: Int = 0
181 | static var lastCollected: Int = 0
182 | static let empty = TinyAtom (code: 0)
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'TinyAtom' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
183 |
184 | private init(code: UInt16)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:241:16: warning: static property 'charToIndexMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
239 |
240 | // Contains the character to index mapping
241 | static var charToIndexMap: [Character:Int32] = [:]
| |- warning: static property 'charToIndexMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'charToIndexMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'charToIndexMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
242 |
243 | // Contains the index to character mapping, could be a plain array
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:244:16: warning: static property 'indexToCharMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
242 |
243 | // Contains the index to character mapping, could be a plain array
244 | static var indexToCharMap: [Int32: Character] = [:]
| |- warning: static property 'indexToCharMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexToCharMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'indexToCharMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
245 | static var lastCharIndex: Int32 = (1 << 22)+1
246 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:245:16: warning: static property 'lastCharIndex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
243 | // Contains the index to character mapping, could be a plain array
244 | static var indexToCharMap: [Int32: Character] = [:]
245 | static var lastCharIndex: Int32 = (1 << 22)+1
| |- warning: static property 'lastCharIndex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastCharIndex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastCharIndex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
246 |
247 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:248:16: warning: static property 'defaultAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
246 |
247 |
248 | static let defaultAttr = Attribute(fg: .defaultColor, bg: .defaultColor, style: .none)
| |- warning: static property 'defaultAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultAttr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
249 | static let invertedAttr = Attribute(fg: .defaultInvertedColor, bg: .defaultInvertedColor, style: .none)
250 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:249:16: warning: static property 'invertedAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
247 |
248 | static let defaultAttr = Attribute(fg: .defaultColor, bg: .defaultColor, style: .none)
249 | static let invertedAttr = Attribute(fg: .defaultInvertedColor, bg: .defaultInvertedColor, style: .none)
| |- warning: static property 'invertedAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invertedAttr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
250 |
251 | // Contains a rune, or a pointer into a Grapheme Cluster
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:333:23: warning: static property 'Null' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 |
332 | /// The `Null` character can be used when filling up parts of the screeb
333 | public static var Null : CharData = CharData (attribute: defaultAttr)
| |- warning: static property 'Null' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Null' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'Null' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 |
335 | /// Updates the contents of this CharData with a new character.
/host/spi-builder-workspace/Sources/SwiftTerm/CharSets.swift:12:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | class CharSets {
12 | public static var all: [UInt8:[UInt8:String]] = initAll ()
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | // This is the "B" charset, null
/host/spi-builder-workspace/Sources/SwiftTerm/CharSets.swift:15:23: warning: static property 'defaultCharset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // This is the "B" charset, null
15 | public static var defaultCharset: [UInt8:String]? = nil
| |- warning: static property 'defaultCharset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCharset' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCharset' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static func initAll () -> [UInt8:[UInt8:String]]
[42/93] Compiling ArgumentParser ArgumentSet.swift
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:33:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
31 |
32 | /// Empty style
33 | public static let none = CharacterStyle ([])
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | /// Use a bold font
35 | public static let bold = CharacterStyle (rawValue: 1)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:35:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
33 | public static let none = CharacterStyle ([])
34 | /// Use a bold font
35 | public static let bold = CharacterStyle (rawValue: 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | /// Underline the currentlin line
37 | public static let underline = CharacterStyle (rawValue: 2)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:37:23: warning: static property 'underline' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
35 | public static let bold = CharacterStyle (rawValue: 1)
36 | /// Underline the currentlin line
37 | public static let underline = CharacterStyle (rawValue: 2)
| |- warning: static property 'underline' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'underline' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | /// The text should blink
39 | public static let blink = CharacterStyle (rawValue: 4)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:39:23: warning: static property 'blink' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
37 | public static let underline = CharacterStyle (rawValue: 2)
38 | /// The text should blink
39 | public static let blink = CharacterStyle (rawValue: 4)
| |- warning: static property 'blink' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'blink' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | /// The text should be inverted (background and foreground are swapped)
41 | public static let inverse = CharacterStyle (rawValue: 8)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:41:23: warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
39 | public static let blink = CharacterStyle (rawValue: 4)
40 | /// The text should be inverted (background and foreground are swapped)
41 | public static let inverse = CharacterStyle (rawValue: 8)
| |- warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'inverse' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | /// The text should be replaced with white space - there is a debate as to what to do about it when copy/pasting
43 | /// code as different terminal emulators have taken conflicting takes, so your UI driver might have to choose
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:44:23: warning: static property 'invisible' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
42 | /// The text should be replaced with white space - there is a debate as to what to do about it when copy/pasting
43 | /// code as different terminal emulators have taken conflicting takes, so your UI driver might have to choose
44 | public static let invisible = CharacterStyle (rawValue: 16)
| |- warning: static property 'invisible' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invisible' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | /// Font should be rendered more lightly, implementation specific
46 | public static let dim = CharacterStyle (rawValue: 32)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:46:23: warning: static property 'dim' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
44 | public static let invisible = CharacterStyle (rawValue: 16)
45 | /// Font should be rendered more lightly, implementation specific
46 | public static let dim = CharacterStyle (rawValue: 32)
| |- warning: static property 'dim' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dim' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// Use italic fonts
48 | public static let italic = CharacterStyle (rawValue: 64)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:48:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
46 | public static let dim = CharacterStyle (rawValue: 32)
47 | /// Use italic fonts
48 | public static let italic = CharacterStyle (rawValue: 64)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'italic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// Cross out the text
50 | public static let crossedOut = CharacterStyle (rawValue: 128)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:50:23: warning: static property 'crossedOut' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
48 | public static let italic = CharacterStyle (rawValue: 64)
49 | /// Cross out the text
50 | public static let crossedOut = CharacterStyle (rawValue: 128)
| |- warning: static property 'crossedOut' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'crossedOut' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | }
52 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:97:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
95 | /// The empty attribute is configured to be use the defaultColor for the foreground, and the
96 | /// defaultInvertedColor for the background and an emptu style
97 | public static let empty = Attribute (fg: .defaultColor, bg: .defaultInvertedColor, style: .none)
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | /// Foreground and background colors
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:179:16: warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
177 | public struct TinyAtom {
178 | var code: UInt16
179 | static var map: [UInt16:Any] = [:]
| |- warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'map' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'map' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
180 | static var lastUsed: Int = 0
181 | static var lastCollected: Int = 0
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:180:16: warning: static property 'lastUsed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
178 | var code: UInt16
179 | static var map: [UInt16:Any] = [:]
180 | static var lastUsed: Int = 0
| |- warning: static property 'lastUsed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastUsed' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastUsed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
181 | static var lastCollected: Int = 0
182 | static let empty = TinyAtom (code: 0)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:181:16: warning: static property 'lastCollected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
179 | static var map: [UInt16:Any] = [:]
180 | static var lastUsed: Int = 0
181 | static var lastCollected: Int = 0
| |- warning: static property 'lastCollected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastCollected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastCollected' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
182 | static let empty = TinyAtom (code: 0)
183 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:182:16: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'TinyAtom' may have shared mutable state; this is an error in the Swift 6 language mode
175 | /// This is kept to 16 bits for now, so that we keep the CharData to less than 15 bytes
176 | /// it could in theory be changed to be 24 bits without much trouble
177 | public struct TinyAtom {
| `- note: consider making struct 'TinyAtom' conform to the 'Sendable' protocol
178 | var code: UInt16
179 | static var map: [UInt16:Any] = [:]
180 | static var lastUsed: Int = 0
181 | static var lastCollected: Int = 0
182 | static let empty = TinyAtom (code: 0)
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'TinyAtom' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
183 |
184 | private init(code: UInt16)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:241:16: warning: static property 'charToIndexMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
239 |
240 | // Contains the character to index mapping
241 | static var charToIndexMap: [Character:Int32] = [:]
| |- warning: static property 'charToIndexMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'charToIndexMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'charToIndexMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
242 |
243 | // Contains the index to character mapping, could be a plain array
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:244:16: warning: static property 'indexToCharMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
242 |
243 | // Contains the index to character mapping, could be a plain array
244 | static var indexToCharMap: [Int32: Character] = [:]
| |- warning: static property 'indexToCharMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexToCharMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'indexToCharMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
245 | static var lastCharIndex: Int32 = (1 << 22)+1
246 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:245:16: warning: static property 'lastCharIndex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
243 | // Contains the index to character mapping, could be a plain array
244 | static var indexToCharMap: [Int32: Character] = [:]
245 | static var lastCharIndex: Int32 = (1 << 22)+1
| |- warning: static property 'lastCharIndex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastCharIndex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastCharIndex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
246 |
247 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:248:16: warning: static property 'defaultAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
246 |
247 |
248 | static let defaultAttr = Attribute(fg: .defaultColor, bg: .defaultColor, style: .none)
| |- warning: static property 'defaultAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultAttr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
249 | static let invertedAttr = Attribute(fg: .defaultInvertedColor, bg: .defaultInvertedColor, style: .none)
250 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:249:16: warning: static property 'invertedAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
247 |
248 | static let defaultAttr = Attribute(fg: .defaultColor, bg: .defaultColor, style: .none)
249 | static let invertedAttr = Attribute(fg: .defaultInvertedColor, bg: .defaultInvertedColor, style: .none)
| |- warning: static property 'invertedAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invertedAttr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
250 |
251 | // Contains a rune, or a pointer into a Grapheme Cluster
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:333:23: warning: static property 'Null' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 |
332 | /// The `Null` character can be used when filling up parts of the screeb
333 | public static var Null : CharData = CharData (attribute: defaultAttr)
| |- warning: static property 'Null' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Null' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'Null' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 |
335 | /// Updates the contents of this CharData with a new character.
/host/spi-builder-workspace/Sources/SwiftTerm/CharSets.swift:12:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | class CharSets {
12 | public static var all: [UInt8:[UInt8:String]] = initAll ()
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | // This is the "B" charset, null
/host/spi-builder-workspace/Sources/SwiftTerm/CharSets.swift:15:23: warning: static property 'defaultCharset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // This is the "B" charset, null
15 | public static var defaultCharset: [UInt8:String]? = nil
| |- warning: static property 'defaultCharset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCharset' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCharset' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static func initAll () -> [UInt8:[UInt8:String]]
[43/93] Compiling ArgumentParser CommandParser.swift
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:33:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
31 |
32 | /// Empty style
33 | public static let none = CharacterStyle ([])
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | /// Use a bold font
35 | public static let bold = CharacterStyle (rawValue: 1)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:35:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
33 | public static let none = CharacterStyle ([])
34 | /// Use a bold font
35 | public static let bold = CharacterStyle (rawValue: 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | /// Underline the currentlin line
37 | public static let underline = CharacterStyle (rawValue: 2)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:37:23: warning: static property 'underline' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
35 | public static let bold = CharacterStyle (rawValue: 1)
36 | /// Underline the currentlin line
37 | public static let underline = CharacterStyle (rawValue: 2)
| |- warning: static property 'underline' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'underline' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | /// The text should blink
39 | public static let blink = CharacterStyle (rawValue: 4)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:39:23: warning: static property 'blink' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
37 | public static let underline = CharacterStyle (rawValue: 2)
38 | /// The text should blink
39 | public static let blink = CharacterStyle (rawValue: 4)
| |- warning: static property 'blink' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'blink' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | /// The text should be inverted (background and foreground are swapped)
41 | public static let inverse = CharacterStyle (rawValue: 8)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:41:23: warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
39 | public static let blink = CharacterStyle (rawValue: 4)
40 | /// The text should be inverted (background and foreground are swapped)
41 | public static let inverse = CharacterStyle (rawValue: 8)
| |- warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'inverse' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | /// The text should be replaced with white space - there is a debate as to what to do about it when copy/pasting
43 | /// code as different terminal emulators have taken conflicting takes, so your UI driver might have to choose
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:44:23: warning: static property 'invisible' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
42 | /// The text should be replaced with white space - there is a debate as to what to do about it when copy/pasting
43 | /// code as different terminal emulators have taken conflicting takes, so your UI driver might have to choose
44 | public static let invisible = CharacterStyle (rawValue: 16)
| |- warning: static property 'invisible' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invisible' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | /// Font should be rendered more lightly, implementation specific
46 | public static let dim = CharacterStyle (rawValue: 32)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:46:23: warning: static property 'dim' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
44 | public static let invisible = CharacterStyle (rawValue: 16)
45 | /// Font should be rendered more lightly, implementation specific
46 | public static let dim = CharacterStyle (rawValue: 32)
| |- warning: static property 'dim' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dim' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// Use italic fonts
48 | public static let italic = CharacterStyle (rawValue: 64)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:48:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
46 | public static let dim = CharacterStyle (rawValue: 32)
47 | /// Use italic fonts
48 | public static let italic = CharacterStyle (rawValue: 64)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'italic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// Cross out the text
50 | public static let crossedOut = CharacterStyle (rawValue: 128)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:50:23: warning: static property 'crossedOut' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
48 | public static let italic = CharacterStyle (rawValue: 64)
49 | /// Cross out the text
50 | public static let crossedOut = CharacterStyle (rawValue: 128)
| |- warning: static property 'crossedOut' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'crossedOut' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | }
52 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:97:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
95 | /// The empty attribute is configured to be use the defaultColor for the foreground, and the
96 | /// defaultInvertedColor for the background and an emptu style
97 | public static let empty = Attribute (fg: .defaultColor, bg: .defaultInvertedColor, style: .none)
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | /// Foreground and background colors
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:179:16: warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
177 | public struct TinyAtom {
178 | var code: UInt16
179 | static var map: [UInt16:Any] = [:]
| |- warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'map' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'map' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
180 | static var lastUsed: Int = 0
181 | static var lastCollected: Int = 0
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:180:16: warning: static property 'lastUsed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
178 | var code: UInt16
179 | static var map: [UInt16:Any] = [:]
180 | static var lastUsed: Int = 0
| |- warning: static property 'lastUsed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastUsed' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastUsed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
181 | static var lastCollected: Int = 0
182 | static let empty = TinyAtom (code: 0)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:181:16: warning: static property 'lastCollected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
179 | static var map: [UInt16:Any] = [:]
180 | static var lastUsed: Int = 0
181 | static var lastCollected: Int = 0
| |- warning: static property 'lastCollected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastCollected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastCollected' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
182 | static let empty = TinyAtom (code: 0)
183 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:182:16: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'TinyAtom' may have shared mutable state; this is an error in the Swift 6 language mode
175 | /// This is kept to 16 bits for now, so that we keep the CharData to less than 15 bytes
176 | /// it could in theory be changed to be 24 bits without much trouble
177 | public struct TinyAtom {
| `- note: consider making struct 'TinyAtom' conform to the 'Sendable' protocol
178 | var code: UInt16
179 | static var map: [UInt16:Any] = [:]
180 | static var lastUsed: Int = 0
181 | static var lastCollected: Int = 0
182 | static let empty = TinyAtom (code: 0)
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'TinyAtom' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
183 |
184 | private init(code: UInt16)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:241:16: warning: static property 'charToIndexMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
239 |
240 | // Contains the character to index mapping
241 | static var charToIndexMap: [Character:Int32] = [:]
| |- warning: static property 'charToIndexMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'charToIndexMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'charToIndexMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
242 |
243 | // Contains the index to character mapping, could be a plain array
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:244:16: warning: static property 'indexToCharMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
242 |
243 | // Contains the index to character mapping, could be a plain array
244 | static var indexToCharMap: [Int32: Character] = [:]
| |- warning: static property 'indexToCharMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexToCharMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'indexToCharMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
245 | static var lastCharIndex: Int32 = (1 << 22)+1
246 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:245:16: warning: static property 'lastCharIndex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
243 | // Contains the index to character mapping, could be a plain array
244 | static var indexToCharMap: [Int32: Character] = [:]
245 | static var lastCharIndex: Int32 = (1 << 22)+1
| |- warning: static property 'lastCharIndex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastCharIndex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastCharIndex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
246 |
247 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:248:16: warning: static property 'defaultAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
246 |
247 |
248 | static let defaultAttr = Attribute(fg: .defaultColor, bg: .defaultColor, style: .none)
| |- warning: static property 'defaultAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultAttr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
249 | static let invertedAttr = Attribute(fg: .defaultInvertedColor, bg: .defaultInvertedColor, style: .none)
250 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:249:16: warning: static property 'invertedAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
247 |
248 | static let defaultAttr = Attribute(fg: .defaultColor, bg: .defaultColor, style: .none)
249 | static let invertedAttr = Attribute(fg: .defaultInvertedColor, bg: .defaultInvertedColor, style: .none)
| |- warning: static property 'invertedAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invertedAttr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
250 |
251 | // Contains a rune, or a pointer into a Grapheme Cluster
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:333:23: warning: static property 'Null' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 |
332 | /// The `Null` character can be used when filling up parts of the screeb
333 | public static var Null : CharData = CharData (attribute: defaultAttr)
| |- warning: static property 'Null' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Null' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'Null' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 |
335 | /// Updates the contents of this CharData with a new character.
/host/spi-builder-workspace/Sources/SwiftTerm/CharSets.swift:12:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | class CharSets {
12 | public static var all: [UInt8:[UInt8:String]] = initAll ()
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | // This is the "B" charset, null
/host/spi-builder-workspace/Sources/SwiftTerm/CharSets.swift:15:23: warning: static property 'defaultCharset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // This is the "B" charset, null
15 | public static var defaultCharset: [UInt8:String]? = nil
| |- warning: static property 'defaultCharset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCharset' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCharset' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static func initAll () -> [UInt8:[UInt8:String]]
[44/93] Emitting module SwiftTerm
/host/spi-builder-workspace/Sources/SwiftTerm/Buffer.swift:1014:16: warning: static property 'n' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1012 | }
1013 |
1014 | static var n = 0
| |- warning: static property 'n' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'n' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'n' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1015 |
1016 | func dump ()
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:33:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
31 |
32 | /// Empty style
33 | public static let none = CharacterStyle ([])
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | /// Use a bold font
35 | public static let bold = CharacterStyle (rawValue: 1)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:35:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
33 | public static let none = CharacterStyle ([])
34 | /// Use a bold font
35 | public static let bold = CharacterStyle (rawValue: 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | /// Underline the currentlin line
37 | public static let underline = CharacterStyle (rawValue: 2)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:37:23: warning: static property 'underline' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
35 | public static let bold = CharacterStyle (rawValue: 1)
36 | /// Underline the currentlin line
37 | public static let underline = CharacterStyle (rawValue: 2)
| |- warning: static property 'underline' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'underline' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | /// The text should blink
39 | public static let blink = CharacterStyle (rawValue: 4)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:39:23: warning: static property 'blink' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
37 | public static let underline = CharacterStyle (rawValue: 2)
38 | /// The text should blink
39 | public static let blink = CharacterStyle (rawValue: 4)
| |- warning: static property 'blink' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'blink' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | /// The text should be inverted (background and foreground are swapped)
41 | public static let inverse = CharacterStyle (rawValue: 8)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:41:23: warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
39 | public static let blink = CharacterStyle (rawValue: 4)
40 | /// The text should be inverted (background and foreground are swapped)
41 | public static let inverse = CharacterStyle (rawValue: 8)
| |- warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'inverse' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | /// The text should be replaced with white space - there is a debate as to what to do about it when copy/pasting
43 | /// code as different terminal emulators have taken conflicting takes, so your UI driver might have to choose
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:44:23: warning: static property 'invisible' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
42 | /// The text should be replaced with white space - there is a debate as to what to do about it when copy/pasting
43 | /// code as different terminal emulators have taken conflicting takes, so your UI driver might have to choose
44 | public static let invisible = CharacterStyle (rawValue: 16)
| |- warning: static property 'invisible' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invisible' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | /// Font should be rendered more lightly, implementation specific
46 | public static let dim = CharacterStyle (rawValue: 32)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:46:23: warning: static property 'dim' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
44 | public static let invisible = CharacterStyle (rawValue: 16)
45 | /// Font should be rendered more lightly, implementation specific
46 | public static let dim = CharacterStyle (rawValue: 32)
| |- warning: static property 'dim' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dim' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// Use italic fonts
48 | public static let italic = CharacterStyle (rawValue: 64)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:48:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
46 | public static let dim = CharacterStyle (rawValue: 32)
47 | /// Use italic fonts
48 | public static let italic = CharacterStyle (rawValue: 64)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'italic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// Cross out the text
50 | public static let crossedOut = CharacterStyle (rawValue: 128)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:50:23: warning: static property 'crossedOut' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// This option set describes the character style for a cell, this includes
12 | /// information about the font to use as well as decorations on the text
13 | public struct CharacterStyle : OptionSet, Hashable {
| `- note: consider making struct 'CharacterStyle' conform to the 'Sendable' protocol
14 | public let rawValue: UInt8
15 |
:
48 | public static let italic = CharacterStyle (rawValue: 64)
49 | /// Cross out the text
50 | public static let crossedOut = CharacterStyle (rawValue: 128)
| |- warning: static property 'crossedOut' is not concurrency-safe because non-'Sendable' type 'CharacterStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'crossedOut' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | }
52 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:97:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
95 | /// The empty attribute is configured to be use the defaultColor for the foreground, and the
96 | /// defaultInvertedColor for the background and an emptu style
97 | public static let empty = Attribute (fg: .defaultColor, bg: .defaultInvertedColor, style: .none)
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | /// Foreground and background colors
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:179:16: warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
177 | public struct TinyAtom {
178 | var code: UInt16
179 | static var map: [UInt16:Any] = [:]
| |- warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'map' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'map' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
180 | static var lastUsed: Int = 0
181 | static var lastCollected: Int = 0
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:180:16: warning: static property 'lastUsed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
178 | var code: UInt16
179 | static var map: [UInt16:Any] = [:]
180 | static var lastUsed: Int = 0
| |- warning: static property 'lastUsed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastUsed' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastUsed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
181 | static var lastCollected: Int = 0
182 | static let empty = TinyAtom (code: 0)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:181:16: warning: static property 'lastCollected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
179 | static var map: [UInt16:Any] = [:]
180 | static var lastUsed: Int = 0
181 | static var lastCollected: Int = 0
| |- warning: static property 'lastCollected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastCollected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastCollected' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
182 | static let empty = TinyAtom (code: 0)
183 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:182:16: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'TinyAtom' may have shared mutable state; this is an error in the Swift 6 language mode
175 | /// This is kept to 16 bits for now, so that we keep the CharData to less than 15 bytes
176 | /// it could in theory be changed to be 24 bits without much trouble
177 | public struct TinyAtom {
| `- note: consider making struct 'TinyAtom' conform to the 'Sendable' protocol
178 | var code: UInt16
179 | static var map: [UInt16:Any] = [:]
180 | static var lastUsed: Int = 0
181 | static var lastCollected: Int = 0
182 | static let empty = TinyAtom (code: 0)
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'TinyAtom' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
183 |
184 | private init(code: UInt16)
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:241:16: warning: static property 'charToIndexMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
239 |
240 | // Contains the character to index mapping
241 | static var charToIndexMap: [Character:Int32] = [:]
| |- warning: static property 'charToIndexMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'charToIndexMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'charToIndexMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
242 |
243 | // Contains the index to character mapping, could be a plain array
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:244:16: warning: static property 'indexToCharMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
242 |
243 | // Contains the index to character mapping, could be a plain array
244 | static var indexToCharMap: [Int32: Character] = [:]
| |- warning: static property 'indexToCharMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexToCharMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'indexToCharMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
245 | static var lastCharIndex: Int32 = (1 << 22)+1
246 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:245:16: warning: static property 'lastCharIndex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
243 | // Contains the index to character mapping, could be a plain array
244 | static var indexToCharMap: [Int32: Character] = [:]
245 | static var lastCharIndex: Int32 = (1 << 22)+1
| |- warning: static property 'lastCharIndex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastCharIndex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastCharIndex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
246 |
247 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:248:16: warning: static property 'defaultAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
246 |
247 |
248 | static let defaultAttr = Attribute(fg: .defaultColor, bg: .defaultColor, style: .none)
| |- warning: static property 'defaultAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultAttr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
249 | static let invertedAttr = Attribute(fg: .defaultInvertedColor, bg: .defaultInvertedColor, style: .none)
250 |
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:249:16: warning: static property 'invertedAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
56 | /// should be drawn as.
57 | ///
58 | public struct Attribute: Equatable, Hashable {
| `- note: consider making struct 'Attribute' conform to the 'Sendable' protocol
59 | /// The various ways in which the color was expressed
60 | public enum Color: Equatable, Hashable {
:
247 |
248 | static let defaultAttr = Attribute(fg: .defaultColor, bg: .defaultColor, style: .none)
249 | static let invertedAttr = Attribute(fg: .defaultInvertedColor, bg: .defaultInvertedColor, style: .none)
| |- warning: static property 'invertedAttr' is not concurrency-safe because non-'Sendable' type 'Attribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invertedAttr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
250 |
251 | // Contains a rune, or a pointer into a Grapheme Cluster
/host/spi-builder-workspace/Sources/SwiftTerm/CharData.swift:333:23: warning: static property 'Null' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 |
332 | /// The `Null` character can be used when filling up parts of the screeb
333 | public static var Null : CharData = CharData (attribute: defaultAttr)
| |- warning: static property 'Null' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Null' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'Null' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 |
335 | /// Updates the contents of this CharData with a new character.
/host/spi-builder-workspace/Sources/SwiftTerm/CharSets.swift:12:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | class CharSets {
12 | public static var all: [UInt8:[UInt8:String]] = initAll ()
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | // This is the "B" charset, null
/host/spi-builder-workspace/Sources/SwiftTerm/CharSets.swift:15:23: warning: static property 'defaultCharset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // This is the "B" charset, null
15 | public static var defaultCharset: [UInt8:String]? = nil
| |- warning: static property 'defaultCharset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCharset' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCharset' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static func initAll () -> [UInt8:[UInt8:String]]
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:23:16: warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public var blue: UInt16
22 |
23 | static var defaultForeground = Color (red: 35389, green: 35389, blue: 35389)
| |- warning: static property 'defaultForeground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultForeground' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultForeground' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static var defaultBackground = Color (red: 0, green: 0, blue: 0)
25 |
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:24:16: warning: static property 'defaultBackground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | static var defaultForeground = Color (red: 35389, green: 35389, blue: 35389)
24 | static var defaultBackground = Color (red: 0, green: 0, blue: 0)
| |- warning: static property 'defaultBackground' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultBackground' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultBackground' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | public static func == (lhs: Color, rhs: Color) -> Bool {
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:36:16: warning: static property 'paleColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
34 | }
35 |
36 | static let paleColors: [Color] = [
| |- warning: static property 'paleColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'paleColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | // dark colors
38 | Color (red8: 0x2e, green8: 0x34, blue8: 0x36),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:58:16: warning: static property 'vgaColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
56 | ]
57 |
58 | static let vgaColors: [Color] = [
| |- warning: static property 'vgaColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vgaColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | // dark colors
60 | Color (red8: 0, green8: 0, blue8: 0),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:78:16: warning: static property 'terminalAppColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
76 | ]
77 |
78 | static let terminalAppColors: [Color] = [
| |- warning: static property 'terminalAppColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'terminalAppColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 | Color (red8: 0, green8: 0, blue8: 0),
80 | Color (red8: 194, green8: 54, blue8: 33),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:97:16: warning: static property 'xtermColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
95 | ]
96 |
97 | static let xtermColors: [Color] = [
| |- warning: static property 'xtermColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xtermColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | Color (red8: 0, green8: 0, blue8: 0),
99 | Color (red8: 205, green8: 0, blue8: 0),
/host/spi-builder-workspace/Sources/SwiftTerm/Colors.swift:116:16: warning: static property 'defaultInstalledColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
13 | * in 16-bit RGB mode
14 | */
15 | public class Color: Hashable {
| `- note: class 'Color' does not conform to the 'Sendable' protocol
16 | /// Red component 0..65535
17 | public var red: UInt16
:
114 | ]
115 |
116 | static let defaultInstalledColors: [Color] = [
| |- warning: static property 'defaultInstalledColors' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstalledColors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | Color (red8: 0, green8: 0, blue8: 0),
118 | Color (red8: 153, green8: 0, blue8: 1),
/host/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:5044:16: warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5042 | }
5043 |
5044 | static var matchColorCache : [Int:Int] = [:]
| |- warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'matchColorCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'matchColorCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5045 | func matchColor (_ r1: Int, _ g1: Int, _ b1: Int) -> Int32
5046 | {
/host/spi-builder-workspace/Sources/SwiftTerm/TerminalOptions.swift:63:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Configuration options for the terminal at startup, these values are only read at startup
42 | public struct TerminalOptions {
| `- note: consider making struct 'TerminalOptions' conform to the 'Sendable' protocol
43 | /// Desired number of columns at startup (default 80)
44 | public var cols: Int
:
61 |
62 | /// Default options
63 | public static let `default` = TerminalOptions.init(cols: 80,
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | rows: 25,
65 | convertEol: false,
/host/spi-builder-workspace/Sources/SwiftTerm/Utilities.swift:39:24: warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
37 | static let s7: UInt8 = 0x44 // accept 4, size 4
38 |
39 | private static var first : [UInt8] = [
| |- warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'first' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'first' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | // 1 2 3 4 5 6 7 8 9 A B C D E F
41 | a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, // 0x00-0x0F
[45/93] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/Sources/SwiftTerm/Buffer.swift:1014:16: warning: static property 'n' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1012 | }
1013 |
1014 | static var n = 0
| |- warning: static property 'n' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'n' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'n' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1015 |
1016 | func dump ()
[46/93] Compiling ArgumentParser ParsableCommand.swift
/host/spi-builder-workspace/Sources/SwiftTerm/Buffer.swift:1014:16: warning: static property 'n' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1012 | }
1013 |
1014 | static var n = 0
| |- warning: static property 'n' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'n' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'n' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1015 |
1016 | func dump ()
[47/93] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/Sources/SwiftTerm/Buffer.swift:1014:16: warning: static property 'n' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1012 | }
1013 |
1014 | static var n = 0
| |- warning: static property 'n' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'n' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'n' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1015 |
1016 | func dump ()
[48/93] Compiling SwiftTerm TerminalOptions.swift
/host/spi-builder-workspace/Sources/SwiftTerm/TerminalOptions.swift:63:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Configuration options for the terminal at startup, these values are only read at startup
42 | public struct TerminalOptions {
| `- note: consider making struct 'TerminalOptions' conform to the 'Sendable' protocol
43 | /// Desired number of columns at startup (default 80)
44 | public var cols: Int
:
61 |
62 | /// Default options
63 | public static let `default` = TerminalOptions.init(cols: 80,
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | rows: 25,
65 | convertEol: false,
/host/spi-builder-workspace/Sources/SwiftTerm/Utilities.swift:39:24: warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
37 | static let s7: UInt8 = 0x44 // accept 4, size 4
38 |
39 | private static var first : [UInt8] = [
| |- warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'first' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'first' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | // 1 2 3 4 5 6 7 8 9 A B C D E F
41 | a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, // 0x00-0x0F
[49/93] Compiling SwiftTerm Utilities.swift
/host/spi-builder-workspace/Sources/SwiftTerm/TerminalOptions.swift:63:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Configuration options for the terminal at startup, these values are only read at startup
42 | public struct TerminalOptions {
| `- note: consider making struct 'TerminalOptions' conform to the 'Sendable' protocol
43 | /// Desired number of columns at startup (default 80)
44 | public var cols: Int
:
61 |
62 | /// Default options
63 | public static let `default` = TerminalOptions.init(cols: 80,
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TerminalOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | rows: 25,
65 | convertEol: false,
/host/spi-builder-workspace/Sources/SwiftTerm/Utilities.swift:39:24: warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
37 | static let s7: UInt8 = 0x44 // accept 4, size 4
38 |
39 | private static var first : [UInt8] = [
| |- warning: static property 'first' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'first' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'first' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | // 1 2 3 4 5 6 7 8 9 A B C D E F
41 | a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, // 0x00-0x0F
[50/93] Compiling ArgumentParser InputKey.swift
[51/93] Compiling ArgumentParser InputOrigin.swift
[52/93] Compiling ArgumentParser Name.swift
[53/93] Compiling ArgumentParser Parsed.swift
[54/93] Compiling ArgumentParser ParsedValues.swift
[55/93] Compiling ArgumentParser ParserError.swift
[56/93] Compiling ArgumentParser SplitArguments.swift
[57/93] Compiling ArgumentParser DumpHelpGenerator.swift
[58/93] Compiling ArgumentParser HelpCommand.swift
[59/93] Compiling ArgumentParser HelpGenerator.swift
[60/93] Compiling ArgumentParser MessageInfo.swift
[61/93] Compiling ArgumentParser UsageGenerator.swift
[71/93] Compiling ArgumentParser Errors.swift
[72/93] Compiling ArgumentParser Flag.swift
[73/93] Compiling ArgumentParser NameSpecification.swift
[74/93] Compiling ArgumentParser Option.swift
[81/94] Wrapping AST for ArgumentParser for debugging
/host/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:5044:16: warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5042 | }
5043 |
5044 | static var matchColorCache : [Int:Int] = [:]
| |- warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'matchColorCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'matchColorCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5045 | func matchColor (_ r1: Int, _ g1: Int, _ b1: Int) -> Int32
5046 | {
/host/spi-builder-workspace/Sources/SwiftTerm/Terminal.swift:5044:16: warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5042 | }
5043 |
5044 | static var matchColorCache : [Int:Int] = [:]
| |- warning: static property 'matchColorCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'matchColorCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'matchColorCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5045 | func matchColor (_ r1: Int, _ g1: Int, _ b1: Int) -> Int32
5046 | {
[88/95] Wrapping AST for SwiftTerm for debugging
[90/102] Compiling SwiftTermFuzz main.swift
[91/102] Emitting module SwiftTermFuzz
[93/103] Compiling Termcast main.swift
[93/103] Wrapping AST for SwiftTermFuzz for debugging
[94/103] Write Objects.LinkFileList
[95/103] Linking SwiftTermFuzz
[97/103] Compiling Termcast TermcastPlayer.swift
/host/spi-builder-workspace/Sources/Termcast/TermcastPlayer.swift:39:24: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
37 | case .output:
38 | print(event.eventData, terminator: "")
39 | fflush(stdout)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
40 | case .resize:
41 | handleResize(event.eventData)
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams. */
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
| `- note: var declared here
145 | extern FILE *stderr; /* Standard error output stream. */
146 | /* C89/C99 say they're macros. Make them happy. */
/host/spi-builder-workspace/Sources/Termcast/TermcastPlayer.swift:58:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
56 | // This may not work in all terminals, but it's worth trying
57 | print("\u{001B}[8;\(height);\(width)t", terminator: "")
58 | fflush(stdout)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
59 | }
60 |
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams. */
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
| `- note: var declared here
145 | extern FILE *stderr; /* Standard error output stream. */
146 | /* C89/C99 say they're macros. Make them happy. */
[98/103] Compiling Termcast AsciicastFormat.swift
[99/103] Emitting module Termcast
[100/103] Compiling Termcast TermcastRecorder.swift
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:13:18: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
11 | fileprivate func debugMessage(_ x: String) {
12 | if debugMessages {
13 | fputs(x, stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:35:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
33 |
34 | // Create the file and get handle
35 | FileManager.default.createFile(atPath: filePath, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
36 | fileHandle = try FileHandle(forWritingTo: url)
37 | debugMessage("[DEBUG] File handle created\n")
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:265:17: warning: result of call to 'fcntl' is unused
263 | // Use blocking read with a timeout by setting stdin to non-blocking temporarily
264 | let originalFlags = fcntl(STDIN_FILENO, F_GETFL)
265 | fcntl(STDIN_FILENO, F_SETFL, originalFlags | O_NONBLOCK)
| `- warning: result of call to 'fcntl' is unused
266 |
267 | var buffer = [UInt8](repeating: 0, count: 1)
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:271:17: warning: result of call to 'fcntl' is unused
269 |
270 | // Restore blocking mode
271 | fcntl(STDIN_FILENO, F_SETFL, originalFlags)
| `- warning: result of call to 'fcntl' is unused
272 |
273 | if bytesRead > 0 {
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:280:21: warning: capture of 'self' with non-sendable type 'TermcastRecorder?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | class TermcastRecorder {
| `- note: class 'TermcastRecorder' does not conform to the 'Sendable' protocol
18 | private var fileHandle: FileHandle?
19 | private var startTime: TimeInterval = 0
:
278 |
279 | // Send to process
280 | self?.process?.send(data: data[...])
| `- warning: capture of 'self' with non-sendable type 'TermcastRecorder?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
281 | debugMessage("[DEBUG] Sent \(data.count) bytes to process\n")
282 |
/host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift:359:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
357 | // Also write to stdout for live display
358 | print(outputString, terminator: "")
359 | fflush(stdout)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
360 | }
361 |
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams. */
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
| `- note: var declared here
145 | extern FILE *stderr; /* Standard error output stream. */
146 | /* C89/C99 say they're macros. Make them happy. */
[101/104] Wrapping AST for Termcast for debugging
[102/104] Write Objects.LinkFileList
[103/104] Linking termcast
Build complete! (42.83s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "SwiftTerm",
"name" : "SwiftTerm",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "SwiftTermFuzz",
"targets" : [
"SwiftTermFuzz"
],
"type" : {
"executable" : null
}
},
{
"name" : "termcast",
"targets" : [
"Termcast"
],
"type" : {
"executable" : null
}
},
{
"name" : "SwiftTerm",
"targets" : [
"SwiftTerm"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "Termcast",
"module_type" : "SwiftTarget",
"name" : "Termcast",
"path" : "Sources/Termcast",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"termcast"
],
"sources" : [
"AsciicastFormat.swift",
"TermcastPlayer.swift",
"TermcastRecorder.swift",
"main.swift"
],
"target_dependencies" : [
"SwiftTerm"
],
"type" : "executable"
},
{
"c99name" : "SwiftTermTests",
"module_type" : "SwiftTarget",
"name" : "SwiftTermTests",
"path" : "Tests/SwiftTermTests",
"sources" : [
"ColorTests.swift",
"FuzzerTests.swift",
"ImageTests.swift",
"MeanTests.swift",
"Memory.swift",
"OscTests.swift",
"PerformanceTest.swift",
"ReflowTests.swift",
"SelectionTests.swift",
"SwiftTermTests.swift",
"UnicodeTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"SwiftTerm"
],
"type" : "test"
},
{
"c99name" : "SwiftTermFuzz",
"module_type" : "SwiftTarget",
"name" : "SwiftTermFuzz",
"path" : "Sources/SwiftTermFuzz",
"product_memberships" : [
"SwiftTermFuzz"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"SwiftTerm"
],
"type" : "executable"
},
{
"c99name" : "SwiftTerm",
"module_type" : "SwiftTarget",
"name" : "SwiftTerm",
"path" : "Sources/SwiftTerm",
"product_memberships" : [
"SwiftTermFuzz",
"termcast",
"SwiftTerm"
],
"sources" : [
"Buffer.swift",
"BufferLine.swift",
"BufferSet.swift",
"CharData.swift",
"CharSets.swift",
"CircularList.swift",
"Colors.swift",
"EscapeSequenceParser.swift",
"EscapeSequences.swift",
"ExternsionsTerminal.swift",
"File.swift",
"HeadlessTerminal.swift",
"Line.swift",
"LocalProcess.swift",
"Position.swift",
"Pty.swift",
"SearchService.swift",
"SelectionService.swift",
"SixelDcsHandler.swift",
"Terminal.swift",
"TerminalOptions.swift",
"Utilities.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.