Build Information
Failed to build Sparse, reference 0.4.1 (7c360c
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 23:38:54 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnpatrickmorgan/Sparse.git
Reference: 0.4.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/johnpatrickmorgan/Sparse
* tag 0.4.1 -> FETCH_HEAD
HEAD is now at 7c360cc Adds library product to Package.swift
Cloned https://github.com/johnpatrickmorgan/Sparse.git
Revision (git rev-parse @):
7c360cc062cf14ee993c6de5b28e04f0892818ac
SUCCESS checkout https://github.com/johnpatrickmorgan/Sparse.git at 0.4.1
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/mattgallagher/CwlCatchException.git
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
[1/1257] Fetching cwlpreconditiontesting
[2/1712] Fetching cwlpreconditiontesting, cwlcatchexception
[1713/16435] Fetching cwlpreconditiontesting, cwlcatchexception, quick
[16436/35653] Fetching cwlpreconditiontesting, cwlcatchexception, quick, nimble
Fetched https://github.com/Quick/Nimble.git from cache (2.47s)
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (2.47s)
Fetched https://github.com/Quick/Quick.git from cache (2.47s)
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (2.47s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.0.4 (0.71s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.0 (0.68s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 1.2.0 (2.67s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 1.2.0 (2.78s)
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.0.4
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 1.2.0
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 1.2.0
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.2.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "sparse",
"name": "Sparse",
"url": "https://github.com/johnpatrickmorgan/Sparse.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Sparse",
"dependencies": [
{
"identity": "quick",
"name": "Quick",
"url": "https://github.com/Quick/Quick.git",
"version": "2.2.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Quick",
"dependencies": [
{
"identity": "nimble",
"name": "Nimble",
"url": "https://github.com/Quick/Nimble.git",
"version": "8.1.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nimble",
"dependencies": [
]
}
]
},
{
"identity": "nimble",
"name": "Nimble",
"url": "https://github.com/Quick/Nimble.git",
"version": "8.1.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nimble",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/johnpatrickmorgan/Sparse.git
[1/373] Fetching sparse
Fetched https://github.com/johnpatrickmorgan/Sparse.git from cache (0.73s)
Fetching https://github.com/Quick/Nimble.git from cache
Fetching https://github.com/Quick/Quick.git from cache
Fetched https://github.com/Quick/Quick.git from cache (0.62s)
Fetched https://github.com/Quick/Nimble.git from cache (0.62s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.1 (0.66s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.65s)
Creating working copy for https://github.com/johnpatrickmorgan/Sparse.git
Working copy of https://github.com/johnpatrickmorgan/Sparse.git resolved at 0.4.1 (7c360cc)
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.2
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.2.1
warning: '.resolve-product-dependencies': dependency 'sparse' is not used by any target
Found 2 product dependencies
- Quick
- Nimble
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/johnpatrickmorgan/Sparse.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/11] Write sources
[3/11] Write swift-version--7754E27361AE5C74.txt
[4/30] Compiling CwlMachBadInstructionHandler mach_excServer.c
[5/30] Compiling CwlCatchExceptionSupport CwlCatchException.m
[6/32] Compiling CwlMachBadInstructionHandler CwlMachBadInstructionHandler.m
[8/32] Compiling Sparse Stream.swift
[9/32] Compiling Sparse StringParsers.swift
[10/34] Compiling Sparse ParsingContext.swift
[11/34] Compiling Sparse PositionedInput.swift
[12/34] Compiling Sparse Parser_name.swift
[13/34] Compiling Sparse Parser_run.swift
[14/34] Compiling Sparse Parser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/ParserError.swift:15:9: warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
13 | public let input: String
14 | public var index: String.Index
15 | var errors: [ContextualizedError]
| `- warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
16 |
17 | mutating func incorporate(error: ContextualizedError, at index: String.Index) {
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/ContextualizedError.swift:11:15: note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
9 |
10 | /// An error decorated with a lazily evaluated parsing context.
11 | public struct ContextualizedError: CustomStringConvertible {
| `- note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
12 |
13 | let context: () -> ParsingContext
[15/34] Compiling Sparse ParserError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/ParserError.swift:15:9: warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
13 | public let input: String
14 | public var index: String.Index
15 | var errors: [ContextualizedError]
| `- warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
16 |
17 | mutating func incorporate(error: ContextualizedError, at index: String.Index) {
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/ContextualizedError.swift:11:15: note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
9 |
10 | /// An error decorated with a lazily evaluated parsing context.
11 | public struct ContextualizedError: CustomStringConvertible {
| `- note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
12 |
13 | let context: () -> ParsingContext
[16/34] Compiling Sparse CSVParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:13:16: warning: static property 'quote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public enum CSVParser {
12 |
13 | static let quote = character("\"")
| |- warning: static property 'quote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | static let illegalCellCharacters = CharacterSet.newlines.union(CharacterSet(charactersIn: ","))
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:16:16: warning: static property 'unquotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | static let illegalCellCharacters = CharacterSet.newlines.union(CharacterSet(charactersIn: ","))
16 | static let unquotedCellCharacter = characterNot(in: illegalCellCharacters)
| |- warning: static property 'unquotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unquotedCellCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | .named("cell character")
18 | static let unquotedCell = many(unquotedCellCharacter).asString()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:18:16: warning: static property 'unquotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let unquotedCellCharacter = characterNot(in: illegalCellCharacters)
17 | .named("cell character")
18 | static let unquotedCell = many(unquotedCellCharacter).asString()
| |- warning: static property 'unquotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unquotedCell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | .map { $0.trimmingCharacters(in: .whitespaces) }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:21:16: warning: static property 'escapedQuote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
19 | .map { $0.trimmingCharacters(in: .whitespaces) }
20 |
21 | static let escapedQuote = quote.skipThen(quote)
| |- warning: static property 'escapedQuote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedQuote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | .named("escaped quote")
23 | static let quotedCellCharacter = characterNot("\"")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:23:16: warning: static property 'quotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let escapedQuote = quote.skipThen(quote)
22 | .named("escaped quote")
23 | static let quotedCellCharacter = characterNot("\"")
| |- warning: static property 'quotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedCellCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | .named("quoted cell character")
25 | .otherwise(escapedQuote)
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:27:16: warning: static property 'quotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
25 | .otherwise(escapedQuote)
26 |
27 | static let quotedCell = many(quotedCellCharacter, boundedBy: quote).asString()
| |- warning: static property 'quotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedCell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | static let cell = quotedCell.otherwise(unquotedCell)
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:29:16: warning: static property 'cell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
27 | static let quotedCell = many(quotedCellCharacter, boundedBy: quote).asString()
28 |
29 | static let cell = quotedCell.otherwise(unquotedCell)
| |- warning: static property 'cell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:31:16: warning: static property 'cellSeparator' is not concurrency-safe because non-'Sendable' type 'Parser<(([Character], Character), [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
29 | static let cell = quotedCell.otherwise(unquotedCell)
30 |
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
| |- warning: static property 'cellSeparator' is not concurrency-safe because non-'Sendable' type 'Parser<(([Character], Character), [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cellSeparator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | .named("cell separator")
33 | static let line = many(cell, separator: cellSeparator)
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:33:16: warning: static property 'line' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
32 | .named("cell separator")
33 | static let line = many(cell, separator: cellSeparator)
| |- warning: static property 'line' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'line' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | static let ending = optional(newline()).then(end())
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:35:16: warning: static property 'ending' is not concurrency-safe because non-'Sendable' type 'Parser<(Character?, Void)>' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let line = many(cell, separator: cellSeparator)
34 |
35 | static let ending = optional(newline()).then(end())
| |- warning: static property 'ending' is not concurrency-safe because non-'Sendable' type 'Parser<(Character?, Void)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ending' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let csv = many(line, separator: newline()).thenSkip(ending)
37 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:36:16: warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'Parser<[[String]]>' may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | static let ending = optional(newline()).then(end())
36 | static let csv = many(line, separator: newline()).thenSkip(ending)
| |- warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'Parser<[[String]]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'csv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public static func parseCSV(input: String) throws -> [[String]] {
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
[17/34] Compiling Sparse CharacterParsers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:13:16: warning: static property 'quote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public enum CSVParser {
12 |
13 | static let quote = character("\"")
| |- warning: static property 'quote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | static let illegalCellCharacters = CharacterSet.newlines.union(CharacterSet(charactersIn: ","))
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:16:16: warning: static property 'unquotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | static let illegalCellCharacters = CharacterSet.newlines.union(CharacterSet(charactersIn: ","))
16 | static let unquotedCellCharacter = characterNot(in: illegalCellCharacters)
| |- warning: static property 'unquotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unquotedCellCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | .named("cell character")
18 | static let unquotedCell = many(unquotedCellCharacter).asString()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:18:16: warning: static property 'unquotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let unquotedCellCharacter = characterNot(in: illegalCellCharacters)
17 | .named("cell character")
18 | static let unquotedCell = many(unquotedCellCharacter).asString()
| |- warning: static property 'unquotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unquotedCell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | .map { $0.trimmingCharacters(in: .whitespaces) }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:21:16: warning: static property 'escapedQuote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
19 | .map { $0.trimmingCharacters(in: .whitespaces) }
20 |
21 | static let escapedQuote = quote.skipThen(quote)
| |- warning: static property 'escapedQuote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedQuote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | .named("escaped quote")
23 | static let quotedCellCharacter = characterNot("\"")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:23:16: warning: static property 'quotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let escapedQuote = quote.skipThen(quote)
22 | .named("escaped quote")
23 | static let quotedCellCharacter = characterNot("\"")
| |- warning: static property 'quotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedCellCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | .named("quoted cell character")
25 | .otherwise(escapedQuote)
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:27:16: warning: static property 'quotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
25 | .otherwise(escapedQuote)
26 |
27 | static let quotedCell = many(quotedCellCharacter, boundedBy: quote).asString()
| |- warning: static property 'quotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedCell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | static let cell = quotedCell.otherwise(unquotedCell)
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:29:16: warning: static property 'cell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
27 | static let quotedCell = many(quotedCellCharacter, boundedBy: quote).asString()
28 |
29 | static let cell = quotedCell.otherwise(unquotedCell)
| |- warning: static property 'cell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:31:16: warning: static property 'cellSeparator' is not concurrency-safe because non-'Sendable' type 'Parser<(([Character], Character), [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
29 | static let cell = quotedCell.otherwise(unquotedCell)
30 |
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
| |- warning: static property 'cellSeparator' is not concurrency-safe because non-'Sendable' type 'Parser<(([Character], Character), [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cellSeparator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | .named("cell separator")
33 | static let line = many(cell, separator: cellSeparator)
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:33:16: warning: static property 'line' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
32 | .named("cell separator")
33 | static let line = many(cell, separator: cellSeparator)
| |- warning: static property 'line' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'line' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | static let ending = optional(newline()).then(end())
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:35:16: warning: static property 'ending' is not concurrency-safe because non-'Sendable' type 'Parser<(Character?, Void)>' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let line = many(cell, separator: cellSeparator)
34 |
35 | static let ending = optional(newline()).then(end())
| |- warning: static property 'ending' is not concurrency-safe because non-'Sendable' type 'Parser<(Character?, Void)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ending' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let csv = many(line, separator: newline()).thenSkip(ending)
37 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:36:16: warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'Parser<[[String]]>' may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | static let ending = optional(newline()).then(end())
36 | static let csv = many(line, separator: newline()).thenSkip(ending)
| |- warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'Parser<[[String]]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'csv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public static func parseCSV(input: String) throws -> [[String]] {
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
[18/34] Compiling Sparse ContextDescribableError.swift
[19/34] Compiling Sparse ContextualizedError.swift
[20/34] Compiling Sparse IgnoreError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/IgnoreError.swift:12:7: warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | /// Replaces an error that has already been captured in the stream, to avoid
11 | /// capturing the same error at every level of the parser tree.
12 | class IgnoreError: Error { }
| `- warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 |
14 | let ignoreError = IgnoreError()
[21/34] Compiling Sparse InfiniteLoopError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/IgnoreError.swift:12:7: warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | /// Replaces an error that has already been captured in the stream, to avoid
11 | /// capturing the same error at every level of the parser tree.
12 | class IgnoreError: Error { }
| `- warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 |
14 | let ignoreError = IgnoreError()
[22/34] Emitting module Sparse
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:13:16: warning: static property 'quote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public enum CSVParser {
12 |
13 | static let quote = character("\"")
| |- warning: static property 'quote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | static let illegalCellCharacters = CharacterSet.newlines.union(CharacterSet(charactersIn: ","))
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:16:16: warning: static property 'unquotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | static let illegalCellCharacters = CharacterSet.newlines.union(CharacterSet(charactersIn: ","))
16 | static let unquotedCellCharacter = characterNot(in: illegalCellCharacters)
| |- warning: static property 'unquotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unquotedCellCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | .named("cell character")
18 | static let unquotedCell = many(unquotedCellCharacter).asString()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:18:16: warning: static property 'unquotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let unquotedCellCharacter = characterNot(in: illegalCellCharacters)
17 | .named("cell character")
18 | static let unquotedCell = many(unquotedCellCharacter).asString()
| |- warning: static property 'unquotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unquotedCell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | .map { $0.trimmingCharacters(in: .whitespaces) }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:21:16: warning: static property 'escapedQuote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
19 | .map { $0.trimmingCharacters(in: .whitespaces) }
20 |
21 | static let escapedQuote = quote.skipThen(quote)
| |- warning: static property 'escapedQuote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedQuote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | .named("escaped quote")
23 | static let quotedCellCharacter = characterNot("\"")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:23:16: warning: static property 'quotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let escapedQuote = quote.skipThen(quote)
22 | .named("escaped quote")
23 | static let quotedCellCharacter = characterNot("\"")
| |- warning: static property 'quotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedCellCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | .named("quoted cell character")
25 | .otherwise(escapedQuote)
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:27:16: warning: static property 'quotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
25 | .otherwise(escapedQuote)
26 |
27 | static let quotedCell = many(quotedCellCharacter, boundedBy: quote).asString()
| |- warning: static property 'quotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedCell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | static let cell = quotedCell.otherwise(unquotedCell)
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:29:16: warning: static property 'cell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
27 | static let quotedCell = many(quotedCellCharacter, boundedBy: quote).asString()
28 |
29 | static let cell = quotedCell.otherwise(unquotedCell)
| |- warning: static property 'cell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:31:16: warning: static property 'cellSeparator' is not concurrency-safe because non-'Sendable' type 'Parser<(([Character], Character), [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
29 | static let cell = quotedCell.otherwise(unquotedCell)
30 |
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
| |- warning: static property 'cellSeparator' is not concurrency-safe because non-'Sendable' type 'Parser<(([Character], Character), [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cellSeparator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | .named("cell separator")
33 | static let line = many(cell, separator: cellSeparator)
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:33:16: warning: static property 'line' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
32 | .named("cell separator")
33 | static let line = many(cell, separator: cellSeparator)
| |- warning: static property 'line' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'line' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | static let ending = optional(newline()).then(end())
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:35:16: warning: static property 'ending' is not concurrency-safe because non-'Sendable' type 'Parser<(Character?, Void)>' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let line = many(cell, separator: cellSeparator)
34 |
35 | static let ending = optional(newline()).then(end())
| |- warning: static property 'ending' is not concurrency-safe because non-'Sendable' type 'Parser<(Character?, Void)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ending' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let csv = many(line, separator: newline()).thenSkip(ending)
37 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/CSVParser.swift:36:16: warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'Parser<[[String]]>' may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | static let ending = optional(newline()).then(end())
36 | static let csv = many(line, separator: newline()).thenSkip(ending)
| |- warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'Parser<[[String]]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'csv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public static func parseCSV(input: String) throws -> [[String]] {
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:14:16: warning: static property 'wss' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | // Primitives
14 | static let wss = whitespaces()
| |- warning: static property 'wss' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:15:16: warning: static property 'wsnl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
13 | // Primitives
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
| |- warning: static property 'wsnl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:16:16: warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
| |- warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnls' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:17:16: warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
| |- warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss1nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | static let nl = newline()
19 | static let qm = character("\"")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:18:16: warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
| |- warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | static let qm = character("\"")
20 | static let sc = character(";")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:19:16: warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
19 | static let qm = character("\"")
| |- warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'qm' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static let sc = character(";")
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:20:16: warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static let nl = newline()
19 | static let qm = character("\"")
20 | static let sc = character(";")
| |- warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // Escapes
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:23:16: warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
| |- warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapableCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
25 | character("\"").skipThen(pure("\"")),
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:24:16: warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
| |- warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedSpecial' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | character("\"").skipThen(pure("\"")),
26 | character("'").skipThen(pure("'")),
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:35:16: warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
| |- warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let ilcStop = nl
37 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:36:16: warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
36 | static let ilcStop = nl
| |- warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:38:16: warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
36 | static let ilcStop = nl
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
| |- warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static let mlcStop = string("*/")
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:39:16: warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
39 | static let mlcStop = string("*/")
| |- warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:41:16: warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
39 | static let mlcStop = string("*/")
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
| |- warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:42:16: warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
| |- warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:44:16: warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
| |- warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:45:16: warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
| |- warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comments' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:46:16: warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
| |- warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inlineComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:48:16: warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
| |- warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'orphanedComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | // Key-value pairs
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:51:16: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
| |- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:52:16: warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
| |- warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'key' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:53:16: warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
| |- warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'translation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:54:16: warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
| |- warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'separator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
56 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:55:16: warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
| |- warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kvp' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | // Entries
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:58:16: warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
| |- warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryTuple' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:59:16: warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
| |- warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryObject' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:60:16: warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
| |- warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entries' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | // Strings Parser
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:63:16: warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | // Strings Parser
63 | static let stringsParser = wsnls.skipThen(entries).thenSkip(end())
| |- warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsParser' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | public static func parseStrings(input: String) throws -> [DotStringsEntry] {
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/IgnoreError.swift:12:7: warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | /// Replaces an error that has already been captured in the stream, to avoid
11 | /// capturing the same error at every level of the parser tree.
12 | class IgnoreError: Error { }
| `- warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 |
14 | let ignoreError = IgnoreError()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/ParserError.swift:15:9: warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
13 | public let input: String
14 | public var index: String.Index
15 | var errors: [ContextualizedError]
| `- warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
16 |
17 | mutating func incorporate(error: ContextualizedError, at index: String.Index) {
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/ContextualizedError.swift:11:15: note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
9 |
10 | /// An error decorated with a lazily evaluated parsing context.
11 | public struct ContextualizedError: CustomStringConvertible {
| `- note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
12 |
13 | let context: () -> ParsingContext
[23/34] Compiling Sparse DotStringsEntry.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:14:16: warning: static property 'wss' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | // Primitives
14 | static let wss = whitespaces()
| |- warning: static property 'wss' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:15:16: warning: static property 'wsnl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
13 | // Primitives
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
| |- warning: static property 'wsnl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:16:16: warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
| |- warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnls' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:17:16: warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
| |- warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss1nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | static let nl = newline()
19 | static let qm = character("\"")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:18:16: warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
| |- warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | static let qm = character("\"")
20 | static let sc = character(";")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:19:16: warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
19 | static let qm = character("\"")
| |- warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'qm' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static let sc = character(";")
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:20:16: warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static let nl = newline()
19 | static let qm = character("\"")
20 | static let sc = character(";")
| |- warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // Escapes
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:23:16: warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
| |- warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapableCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
25 | character("\"").skipThen(pure("\"")),
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:24:16: warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
| |- warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedSpecial' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | character("\"").skipThen(pure("\"")),
26 | character("'").skipThen(pure("'")),
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:35:16: warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
| |- warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let ilcStop = nl
37 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:36:16: warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
36 | static let ilcStop = nl
| |- warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:38:16: warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
36 | static let ilcStop = nl
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
| |- warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static let mlcStop = string("*/")
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:39:16: warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
39 | static let mlcStop = string("*/")
| |- warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:41:16: warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
39 | static let mlcStop = string("*/")
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
| |- warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:42:16: warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
| |- warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:44:16: warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
| |- warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:45:16: warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
| |- warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comments' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:46:16: warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
| |- warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inlineComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:48:16: warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
| |- warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'orphanedComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | // Key-value pairs
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:51:16: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
| |- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:52:16: warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
| |- warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'key' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:53:16: warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
| |- warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'translation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:54:16: warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
| |- warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'separator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
56 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:55:16: warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
| |- warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kvp' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | // Entries
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:58:16: warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
| |- warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryTuple' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:59:16: warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
| |- warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryObject' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:60:16: warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
| |- warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entries' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | // Strings Parser
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:63:16: warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | // Strings Parser
63 | static let stringsParser = wsnls.skipThen(entries).thenSkip(end())
| |- warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsParser' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | public static func parseStrings(input: String) throws -> [DotStringsEntry] {
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
[24/34] Compiling Sparse DotStringsParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:14:16: warning: static property 'wss' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | // Primitives
14 | static let wss = whitespaces()
| |- warning: static property 'wss' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:15:16: warning: static property 'wsnl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
13 | // Primitives
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
| |- warning: static property 'wsnl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:16:16: warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
| |- warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnls' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:17:16: warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
| |- warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss1nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | static let nl = newline()
19 | static let qm = character("\"")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:18:16: warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
| |- warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | static let qm = character("\"")
20 | static let sc = character(";")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:19:16: warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
19 | static let qm = character("\"")
| |- warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'qm' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static let sc = character(";")
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:20:16: warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static let nl = newline()
19 | static let qm = character("\"")
20 | static let sc = character(";")
| |- warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // Escapes
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:23:16: warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
| |- warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapableCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
25 | character("\"").skipThen(pure("\"")),
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:24:16: warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
| |- warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedSpecial' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | character("\"").skipThen(pure("\"")),
26 | character("'").skipThen(pure("'")),
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:35:16: warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
| |- warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let ilcStop = nl
37 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:36:16: warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
36 | static let ilcStop = nl
| |- warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:38:16: warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
36 | static let ilcStop = nl
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
| |- warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static let mlcStop = string("*/")
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:39:16: warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
39 | static let mlcStop = string("*/")
| |- warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:41:16: warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
39 | static let mlcStop = string("*/")
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
| |- warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:42:16: warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
| |- warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:44:16: warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
| |- warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:45:16: warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
| |- warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comments' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:46:16: warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
| |- warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inlineComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:48:16: warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
| |- warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'orphanedComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | // Key-value pairs
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:51:16: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
| |- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:52:16: warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
| |- warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'key' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:53:16: warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
| |- warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'translation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:54:16: warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
| |- warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'separator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
56 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:55:16: warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
| |- warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kvp' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | // Entries
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:58:16: warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
| |- warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryTuple' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:59:16: warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
| |- warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryObject' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:60:16: warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
| |- warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entries' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | // Strings Parser
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:63:16: warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | // Strings Parser
63 | static let stringsParser = wsnls.skipThen(entries).thenSkip(end())
| |- warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsParser' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | public static func parseStrings(input: String) throws -> [DotStringsEntry] {
/Users/admin/builder/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
[25/34] Compiling Sparse Parser_combinators.swift
[26/34] Compiling Sparse Parser_creators.swift
[27/34] Compiling CwlCatchException CwlCatchException.swift
[28/34] Emitting module CwlCatchException
[28/34] Write Objects.LinkFileList
[30/34] Compiling Sparse Transforms.swift
[31/34] Compiling Sparse UnexpectedInputError.swift
[31/34] Linking libCwlCatchException.dylib
[33/38] Compiling CwlPreconditionTesting CwlDarwinDefinitions.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift:44:59: error: cannot find type 'x86_thread_state64_t' in scope
42 | // #define x86_THREAD_STATE64_COUNT ((mach_msg_type_number_t) \
43 | // ( sizeof (x86_thread_state64_t) / sizeof (int) ))
44 | public let x86_THREAD_STATE64_COUNT = UInt32(MemoryLayout<x86_thread_state64_t>.size / MemoryLayout<Int32>.size)
| `- error: cannot find type 'x86_thread_state64_t' in scope
45 |
46 | public let EXC_TYPES_COUNT = 14
error: emit-module command failed with exit code 1 (use -v to see invocation)
[34/38] Emitting module CwlPreconditionTesting
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift:44:59: error: cannot find type 'x86_thread_state64_t' in scope
42 | // #define x86_THREAD_STATE64_COUNT ((mach_msg_type_number_t) \
43 | // ( sizeof (x86_thread_state64_t) / sizeof (int) ))
44 | public let x86_THREAD_STATE64_COUNT = UInt32(MemoryLayout<x86_thread_state64_t>.size / MemoryLayout<Int32>.size)
| `- error: cannot find type 'x86_thread_state64_t' in scope
45 |
46 | public let EXC_TYPES_COUNT = 14
[35/38] Compiling CwlPreconditionTesting CwlCatchBadInstruction.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift:185:166: error: cannot find 'x86_THREAD_STATE64' in scope
183 | try kernCheck { context.withUnsafeMutablePointers { masksPtr, countPtr, portsPtr, behaviorsPtr, flavorsPtr in
184 | // 3. Apply the mach port as the handler for this thread
185 | thread_swap_exception_ports(mach_thread_self(), EXC_MASK_BAD_INSTRUCTION, currentExceptionPtr, Int32(bitPattern: UInt32(EXCEPTION_STATE) | MACH_EXCEPTION_CODES), x86_THREAD_STATE64, masksPtr, countPtr, portsPtr, behaviorsPtr, flavorsPtr)
| `- error: cannot find 'x86_THREAD_STATE64' in scope
186 | } }
187 |
[36/38] Compiling CwlPreconditionTesting CwlBadInstructionException.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift:44:59: error: cannot find type 'x86_thread_state64_t' in scope
42 | // #define x86_THREAD_STATE64_COUNT ((mach_msg_type_number_t) \
43 | // ( sizeof (x86_thread_state64_t) / sizeof (int) ))
44 | public let x86_THREAD_STATE64_COUNT = UInt32(MemoryLayout<x86_thread_state64_t>.size / MemoryLayout<Int32>.size)
| `- error: cannot find type 'x86_thread_state64_t' in scope
45 |
46 | public let EXC_TYPES_COUNT = 14
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift:63:47: error: cannot find 'x86_thread_state64_t' in scope
61 |
62 | // Read the old thread state
63 | var state = old_state.withMemoryRebound(to: x86_thread_state64_t.self, capacity: 1) { return $0.pointee }
| `- error: cannot find 'x86_thread_state64_t' in scope
64 |
65 | // 1. Decrement the stack pointer
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift:63:25: error: generic parameter 'T' could not be inferred
61 |
62 | // Read the old thread state
63 | var state = old_state.withMemoryRebound(to: x86_thread_state64_t.self, capacity: 1) { return $0.pointee }
| `- error: generic parameter 'T' could not be inferred
64 |
65 | // 1. Decrement the stack pointer
Swift.UnsafePointer:2:17: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | extension UnsafePointer where Pointee : ~Copyable {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable
| `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift:82:35: error: cannot find 'x86_thread_state64_t' in scope
80 |
81 | // Write the new thread state
82 | new_state.withMemoryRebound(to: x86_thread_state64_t.self, capacity: 1) { $0.pointee = state }
| `- error: cannot find 'x86_thread_state64_t' in scope
83 | new_stateCnt.pointee = x86_THREAD_STATE64_COUNT
84 |
BUILD FAILURE 6.0 macosSpm