Build Information
Failed to build SwiftProtoParser, reference master (6e26c7
), with Swift 6.1 for Wasm on 24 Jun 2025 14:27:43 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/truewebber/swift-protoparser.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/truewebber/swift-protoparser
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 6e26c71 fix README
Cloned https://github.com/truewebber/swift-protoparser.git
Revision (git rev-parse @):
6e26c716453285130fbea1913e25de443a958f0e
SUCCESS checkout https://github.com/truewebber/swift-protoparser.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/truewebber/swift-protoparser.git
https://github.com/truewebber/swift-protoparser.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-protobuf",
"requirement" : {
"range" : [
{
"lower_bound" : "1.29.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-protobuf.git"
}
],
"manifest_display_name" : "SwiftProtoParser",
"name" : "SwiftProtoParser",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "tvos",
"version" : "15.0"
}
],
"products" : [
{
"name" : "SwiftProtoParser",
"targets" : [
"SwiftProtoParser"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftProtoParserTests",
"module_type" : "SwiftTarget",
"name" : "SwiftProtoParserTests",
"path" : "Tests/SwiftProtoParserTests",
"product_dependencies" : [
"SwiftProtobuf"
],
"sources" : [
"Core/ProtoParseErrorTests.swift",
"Core/ProtoVersionTests.swift",
"DependencyResolver/BasicDependencyResolverTests.swift",
"DependencyResolver/ComprehensiveDependencyResolverTests.swift",
"DependencyResolver/DependencyResolverAdvancedTests.swift",
"DependencyResolver/FileSystemScannerDetailedTests.swift",
"DependencyResolver/ImportResolverDetailed.swift",
"DependencyResolver/ResolverErrorTests.swift",
"DescriptorBuilder/DescriptorBuilderComprehensiveTests.swift",
"DescriptorBuilder/DescriptorBuilderTests.swift",
"DescriptorBuilder/DescriptorErrorTests.swift",
"DescriptorBuilder/EnumDescriptorBuilderTests.swift",
"DescriptorBuilder/FieldDescriptorBuilderTests.swift",
"DescriptorBuilder/MessageDescriptorBuilderTests.swift",
"DescriptorBuilder/ServiceDescriptorBuilderTests.swift",
"Lexer/KeywordRecognizerTests.swift",
"Lexer/LexerErrorTests.swift",
"Lexer/LexerTests.swift",
"Lexer/TokenTests.swift",
"Parser/ASTCoverageBoostTests.swift",
"Parser/ASTTests.swift",
"Parser/ExtendNodeTests.swift",
"Parser/MessageNodeTests.swift",
"Parser/ParserAdvancedTests.swift",
"Parser/ParserCoverageEnhancementTests.swift",
"Parser/ParserErrorPathTests.swift",
"Parser/ParserErrorTests.swift",
"Parser/ParserSpecificCoverageTests.swift",
"Parser/ParserStateTests.swift",
"Parser/ParserTests.swift",
"Performance/IncrementalParserComprehensiveTests.swift",
"Performance/PerformanceAPITests.swift",
"Performance/PerformanceBenchmarkComprehensiveTests.swift",
"Performance/PerformanceBenchmarkTests.swift",
"Performance/PerformanceCacheComprehensiveTests.swift",
"Performance/PerformanceCacheTests.swift",
"ProductTests/ComplexProtoTests.swift",
"ProductTests/MediumProtoTests.swift",
"ProductTests/SimpleProtoProductTestsFixed.swift",
"Public/SwiftProtoParserAdvancedCoverageTests.swift",
"Public/SwiftProtoParserDependencyTests.swift",
"Public/SwiftProtoParserExtensionTests.swift",
"Public/SwiftProtoParserTests.swift"
],
"target_dependencies" : [
"SwiftProtoParser"
],
"type" : "test"
},
{
"c99name" : "SwiftProtoParser",
"module_type" : "SwiftTarget",
"name" : "SwiftProtoParser",
"path" : "Sources/SwiftProtoParser",
"product_dependencies" : [
"SwiftProtobuf"
],
"product_memberships" : [
"SwiftProtoParser"
],
"sources" : [
"Core/ProtoParseError.swift",
"Core/ProtoVersion.swift",
"DependencyResolver/DependencyResolver.swift",
"DependencyResolver/FileSystemScanner.swift",
"DependencyResolver/ImportResolver.swift",
"DependencyResolver/ResolvedProtoFile.swift",
"DependencyResolver/ResolverError.swift",
"DescriptorBuilder/DescriptorBuilder.swift",
"DescriptorBuilder/DescriptorError.swift",
"DescriptorBuilder/EnumDescriptorBuilder.swift",
"DescriptorBuilder/FieldDescriptorBuilder.swift",
"DescriptorBuilder/MessageDescriptorBuilder.swift",
"DescriptorBuilder/ServiceDescriptorBuilder.swift",
"Lexer/KeywordRecognizer.swift",
"Lexer/Lexer.swift",
"Lexer/LexerError.swift",
"Lexer/Token.swift",
"Parser/AST/EnumNode.swift",
"Parser/AST/ExtendNode.swift",
"Parser/AST/FieldLabel.swift",
"Parser/AST/FieldNode.swift",
"Parser/AST/FieldType.swift",
"Parser/AST/MessageNode.swift",
"Parser/AST/OptionNode.swift",
"Parser/AST/ProtoAST.swift",
"Parser/AST/ServiceNode.swift",
"Parser/Parser.swift",
"Parser/ParserError.swift",
"Parser/ParserState.swift",
"Performance/IncrementalParser.swift",
"Performance/PerformanceBenchmark.swift",
"Performance/PerformanceCache.swift",
"Public/SwiftProtoParser.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-protobuf.git
[1/39465] Fetching swift-protobuf
Fetched https://github.com/apple/swift-protobuf.git from cache (6.81s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.30.0 (7.39s)
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.30.0
[1/1] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[1/5] Copying PrivacyInfo.xcprivacy
[1/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/88] Compiling SwiftProtobuf Message+JSONAdditions.swift
[7/88] Compiling SwiftProtobuf Message+JSONAdditions_Data.swift
[8/88] Compiling SwiftProtobuf Message+JSONArrayAdditions.swift
[9/88] Compiling SwiftProtobuf Message+JSONArrayAdditions_Data.swift
[10/88] Compiling SwiftProtobuf Message+TextFormatAdditions.swift
[11/88] Compiling SwiftProtobuf Message.swift
[12/88] Compiling SwiftProtobuf MessageExtension.swift
[13/88] Compiling SwiftProtobuf NameMap.swift
[14/88] Compiling SwiftProtobuf PathDecoder.swift
[15/88] Compiling SwiftProtobuf PathVisitor.swift
[16/88] Compiling SwiftProtobuf ProtoNameProviding.swift
[17/88] Compiling SwiftProtobuf ProtobufAPIVersionCheck.swift
[18/99] Emitting module SwiftProtobuf
[19/99] Compiling SwiftProtobuf AnyMessageStorage.swift
[20/99] Compiling SwiftProtobuf AnyUnpackError.swift
[21/99] Compiling SwiftProtobuf AsyncMessageSequence.swift
[22/99] Compiling SwiftProtobuf BinaryDecoder.swift
[23/99] Compiling SwiftProtobuf BinaryDecodingError.swift
[24/99] Compiling SwiftProtobuf BinaryDecodingOptions.swift
[25/99] Compiling SwiftProtobuf BinaryDelimited.swift
[26/99] Compiling SwiftProtobuf BinaryEncoder.swift
[27/99] Compiling SwiftProtobuf BinaryEncodingError.swift
[28/99] Compiling SwiftProtobuf BinaryEncodingOptions.swift
[29/99] Compiling SwiftProtobuf BinaryEncodingSizeVisitor.swift
[30/99] Compiling SwiftProtobuf BinaryEncodingVisitor.swift
[31/99] Compiling SwiftProtobuf Google_Protobuf_Duration+Extensions.swift
[32/99] Compiling SwiftProtobuf Google_Protobuf_FieldMask+Extensions.swift
[33/99] Compiling SwiftProtobuf Google_Protobuf_ListValue+Extensions.swift
[34/99] Compiling SwiftProtobuf Google_Protobuf_NullValue+Extensions.swift
[35/99] Compiling SwiftProtobuf Google_Protobuf_Struct+Extensions.swift
[36/99] Compiling SwiftProtobuf Google_Protobuf_Timestamp+Extensions.swift
[37/99] Compiling SwiftProtobuf Google_Protobuf_Value+Extensions.swift
[38/99] Compiling SwiftProtobuf Google_Protobuf_Wrappers+Extensions.swift
[39/99] Compiling SwiftProtobuf HashVisitor.swift
[40/99] Compiling SwiftProtobuf Internal.swift
[41/99] Compiling SwiftProtobuf JSONDecoder.swift
[42/99] Compiling SwiftProtobuf JSONDecodingError.swift
[43/99] Compiling SwiftProtobuf TextFormatEncodingVisitor.swift
[44/99] Compiling SwiftProtobuf TextFormatScanner.swift
[45/99] Compiling SwiftProtobuf TimeUtils.swift
[46/99] Compiling SwiftProtobuf UnknownStorage.swift
[47/99] Compiling SwiftProtobuf UnsafeRawPointer+Shims.swift
[48/99] Compiling SwiftProtobuf Varint.swift
[49/99] Compiling SwiftProtobuf Version.swift
[50/99] Compiling SwiftProtobuf Visitor.swift
[51/99] Compiling SwiftProtobuf WireFormat.swift
[52/99] Compiling SwiftProtobuf ZigZag.swift
[53/99] Compiling SwiftProtobuf any.pb.swift
[54/99] Compiling SwiftProtobuf JSONDecodingOptions.swift
[55/99] Compiling SwiftProtobuf JSONEncoder.swift
[56/99] Compiling SwiftProtobuf JSONEncodingError.swift
[57/99] Compiling SwiftProtobuf JSONEncodingOptions.swift
[58/99] Compiling SwiftProtobuf JSONEncodingVisitor.swift
[59/99] Compiling SwiftProtobuf JSONMapEncodingVisitor.swift
[60/99] Compiling SwiftProtobuf JSONScanner.swift
[61/99] Compiling SwiftProtobuf MathUtils.swift
[62/99] Compiling SwiftProtobuf Message+AnyAdditions.swift
[63/99] Compiling SwiftProtobuf Message+BinaryAdditions.swift
[64/99] Compiling SwiftProtobuf Message+BinaryAdditions_Data.swift
[65/99] Compiling SwiftProtobuf Message+FieldMask.swift
[66/99] Compiling SwiftProtobuf ProtobufMap.swift
[67/99] Compiling SwiftProtobuf SelectiveVisitor.swift
[68/99] Compiling SwiftProtobuf SimpleExtensionMap.swift
[69/99] Compiling SwiftProtobuf StringUtils.swift
[70/99] Compiling SwiftProtobuf SwiftProtobufContiguousBytes.swift
[71/99] Compiling SwiftProtobuf SwiftProtobufError.swift
[72/99] Compiling SwiftProtobuf TextFormatDecoder.swift
[73/99] Compiling SwiftProtobuf TextFormatDecodingError.swift
[74/99] Compiling SwiftProtobuf TextFormatDecodingOptions.swift
[75/99] Compiling SwiftProtobuf TextFormatEncoder.swift
[76/99] Compiling SwiftProtobuf TextFormatEncodingOptions.swift
[77/99] Compiling SwiftProtobuf CustomJSONCodable.swift
[78/99] Compiling SwiftProtobuf Decoder.swift
[79/99] Compiling SwiftProtobuf DoubleParser.swift
[80/99] Compiling SwiftProtobuf Enum.swift
[81/99] Compiling SwiftProtobuf ExtensibleMessage.swift
[82/99] Compiling SwiftProtobuf ExtensionFieldValueSet.swift
[83/99] Compiling SwiftProtobuf ExtensionFields.swift
[84/99] Compiling SwiftProtobuf ExtensionMap.swift
[85/99] Compiling SwiftProtobuf FieldTag.swift
[86/99] Compiling SwiftProtobuf FieldTypes.swift
[87/99] Compiling SwiftProtobuf Google_Protobuf_Any+Extensions.swift
[88/99] Compiling SwiftProtobuf Google_Protobuf_Any+Registry.swift
[89/99] Compiling SwiftProtobuf api.pb.swift
[90/99] Compiling SwiftProtobuf descriptor.pb.swift
[91/99] Compiling SwiftProtobuf duration.pb.swift
[92/99] Compiling SwiftProtobuf empty.pb.swift
[93/99] Compiling SwiftProtobuf field_mask.pb.swift
[94/99] Compiling SwiftProtobuf source_context.pb.swift
[95/99] Compiling SwiftProtobuf struct.pb.swift
[96/99] Compiling SwiftProtobuf timestamp.pb.swift
[97/99] Compiling SwiftProtobuf type.pb.swift
[98/99] Compiling SwiftProtobuf wrappers.pb.swift
[99/99] Compiling SwiftProtobuf resource_bundle_accessor.swift
[101/130] Compiling SwiftProtoParser FieldType.swift
[102/130] Compiling SwiftProtoParser MessageNode.swift
[103/130] Compiling SwiftProtoParser OptionNode.swift
[104/130] Compiling SwiftProtoParser ProtoAST.swift
[105/134] Compiling SwiftProtoParser EnumNode.swift
[106/134] Compiling SwiftProtoParser ExtendNode.swift
[107/134] Compiling SwiftProtoParser FieldLabel.swift
[108/134] Compiling SwiftProtoParser FieldNode.swift
[109/134] Compiling SwiftProtoParser KeywordRecognizer.swift
[110/134] Compiling SwiftProtoParser Lexer.swift
[111/134] Compiling SwiftProtoParser LexerError.swift
[112/134] Compiling SwiftProtoParser Token.swift
[113/134] Compiling SwiftProtoParser ResolvedProtoFile.swift
[114/134] Compiling SwiftProtoParser ResolverError.swift
[115/134] Compiling SwiftProtoParser DescriptorBuilder.swift
[116/134] Compiling SwiftProtoParser DescriptorError.swift
[117/134] Compiling SwiftProtoParser ProtoParseError.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Core/ProtoVersion.swift:14:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ProtoVersion' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /// SwiftProtoParser focuses on Protocol Buffers 3 (proto3) syntax only.
6 | /// Proto2 is explicitly not supported to keep the implementation simple and focused.
7 | public enum ProtoVersion: String, CaseIterable {
| `- note: consider making enum 'ProtoVersion' conform to the 'Sendable' protocol
8 | /// Protocol Buffers version 3 (proto3).
9 | case proto3 = "proto3"
:
12 |
13 | /// The default version used when no version is explicitly specified.
14 | public static let `default`: ProtoVersion = .proto3
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ProtoVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// The syntax string as it appears in .proto files.
/host/spi-builder-workspace/Sources/SwiftProtoParser/DependencyResolver/DependencyResolver.swift:26:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DependencyResolver.Options' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Configuration options for dependency resolution.
9 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
10 | /// Whether to allow missing imports (skip them instead of failing).
11 | public let allowMissingImports: Bool
:
24 |
25 | /// Default options.
26 | public static let `default` = Options(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DependencyResolver.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | allowMissingImports: false,
28 | recursive: true,
[118/134] Compiling SwiftProtoParser ProtoVersion.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Core/ProtoVersion.swift:14:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ProtoVersion' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /// SwiftProtoParser focuses on Protocol Buffers 3 (proto3) syntax only.
6 | /// Proto2 is explicitly not supported to keep the implementation simple and focused.
7 | public enum ProtoVersion: String, CaseIterable {
| `- note: consider making enum 'ProtoVersion' conform to the 'Sendable' protocol
8 | /// Protocol Buffers version 3 (proto3).
9 | case proto3 = "proto3"
:
12 |
13 | /// The default version used when no version is explicitly specified.
14 | public static let `default`: ProtoVersion = .proto3
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ProtoVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// The syntax string as it appears in .proto files.
/host/spi-builder-workspace/Sources/SwiftProtoParser/DependencyResolver/DependencyResolver.swift:26:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DependencyResolver.Options' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Configuration options for dependency resolution.
9 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
10 | /// Whether to allow missing imports (skip them instead of failing).
11 | public let allowMissingImports: Bool
:
24 |
25 | /// Default options.
26 | public static let `default` = Options(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DependencyResolver.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | allowMissingImports: false,
28 | recursive: true,
[119/134] Compiling SwiftProtoParser DependencyResolver.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Core/ProtoVersion.swift:14:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ProtoVersion' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /// SwiftProtoParser focuses on Protocol Buffers 3 (proto3) syntax only.
6 | /// Proto2 is explicitly not supported to keep the implementation simple and focused.
7 | public enum ProtoVersion: String, CaseIterable {
| `- note: consider making enum 'ProtoVersion' conform to the 'Sendable' protocol
8 | /// Protocol Buffers version 3 (proto3).
9 | case proto3 = "proto3"
:
12 |
13 | /// The default version used when no version is explicitly specified.
14 | public static let `default`: ProtoVersion = .proto3
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ProtoVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// The syntax string as it appears in .proto files.
/host/spi-builder-workspace/Sources/SwiftProtoParser/DependencyResolver/DependencyResolver.swift:26:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DependencyResolver.Options' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Configuration options for dependency resolution.
9 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
10 | /// Whether to allow missing imports (skip them instead of failing).
11 | public let allowMissingImports: Bool
:
24 |
25 | /// Default options.
26 | public static let `default` = Options(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DependencyResolver.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | allowMissingImports: false,
28 | recursive: true,
[120/134] Compiling SwiftProtoParser FileSystemScanner.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Core/ProtoVersion.swift:14:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ProtoVersion' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /// SwiftProtoParser focuses on Protocol Buffers 3 (proto3) syntax only.
6 | /// Proto2 is explicitly not supported to keep the implementation simple and focused.
7 | public enum ProtoVersion: String, CaseIterable {
| `- note: consider making enum 'ProtoVersion' conform to the 'Sendable' protocol
8 | /// Protocol Buffers version 3 (proto3).
9 | case proto3 = "proto3"
:
12 |
13 | /// The default version used when no version is explicitly specified.
14 | public static let `default`: ProtoVersion = .proto3
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ProtoVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// The syntax string as it appears in .proto files.
/host/spi-builder-workspace/Sources/SwiftProtoParser/DependencyResolver/DependencyResolver.swift:26:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DependencyResolver.Options' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Configuration options for dependency resolution.
9 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
10 | /// Whether to allow missing imports (skip them instead of failing).
11 | public let allowMissingImports: Bool
:
24 |
25 | /// Default options.
26 | public static let `default` = Options(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DependencyResolver.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | allowMissingImports: false,
28 | recursive: true,
[121/134] Compiling SwiftProtoParser ImportResolver.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Core/ProtoVersion.swift:14:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ProtoVersion' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /// SwiftProtoParser focuses on Protocol Buffers 3 (proto3) syntax only.
6 | /// Proto2 is explicitly not supported to keep the implementation simple and focused.
7 | public enum ProtoVersion: String, CaseIterable {
| `- note: consider making enum 'ProtoVersion' conform to the 'Sendable' protocol
8 | /// Protocol Buffers version 3 (proto3).
9 | case proto3 = "proto3"
:
12 |
13 | /// The default version used when no version is explicitly specified.
14 | public static let `default`: ProtoVersion = .proto3
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ProtoVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// The syntax string as it appears in .proto files.
/host/spi-builder-workspace/Sources/SwiftProtoParser/DependencyResolver/DependencyResolver.swift:26:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DependencyResolver.Options' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Configuration options for dependency resolution.
9 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
10 | /// Whether to allow missing imports (skip them instead of failing).
11 | public let allowMissingImports: Bool
:
24 |
25 | /// Default options.
26 | public static let `default` = Options(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DependencyResolver.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | allowMissingImports: false,
28 | recursive: true,
error: emit-module command failed with exit code 1 (use -v to see invocation)
[122/134] Emitting module SwiftProtoParser
/host/spi-builder-workspace/Sources/SwiftProtoParser/Core/ProtoVersion.swift:14:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ProtoVersion' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /// SwiftProtoParser focuses on Protocol Buffers 3 (proto3) syntax only.
6 | /// Proto2 is explicitly not supported to keep the implementation simple and focused.
7 | public enum ProtoVersion: String, CaseIterable {
| `- note: consider making enum 'ProtoVersion' conform to the 'Sendable' protocol
8 | /// Protocol Buffers version 3 (proto3).
9 | case proto3 = "proto3"
:
12 |
13 | /// The default version used when no version is explicitly specified.
14 | public static let `default`: ProtoVersion = .proto3
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ProtoVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// The syntax string as it appears in .proto files.
/host/spi-builder-workspace/Sources/SwiftProtoParser/DependencyResolver/DependencyResolver.swift:26:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DependencyResolver.Options' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Configuration options for dependency resolution.
9 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
10 | /// Whether to allow missing imports (skip them instead of failing).
11 | public let allowMissingImports: Bool
:
24 |
25 | /// Default options.
26 | public static let `default` = Options(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DependencyResolver.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | allowMissingImports: false,
28 | recursive: true,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Parser/ParserError.swift:6:8: warning: associated value 'unexpectedToken(_:expected:line:column:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
4 | public enum ParserError: Error, Equatable {
5 | /// Unexpected token encountered.
6 | case unexpectedToken(Token, expected: String, line: Int, column: Int)
| `- warning: associated value 'unexpectedToken(_:expected:line:column:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
7 |
8 | /// Missing required element.
/host/spi-builder-workspace/Sources/SwiftProtoParser/Lexer/Token.swift:8:15: note: consider making struct 'Token' conform to the 'Sendable' protocol
6 | ///
7 | /// This struct contains the token type and position information for error reporting.
8 | public struct Token {
| `- note: consider making struct 'Token' conform to the 'Sendable' protocol
9 | /// The type of the token.
10 | public let type: TokenType
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:70:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
68 |
69 | /// Default configuration.
70 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | maxInMemorySize: 50 * 1024 * 1024, // 50MB
72 | streamingChunkSize: 64 * 1024, // 64KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:79:23: warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
77 |
78 | /// High-performance configuration for large projects.
79 | public static let highPerformance = Configuration(
| |- warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'highPerformance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | maxInMemorySize: 200 * 1024 * 1024, // 200MB
81 | streamingChunkSize: 256 * 1024, // 256KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:88:23: warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
86 |
87 | /// Memory-constrained configuration.
88 | public static let memoryConstrained = Configuration(
| |- warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'memoryConstrained' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | maxInMemorySize: 10 * 1024 * 1024, // 10MB
90 | streamingChunkSize: 16 * 1024, // 16KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:23: error: cannot find 'DispatchQueue' in scope
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:93: error: cannot infer contextual base in reference to member 'concurrent'
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:34:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
32 |
33 | /// Default configuration.
34 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | iterations: 10,
36 | warmupIterations: 3,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:43:23: warning: static property 'quick' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
41 |
42 | /// Quick benchmark configuration.
43 | public static let quick = Configuration(
| |- warning: static property 'quick' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'quick' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | iterations: 3,
45 | warmupIterations: 1,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:52:23: warning: static property 'comprehensive' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
50 |
51 | /// Comprehensive benchmark configuration.
52 | public static let comprehensive = Configuration(
| |- warning: static property 'comprehensive' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'comprehensive' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | iterations: 50,
54 | warmupIterations: 10,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:70:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
68 |
69 | /// Default configuration.
70 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | maxASTEntries: 1000,
72 | maxDescriptorEntries: 500,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:80:23: warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
78 |
79 | /// High-performance configuration for large projects.
80 | public static let highPerformance = Configuration(
| |- warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'highPerformance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | maxASTEntries: 5000,
82 | maxDescriptorEntries: 2500,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:90:23: warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
88 |
89 | /// Memory-constrained configuration.
90 | public static let memoryConstrained = Configuration(
| |- warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'memoryConstrained' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | maxASTEntries: 100,
92 | maxDescriptorEntries: 50,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:23: error: cannot find 'DispatchQueue' in scope
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:87: error: cannot infer contextual base in reference to member 'concurrent'
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Public/SwiftProtoParser.swift:398:21: warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'PerformanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
396 |
397 | /// Shared performance cache instance for optimized parsing.
398 | public static let sharedCache = PerformanceCache(configuration: .default)
| |- warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'PerformanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
399 |
400 | /// Shared incremental parser instance for large projects.
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:12:20: note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
10 | /// - Memory-aware cache eviction policies
11 | /// - Performance metrics and monitoring
12 | public final class PerformanceCache {
| `- note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: - Cache Entry Types
/host/spi-builder-workspace/Sources/SwiftProtoParser/Public/SwiftProtoParser.swift:401:21: warning: static property 'sharedIncrementalParser' is not concurrency-safe because non-'Sendable' type 'IncrementalParser' may have shared mutable state; this is an error in the Swift 6 language mode
399 |
400 | /// Shared incremental parser instance for large projects.
401 | public static let sharedIncrementalParser = IncrementalParser(
| |- warning: static property 'sharedIncrementalParser' is not concurrency-safe because non-'Sendable' type 'IncrementalParser' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedIncrementalParser' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
402 | configuration: .default,
403 | cache: sharedCache
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:11:20: note: class 'IncrementalParser' does not conform to the 'Sendable' protocol
9 | /// - Batch processing optimization
10 | /// - Memory-efficient streaming for large files
11 | public final class IncrementalParser {
| `- note: class 'IncrementalParser' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: - File Change Tracking
[123/134] Compiling SwiftProtoParser EnumDescriptorBuilder.swift
[124/134] Compiling SwiftProtoParser FieldDescriptorBuilder.swift
[125/134] Compiling SwiftProtoParser MessageDescriptorBuilder.swift
[126/134] Compiling SwiftProtoParser ServiceDescriptorBuilder.swift
[127/134] Compiling SwiftProtoParser ServiceNode.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Parser/ParserError.swift:6:8: warning: associated value 'unexpectedToken(_:expected:line:column:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
4 | public enum ParserError: Error, Equatable {
5 | /// Unexpected token encountered.
6 | case unexpectedToken(Token, expected: String, line: Int, column: Int)
| `- warning: associated value 'unexpectedToken(_:expected:line:column:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
7 |
8 | /// Missing required element.
/host/spi-builder-workspace/Sources/SwiftProtoParser/Lexer/Token.swift:8:15: note: consider making struct 'Token' conform to the 'Sendable' protocol
6 | ///
7 | /// This struct contains the token type and position information for error reporting.
8 | public struct Token {
| `- note: consider making struct 'Token' conform to the 'Sendable' protocol
9 | /// The type of the token.
10 | public let type: TokenType
[128/134] Compiling SwiftProtoParser Parser.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Parser/ParserError.swift:6:8: warning: associated value 'unexpectedToken(_:expected:line:column:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
4 | public enum ParserError: Error, Equatable {
5 | /// Unexpected token encountered.
6 | case unexpectedToken(Token, expected: String, line: Int, column: Int)
| `- warning: associated value 'unexpectedToken(_:expected:line:column:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
7 |
8 | /// Missing required element.
/host/spi-builder-workspace/Sources/SwiftProtoParser/Lexer/Token.swift:8:15: note: consider making struct 'Token' conform to the 'Sendable' protocol
6 | ///
7 | /// This struct contains the token type and position information for error reporting.
8 | public struct Token {
| `- note: consider making struct 'Token' conform to the 'Sendable' protocol
9 | /// The type of the token.
10 | public let type: TokenType
[129/134] Compiling SwiftProtoParser ParserError.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Parser/ParserError.swift:6:8: warning: associated value 'unexpectedToken(_:expected:line:column:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
4 | public enum ParserError: Error, Equatable {
5 | /// Unexpected token encountered.
6 | case unexpectedToken(Token, expected: String, line: Int, column: Int)
| `- warning: associated value 'unexpectedToken(_:expected:line:column:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
7 |
8 | /// Missing required element.
/host/spi-builder-workspace/Sources/SwiftProtoParser/Lexer/Token.swift:8:15: note: consider making struct 'Token' conform to the 'Sendable' protocol
6 | ///
7 | /// This struct contains the token type and position information for error reporting.
8 | public struct Token {
| `- note: consider making struct 'Token' conform to the 'Sendable' protocol
9 | /// The type of the token.
10 | public let type: TokenType
[130/134] Compiling SwiftProtoParser ParserState.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Parser/ParserError.swift:6:8: warning: associated value 'unexpectedToken(_:expected:line:column:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
4 | public enum ParserError: Error, Equatable {
5 | /// Unexpected token encountered.
6 | case unexpectedToken(Token, expected: String, line: Int, column: Int)
| `- warning: associated value 'unexpectedToken(_:expected:line:column:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
7 |
8 | /// Missing required element.
/host/spi-builder-workspace/Sources/SwiftProtoParser/Lexer/Token.swift:8:15: note: consider making struct 'Token' conform to the 'Sendable' protocol
6 | ///
7 | /// This struct contains the token type and position information for error reporting.
8 | public struct Token {
| `- note: consider making struct 'Token' conform to the 'Sendable' protocol
9 | /// The type of the token.
10 | public let type: TokenType
[131/134] Compiling SwiftProtoParser IncrementalParser.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:70:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
68 |
69 | /// Default configuration.
70 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | maxInMemorySize: 50 * 1024 * 1024, // 50MB
72 | streamingChunkSize: 64 * 1024, // 64KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:79:23: warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
77 |
78 | /// High-performance configuration for large projects.
79 | public static let highPerformance = Configuration(
| |- warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'highPerformance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | maxInMemorySize: 200 * 1024 * 1024, // 200MB
81 | streamingChunkSize: 256 * 1024, // 256KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:88:23: warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
86 |
87 | /// Memory-constrained configuration.
88 | public static let memoryConstrained = Configuration(
| |- warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'memoryConstrained' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | maxInMemorySize: 10 * 1024 * 1024, // 10MB
90 | streamingChunkSize: 16 * 1024, // 16KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:23: error: cannot find 'DispatchQueue' in scope
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:93: error: cannot infer contextual base in reference to member 'concurrent'
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:280:25: error: cannot infer contextual base in reference to member 'barrier'
278 | /// Clear all tracking metadata and statistics.
279 | public func reset() {
280 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
281 | self.fileMetadata.removeAll()
282 | self.resetStatistics()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:473:27: error: cannot infer contextual base in reference to member 'barrier'
471 |
472 | // Synchronize access to fileMetadata dictionary
473 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
474 | self.fileMetadata[filePath] = metadata
475 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:548:25: error: cannot infer contextual base in reference to member 'barrier'
546 |
547 | private func updateStats(_ update: @escaping (inout Statistics) -> Void) {
548 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
549 | var newStats = self.stats
550 | update(&newStats)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:34:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
32 |
33 | /// Default configuration.
34 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | iterations: 10,
36 | warmupIterations: 3,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:43:23: warning: static property 'quick' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
41 |
42 | /// Quick benchmark configuration.
43 | public static let quick = Configuration(
| |- warning: static property 'quick' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'quick' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | iterations: 3,
45 | warmupIterations: 1,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:52:23: warning: static property 'comprehensive' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
50 |
51 | /// Comprehensive benchmark configuration.
52 | public static let comprehensive = Configuration(
| |- warning: static property 'comprehensive' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'comprehensive' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | iterations: 50,
54 | warmupIterations: 10,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:70:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
68 |
69 | /// Default configuration.
70 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | maxASTEntries: 1000,
72 | maxDescriptorEntries: 500,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:80:23: warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
78 |
79 | /// High-performance configuration for large projects.
80 | public static let highPerformance = Configuration(
| |- warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'highPerformance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | maxASTEntries: 5000,
82 | maxDescriptorEntries: 2500,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:90:23: warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
88 |
89 | /// Memory-constrained configuration.
90 | public static let memoryConstrained = Configuration(
| |- warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'memoryConstrained' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | maxASTEntries: 100,
92 | maxDescriptorEntries: 50,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:23: error: cannot find 'DispatchQueue' in scope
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:87: error: cannot infer contextual base in reference to member 'concurrent'
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:193:16: error: 'nil' requires a contextual type
191 | )
192 | }
193 | return nil
| `- error: 'nil' requires a contextual type
194 | }
195 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:241:25: error: cannot infer contextual base in reference to member 'barrier'
239 | parseTime: TimeInterval
240 | ) {
241 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
242 | let entry = ASTCacheEntry(
243 | ast: ast,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:285:16: error: 'nil' requires a contextual type
283 | )
284 | }
285 | return nil
| `- error: 'nil' requires a contextual type
286 | }
287 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:333:25: error: cannot infer contextual base in reference to member 'barrier'
331 | buildTime: TimeInterval
332 | ) {
333 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
334 | let entry = DescriptorCacheEntry(
335 | descriptor: descriptor,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:379:16: error: 'nil' requires a contextual type
377 | )
378 | }
379 | return nil
| `- error: 'nil' requires a contextual type
380 | }
381 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:421:25: error: cannot infer contextual base in reference to member 'barrier'
419 | contentHash: String
420 | ) {
421 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
422 | let entry = DependencyCacheEntry(
423 | result: result,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:439:25: error: cannot infer contextual base in reference to member 'barrier'
437 | /// Clear all caches.
438 | public func clearAll() {
439 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
440 | self.astCache.removeAll()
441 | self.descriptorCache.removeAll()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:449:25: error: cannot infer contextual base in reference to member 'barrier'
447 | /// Clear expired entries from all caches.
448 | public func clearExpired() {
449 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
450 | let now = Date()
451 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:599:7: warning: capture of 'self' with non-sendable type 'PerformanceCache?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
10 | /// - Memory-aware cache eviction policies
11 | /// - Performance metrics and monitoring
12 | public final class PerformanceCache {
| `- note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: - Cache Entry Types
:
597 | // Start a timer to periodically clear expired entries
598 | monitoringTimer = Timer.scheduledTimer(withTimeInterval: 300, repeats: true) { [weak self] _ in
599 | self?.clearExpired()
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
600 | }
601 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Public/SwiftProtoParser.swift:398:21: warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'PerformanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
396 |
397 | /// Shared performance cache instance for optimized parsing.
398 | public static let sharedCache = PerformanceCache(configuration: .default)
| |- warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'PerformanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
399 |
400 | /// Shared incremental parser instance for large projects.
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:12:20: note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
10 | /// - Memory-aware cache eviction policies
11 | /// - Performance metrics and monitoring
12 | public final class PerformanceCache {
| `- note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: - Cache Entry Types
/host/spi-builder-workspace/Sources/SwiftProtoParser/Public/SwiftProtoParser.swift:401:21: warning: static property 'sharedIncrementalParser' is not concurrency-safe because non-'Sendable' type 'IncrementalParser' may have shared mutable state; this is an error in the Swift 6 language mode
399 |
400 | /// Shared incremental parser instance for large projects.
401 | public static let sharedIncrementalParser = IncrementalParser(
| |- warning: static property 'sharedIncrementalParser' is not concurrency-safe because non-'Sendable' type 'IncrementalParser' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedIncrementalParser' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
402 | configuration: .default,
403 | cache: sharedCache
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:11:20: note: class 'IncrementalParser' does not conform to the 'Sendable' protocol
9 | /// - Batch processing optimization
10 | /// - Memory-efficient streaming for large files
11 | public final class IncrementalParser {
| `- note: class 'IncrementalParser' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: - File Change Tracking
[132/134] Compiling SwiftProtoParser PerformanceBenchmark.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:70:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
68 |
69 | /// Default configuration.
70 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | maxInMemorySize: 50 * 1024 * 1024, // 50MB
72 | streamingChunkSize: 64 * 1024, // 64KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:79:23: warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
77 |
78 | /// High-performance configuration for large projects.
79 | public static let highPerformance = Configuration(
| |- warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'highPerformance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | maxInMemorySize: 200 * 1024 * 1024, // 200MB
81 | streamingChunkSize: 256 * 1024, // 256KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:88:23: warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
86 |
87 | /// Memory-constrained configuration.
88 | public static let memoryConstrained = Configuration(
| |- warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'memoryConstrained' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | maxInMemorySize: 10 * 1024 * 1024, // 10MB
90 | streamingChunkSize: 16 * 1024, // 16KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:23: error: cannot find 'DispatchQueue' in scope
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:93: error: cannot infer contextual base in reference to member 'concurrent'
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:280:25: error: cannot infer contextual base in reference to member 'barrier'
278 | /// Clear all tracking metadata and statistics.
279 | public func reset() {
280 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
281 | self.fileMetadata.removeAll()
282 | self.resetStatistics()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:473:27: error: cannot infer contextual base in reference to member 'barrier'
471 |
472 | // Synchronize access to fileMetadata dictionary
473 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
474 | self.fileMetadata[filePath] = metadata
475 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:548:25: error: cannot infer contextual base in reference to member 'barrier'
546 |
547 | private func updateStats(_ update: @escaping (inout Statistics) -> Void) {
548 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
549 | var newStats = self.stats
550 | update(&newStats)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:34:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
32 |
33 | /// Default configuration.
34 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | iterations: 10,
36 | warmupIterations: 3,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:43:23: warning: static property 'quick' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
41 |
42 | /// Quick benchmark configuration.
43 | public static let quick = Configuration(
| |- warning: static property 'quick' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'quick' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | iterations: 3,
45 | warmupIterations: 1,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:52:23: warning: static property 'comprehensive' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
50 |
51 | /// Comprehensive benchmark configuration.
52 | public static let comprehensive = Configuration(
| |- warning: static property 'comprehensive' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'comprehensive' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | iterations: 50,
54 | warmupIterations: 10,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:70:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
68 |
69 | /// Default configuration.
70 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | maxASTEntries: 1000,
72 | maxDescriptorEntries: 500,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:80:23: warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
78 |
79 | /// High-performance configuration for large projects.
80 | public static let highPerformance = Configuration(
| |- warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'highPerformance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | maxASTEntries: 5000,
82 | maxDescriptorEntries: 2500,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:90:23: warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
88 |
89 | /// Memory-constrained configuration.
90 | public static let memoryConstrained = Configuration(
| |- warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'memoryConstrained' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | maxASTEntries: 100,
92 | maxDescriptorEntries: 50,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:23: error: cannot find 'DispatchQueue' in scope
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:87: error: cannot infer contextual base in reference to member 'concurrent'
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:193:16: error: 'nil' requires a contextual type
191 | )
192 | }
193 | return nil
| `- error: 'nil' requires a contextual type
194 | }
195 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:241:25: error: cannot infer contextual base in reference to member 'barrier'
239 | parseTime: TimeInterval
240 | ) {
241 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
242 | let entry = ASTCacheEntry(
243 | ast: ast,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:285:16: error: 'nil' requires a contextual type
283 | )
284 | }
285 | return nil
| `- error: 'nil' requires a contextual type
286 | }
287 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:333:25: error: cannot infer contextual base in reference to member 'barrier'
331 | buildTime: TimeInterval
332 | ) {
333 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
334 | let entry = DescriptorCacheEntry(
335 | descriptor: descriptor,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:379:16: error: 'nil' requires a contextual type
377 | )
378 | }
379 | return nil
| `- error: 'nil' requires a contextual type
380 | }
381 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:421:25: error: cannot infer contextual base in reference to member 'barrier'
419 | contentHash: String
420 | ) {
421 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
422 | let entry = DependencyCacheEntry(
423 | result: result,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:439:25: error: cannot infer contextual base in reference to member 'barrier'
437 | /// Clear all caches.
438 | public func clearAll() {
439 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
440 | self.astCache.removeAll()
441 | self.descriptorCache.removeAll()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:449:25: error: cannot infer contextual base in reference to member 'barrier'
447 | /// Clear expired entries from all caches.
448 | public func clearExpired() {
449 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
450 | let now = Date()
451 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:599:7: warning: capture of 'self' with non-sendable type 'PerformanceCache?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
10 | /// - Memory-aware cache eviction policies
11 | /// - Performance metrics and monitoring
12 | public final class PerformanceCache {
| `- note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: - Cache Entry Types
:
597 | // Start a timer to periodically clear expired entries
598 | monitoringTimer = Timer.scheduledTimer(withTimeInterval: 300, repeats: true) { [weak self] _ in
599 | self?.clearExpired()
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
600 | }
601 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Public/SwiftProtoParser.swift:398:21: warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'PerformanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
396 |
397 | /// Shared performance cache instance for optimized parsing.
398 | public static let sharedCache = PerformanceCache(configuration: .default)
| |- warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'PerformanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
399 |
400 | /// Shared incremental parser instance for large projects.
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:12:20: note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
10 | /// - Memory-aware cache eviction policies
11 | /// - Performance metrics and monitoring
12 | public final class PerformanceCache {
| `- note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: - Cache Entry Types
/host/spi-builder-workspace/Sources/SwiftProtoParser/Public/SwiftProtoParser.swift:401:21: warning: static property 'sharedIncrementalParser' is not concurrency-safe because non-'Sendable' type 'IncrementalParser' may have shared mutable state; this is an error in the Swift 6 language mode
399 |
400 | /// Shared incremental parser instance for large projects.
401 | public static let sharedIncrementalParser = IncrementalParser(
| |- warning: static property 'sharedIncrementalParser' is not concurrency-safe because non-'Sendable' type 'IncrementalParser' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedIncrementalParser' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
402 | configuration: .default,
403 | cache: sharedCache
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:11:20: note: class 'IncrementalParser' does not conform to the 'Sendable' protocol
9 | /// - Batch processing optimization
10 | /// - Memory-efficient streaming for large files
11 | public final class IncrementalParser {
| `- note: class 'IncrementalParser' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: - File Change Tracking
[133/134] Compiling SwiftProtoParser PerformanceCache.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:70:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
68 |
69 | /// Default configuration.
70 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | maxInMemorySize: 50 * 1024 * 1024, // 50MB
72 | streamingChunkSize: 64 * 1024, // 64KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:79:23: warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
77 |
78 | /// High-performance configuration for large projects.
79 | public static let highPerformance = Configuration(
| |- warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'highPerformance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | maxInMemorySize: 200 * 1024 * 1024, // 200MB
81 | streamingChunkSize: 256 * 1024, // 256KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:88:23: warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
86 |
87 | /// Memory-constrained configuration.
88 | public static let memoryConstrained = Configuration(
| |- warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'memoryConstrained' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | maxInMemorySize: 10 * 1024 * 1024, // 10MB
90 | streamingChunkSize: 16 * 1024, // 16KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:23: error: cannot find 'DispatchQueue' in scope
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:93: error: cannot infer contextual base in reference to member 'concurrent'
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:280:25: error: cannot infer contextual base in reference to member 'barrier'
278 | /// Clear all tracking metadata and statistics.
279 | public func reset() {
280 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
281 | self.fileMetadata.removeAll()
282 | self.resetStatistics()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:473:27: error: cannot infer contextual base in reference to member 'barrier'
471 |
472 | // Synchronize access to fileMetadata dictionary
473 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
474 | self.fileMetadata[filePath] = metadata
475 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:548:25: error: cannot infer contextual base in reference to member 'barrier'
546 |
547 | private func updateStats(_ update: @escaping (inout Statistics) -> Void) {
548 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
549 | var newStats = self.stats
550 | update(&newStats)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:34:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
32 |
33 | /// Default configuration.
34 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | iterations: 10,
36 | warmupIterations: 3,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:43:23: warning: static property 'quick' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
41 |
42 | /// Quick benchmark configuration.
43 | public static let quick = Configuration(
| |- warning: static property 'quick' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'quick' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | iterations: 3,
45 | warmupIterations: 1,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:52:23: warning: static property 'comprehensive' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
50 |
51 | /// Comprehensive benchmark configuration.
52 | public static let comprehensive = Configuration(
| |- warning: static property 'comprehensive' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'comprehensive' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | iterations: 50,
54 | warmupIterations: 10,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:70:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
68 |
69 | /// Default configuration.
70 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | maxASTEntries: 1000,
72 | maxDescriptorEntries: 500,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:80:23: warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
78 |
79 | /// High-performance configuration for large projects.
80 | public static let highPerformance = Configuration(
| |- warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'highPerformance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | maxASTEntries: 5000,
82 | maxDescriptorEntries: 2500,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:90:23: warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
88 |
89 | /// Memory-constrained configuration.
90 | public static let memoryConstrained = Configuration(
| |- warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'memoryConstrained' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | maxASTEntries: 100,
92 | maxDescriptorEntries: 50,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:23: error: cannot find 'DispatchQueue' in scope
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:87: error: cannot infer contextual base in reference to member 'concurrent'
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:193:16: error: 'nil' requires a contextual type
191 | )
192 | }
193 | return nil
| `- error: 'nil' requires a contextual type
194 | }
195 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:241:25: error: cannot infer contextual base in reference to member 'barrier'
239 | parseTime: TimeInterval
240 | ) {
241 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
242 | let entry = ASTCacheEntry(
243 | ast: ast,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:285:16: error: 'nil' requires a contextual type
283 | )
284 | }
285 | return nil
| `- error: 'nil' requires a contextual type
286 | }
287 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:333:25: error: cannot infer contextual base in reference to member 'barrier'
331 | buildTime: TimeInterval
332 | ) {
333 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
334 | let entry = DescriptorCacheEntry(
335 | descriptor: descriptor,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:379:16: error: 'nil' requires a contextual type
377 | )
378 | }
379 | return nil
| `- error: 'nil' requires a contextual type
380 | }
381 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:421:25: error: cannot infer contextual base in reference to member 'barrier'
419 | contentHash: String
420 | ) {
421 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
422 | let entry = DependencyCacheEntry(
423 | result: result,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:439:25: error: cannot infer contextual base in reference to member 'barrier'
437 | /// Clear all caches.
438 | public func clearAll() {
439 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
440 | self.astCache.removeAll()
441 | self.descriptorCache.removeAll()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:449:25: error: cannot infer contextual base in reference to member 'barrier'
447 | /// Clear expired entries from all caches.
448 | public func clearExpired() {
449 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
450 | let now = Date()
451 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:599:7: warning: capture of 'self' with non-sendable type 'PerformanceCache?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
10 | /// - Memory-aware cache eviction policies
11 | /// - Performance metrics and monitoring
12 | public final class PerformanceCache {
| `- note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: - Cache Entry Types
:
597 | // Start a timer to periodically clear expired entries
598 | monitoringTimer = Timer.scheduledTimer(withTimeInterval: 300, repeats: true) { [weak self] _ in
599 | self?.clearExpired()
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
600 | }
601 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Public/SwiftProtoParser.swift:398:21: warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'PerformanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
396 |
397 | /// Shared performance cache instance for optimized parsing.
398 | public static let sharedCache = PerformanceCache(configuration: .default)
| |- warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'PerformanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
399 |
400 | /// Shared incremental parser instance for large projects.
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:12:20: note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
10 | /// - Memory-aware cache eviction policies
11 | /// - Performance metrics and monitoring
12 | public final class PerformanceCache {
| `- note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: - Cache Entry Types
/host/spi-builder-workspace/Sources/SwiftProtoParser/Public/SwiftProtoParser.swift:401:21: warning: static property 'sharedIncrementalParser' is not concurrency-safe because non-'Sendable' type 'IncrementalParser' may have shared mutable state; this is an error in the Swift 6 language mode
399 |
400 | /// Shared incremental parser instance for large projects.
401 | public static let sharedIncrementalParser = IncrementalParser(
| |- warning: static property 'sharedIncrementalParser' is not concurrency-safe because non-'Sendable' type 'IncrementalParser' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedIncrementalParser' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
402 | configuration: .default,
403 | cache: sharedCache
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:11:20: note: class 'IncrementalParser' does not conform to the 'Sendable' protocol
9 | /// - Batch processing optimization
10 | /// - Memory-efficient streaming for large files
11 | public final class IncrementalParser {
| `- note: class 'IncrementalParser' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: - File Change Tracking
[134/134] Compiling SwiftProtoParser SwiftProtoParser.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:70:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
68 |
69 | /// Default configuration.
70 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | maxInMemorySize: 50 * 1024 * 1024, // 50MB
72 | streamingChunkSize: 64 * 1024, // 64KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:79:23: warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
77 |
78 | /// High-performance configuration for large projects.
79 | public static let highPerformance = Configuration(
| |- warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'highPerformance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | maxInMemorySize: 200 * 1024 * 1024, // 200MB
81 | streamingChunkSize: 256 * 1024, // 256KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:88:23: warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | /// Configuration for incremental parsing.
53 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
54 | /// Maximum file size for in-memory processing (bytes).
55 | public let maxInMemorySize: Int64
:
86 |
87 | /// Memory-constrained configuration.
88 | public static let memoryConstrained = Configuration(
| |- warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'IncrementalParser.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'memoryConstrained' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | maxInMemorySize: 10 * 1024 * 1024, // 10MB
90 | streamingChunkSize: 16 * 1024, // 16KB
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:23: error: cannot find 'DispatchQueue' in scope
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:93: error: cannot infer contextual base in reference to member 'concurrent'
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:280:25: error: cannot infer contextual base in reference to member 'barrier'
278 | /// Clear all tracking metadata and statistics.
279 | public func reset() {
280 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
281 | self.fileMetadata.removeAll()
282 | self.resetStatistics()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:473:27: error: cannot infer contextual base in reference to member 'barrier'
471 |
472 | // Synchronize access to fileMetadata dictionary
473 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
474 | self.fileMetadata[filePath] = metadata
475 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:548:25: error: cannot infer contextual base in reference to member 'barrier'
546 |
547 | private func updateStats(_ update: @escaping (inout Statistics) -> Void) {
548 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
549 | var newStats = self.stats
550 | update(&newStats)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:34:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
32 |
33 | /// Default configuration.
34 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | iterations: 10,
36 | warmupIterations: 3,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:43:23: warning: static property 'quick' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
41 |
42 | /// Quick benchmark configuration.
43 | public static let quick = Configuration(
| |- warning: static property 'quick' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'quick' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | iterations: 3,
45 | warmupIterations: 1,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceBenchmark.swift:52:23: warning: static property 'comprehensive' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Benchmark configuration settings.
17 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
18 | /// Number of iterations for each benchmark.
19 | public let iterations: Int
:
50 |
51 | /// Comprehensive benchmark configuration.
52 | public static let comprehensive = Configuration(
| |- warning: static property 'comprehensive' is not concurrency-safe because non-'Sendable' type 'PerformanceBenchmark.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'comprehensive' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | iterations: 50,
54 | warmupIterations: 10,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:70:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
68 |
69 | /// Default configuration.
70 | public static let `default` = Configuration(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | maxASTEntries: 1000,
72 | maxDescriptorEntries: 500,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:80:23: warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
78 |
79 | /// High-performance configuration for large projects.
80 | public static let highPerformance = Configuration(
| |- warning: static property 'highPerformance' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'highPerformance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | maxASTEntries: 5000,
82 | maxDescriptorEntries: 2500,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:90:23: warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// Cache configuration settings.
50 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
51 | /// Maximum number of AST entries to cache.
52 | public let maxASTEntries: Int
:
88 |
89 | /// Memory-constrained configuration.
90 | public static let memoryConstrained = Configuration(
| |- warning: static property 'memoryConstrained' is not concurrency-safe because non-'Sendable' type 'PerformanceCache.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'memoryConstrained' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | maxASTEntries: 100,
92 | maxDescriptorEntries: 50,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:23: error: cannot find 'DispatchQueue' in scope
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:87: error: cannot infer contextual base in reference to member 'concurrent'
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:193:16: error: 'nil' requires a contextual type
191 | )
192 | }
193 | return nil
| `- error: 'nil' requires a contextual type
194 | }
195 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:241:25: error: cannot infer contextual base in reference to member 'barrier'
239 | parseTime: TimeInterval
240 | ) {
241 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
242 | let entry = ASTCacheEntry(
243 | ast: ast,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:285:16: error: 'nil' requires a contextual type
283 | )
284 | }
285 | return nil
| `- error: 'nil' requires a contextual type
286 | }
287 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:333:25: error: cannot infer contextual base in reference to member 'barrier'
331 | buildTime: TimeInterval
332 | ) {
333 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
334 | let entry = DescriptorCacheEntry(
335 | descriptor: descriptor,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:379:16: error: 'nil' requires a contextual type
377 | )
378 | }
379 | return nil
| `- error: 'nil' requires a contextual type
380 | }
381 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:421:25: error: cannot infer contextual base in reference to member 'barrier'
419 | contentHash: String
420 | ) {
421 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
422 | let entry = DependencyCacheEntry(
423 | result: result,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:439:25: error: cannot infer contextual base in reference to member 'barrier'
437 | /// Clear all caches.
438 | public func clearAll() {
439 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
440 | self.astCache.removeAll()
441 | self.descriptorCache.removeAll()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:449:25: error: cannot infer contextual base in reference to member 'barrier'
447 | /// Clear expired entries from all caches.
448 | public func clearExpired() {
449 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
450 | let now = Date()
451 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:599:7: warning: capture of 'self' with non-sendable type 'PerformanceCache?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
10 | /// - Memory-aware cache eviction policies
11 | /// - Performance metrics and monitoring
12 | public final class PerformanceCache {
| `- note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: - Cache Entry Types
:
597 | // Start a timer to periodically clear expired entries
598 | monitoringTimer = Timer.scheduledTimer(withTimeInterval: 300, repeats: true) { [weak self] _ in
599 | self?.clearExpired()
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
600 | }
601 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Public/SwiftProtoParser.swift:398:21: warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'PerformanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
396 |
397 | /// Shared performance cache instance for optimized parsing.
398 | public static let sharedCache = PerformanceCache(configuration: .default)
| |- warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'PerformanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
399 |
400 | /// Shared incremental parser instance for large projects.
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:12:20: note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
10 | /// - Memory-aware cache eviction policies
11 | /// - Performance metrics and monitoring
12 | public final class PerformanceCache {
| `- note: class 'PerformanceCache' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: - Cache Entry Types
/host/spi-builder-workspace/Sources/SwiftProtoParser/Public/SwiftProtoParser.swift:401:21: warning: static property 'sharedIncrementalParser' is not concurrency-safe because non-'Sendable' type 'IncrementalParser' may have shared mutable state; this is an error in the Swift 6 language mode
399 |
400 | /// Shared incremental parser instance for large projects.
401 | public static let sharedIncrementalParser = IncrementalParser(
| |- warning: static property 'sharedIncrementalParser' is not concurrency-safe because non-'Sendable' type 'IncrementalParser' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedIncrementalParser' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
402 | configuration: .default,
403 | cache: sharedCache
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:11:20: note: class 'IncrementalParser' does not conform to the 'Sendable' protocol
9 | /// - Batch processing optimization
10 | /// - Memory-efficient streaming for large files
11 | public final class IncrementalParser {
| `- note: class 'IncrementalParser' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: - File Change Tracking
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/85] Compiling SwiftProtobuf Message+JSONAdditions.swift
[4/85] Compiling SwiftProtobuf Message+JSONAdditions_Data.swift
[5/85] Compiling SwiftProtobuf Message+JSONArrayAdditions.swift
[6/85] Compiling SwiftProtobuf Message+JSONArrayAdditions_Data.swift
[7/85] Compiling SwiftProtobuf Message+TextFormatAdditions.swift
[8/85] Compiling SwiftProtobuf Message.swift
[9/85] Compiling SwiftProtobuf MessageExtension.swift
[10/85] Compiling SwiftProtobuf NameMap.swift
[11/85] Compiling SwiftProtobuf PathDecoder.swift
[12/85] Compiling SwiftProtobuf PathVisitor.swift
[13/85] Compiling SwiftProtobuf ProtoNameProviding.swift
[14/85] Compiling SwiftProtobuf ProtobufAPIVersionCheck.swift
[15/85] Compiling SwiftProtobuf ProtobufMap.swift
[16/85] Compiling SwiftProtobuf SelectiveVisitor.swift
[17/85] Compiling SwiftProtobuf SimpleExtensionMap.swift
[18/85] Compiling SwiftProtobuf StringUtils.swift
[19/85] Compiling SwiftProtobuf SwiftProtobufContiguousBytes.swift
[20/85] Compiling SwiftProtobuf SwiftProtobufError.swift
[21/85] Compiling SwiftProtobuf TextFormatDecoder.swift
[22/85] Compiling SwiftProtobuf TextFormatDecodingError.swift
[23/85] Compiling SwiftProtobuf TextFormatDecodingOptions.swift
[24/85] Compiling SwiftProtobuf TextFormatEncoder.swift
[25/85] Compiling SwiftProtobuf TextFormatEncodingOptions.swift
[26/96] Emitting module SwiftProtobuf
[27/96] Compiling SwiftProtobuf Google_Protobuf_Duration+Extensions.swift
[28/96] Compiling SwiftProtobuf Google_Protobuf_FieldMask+Extensions.swift
[29/96] Compiling SwiftProtobuf Google_Protobuf_ListValue+Extensions.swift
[30/96] Compiling SwiftProtobuf Google_Protobuf_NullValue+Extensions.swift
[31/96] Compiling SwiftProtobuf Google_Protobuf_Struct+Extensions.swift
[32/96] Compiling SwiftProtobuf Google_Protobuf_Timestamp+Extensions.swift
[33/96] Compiling SwiftProtobuf Google_Protobuf_Value+Extensions.swift
[34/96] Compiling SwiftProtobuf Google_Protobuf_Wrappers+Extensions.swift
[35/96] Compiling SwiftProtobuf HashVisitor.swift
[36/96] Compiling SwiftProtobuf Internal.swift
[37/96] Compiling SwiftProtobuf JSONDecoder.swift
[38/96] Compiling SwiftProtobuf JSONDecodingError.swift
[39/96] Compiling SwiftProtobuf CustomJSONCodable.swift
[40/96] Compiling SwiftProtobuf Decoder.swift
[41/96] Compiling SwiftProtobuf DoubleParser.swift
[42/96] Compiling SwiftProtobuf Enum.swift
[43/96] Compiling SwiftProtobuf ExtensibleMessage.swift
[44/96] Compiling SwiftProtobuf ExtensionFieldValueSet.swift
[45/96] Compiling SwiftProtobuf ExtensionFields.swift
[46/96] Compiling SwiftProtobuf ExtensionMap.swift
[47/96] Compiling SwiftProtobuf FieldTag.swift
[48/96] Compiling SwiftProtobuf FieldTypes.swift
[49/96] Compiling SwiftProtobuf Google_Protobuf_Any+Extensions.swift
[50/96] Compiling SwiftProtobuf Google_Protobuf_Any+Registry.swift
[51/96] Compiling SwiftProtobuf JSONDecodingOptions.swift
[52/96] Compiling SwiftProtobuf JSONEncoder.swift
[53/96] Compiling SwiftProtobuf JSONEncodingError.swift
[54/96] Compiling SwiftProtobuf JSONEncodingOptions.swift
[55/96] Compiling SwiftProtobuf JSONEncodingVisitor.swift
[56/96] Compiling SwiftProtobuf JSONMapEncodingVisitor.swift
[57/96] Compiling SwiftProtobuf JSONScanner.swift
[58/96] Compiling SwiftProtobuf MathUtils.swift
[59/96] Compiling SwiftProtobuf Message+AnyAdditions.swift
[60/96] Compiling SwiftProtobuf Message+BinaryAdditions.swift
[61/96] Compiling SwiftProtobuf Message+BinaryAdditions_Data.swift
[62/96] Compiling SwiftProtobuf Message+FieldMask.swift
[63/96] Compiling SwiftProtobuf TextFormatEncodingVisitor.swift
[64/96] Compiling SwiftProtobuf TextFormatScanner.swift
[65/96] Compiling SwiftProtobuf TimeUtils.swift
[66/96] Compiling SwiftProtobuf UnknownStorage.swift
[67/96] Compiling SwiftProtobuf UnsafeRawPointer+Shims.swift
[68/96] Compiling SwiftProtobuf Varint.swift
[69/96] Compiling SwiftProtobuf Version.swift
[70/96] Compiling SwiftProtobuf Visitor.swift
[71/96] Compiling SwiftProtobuf WireFormat.swift
[72/96] Compiling SwiftProtobuf ZigZag.swift
[73/96] Compiling SwiftProtobuf any.pb.swift
[74/96] Compiling SwiftProtobuf AnyMessageStorage.swift
[75/96] Compiling SwiftProtobuf AnyUnpackError.swift
[76/96] Compiling SwiftProtobuf AsyncMessageSequence.swift
[77/96] Compiling SwiftProtobuf BinaryDecoder.swift
[78/96] Compiling SwiftProtobuf BinaryDecodingError.swift
[79/96] Compiling SwiftProtobuf BinaryDecodingOptions.swift
[80/96] Compiling SwiftProtobuf BinaryDelimited.swift
[81/96] Compiling SwiftProtobuf BinaryEncoder.swift
[82/96] Compiling SwiftProtobuf BinaryEncodingError.swift
[83/96] Compiling SwiftProtobuf BinaryEncodingOptions.swift
[84/96] Compiling SwiftProtobuf BinaryEncodingSizeVisitor.swift
[85/96] Compiling SwiftProtobuf BinaryEncodingVisitor.swift
[86/96] Compiling SwiftProtobuf api.pb.swift
[87/96] Compiling SwiftProtobuf descriptor.pb.swift
[88/96] Compiling SwiftProtobuf duration.pb.swift
[89/96] Compiling SwiftProtobuf empty.pb.swift
[90/96] Compiling SwiftProtobuf field_mask.pb.swift
[91/96] Compiling SwiftProtobuf source_context.pb.swift
[92/96] Compiling SwiftProtobuf struct.pb.swift
[93/96] Compiling SwiftProtobuf timestamp.pb.swift
[94/96] Compiling SwiftProtobuf type.pb.swift
[95/96] Compiling SwiftProtobuf wrappers.pb.swift
[96/96] Compiling SwiftProtobuf resource_bundle_accessor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[98/127] Emitting module SwiftProtoParser
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:23: error: cannot find 'DispatchQueue' in scope
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:93: error: cannot infer contextual base in reference to member 'concurrent'
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:23: error: cannot find 'DispatchQueue' in scope
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:87: error: cannot infer contextual base in reference to member 'concurrent'
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
108 | private var monitoringTimer: Timer?
109 |
[99/131] Compiling SwiftProtoParser IncrementalParser.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:23: error: cannot find 'DispatchQueue' in scope
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:93: error: cannot infer contextual base in reference to member 'concurrent'
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:280:25: error: cannot infer contextual base in reference to member 'barrier'
278 | /// Clear all tracking metadata and statistics.
279 | public func reset() {
280 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
281 | self.fileMetadata.removeAll()
282 | self.resetStatistics()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:473:27: error: cannot infer contextual base in reference to member 'barrier'
471 |
472 | // Synchronize access to fileMetadata dictionary
473 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
474 | self.fileMetadata[filePath] = metadata
475 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:548:25: error: cannot infer contextual base in reference to member 'barrier'
546 |
547 | private func updateStats(_ update: @escaping (inout Statistics) -> Void) {
548 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
549 | var newStats = self.stats
550 | update(&newStats)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:23: error: cannot find 'DispatchQueue' in scope
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:87: error: cannot infer contextual base in reference to member 'concurrent'
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:193:16: error: 'nil' requires a contextual type
191 | )
192 | }
193 | return nil
| `- error: 'nil' requires a contextual type
194 | }
195 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:241:25: error: cannot infer contextual base in reference to member 'barrier'
239 | parseTime: TimeInterval
240 | ) {
241 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
242 | let entry = ASTCacheEntry(
243 | ast: ast,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:285:16: error: 'nil' requires a contextual type
283 | )
284 | }
285 | return nil
| `- error: 'nil' requires a contextual type
286 | }
287 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:333:25: error: cannot infer contextual base in reference to member 'barrier'
331 | buildTime: TimeInterval
332 | ) {
333 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
334 | let entry = DescriptorCacheEntry(
335 | descriptor: descriptor,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:379:16: error: 'nil' requires a contextual type
377 | )
378 | }
379 | return nil
| `- error: 'nil' requires a contextual type
380 | }
381 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:421:25: error: cannot infer contextual base in reference to member 'barrier'
419 | contentHash: String
420 | ) {
421 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
422 | let entry = DependencyCacheEntry(
423 | result: result,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:439:25: error: cannot infer contextual base in reference to member 'barrier'
437 | /// Clear all caches.
438 | public func clearAll() {
439 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
440 | self.astCache.removeAll()
441 | self.descriptorCache.removeAll()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:449:25: error: cannot infer contextual base in reference to member 'barrier'
447 | /// Clear expired entries from all caches.
448 | public func clearExpired() {
449 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
450 | let now = Date()
451 |
[100/131] Compiling SwiftProtoParser PerformanceBenchmark.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:23: error: cannot find 'DispatchQueue' in scope
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:93: error: cannot infer contextual base in reference to member 'concurrent'
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:280:25: error: cannot infer contextual base in reference to member 'barrier'
278 | /// Clear all tracking metadata and statistics.
279 | public func reset() {
280 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
281 | self.fileMetadata.removeAll()
282 | self.resetStatistics()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:473:27: error: cannot infer contextual base in reference to member 'barrier'
471 |
472 | // Synchronize access to fileMetadata dictionary
473 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
474 | self.fileMetadata[filePath] = metadata
475 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:548:25: error: cannot infer contextual base in reference to member 'barrier'
546 |
547 | private func updateStats(_ update: @escaping (inout Statistics) -> Void) {
548 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
549 | var newStats = self.stats
550 | update(&newStats)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:23: error: cannot find 'DispatchQueue' in scope
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:87: error: cannot infer contextual base in reference to member 'concurrent'
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:193:16: error: 'nil' requires a contextual type
191 | )
192 | }
193 | return nil
| `- error: 'nil' requires a contextual type
194 | }
195 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:241:25: error: cannot infer contextual base in reference to member 'barrier'
239 | parseTime: TimeInterval
240 | ) {
241 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
242 | let entry = ASTCacheEntry(
243 | ast: ast,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:285:16: error: 'nil' requires a contextual type
283 | )
284 | }
285 | return nil
| `- error: 'nil' requires a contextual type
286 | }
287 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:333:25: error: cannot infer contextual base in reference to member 'barrier'
331 | buildTime: TimeInterval
332 | ) {
333 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
334 | let entry = DescriptorCacheEntry(
335 | descriptor: descriptor,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:379:16: error: 'nil' requires a contextual type
377 | )
378 | }
379 | return nil
| `- error: 'nil' requires a contextual type
380 | }
381 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:421:25: error: cannot infer contextual base in reference to member 'barrier'
419 | contentHash: String
420 | ) {
421 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
422 | let entry = DependencyCacheEntry(
423 | result: result,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:439:25: error: cannot infer contextual base in reference to member 'barrier'
437 | /// Clear all caches.
438 | public func clearAll() {
439 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
440 | self.astCache.removeAll()
441 | self.descriptorCache.removeAll()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:449:25: error: cannot infer contextual base in reference to member 'barrier'
447 | /// Clear expired entries from all caches.
448 | public func clearExpired() {
449 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
450 | let now = Date()
451 |
[101/131] Compiling SwiftProtoParser PerformanceCache.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:23: error: cannot find 'DispatchQueue' in scope
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:93: error: cannot infer contextual base in reference to member 'concurrent'
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:280:25: error: cannot infer contextual base in reference to member 'barrier'
278 | /// Clear all tracking metadata and statistics.
279 | public func reset() {
280 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
281 | self.fileMetadata.removeAll()
282 | self.resetStatistics()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:473:27: error: cannot infer contextual base in reference to member 'barrier'
471 |
472 | // Synchronize access to fileMetadata dictionary
473 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
474 | self.fileMetadata[filePath] = metadata
475 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:548:25: error: cannot infer contextual base in reference to member 'barrier'
546 |
547 | private func updateStats(_ update: @escaping (inout Statistics) -> Void) {
548 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
549 | var newStats = self.stats
550 | update(&newStats)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:23: error: cannot find 'DispatchQueue' in scope
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:87: error: cannot infer contextual base in reference to member 'concurrent'
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:193:16: error: 'nil' requires a contextual type
191 | )
192 | }
193 | return nil
| `- error: 'nil' requires a contextual type
194 | }
195 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:241:25: error: cannot infer contextual base in reference to member 'barrier'
239 | parseTime: TimeInterval
240 | ) {
241 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
242 | let entry = ASTCacheEntry(
243 | ast: ast,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:285:16: error: 'nil' requires a contextual type
283 | )
284 | }
285 | return nil
| `- error: 'nil' requires a contextual type
286 | }
287 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:333:25: error: cannot infer contextual base in reference to member 'barrier'
331 | buildTime: TimeInterval
332 | ) {
333 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
334 | let entry = DescriptorCacheEntry(
335 | descriptor: descriptor,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:379:16: error: 'nil' requires a contextual type
377 | )
378 | }
379 | return nil
| `- error: 'nil' requires a contextual type
380 | }
381 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:421:25: error: cannot infer contextual base in reference to member 'barrier'
419 | contentHash: String
420 | ) {
421 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
422 | let entry = DependencyCacheEntry(
423 | result: result,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:439:25: error: cannot infer contextual base in reference to member 'barrier'
437 | /// Clear all caches.
438 | public func clearAll() {
439 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
440 | self.astCache.removeAll()
441 | self.descriptorCache.removeAll()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:449:25: error: cannot infer contextual base in reference to member 'barrier'
447 | /// Clear expired entries from all caches.
448 | public func clearExpired() {
449 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
450 | let now = Date()
451 |
[102/131] Compiling SwiftProtoParser SwiftProtoParser.swift
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:23: error: cannot find 'DispatchQueue' in scope
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:102:93: error: cannot infer contextual base in reference to member 'concurrent'
100 | private let cache: PerformanceCache
101 | private var fileMetadata: [String: FileMetadata] = [:]
102 | private let queue = DispatchQueue(label: "com.swiftprotoparser.incremental", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
103 | private let fileManager = FileManager.default
104 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:280:25: error: cannot infer contextual base in reference to member 'barrier'
278 | /// Clear all tracking metadata and statistics.
279 | public func reset() {
280 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
281 | self.fileMetadata.removeAll()
282 | self.resetStatistics()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:473:27: error: cannot infer contextual base in reference to member 'barrier'
471 |
472 | // Synchronize access to fileMetadata dictionary
473 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
474 | self.fileMetadata[filePath] = metadata
475 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:548:25: error: cannot infer contextual base in reference to member 'barrier'
546 |
547 | private func updateStats(_ update: @escaping (inout Statistics) -> Void) {
548 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
549 | var newStats = self.stats
550 | update(&newStats)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:23: error: cannot find 'DispatchQueue' in scope
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:107:87: error: cannot infer contextual base in reference to member 'concurrent'
105 |
106 | private let configuration: Configuration
107 | private let queue = DispatchQueue(label: "com.swiftprotoparser.cache", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
108 | private var monitoringTimer: Timer?
109 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:193:16: error: 'nil' requires a contextual type
191 | )
192 | }
193 | return nil
| `- error: 'nil' requires a contextual type
194 | }
195 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:241:25: error: cannot infer contextual base in reference to member 'barrier'
239 | parseTime: TimeInterval
240 | ) {
241 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
242 | let entry = ASTCacheEntry(
243 | ast: ast,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:285:16: error: 'nil' requires a contextual type
283 | )
284 | }
285 | return nil
| `- error: 'nil' requires a contextual type
286 | }
287 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:333:25: error: cannot infer contextual base in reference to member 'barrier'
331 | buildTime: TimeInterval
332 | ) {
333 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
334 | let entry = DescriptorCacheEntry(
335 | descriptor: descriptor,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:379:16: error: 'nil' requires a contextual type
377 | )
378 | }
379 | return nil
| `- error: 'nil' requires a contextual type
380 | }
381 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:421:25: error: cannot infer contextual base in reference to member 'barrier'
419 | contentHash: String
420 | ) {
421 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
422 | let entry = DependencyCacheEntry(
423 | result: result,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:439:25: error: cannot infer contextual base in reference to member 'barrier'
437 | /// Clear all caches.
438 | public func clearAll() {
439 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
440 | self.astCache.removeAll()
441 | self.descriptorCache.removeAll()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:449:25: error: cannot infer contextual base in reference to member 'barrier'
447 | /// Clear expired entries from all caches.
448 | public func clearExpired() {
449 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
450 | let now = Date()
451 |
[103/131] Compiling SwiftProtoParser ResolvedProtoFile.swift
[104/131] Compiling SwiftProtoParser ResolverError.swift
[105/131] Compiling SwiftProtoParser DescriptorBuilder.swift
[106/131] Compiling SwiftProtoParser DescriptorError.swift
[107/131] Compiling SwiftProtoParser ProtoParseError.swift
[108/131] Compiling SwiftProtoParser ProtoVersion.swift
[109/131] Compiling SwiftProtoParser DependencyResolver.swift
[110/131] Compiling SwiftProtoParser FileSystemScanner.swift
[111/131] Compiling SwiftProtoParser ImportResolver.swift
[112/131] Compiling SwiftProtoParser EnumDescriptorBuilder.swift
[113/131] Compiling SwiftProtoParser FieldDescriptorBuilder.swift
[114/131] Compiling SwiftProtoParser MessageDescriptorBuilder.swift
[115/131] Compiling SwiftProtoParser ServiceDescriptorBuilder.swift
[116/131] Compiling SwiftProtoParser EnumNode.swift
[117/131] Compiling SwiftProtoParser ExtendNode.swift
[118/131] Compiling SwiftProtoParser FieldLabel.swift
[119/131] Compiling SwiftProtoParser FieldNode.swift
[120/131] Compiling SwiftProtoParser FieldType.swift
[121/131] Compiling SwiftProtoParser MessageNode.swift
[122/131] Compiling SwiftProtoParser OptionNode.swift
[123/131] Compiling SwiftProtoParser ProtoAST.swift
[124/131] Compiling SwiftProtoParser KeywordRecognizer.swift
[125/131] Compiling SwiftProtoParser Lexer.swift
[126/131] Compiling SwiftProtoParser LexerError.swift
[127/131] Compiling SwiftProtoParser Token.swift
[128/131] Compiling SwiftProtoParser ServiceNode.swift
[129/131] Compiling SwiftProtoParser Parser.swift
[130/131] Compiling SwiftProtoParser ParserError.swift
[131/131] Compiling SwiftProtoParser ParserState.swift
BUILD FAILURE 6.1 wasm