Build Information
Successful build of SwiftProtoParser, reference master (6e26c7
), with Swift 6.1 for Android on 24 Jun 2025 14:27:33 UTC.
Swift 6 data race errors: 14
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.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: android
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-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-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 (11.08s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.30.0 (11.72s)
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/88] Compiling SwiftProtobuf Google_Protobuf_Duration+Extensions.swift
[19/88] Compiling SwiftProtobuf Google_Protobuf_FieldMask+Extensions.swift
[20/88] Compiling SwiftProtobuf Google_Protobuf_ListValue+Extensions.swift
[21/88] Compiling SwiftProtobuf Google_Protobuf_NullValue+Extensions.swift
[22/88] Compiling SwiftProtobuf Google_Protobuf_Struct+Extensions.swift
[23/88] Compiling SwiftProtobuf Google_Protobuf_Timestamp+Extensions.swift
[24/88] Compiling SwiftProtobuf Google_Protobuf_Value+Extensions.swift
[25/88] Compiling SwiftProtobuf Google_Protobuf_Wrappers+Extensions.swift
[26/88] Compiling SwiftProtobuf HashVisitor.swift
[27/88] Compiling SwiftProtobuf Internal.swift
[28/88] Compiling SwiftProtobuf JSONDecoder.swift
[29/88] Compiling SwiftProtobuf JSONDecodingError.swift
[30/88] Compiling SwiftProtobuf TextFormatEncodingVisitor.swift
[31/88] Compiling SwiftProtobuf TextFormatScanner.swift
[32/88] Compiling SwiftProtobuf TimeUtils.swift
[33/88] Compiling SwiftProtobuf UnknownStorage.swift
[34/88] Compiling SwiftProtobuf UnsafeRawPointer+Shims.swift
[35/88] Compiling SwiftProtobuf Varint.swift
[36/88] Compiling SwiftProtobuf Version.swift
[37/88] Compiling SwiftProtobuf Visitor.swift
[38/88] Compiling SwiftProtobuf WireFormat.swift
[39/88] Compiling SwiftProtobuf ZigZag.swift
[40/88] Compiling SwiftProtobuf any.pb.swift
[41/99] Compiling SwiftProtobuf JSONDecodingOptions.swift
[42/99] Compiling SwiftProtobuf JSONEncoder.swift
[43/99] Compiling SwiftProtobuf JSONEncodingError.swift
[44/99] Compiling SwiftProtobuf JSONEncodingOptions.swift
[45/99] Compiling SwiftProtobuf JSONEncodingVisitor.swift
[46/99] Compiling SwiftProtobuf JSONMapEncodingVisitor.swift
[47/99] Compiling SwiftProtobuf JSONScanner.swift
[48/99] Compiling SwiftProtobuf MathUtils.swift
[49/99] Compiling SwiftProtobuf Message+AnyAdditions.swift
[50/99] Compiling SwiftProtobuf Message+BinaryAdditions.swift
[51/99] Compiling SwiftProtobuf Message+BinaryAdditions_Data.swift
[52/99] Compiling SwiftProtobuf Message+FieldMask.swift
[53/99] Emitting module SwiftProtobuf
[54/99] Compiling SwiftProtobuf CustomJSONCodable.swift
[55/99] Compiling SwiftProtobuf Decoder.swift
[56/99] Compiling SwiftProtobuf DoubleParser.swift
[57/99] Compiling SwiftProtobuf Enum.swift
[58/99] Compiling SwiftProtobuf ExtensibleMessage.swift
[59/99] Compiling SwiftProtobuf ExtensionFieldValueSet.swift
[60/99] Compiling SwiftProtobuf ExtensionFields.swift
[61/99] Compiling SwiftProtobuf ExtensionMap.swift
[62/99] Compiling SwiftProtobuf FieldTag.swift
[63/99] Compiling SwiftProtobuf FieldTypes.swift
[64/99] Compiling SwiftProtobuf Google_Protobuf_Any+Extensions.swift
[65/99] Compiling SwiftProtobuf Google_Protobuf_Any+Registry.swift
[66/99] Compiling SwiftProtobuf AnyMessageStorage.swift
[67/99] Compiling SwiftProtobuf AnyUnpackError.swift
[68/99] Compiling SwiftProtobuf AsyncMessageSequence.swift
[69/99] Compiling SwiftProtobuf BinaryDecoder.swift
[70/99] Compiling SwiftProtobuf BinaryDecodingError.swift
[71/99] Compiling SwiftProtobuf BinaryDecodingOptions.swift
[72/99] Compiling SwiftProtobuf BinaryDelimited.swift
[73/99] Compiling SwiftProtobuf BinaryEncoder.swift
[74/99] Compiling SwiftProtobuf BinaryEncodingError.swift
[75/99] Compiling SwiftProtobuf BinaryEncodingOptions.swift
[76/99] Compiling SwiftProtobuf BinaryEncodingSizeVisitor.swift
[77/99] Compiling SwiftProtobuf BinaryEncodingVisitor.swift
[78/99] Compiling SwiftProtobuf ProtobufMap.swift
[79/99] Compiling SwiftProtobuf SelectiveVisitor.swift
[80/99] Compiling SwiftProtobuf SimpleExtensionMap.swift
[81/99] Compiling SwiftProtobuf StringUtils.swift
[82/99] Compiling SwiftProtobuf SwiftProtobufContiguousBytes.swift
[83/99] Compiling SwiftProtobuf SwiftProtobufError.swift
[84/99] Compiling SwiftProtobuf TextFormatDecoder.swift
[85/99] Compiling SwiftProtobuf TextFormatDecodingError.swift
[86/99] Compiling SwiftProtobuf TextFormatDecodingOptions.swift
[87/99] Compiling SwiftProtobuf TextFormatEncoder.swift
[88/99] Compiling SwiftProtobuf TextFormatEncodingOptions.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] 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/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/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
[102/134] Compiling SwiftProtoParser EnumNode.swift
[103/134] Compiling SwiftProtoParser ExtendNode.swift
[104/134] Compiling SwiftProtoParser FieldLabel.swift
[105/134] Compiling SwiftProtoParser FieldNode.swift
[106/134] Compiling SwiftProtoParser FieldType.swift
[107/134] Compiling SwiftProtoParser MessageNode.swift
[108/134] Compiling SwiftProtoParser OptionNode.swift
[109/134] Compiling SwiftProtoParser ProtoAST.swift
[110/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,
[111/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,
[112/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,
[113/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,
[114/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,
[115/134] Compiling SwiftProtoParser ResolvedProtoFile.swift
[116/134] Compiling SwiftProtoParser ResolverError.swift
[117/134] Compiling SwiftProtoParser DescriptorBuilder.swift
[118/134] Compiling SwiftProtoParser DescriptorError.swift
[119/134] Compiling SwiftProtoParser KeywordRecognizer.swift
[120/134] Compiling SwiftProtoParser Lexer.swift
[121/134] Compiling SwiftProtoParser LexerError.swift
[122/134] Compiling SwiftProtoParser Token.swift
[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:281:7: warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
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
:
279 | public func reset() {
280 | queue.async(flags: .barrier) {
281 | self.fileMetadata.removeAll()
| `- warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
282 | self.resetStatistics()
283 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:474:9: warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
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
:
472 | // Synchronize access to fileMetadata dictionary
473 | queue.async(flags: .barrier) {
474 | self.fileMetadata[filePath] = metadata
| `- warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
475 | }
476 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:549:22: warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
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
:
547 | private func updateStats(_ update: @escaping (inout Statistics) -> Void) {
548 | queue.async(flags: .barrier) {
549 | var newStats = self.stats
| `- warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
550 | update(&newStats)
551 | self.stats = newStats
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:550:7: warning: capture of 'update' with non-sendable type '(inout IncrementalParser.Statistics) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
548 | queue.async(flags: .barrier) {
549 | var newStats = self.stats
550 | update(&newStats)
| |- warning: capture of 'update' with non-sendable type '(inout IncrementalParser.Statistics) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
551 | self.stats = newStats
552 | }
/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:243:14: warning: capture of 'ast' with non-sendable type 'ProtoAST' in a '@Sendable' closure; this is an error in the Swift 6 language mode
241 | queue.async(flags: .barrier) {
242 | let entry = ASTCacheEntry(
243 | ast: ast,
| `- warning: capture of 'ast' with non-sendable type 'ProtoAST' in a '@Sendable' closure; this is an error in the Swift 6 language mode
244 | contentHash: contentHash,
245 | fileSize: fileSize,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Parser/AST/ProtoAST.swift:4:15: note: consider making struct 'ProtoAST' conform to the 'Sendable' protocol
2 |
3 | /// Root AST node representing a complete .proto file.
4 | public struct ProtoAST {
| `- note: consider making struct 'ProtoAST' conform to the 'Sendable' protocol
5 | /// Protocol Buffer syntax version (proto3 only supported).
6 | public let syntax: ProtoVersion
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:252: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
:
250 | )
251 |
252 | self.astCache[filePath] = entry
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
253 | self.enforceASTCacheLimits()
254 | self.updateAverageParseTime(parseTime)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:344: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
:
342 | )
343 |
344 | self.descriptorCache[filePath] = entry
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
345 | self.enforceDescriptorCacheLimits()
346 | self.updateAverageBuildTime(buildTime)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:423:17: warning: capture of 'result' with non-sendable type 'DependencyResolver.ResolutionResult' in a '@Sendable' closure; this is an error in the Swift 6 language mode
421 | queue.async(flags: .barrier) {
422 | let entry = DependencyCacheEntry(
423 | result: result,
| `- warning: capture of 'result' with non-sendable type 'DependencyResolver.ResolutionResult' in a '@Sendable' closure; this is an error in the Swift 6 language mode
424 | contentHash: contentHash,
425 | createdAt: Date(),
/host/spi-builder-workspace/Sources/SwiftProtoParser/DependencyResolver/DependencyResolver.swift:51:17: note: consider making struct 'ResolutionResult' conform to the 'Sendable' protocol
49 |
50 | /// Result of dependency resolution.
51 | public struct ResolutionResult {
| `- note: consider making struct 'ResolutionResult' conform to the 'Sendable' protocol
52 | /// The main file that was resolved.
53 | public let mainFile: ResolvedProtoFile
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:430: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
:
428 | )
429 |
430 | self.dependencyCache[filePath] = entry
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
431 | self.enforceDependencyCacheLimits()
432 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:440: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
:
438 | public func clearAll() {
439 | queue.async(flags: .barrier) {
440 | self.astCache.removeAll()
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
441 | self.descriptorCache.removeAll()
442 | self.dependencyCache.removeAll()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:452: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
:
450 | let now = Date()
451 |
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:452:47: warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated 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
:
450 | let now = Date()
451 |
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated closure; this is an error in the Swift 6 language mode
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:453:61: warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated 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
:
451 |
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated closure; this is an error in the Swift 6 language mode
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
455 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:454:61: warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated 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
:
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated closure; this is an error in the Swift 6 language mode
455 | }
456 | }
/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:281:7: warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
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
:
279 | public func reset() {
280 | queue.async(flags: .barrier) {
281 | self.fileMetadata.removeAll()
| `- warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
282 | self.resetStatistics()
283 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:474:9: warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
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
:
472 | // Synchronize access to fileMetadata dictionary
473 | queue.async(flags: .barrier) {
474 | self.fileMetadata[filePath] = metadata
| `- warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
475 | }
476 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:549:22: warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
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
:
547 | private func updateStats(_ update: @escaping (inout Statistics) -> Void) {
548 | queue.async(flags: .barrier) {
549 | var newStats = self.stats
| `- warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
550 | update(&newStats)
551 | self.stats = newStats
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:550:7: warning: capture of 'update' with non-sendable type '(inout IncrementalParser.Statistics) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
548 | queue.async(flags: .barrier) {
549 | var newStats = self.stats
550 | update(&newStats)
| |- warning: capture of 'update' with non-sendable type '(inout IncrementalParser.Statistics) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
551 | self.stats = newStats
552 | }
/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:243:14: warning: capture of 'ast' with non-sendable type 'ProtoAST' in a '@Sendable' closure; this is an error in the Swift 6 language mode
241 | queue.async(flags: .barrier) {
242 | let entry = ASTCacheEntry(
243 | ast: ast,
| `- warning: capture of 'ast' with non-sendable type 'ProtoAST' in a '@Sendable' closure; this is an error in the Swift 6 language mode
244 | contentHash: contentHash,
245 | fileSize: fileSize,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Parser/AST/ProtoAST.swift:4:15: note: consider making struct 'ProtoAST' conform to the 'Sendable' protocol
2 |
3 | /// Root AST node representing a complete .proto file.
4 | public struct ProtoAST {
| `- note: consider making struct 'ProtoAST' conform to the 'Sendable' protocol
5 | /// Protocol Buffer syntax version (proto3 only supported).
6 | public let syntax: ProtoVersion
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:252: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
:
250 | )
251 |
252 | self.astCache[filePath] = entry
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
253 | self.enforceASTCacheLimits()
254 | self.updateAverageParseTime(parseTime)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:344: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
:
342 | )
343 |
344 | self.descriptorCache[filePath] = entry
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
345 | self.enforceDescriptorCacheLimits()
346 | self.updateAverageBuildTime(buildTime)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:423:17: warning: capture of 'result' with non-sendable type 'DependencyResolver.ResolutionResult' in a '@Sendable' closure; this is an error in the Swift 6 language mode
421 | queue.async(flags: .barrier) {
422 | let entry = DependencyCacheEntry(
423 | result: result,
| `- warning: capture of 'result' with non-sendable type 'DependencyResolver.ResolutionResult' in a '@Sendable' closure; this is an error in the Swift 6 language mode
424 | contentHash: contentHash,
425 | createdAt: Date(),
/host/spi-builder-workspace/Sources/SwiftProtoParser/DependencyResolver/DependencyResolver.swift:51:17: note: consider making struct 'ResolutionResult' conform to the 'Sendable' protocol
49 |
50 | /// Result of dependency resolution.
51 | public struct ResolutionResult {
| `- note: consider making struct 'ResolutionResult' conform to the 'Sendable' protocol
52 | /// The main file that was resolved.
53 | public let mainFile: ResolvedProtoFile
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:430: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
:
428 | )
429 |
430 | self.dependencyCache[filePath] = entry
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
431 | self.enforceDependencyCacheLimits()
432 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:440: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
:
438 | public func clearAll() {
439 | queue.async(flags: .barrier) {
440 | self.astCache.removeAll()
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
441 | self.descriptorCache.removeAll()
442 | self.dependencyCache.removeAll()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:452: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
:
450 | let now = Date()
451 |
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:452:47: warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated 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
:
450 | let now = Date()
451 |
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated closure; this is an error in the Swift 6 language mode
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:453:61: warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated 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
:
451 |
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated closure; this is an error in the Swift 6 language mode
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
455 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:454:61: warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated 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
:
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated closure; this is an error in the Swift 6 language mode
455 | }
456 | }
/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:281:7: warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
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
:
279 | public func reset() {
280 | queue.async(flags: .barrier) {
281 | self.fileMetadata.removeAll()
| `- warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
282 | self.resetStatistics()
283 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:474:9: warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
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
:
472 | // Synchronize access to fileMetadata dictionary
473 | queue.async(flags: .barrier) {
474 | self.fileMetadata[filePath] = metadata
| `- warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
475 | }
476 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:549:22: warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
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
:
547 | private func updateStats(_ update: @escaping (inout Statistics) -> Void) {
548 | queue.async(flags: .barrier) {
549 | var newStats = self.stats
| `- warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
550 | update(&newStats)
551 | self.stats = newStats
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:550:7: warning: capture of 'update' with non-sendable type '(inout IncrementalParser.Statistics) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
548 | queue.async(flags: .barrier) {
549 | var newStats = self.stats
550 | update(&newStats)
| |- warning: capture of 'update' with non-sendable type '(inout IncrementalParser.Statistics) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
551 | self.stats = newStats
552 | }
/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:243:14: warning: capture of 'ast' with non-sendable type 'ProtoAST' in a '@Sendable' closure; this is an error in the Swift 6 language mode
241 | queue.async(flags: .barrier) {
242 | let entry = ASTCacheEntry(
243 | ast: ast,
| `- warning: capture of 'ast' with non-sendable type 'ProtoAST' in a '@Sendable' closure; this is an error in the Swift 6 language mode
244 | contentHash: contentHash,
245 | fileSize: fileSize,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Parser/AST/ProtoAST.swift:4:15: note: consider making struct 'ProtoAST' conform to the 'Sendable' protocol
2 |
3 | /// Root AST node representing a complete .proto file.
4 | public struct ProtoAST {
| `- note: consider making struct 'ProtoAST' conform to the 'Sendable' protocol
5 | /// Protocol Buffer syntax version (proto3 only supported).
6 | public let syntax: ProtoVersion
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:252: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
:
250 | )
251 |
252 | self.astCache[filePath] = entry
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
253 | self.enforceASTCacheLimits()
254 | self.updateAverageParseTime(parseTime)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:344: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
:
342 | )
343 |
344 | self.descriptorCache[filePath] = entry
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
345 | self.enforceDescriptorCacheLimits()
346 | self.updateAverageBuildTime(buildTime)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:423:17: warning: capture of 'result' with non-sendable type 'DependencyResolver.ResolutionResult' in a '@Sendable' closure; this is an error in the Swift 6 language mode
421 | queue.async(flags: .barrier) {
422 | let entry = DependencyCacheEntry(
423 | result: result,
| `- warning: capture of 'result' with non-sendable type 'DependencyResolver.ResolutionResult' in a '@Sendable' closure; this is an error in the Swift 6 language mode
424 | contentHash: contentHash,
425 | createdAt: Date(),
/host/spi-builder-workspace/Sources/SwiftProtoParser/DependencyResolver/DependencyResolver.swift:51:17: note: consider making struct 'ResolutionResult' conform to the 'Sendable' protocol
49 |
50 | /// Result of dependency resolution.
51 | public struct ResolutionResult {
| `- note: consider making struct 'ResolutionResult' conform to the 'Sendable' protocol
52 | /// The main file that was resolved.
53 | public let mainFile: ResolvedProtoFile
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:430: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
:
428 | )
429 |
430 | self.dependencyCache[filePath] = entry
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
431 | self.enforceDependencyCacheLimits()
432 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:440: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
:
438 | public func clearAll() {
439 | queue.async(flags: .barrier) {
440 | self.astCache.removeAll()
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
441 | self.descriptorCache.removeAll()
442 | self.dependencyCache.removeAll()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:452: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
:
450 | let now = Date()
451 |
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:452:47: warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated 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
:
450 | let now = Date()
451 |
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated closure; this is an error in the Swift 6 language mode
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:453:61: warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated 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
:
451 |
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated closure; this is an error in the Swift 6 language mode
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
455 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:454:61: warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated 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
:
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated closure; this is an error in the Swift 6 language mode
455 | }
456 | }
/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:281:7: warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
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
:
279 | public func reset() {
280 | queue.async(flags: .barrier) {
281 | self.fileMetadata.removeAll()
| `- warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
282 | self.resetStatistics()
283 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:474:9: warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
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
:
472 | // Synchronize access to fileMetadata dictionary
473 | queue.async(flags: .barrier) {
474 | self.fileMetadata[filePath] = metadata
| `- warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
475 | }
476 |
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:549:22: warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
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
:
547 | private func updateStats(_ update: @escaping (inout Statistics) -> Void) {
548 | queue.async(flags: .barrier) {
549 | var newStats = self.stats
| `- warning: capture of 'self' with non-sendable type 'IncrementalParser' in a '@Sendable' closure; this is an error in the Swift 6 language mode
550 | update(&newStats)
551 | self.stats = newStats
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/IncrementalParser.swift:550:7: warning: capture of 'update' with non-sendable type '(inout IncrementalParser.Statistics) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
548 | queue.async(flags: .barrier) {
549 | var newStats = self.stats
550 | update(&newStats)
| |- warning: capture of 'update' with non-sendable type '(inout IncrementalParser.Statistics) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
551 | self.stats = newStats
552 | }
/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:243:14: warning: capture of 'ast' with non-sendable type 'ProtoAST' in a '@Sendable' closure; this is an error in the Swift 6 language mode
241 | queue.async(flags: .barrier) {
242 | let entry = ASTCacheEntry(
243 | ast: ast,
| `- warning: capture of 'ast' with non-sendable type 'ProtoAST' in a '@Sendable' closure; this is an error in the Swift 6 language mode
244 | contentHash: contentHash,
245 | fileSize: fileSize,
/host/spi-builder-workspace/Sources/SwiftProtoParser/Parser/AST/ProtoAST.swift:4:15: note: consider making struct 'ProtoAST' conform to the 'Sendable' protocol
2 |
3 | /// Root AST node representing a complete .proto file.
4 | public struct ProtoAST {
| `- note: consider making struct 'ProtoAST' conform to the 'Sendable' protocol
5 | /// Protocol Buffer syntax version (proto3 only supported).
6 | public let syntax: ProtoVersion
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:252: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
:
250 | )
251 |
252 | self.astCache[filePath] = entry
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
253 | self.enforceASTCacheLimits()
254 | self.updateAverageParseTime(parseTime)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:344: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
:
342 | )
343 |
344 | self.descriptorCache[filePath] = entry
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
345 | self.enforceDescriptorCacheLimits()
346 | self.updateAverageBuildTime(buildTime)
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:423:17: warning: capture of 'result' with non-sendable type 'DependencyResolver.ResolutionResult' in a '@Sendable' closure; this is an error in the Swift 6 language mode
421 | queue.async(flags: .barrier) {
422 | let entry = DependencyCacheEntry(
423 | result: result,
| `- warning: capture of 'result' with non-sendable type 'DependencyResolver.ResolutionResult' in a '@Sendable' closure; this is an error in the Swift 6 language mode
424 | contentHash: contentHash,
425 | createdAt: Date(),
/host/spi-builder-workspace/Sources/SwiftProtoParser/DependencyResolver/DependencyResolver.swift:51:17: note: consider making struct 'ResolutionResult' conform to the 'Sendable' protocol
49 |
50 | /// Result of dependency resolution.
51 | public struct ResolutionResult {
| `- note: consider making struct 'ResolutionResult' conform to the 'Sendable' protocol
52 | /// The main file that was resolved.
53 | public let mainFile: ResolvedProtoFile
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:430: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
:
428 | )
429 |
430 | self.dependencyCache[filePath] = entry
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
431 | self.enforceDependencyCacheLimits()
432 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:440: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
:
438 | public func clearAll() {
439 | queue.async(flags: .barrier) {
440 | self.astCache.removeAll()
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
441 | self.descriptorCache.removeAll()
442 | self.dependencyCache.removeAll()
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:452: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
:
450 | let now = Date()
451 |
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in a '@Sendable' closure; this is an error in the Swift 6 language mode
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:452:47: warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated 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
:
450 | let now = Date()
451 |
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated closure; this is an error in the Swift 6 language mode
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:453:61: warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated 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
:
451 |
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated closure; this is an error in the Swift 6 language mode
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
455 | }
/host/spi-builder-workspace/Sources/SwiftProtoParser/Performance/PerformanceCache.swift:454:61: warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated 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
:
452 | self.astCache = self.astCache.filter { !self.isExpired($0.value.createdAt, at: now) }
453 | self.descriptorCache = self.descriptorCache.filter { !self.isExpired($0.value.createdAt, at: now) }
454 | self.dependencyCache = self.dependencyCache.filter { !self.isExpired($0.value.createdAt, at: now) }
| `- warning: capture of 'self' with non-sendable type 'PerformanceCache' in an isolated closure; this is an error in the Swift 6 language mode
455 | }
456 | }
/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
Build complete! (53.77s)
Build complete.
{
"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"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.