The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftGodot, reference v0.75.0 (48112d), with Swift 6.1 for Wasm on 22 Feb 2026 04:48:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[165/177] Compiling SwiftParser Cursor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[166/177] Compiling SwiftParser Lexeme.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[167/177] Compiling SwiftParser ExperimentalFeatures.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[168/177] Compiling SwiftParser IsLexerClassified.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[169/177] Compiling SwiftParser LayoutNodes+Parsable.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[170/177] Compiling SwiftParser Parser+TokenSpecSet.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[171/177] Compiling SwiftParser TokenSpecStaticMembers.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[172/179] Wrapping AST for SwiftParser for debugging
[174/191] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[175/192] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[176/192] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[177/192] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[178/192] Compiling SwiftParserDiagnostics Utils.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[179/192] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[180/192] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[181/192] Emitting module SwiftParserDiagnostics
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[182/192] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[183/192] Compiling SwiftParserDiagnostics PresenceUtils.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[184/192] Compiling SwiftParserDiagnostics MissingNodesError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[185/192] Compiling SwiftParserDiagnostics MissingTokenError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[186/192] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[187/192] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[188/193] Wrapping AST for SwiftParserDiagnostics for debugging
[190/208] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[191/208] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[192/209] Compiling SwiftSyntaxBuilder Indenter.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[193/209] Compiling SwiftSyntaxBuilder ListBuilder.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[194/209] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[195/209] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[196/209] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[197/209] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[198/209] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[199/209] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[200/209] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[201/209] Emitting module SwiftSyntaxBuilder
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[202/209] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[203/209] Compiling SwiftSyntaxBuilder BuildableNodes.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[204/209] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[205/209] Compiling SwiftSyntaxBuilder ResultBuilders.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[206/210] Wrapping AST for SwiftSyntaxBuilder for debugging
[208/225] Compiling Generator UnsafePointerHelpers.swift
/host/spi-builder-workspace/Generator/Generator/UtilityGen.swift:12:41: warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
10 |
11 | func generateUtility(values: [JGodotUtilityFunction], outputDir: String?) async {
12 |     let p = await PrinterFactory.shared.initPrinter("utility", withPreamble: true)
   |                                         `- warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
13 |     defer {
14 |         if let outputDir {
/host/spi-builder-workspace/Generator/Generator/Printer.swift:10:7: note: class 'Printer' does not conform to the 'Sendable' protocol
  8 | import Foundation
  9 |
 10 | class Printer {
    |       `- note: class 'Printer' does not conform to the 'Sendable' protocol
 11 |     let name: String
 12 |     // Where we accumulate our output for the p/b routines
[209/225] Compiling Generator UtilityGen.swift
/host/spi-builder-workspace/Generator/Generator/UtilityGen.swift:12:41: warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
10 |
11 | func generateUtility(values: [JGodotUtilityFunction], outputDir: String?) async {
12 |     let p = await PrinterFactory.shared.initPrinter("utility", withPreamble: true)
   |                                         `- warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
13 |     defer {
14 |         if let outputDir {
/host/spi-builder-workspace/Generator/Generator/Printer.swift:10:7: note: class 'Printer' does not conform to the 'Sendable' protocol
  8 | import Foundation
  9 |
 10 | class Printer {
    |       `- note: class 'Printer' does not conform to the 'Sendable' protocol
 11 |     let name: String
 12 |     // Where we accumulate our output for the p/b routines
[210/226] Compiling Generator StringOperations.swift
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:105:5: warning: var 'core_types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 | }
104 |
105 | var core_types = [
    |     |- warning: var 'core_types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'core_types' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'core_types' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |               "String",
107 |               "Vector2",
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:250:5: warning: var 'mapStringToSwift' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
248 | }
249 |
250 | var mapStringToSwift = true
    |     |- warning: var 'mapStringToSwift' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'mapStringToSwift' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'mapStringToSwift' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
251 |
252 | /// Given a type definition with its metadata, and the context where the type is being
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:64:28: error: main actor-isolated var 'globalEnums' can not be referenced from a nonisolated context
 43 | /// enum value, or nil if it can not be found.
 44 | /// Example type: "ArrowDirection", value: "0" would return ".up"
 45 | func mapEnumValue (enumDef: String, value: String) -> String? {
    |      `- note: add '@MainActor' to make global function 'mapEnumValue(enumDef:value:)' part of global actor 'MainActor'
 46 |     func findEnumMatch (element:  JGodotGlobalEnumElement) -> String? {
 47 |         let enumCasePrefix = element.values.commonPrefix()
    :
 62 |     }
 63 |     let t = enumDef.dropFirst(6)
 64 |     if let globalEnumDef = globalEnums [String (t)]  {
    |                            `- error: main actor-isolated var 'globalEnums' can not be referenced from a nonisolated context
 65 |         return findEnumMatch(element: globalEnumDef)
 66 |     }
/host/spi-builder-workspace/Generator/Generator/main.swift:127:5: note: var declared here
125 | }
126 |
127 | var globalEnums: [String: JGodotGlobalEnumElement] = [:]
    |     `- note: var declared here
128 |
129 | // Maps from a the class name to its definition
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:73:19: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 43 | /// enum value, or nil if it can not be found.
 44 | /// Example type: "ArrowDirection", value: "0" would return ".up"
 45 | func mapEnumValue (enumDef: String, value: String) -> String? {
    |      `- note: add '@MainActor' to make global function 'mapEnumValue(enumDef:value:)' part of global actor 'MainActor'
 46 |     func findEnumMatch (element:  JGodotGlobalEnumElement) -> String? {
 47 |         let enumCasePrefix = element.values.commonPrefix()
    :
 71 |     let type = t [t.startIndex..<p]
 72 |     let enumt = t [t.index(p, offsetBy: 1)...]
 73 |     guard let x = classMap [String (type)] else {
    |                   `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 74 |         print ("WARNING: Enum, could not find type \(type) for \(enumDef)")
 75 |         return nil
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:99:18: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 96 | }
 97 |
 98 | func isRefCountedType(_ name: String) -> Bool {
    |      `- note: add '@MainActor' to make global function 'isRefCountedType' part of global actor 'MainActor'
 99 |     if let def = classMap[name] {
    |                  `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
100 |         return def.isRefcounted
101 |     }
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:362:16: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
254 | ///
255 | ///
256 | func getGodotType (_ t: TypeWithMeta?, kind: ArgumentKind = .classes) -> String {
    |      `- note: add '@MainActor' to make global function 'getGodotType(_:kind:)' part of global actor 'MainActor'
257 |     guard let t else {
258 |         return ""
    :
360 |             let nested = SimpleType(type: nestedTypeName, meta: nil)
361 |
362 |             if classMap [nestedTypeName] != nil {
    |                `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
363 |                 return "TypedArray<\(getGodotType (nested))?>"
364 |             } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:371:12: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
254 | ///
255 | ///
256 | func getGodotType (_ t: TypeWithMeta?, kind: ArgumentKind = .classes) -> String {
    |      `- note: add '@MainActor' to make global function 'getGodotType(_:kind:)' part of global actor 'MainActor'
257 |     guard let t else {
258 |         return ""
    :
369 |             return "\(t.type.dropFirst(10))"
370 |         }
371 |         if classMap[t.type] != nil {
    |            `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
372 |             return fallbackClassName(for: t.type)
373 |         }
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:383:22: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
380 | /// containing the Swift-type that is used to store this, and a suitable initialization
381 | /// value for it.
382 | func getBuiltinStorage (_ name: String, asComputedProperty: Bool) -> (String, String) {
    |      `- note: add '@MainActor' to make global function 'getBuiltinStorage(_:asComputedProperty:)' part of global actor 'MainActor'
383 |     guard let size = builtinSizes [name] else {
    |                      `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
384 |         fatalError()
385 |     }
/host/spi-builder-workspace/Generator/Generator/main.swift:202:5: note: var declared here
200 |
201 | let buildConfiguration: String = "float_64"
202 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
203 | for cs in jsonApi.builtinClassSizes {
204 |     if cs.buildConfiguration == buildConfiguration {
[211/226] Compiling Generator TypeHelpers.swift
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:105:5: warning: var 'core_types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 | }
104 |
105 | var core_types = [
    |     |- warning: var 'core_types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'core_types' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'core_types' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |               "String",
107 |               "Vector2",
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:250:5: warning: var 'mapStringToSwift' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
248 | }
249 |
250 | var mapStringToSwift = true
    |     |- warning: var 'mapStringToSwift' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'mapStringToSwift' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'mapStringToSwift' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
251 |
252 | /// Given a type definition with its metadata, and the context where the type is being
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:64:28: error: main actor-isolated var 'globalEnums' can not be referenced from a nonisolated context
 43 | /// enum value, or nil if it can not be found.
 44 | /// Example type: "ArrowDirection", value: "0" would return ".up"
 45 | func mapEnumValue (enumDef: String, value: String) -> String? {
    |      `- note: add '@MainActor' to make global function 'mapEnumValue(enumDef:value:)' part of global actor 'MainActor'
 46 |     func findEnumMatch (element:  JGodotGlobalEnumElement) -> String? {
 47 |         let enumCasePrefix = element.values.commonPrefix()
    :
 62 |     }
 63 |     let t = enumDef.dropFirst(6)
 64 |     if let globalEnumDef = globalEnums [String (t)]  {
    |                            `- error: main actor-isolated var 'globalEnums' can not be referenced from a nonisolated context
 65 |         return findEnumMatch(element: globalEnumDef)
 66 |     }
/host/spi-builder-workspace/Generator/Generator/main.swift:127:5: note: var declared here
125 | }
126 |
127 | var globalEnums: [String: JGodotGlobalEnumElement] = [:]
    |     `- note: var declared here
128 |
129 | // Maps from a the class name to its definition
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:73:19: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 43 | /// enum value, or nil if it can not be found.
 44 | /// Example type: "ArrowDirection", value: "0" would return ".up"
 45 | func mapEnumValue (enumDef: String, value: String) -> String? {
    |      `- note: add '@MainActor' to make global function 'mapEnumValue(enumDef:value:)' part of global actor 'MainActor'
 46 |     func findEnumMatch (element:  JGodotGlobalEnumElement) -> String? {
 47 |         let enumCasePrefix = element.values.commonPrefix()
    :
 71 |     let type = t [t.startIndex..<p]
 72 |     let enumt = t [t.index(p, offsetBy: 1)...]
 73 |     guard let x = classMap [String (type)] else {
    |                   `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 74 |         print ("WARNING: Enum, could not find type \(type) for \(enumDef)")
 75 |         return nil
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:99:18: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 96 | }
 97 |
 98 | func isRefCountedType(_ name: String) -> Bool {
    |      `- note: add '@MainActor' to make global function 'isRefCountedType' part of global actor 'MainActor'
 99 |     if let def = classMap[name] {
    |                  `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
100 |         return def.isRefcounted
101 |     }
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:362:16: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
254 | ///
255 | ///
256 | func getGodotType (_ t: TypeWithMeta?, kind: ArgumentKind = .classes) -> String {
    |      `- note: add '@MainActor' to make global function 'getGodotType(_:kind:)' part of global actor 'MainActor'
257 |     guard let t else {
258 |         return ""
    :
360 |             let nested = SimpleType(type: nestedTypeName, meta: nil)
361 |
362 |             if classMap [nestedTypeName] != nil {
    |                `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
363 |                 return "TypedArray<\(getGodotType (nested))?>"
364 |             } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:371:12: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
254 | ///
255 | ///
256 | func getGodotType (_ t: TypeWithMeta?, kind: ArgumentKind = .classes) -> String {
    |      `- note: add '@MainActor' to make global function 'getGodotType(_:kind:)' part of global actor 'MainActor'
257 |     guard let t else {
258 |         return ""
    :
369 |             return "\(t.type.dropFirst(10))"
370 |         }
371 |         if classMap[t.type] != nil {
    |            `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
372 |             return fallbackClassName(for: t.type)
373 |         }
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:383:22: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
380 | /// containing the Swift-type that is used to store this, and a suitable initialization
381 | /// value for it.
382 | func getBuiltinStorage (_ name: String, asComputedProperty: Bool) -> (String, String) {
    |      `- note: add '@MainActor' to make global function 'getBuiltinStorage(_:asComputedProperty:)' part of global actor 'MainActor'
383 |     guard let size = builtinSizes [name] else {
    |                      `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
384 |         fatalError()
385 |     }
/host/spi-builder-workspace/Generator/Generator/main.swift:202:5: note: var declared here
200 |
201 | let buildConfiguration: String = "float_64"
202 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
203 | for cs in jsonApi.builtinClassSizes {
204 |     if cs.buildConfiguration == buildConfiguration {
[212/226] Compiling Generator GenerationSettings.swift
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:10:5: warning: var 'classesToGenerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | /// Names of classes (without the `.swift` suffix) that should be generated in this run.
10 | var classesToGenerate: Set<String> = []
   |     |- warning: var 'classesToGenerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'classesToGenerate' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'classesToGenerate' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | var classFilterProvided = false
12 |
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:11:5: warning: var 'classFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | /// Names of classes (without the `.swift` suffix) that should be generated in this run.
10 | var classesToGenerate: Set<String> = []
11 | var classFilterProvided = false
   |     |- warning: var 'classFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'classFilterProvided' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'classFilterProvided' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /// Names of classes available to be referenced when generating code, including dependencies.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:14:5: warning: var 'availableClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Names of classes available to be referenced when generating code, including dependencies.
14 | var availableClassNames: Set<String> = []
   |     |- warning: var 'availableClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'availableClassNames' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'availableClassNames' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | var availableClassFilterProvided = false
16 |
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:15:5: warning: var 'availableClassFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | /// Names of classes available to be referenced when generating code, including dependencies.
14 | var availableClassNames: Set<String> = []
15 | var availableClassFilterProvided = false
   |     |- warning: var 'availableClassFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'availableClassFilterProvided' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'availableClassFilterProvided' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// Names of builtin types (without the `.swift` suffix) that should be generated in this run.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:18:5: warning: var 'builtinClassesToGenerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Names of builtin types (without the `.swift` suffix) that should be generated in this run.
18 | var builtinClassesToGenerate: Set<String> = []
   |     |- warning: var 'builtinClassesToGenerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'builtinClassesToGenerate' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'builtinClassesToGenerate' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | var builtinFilterProvided = false
20 |
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:19:5: warning: var 'builtinFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | /// Names of builtin types (without the `.swift` suffix) that should be generated in this run.
18 | var builtinClassesToGenerate: Set<String> = []
19 | var builtinFilterProvided = false
   |     |- warning: var 'builtinFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'builtinFilterProvided' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'builtinFilterProvided' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | /// Godot reference types whose Swift wrappers should not be surfaced in this module.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:23:5: warning: var 'deferredReturnTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | /// Godot reference types whose Swift wrappers should not be surfaced in this module.
22 | /// Instead, raw helper methods returning `GodotNativeObjectPointer?` will be generated.
23 | var deferredReturnTypes: Set<String> = []
   |     |- warning: var 'deferredReturnTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'deferredReturnTypes' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'deferredReturnTypes' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Godot reference types that require high-level Swift extensions to be emitted in this module.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:26:5: warning: var 'deferredExtensionTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Godot reference types that require high-level Swift extensions to be emitted in this module.
26 | var deferredExtensionTypes: Set<String> = []
   |     |- warning: var 'deferredExtensionTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'deferredExtensionTypes' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'deferredExtensionTypes' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Godot classes (without the `.swift` suffix) that are expected to contain raw helper methods
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:30:5: warning: var 'deferredExtensionSourceClasses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | /// Godot classes (without the `.swift` suffix) that are expected to contain raw helper methods
29 | /// for the deferred return types. Extensions will only be generated for classes in this set.
30 | var deferredExtensionSourceClasses: Set<String> = []
   |     |- warning: var 'deferredExtensionSourceClasses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'deferredExtensionSourceClasses' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'deferredExtensionSourceClasses' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | /// Optional lines to inject after the standard generated file preamble.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:33:5: warning: var 'additionalPreamble' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Optional lines to inject after the standard generated file preamble.
33 | var additionalPreamble: String = ""
   |     |- warning: var 'additionalPreamble' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'additionalPreamble' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'additionalPreamble' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// Keeps track of the classes we actually surface (after filtering).
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:36:5: warning: var 'classesSelectedForGeneration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | /// Keeps track of the classes we actually surface (after filtering).
36 | var classesSelectedForGeneration: [String] = []
   |     |- warning: var 'classesSelectedForGeneration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'classesSelectedForGeneration' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'classesSelectedForGeneration' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | /// Utility that trims whitespace and removes the `.swift` suffix when present.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:79:26: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
65 |
66 | /// Finds the closest ancestor that is part of the whitelist, falling back to `Object`.
67 | func fallbackClassName(for original: String) -> String {
   |      `- note: add '@MainActor' to make global function 'fallbackClassName(for:)' part of global actor 'MainActor'
68 |     guard classFilterProvided else {
69 |         return original
   :
77 |     print("Looking for \(original) but did not exist in \(args)")
78 |     var currentName = original
79 |     while let inherits = classMap[currentName]?.inherits {
   |                          `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
80 |         if availableClassNames.contains(inherits) {
81 |             return inherits
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:216:28: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
214 |                         translation = .direct
215 |                     } else {
216 |                         if builtinSizes[src.type] != nil && src.type != "Object" {
    |                            `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
217 |                             translation = .contentRef
218 |                         } else if classMap[src.type] != nil {
/host/spi-builder-workspace/Generator/Generator/main.swift:202:5: note: var declared here
200 |
201 | let buildConfiguration: String = "float_64"
202 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
203 | for cs in jsonApi.builtinClassSizes {
204 |     if cs.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:218:35: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
216 |                         if builtinSizes[src.type] != nil && src.type != "Object" {
217 |                             translation = .contentRef
218 |                         } else if classMap[src.type] != nil {
    |                                   `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
219 |                             if options.contains(.nonOptionalObjects) {
220 |                                 translation = .objectRef(isOptional: false)
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:573:42: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
465 | ///  - usedMethods: a set of methods that have been referenced by properties, to determine whether we make this public or private
466 | /// - Returns: nil, or the method we surfaced that needs to have the virtual supporting infrastructured wired up
467 | func generateMethod(_ p: Printer, method: MethodDefinition, className: String, cdef: JClassInfo?, usedMethods: Set<String>, generatedMethodKind: GeneratedMethodKind, asSingleton: Bool) throws -> String? {
    |      `- note: add '@MainActor' to make global function 'generateMethod(_:method:className:cdef:usedMethods:generatedMethodKind:asSingleton:)' part of global actor 'MainActor'
468 |
469 |     let arguments = method.arguments ?? []
    :
571 |     var signatureArgs: [String] = []
572 |     let godotReturnType = method.returnValue?.type
573 |     let godotReturnTypeIsReferenceType = classMap [godotReturnType ?? ""] != nil
    |                                          `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
574 |     let returnOptional = godotReturnType == "Variant" || godotReturnTypeIsReferenceType && isReturnOptional(className: className, method: method.name)
575 |     let returnType = getGodotType(method.returnValue) + (returnOptional ? "?" : "")
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:645:27: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
621 |     }
622 |
623 |     func getCallResultArgument() -> String {
    |          `- note: add '@MainActor' to make local function 'getCallResultArgument()' part of global actor 'MainActor'
624 |         let ptrResult: String
625 |         if returnType != "" {
    :
643 |                 } else if frameworkType {
644 |                     ptrResult = "&_result"
645 |                 } else if builtinSizes [godotReturnType] != nil {
    |                           `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
646 |                     ptrResult = "&_result.content"
647 |                 } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:202:5: note: var declared here
200 |
201 | let buildConfiguration: String = "float_64"
202 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
203 | for cs in jsonApi.builtinClassSizes {
204 |     if cs.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:713:16: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
465 | ///  - usedMethods: a set of methods that have been referenced by properties, to determine whether we make this public or private
466 | /// - Returns: nil, or the method we surfaced that needs to have the virtual supporting infrastructured wired up
467 | func generateMethod(_ p: Printer, method: MethodDefinition, className: String, cdef: JClassInfo?, usedMethods: Set<String>, generatedMethodKind: GeneratedMethodKind, asSingleton: Bool) throws -> String? {
    |      `- note: add '@MainActor' to make global function 'generateMethod(_:method:className:cdef:usedMethods:generatedMethodKind:asSingleton:)' part of global actor 'MainActor'
468 |
469 |     let arguments = method.arguments ?? []
    :
711 |             isOptional = true
712 |         } else {
713 |             if classMap [arg.type] != nil {
    |                `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
714 |                 isOptional = isMethodArgumentOptional(className: className, method: method.name, arg: arg.name)
715 |             } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
[213/226] Compiling Generator MethodGen.swift
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:10:5: warning: var 'classesToGenerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | /// Names of classes (without the `.swift` suffix) that should be generated in this run.
10 | var classesToGenerate: Set<String> = []
   |     |- warning: var 'classesToGenerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'classesToGenerate' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'classesToGenerate' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | var classFilterProvided = false
12 |
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:11:5: warning: var 'classFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | /// Names of classes (without the `.swift` suffix) that should be generated in this run.
10 | var classesToGenerate: Set<String> = []
11 | var classFilterProvided = false
   |     |- warning: var 'classFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'classFilterProvided' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'classFilterProvided' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /// Names of classes available to be referenced when generating code, including dependencies.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:14:5: warning: var 'availableClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Names of classes available to be referenced when generating code, including dependencies.
14 | var availableClassNames: Set<String> = []
   |     |- warning: var 'availableClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'availableClassNames' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'availableClassNames' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | var availableClassFilterProvided = false
16 |
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:15:5: warning: var 'availableClassFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | /// Names of classes available to be referenced when generating code, including dependencies.
14 | var availableClassNames: Set<String> = []
15 | var availableClassFilterProvided = false
   |     |- warning: var 'availableClassFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'availableClassFilterProvided' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'availableClassFilterProvided' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// Names of builtin types (without the `.swift` suffix) that should be generated in this run.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:18:5: warning: var 'builtinClassesToGenerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Names of builtin types (without the `.swift` suffix) that should be generated in this run.
18 | var builtinClassesToGenerate: Set<String> = []
   |     |- warning: var 'builtinClassesToGenerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'builtinClassesToGenerate' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'builtinClassesToGenerate' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | var builtinFilterProvided = false
20 |
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:19:5: warning: var 'builtinFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | /// Names of builtin types (without the `.swift` suffix) that should be generated in this run.
18 | var builtinClassesToGenerate: Set<String> = []
19 | var builtinFilterProvided = false
   |     |- warning: var 'builtinFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'builtinFilterProvided' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'builtinFilterProvided' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | /// Godot reference types whose Swift wrappers should not be surfaced in this module.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:23:5: warning: var 'deferredReturnTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | /// Godot reference types whose Swift wrappers should not be surfaced in this module.
22 | /// Instead, raw helper methods returning `GodotNativeObjectPointer?` will be generated.
23 | var deferredReturnTypes: Set<String> = []
   |     |- warning: var 'deferredReturnTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'deferredReturnTypes' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'deferredReturnTypes' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Godot reference types that require high-level Swift extensions to be emitted in this module.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:26:5: warning: var 'deferredExtensionTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Godot reference types that require high-level Swift extensions to be emitted in this module.
26 | var deferredExtensionTypes: Set<String> = []
   |     |- warning: var 'deferredExtensionTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'deferredExtensionTypes' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'deferredExtensionTypes' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Godot classes (without the `.swift` suffix) that are expected to contain raw helper methods
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:30:5: warning: var 'deferredExtensionSourceClasses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | /// Godot classes (without the `.swift` suffix) that are expected to contain raw helper methods
29 | /// for the deferred return types. Extensions will only be generated for classes in this set.
30 | var deferredExtensionSourceClasses: Set<String> = []
   |     |- warning: var 'deferredExtensionSourceClasses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'deferredExtensionSourceClasses' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'deferredExtensionSourceClasses' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | /// Optional lines to inject after the standard generated file preamble.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:33:5: warning: var 'additionalPreamble' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Optional lines to inject after the standard generated file preamble.
33 | var additionalPreamble: String = ""
   |     |- warning: var 'additionalPreamble' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'additionalPreamble' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'additionalPreamble' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// Keeps track of the classes we actually surface (after filtering).
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:36:5: warning: var 'classesSelectedForGeneration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | /// Keeps track of the classes we actually surface (after filtering).
36 | var classesSelectedForGeneration: [String] = []
   |     |- warning: var 'classesSelectedForGeneration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'classesSelectedForGeneration' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'classesSelectedForGeneration' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | /// Utility that trims whitespace and removes the `.swift` suffix when present.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:79:26: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
65 |
66 | /// Finds the closest ancestor that is part of the whitelist, falling back to `Object`.
67 | func fallbackClassName(for original: String) -> String {
   |      `- note: add '@MainActor' to make global function 'fallbackClassName(for:)' part of global actor 'MainActor'
68 |     guard classFilterProvided else {
69 |         return original
   :
77 |     print("Looking for \(original) but did not exist in \(args)")
78 |     var currentName = original
79 |     while let inherits = classMap[currentName]?.inherits {
   |                          `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
80 |         if availableClassNames.contains(inherits) {
81 |             return inherits
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:216:28: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
214 |                         translation = .direct
215 |                     } else {
216 |                         if builtinSizes[src.type] != nil && src.type != "Object" {
    |                            `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
217 |                             translation = .contentRef
218 |                         } else if classMap[src.type] != nil {
/host/spi-builder-workspace/Generator/Generator/main.swift:202:5: note: var declared here
200 |
201 | let buildConfiguration: String = "float_64"
202 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
203 | for cs in jsonApi.builtinClassSizes {
204 |     if cs.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:218:35: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
216 |                         if builtinSizes[src.type] != nil && src.type != "Object" {
217 |                             translation = .contentRef
218 |                         } else if classMap[src.type] != nil {
    |                                   `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
219 |                             if options.contains(.nonOptionalObjects) {
220 |                                 translation = .objectRef(isOptional: false)
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:573:42: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
465 | ///  - usedMethods: a set of methods that have been referenced by properties, to determine whether we make this public or private
466 | /// - Returns: nil, or the method we surfaced that needs to have the virtual supporting infrastructured wired up
467 | func generateMethod(_ p: Printer, method: MethodDefinition, className: String, cdef: JClassInfo?, usedMethods: Set<String>, generatedMethodKind: GeneratedMethodKind, asSingleton: Bool) throws -> String? {
    |      `- note: add '@MainActor' to make global function 'generateMethod(_:method:className:cdef:usedMethods:generatedMethodKind:asSingleton:)' part of global actor 'MainActor'
468 |
469 |     let arguments = method.arguments ?? []
    :
571 |     var signatureArgs: [String] = []
572 |     let godotReturnType = method.returnValue?.type
573 |     let godotReturnTypeIsReferenceType = classMap [godotReturnType ?? ""] != nil
    |                                          `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
574 |     let returnOptional = godotReturnType == "Variant" || godotReturnTypeIsReferenceType && isReturnOptional(className: className, method: method.name)
575 |     let returnType = getGodotType(method.returnValue) + (returnOptional ? "?" : "")
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:645:27: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
621 |     }
622 |
623 |     func getCallResultArgument() -> String {
    |          `- note: add '@MainActor' to make local function 'getCallResultArgument()' part of global actor 'MainActor'
624 |         let ptrResult: String
625 |         if returnType != "" {
    :
643 |                 } else if frameworkType {
644 |                     ptrResult = "&_result"
645 |                 } else if builtinSizes [godotReturnType] != nil {
    |                           `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
646 |                     ptrResult = "&_result.content"
647 |                 } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:202:5: note: var declared here
200 |
201 | let buildConfiguration: String = "float_64"
202 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
203 | for cs in jsonApi.builtinClassSizes {
204 |     if cs.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:713:16: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
465 | ///  - usedMethods: a set of methods that have been referenced by properties, to determine whether we make this public or private
466 | /// - Returns: nil, or the method we surfaced that needs to have the virtual supporting infrastructured wired up
467 | func generateMethod(_ p: Printer, method: MethodDefinition, className: String, cdef: JClassInfo?, usedMethods: Set<String>, generatedMethodKind: GeneratedMethodKind, asSingleton: Bool) throws -> String? {
    |      `- note: add '@MainActor' to make global function 'generateMethod(_:method:className:cdef:usedMethods:generatedMethodKind:asSingleton:)' part of global actor 'MainActor'
468 |
469 |     let arguments = method.arguments ?? []
    :
711 |             isOptional = true
712 |         } else {
713 |             if classMap [arg.type] != nil {
    |                `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
714 |                 isOptional = isMethodArgumentOptional(className: className, method: method.name, arg: arg.name)
715 |             } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
[214/226] Compiling Generator NativeStructures.swift
[215/226] Compiling Generator Printer.swift
[216/226] Compiling Generator main.swift
/host/spi-builder-workspace/Generator/Generator/main.swift:190:41: error: main actor-isolated var 'structTypes' can not be referenced from a nonisolated context
174 | }
175 |
176 | private var structTypes: Set<String> = [
    |             `- note: var declared here
177 |     "const void*",
178 |     "AudioFrame*",
    :
188 | /// - parameter type: A type name as found in `extension_api.json`.
189 | /// - returns: True if the type is represented in Swift as simple `struct` with fields (or as a built-in Swift type), not wrapping a handle (pointer) to a native Godot object.
190 | func isStruct(_ type: String) -> Bool { structTypes.contains(type) }
    |      |                                  `- error: main actor-isolated var 'structTypes' can not be referenced from a nonisolated context
    |      `- note: add '@MainActor' to make global function 'isStruct' part of global actor 'MainActor'
191 |
192 | var builtinMap: [String: JGodotBuiltinClass] = [:]
/host/spi-builder-workspace/Generator/Generator/main.swift:240:58: warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
238 | struct Generator {
239 |     func run() async throws {
240 |         let coreDefPrinter = await PrinterFactory.shared.initPrinter("core-defs", withPreamble: true)
    |                                                          `- warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
241 |         generateUnsafePointerHelpers(coreDefPrinter)
242 |         generateEnums(coreDefPrinter, cdef: nil, values: jsonApi.globalEnums, prefix: "")
/host/spi-builder-workspace/Generator/Generator/Printer.swift:10:7: note: class 'Printer' does not conform to the 'Sendable' protocol
  8 | import Foundation
  9 |
 10 | class Printer {
    |       `- note: class 'Printer' does not conform to the 'Sendable' protocol
 11 |     let name: String
 12 |     // Where we accumulate our output for the p/b routines
/host/spi-builder-workspace/Generator/Generator/main.swift:242:58: warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
240 |         let coreDefPrinter = await PrinterFactory.shared.initPrinter("core-defs", withPreamble: true)
241 |         generateUnsafePointerHelpers(coreDefPrinter)
242 |         generateEnums(coreDefPrinter, cdef: nil, values: jsonApi.globalEnums, prefix: "")
    |                                                          `- warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
243 |         await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
244 |         await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
/host/spi-builder-workspace/Sources/ExtensionApi/ApiJsonModel.swift:9:15: note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
  7 |
  8 | // MARK: - JGodotExtensionAPI
  9 | public struct JGodotExtensionAPI: Codable {
    |               `- note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
 10 |     public let header: JGodotHeader
 11 |     public let builtinClassSizes: [JGodotBuiltinClassSize]
/host/spi-builder-workspace/Generator/Generator/main.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ExtensionApi'
  1 | import ExtensionApi
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ExtensionApi'
  2 | //  main.swift
  3 | //  SwiftGodot/Generator
/host/spi-builder-workspace/Generator/Generator/main.swift:243:46: warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
241 |         generateUnsafePointerHelpers(coreDefPrinter)
242 |         generateEnums(coreDefPrinter, cdef: nil, values: jsonApi.globalEnums, prefix: "")
243 |         await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
    |                                              `- warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
244 |         await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
245 |         await generateClasses(values: jsonApi.classes, outputDir: generatedDir)
/host/spi-builder-workspace/Sources/ExtensionApi/ApiJsonModel.swift:9:15: note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
  7 |
  8 | // MARK: - JGodotExtensionAPI
  9 | public struct JGodotExtensionAPI: Codable {
    |               `- note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
 10 |     public let header: JGodotHeader
 11 |     public let builtinClassSizes: [JGodotBuiltinClassSize]
/host/spi-builder-workspace/Generator/Generator/main.swift:244:39: warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
242 |         generateEnums(coreDefPrinter, cdef: nil, values: jsonApi.globalEnums, prefix: "")
243 |         await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
244 |         await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
    |                                       `- warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
245 |         await generateClasses(values: jsonApi.classes, outputDir: generatedDir)
246 |
/host/spi-builder-workspace/Sources/ExtensionApi/ApiJsonModel.swift:9:15: note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
  7 |
  8 | // MARK: - JGodotExtensionAPI
  9 | public struct JGodotExtensionAPI: Codable {
    |               `- note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
 10 |     public let header: JGodotHeader
 11 |     public let builtinClassSizes: [JGodotBuiltinClassSize]
/host/spi-builder-workspace/Generator/Generator/main.swift:245:39: warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
243 |         await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
244 |         await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
245 |         await generateClasses(values: jsonApi.classes, outputDir: generatedDir)
    |                                       `- warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
246 |
247 |         generateVariantGodotInterface(coreDefPrinter)
/host/spi-builder-workspace/Sources/ExtensionApi/ApiJsonModel.swift:9:15: note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
  7 |
  8 | // MARK: - JGodotExtensionAPI
  9 | public struct JGodotExtensionAPI: Codable {
    |               `- note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
 10 |     public let header: JGodotHeader
 11 |     public let builtinClassSizes: [JGodotBuiltinClassSize]
/host/spi-builder-workspace/Generator/Generator/main.swift:248:58: warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
246 |
247 |         generateVariantGodotInterface(coreDefPrinter)
248 |         generateNativeStructures(coreDefPrinter, values: jsonApi.nativeStructures)
    |                                                          `- warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
249 |
250 |         if let generatedBuiltinDir {
/host/spi-builder-workspace/Sources/ExtensionApi/ApiJsonModel.swift:9:15: note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
  7 |
  8 | // MARK: - JGodotExtensionAPI
  9 | public struct JGodotExtensionAPI: Codable {
    |               `- note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
 10 |     public let header: JGodotHeader
 11 |     public let builtinClassSizes: [JGodotBuiltinClassSize]
/host/spi-builder-workspace/Generator/Generator/main.swift:242:9: warning: expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode
240 |         let coreDefPrinter = await PrinterFactory.shared.initPrinter("core-defs", withPreamble: true)
241 |         generateUnsafePointerHelpers(coreDefPrinter)
242 |         generateEnums(coreDefPrinter, cdef: nil, values: jsonApi.globalEnums, prefix: "")
    |         |                                                `- note: property access is 'async'
    |         `- warning: expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode
243 |         await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
244 |         await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
/host/spi-builder-workspace/Generator/Generator/main.swift:248:9: warning: expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode
246 |
247 |         generateVariantGodotInterface(coreDefPrinter)
248 |         generateNativeStructures(coreDefPrinter, values: jsonApi.nativeStructures)
    |         |                                                `- note: property access is 'async'
    |         `- warning: expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode
249 |
250 |         if let generatedBuiltinDir {
/host/spi-builder-workspace/Generator/Generator/main.swift:254:12: error: expression is 'async' but is not marked with 'await'
252 |         }
253 |
254 |         if combineOutput {
    |            |- error: expression is 'async' but is not marked with 'await'
    |            `- note: property access is 'async'
255 |             await PrinterFactory.shared.saveMultiplexed(outputDir)
256 |         }
[217/226] Emitting module Generator
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:601:5: warning: var 'builtinGodotTypeNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 599 |     case isClass
 600 | }
 601 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
     |     |- warning: var 'builtinGodotTypeNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |     |- note: convert 'builtinGodotTypeNames' to a 'let' constant to make 'Sendable' shared state immutable
     |     |- note: add '@MainActor' to make var 'builtinGodotTypeNames' part of global actor 'MainActor'
     |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 602 | var builtinClassStorage: [String:String] = [:]
 603 |
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:602:5: warning: var 'builtinClassStorage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 600 | }
 601 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
 602 | var builtinClassStorage: [String:String] = [:]
     |     |- warning: var 'builtinClassStorage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |     |- note: convert 'builtinClassStorage' to a 'let' constant to make 'Sendable' shared state immutable
     |     |- note: add '@MainActor' to make var 'builtinClassStorage' part of global actor 'MainActor'
     |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 603 |
 604 | func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) async {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:485:5: warning: var 'okList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
483 | var skipList = Set<String>()
484 | #else
485 | var okList = Set<String>()
    |     |- warning: var 'okList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'okList' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'okList' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
486 | var skipList = Set<String>()
487 | #endif
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:486:5: warning: var 'skipList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
484 | #else
485 | var okList = Set<String>()
486 | var skipList = Set<String>()
    |     |- warning: var 'skipList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'skipList' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'skipList' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
487 | #endif
488 |
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:12:5: warning: let 'rxConstantParam' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | @available(macOS 13.0, iOS 16.0, *)
 12 | let rxConstantParam: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(constant|param) ([\\w\\._@]+)\\]")
    |     |- warning: let 'rxConstantParam' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxConstantParam' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 | @available(macOS 13.0, iOS 16.0, *)
 14 | let rxEnumMethodMember: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(enum|method|member) ([\\w\\.@_/]+)\\]")
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:14:5: warning: let 'rxEnumMethodMember' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
 12 | let rxConstantParam: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(constant|param) ([\\w\\._@]+)\\]")
 13 | @available(macOS 13.0, iOS 16.0, *)
 14 | let rxEnumMethodMember: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(enum|method|member) ([\\w\\.@_/]+)\\]")
    |     |- warning: let 'rxEnumMethodMember' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxEnumMethodMember' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 | @available(macOS 13.0, iOS 16.0, *)
 16 | let rxTypeName: Regex<(Substring, Substring)> = try! Regex ("\\[([A-Z]\\w+)\\]")
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:16:5: warning: let 'rxTypeName' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
 14 | let rxEnumMethodMember: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(enum|method|member) ([\\w\\.@_/]+)\\]")
 15 | @available(macOS 13.0, iOS 16.0, *)
 16 | let rxTypeName: Regex<(Substring, Substring)> = try! Regex ("\\[([A-Z]\\w+)\\]")
    |     |- warning: let 'rxTypeName' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxTypeName' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 | @available(macOS 13.0, iOS 16.0, *)
 18 | let rxEmptyLeading: Regex<Substring> = try! Regex ("\\s+")
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:18:5: warning: let 'rxEmptyLeading' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
 16 | let rxTypeName: Regex<(Substring, Substring)> = try! Regex ("\\[([A-Z]\\w+)\\]")
 17 | @available(macOS 13.0, iOS 16.0, *)
 18 | let rxEmptyLeading: Regex<Substring> = try! Regex ("\\s+")
    |     |- warning: let 'rxEmptyLeading' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxEmptyLeading' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 | @available(macOS 13.0, iOS 16.0, *)
 20 | let rxUrl: Regex<(Substring,Substring)> = try! Regex ("\\[url=(.*?)\\]")
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:20:5: warning: let 'rxUrl' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | let rxEmptyLeading: Regex<Substring> = try! Regex ("\\s+")
 19 | @available(macOS 13.0, iOS 16.0, *)
 20 | let rxUrl: Regex<(Substring,Substring)> = try! Regex ("\\[url=(.*?)\\]")
    |     |- warning: let 'rxUrl' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxUrl' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 | // If the string contains a ".", it will return a pair
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:10:5: warning: var 'classesToGenerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | /// Names of classes (without the `.swift` suffix) that should be generated in this run.
10 | var classesToGenerate: Set<String> = []
   |     |- warning: var 'classesToGenerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'classesToGenerate' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'classesToGenerate' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | var classFilterProvided = false
12 |
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:11:5: warning: var 'classFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | /// Names of classes (without the `.swift` suffix) that should be generated in this run.
10 | var classesToGenerate: Set<String> = []
11 | var classFilterProvided = false
   |     |- warning: var 'classFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'classFilterProvided' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'classFilterProvided' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /// Names of classes available to be referenced when generating code, including dependencies.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:14:5: warning: var 'availableClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Names of classes available to be referenced when generating code, including dependencies.
14 | var availableClassNames: Set<String> = []
   |     |- warning: var 'availableClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'availableClassNames' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'availableClassNames' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | var availableClassFilterProvided = false
16 |
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:15:5: warning: var 'availableClassFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | /// Names of classes available to be referenced when generating code, including dependencies.
14 | var availableClassNames: Set<String> = []
15 | var availableClassFilterProvided = false
   |     |- warning: var 'availableClassFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'availableClassFilterProvided' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'availableClassFilterProvided' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// Names of builtin types (without the `.swift` suffix) that should be generated in this run.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:18:5: warning: var 'builtinClassesToGenerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Names of builtin types (without the `.swift` suffix) that should be generated in this run.
18 | var builtinClassesToGenerate: Set<String> = []
   |     |- warning: var 'builtinClassesToGenerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'builtinClassesToGenerate' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'builtinClassesToGenerate' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | var builtinFilterProvided = false
20 |
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:19:5: warning: var 'builtinFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | /// Names of builtin types (without the `.swift` suffix) that should be generated in this run.
18 | var builtinClassesToGenerate: Set<String> = []
19 | var builtinFilterProvided = false
   |     |- warning: var 'builtinFilterProvided' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'builtinFilterProvided' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'builtinFilterProvided' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | /// Godot reference types whose Swift wrappers should not be surfaced in this module.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:23:5: warning: var 'deferredReturnTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | /// Godot reference types whose Swift wrappers should not be surfaced in this module.
22 | /// Instead, raw helper methods returning `GodotNativeObjectPointer?` will be generated.
23 | var deferredReturnTypes: Set<String> = []
   |     |- warning: var 'deferredReturnTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'deferredReturnTypes' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'deferredReturnTypes' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Godot reference types that require high-level Swift extensions to be emitted in this module.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:26:5: warning: var 'deferredExtensionTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Godot reference types that require high-level Swift extensions to be emitted in this module.
26 | var deferredExtensionTypes: Set<String> = []
   |     |- warning: var 'deferredExtensionTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'deferredExtensionTypes' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'deferredExtensionTypes' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Godot classes (without the `.swift` suffix) that are expected to contain raw helper methods
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:30:5: warning: var 'deferredExtensionSourceClasses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | /// Godot classes (without the `.swift` suffix) that are expected to contain raw helper methods
29 | /// for the deferred return types. Extensions will only be generated for classes in this set.
30 | var deferredExtensionSourceClasses: Set<String> = []
   |     |- warning: var 'deferredExtensionSourceClasses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'deferredExtensionSourceClasses' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'deferredExtensionSourceClasses' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | /// Optional lines to inject after the standard generated file preamble.
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:33:5: warning: var 'additionalPreamble' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Optional lines to inject after the standard generated file preamble.
33 | var additionalPreamble: String = ""
   |     |- warning: var 'additionalPreamble' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'additionalPreamble' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'additionalPreamble' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// Keeps track of the classes we actually surface (after filtering).
/host/spi-builder-workspace/Generator/Generator/GenerationSettings.swift:36:5: warning: var 'classesSelectedForGeneration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | /// Keeps track of the classes we actually surface (after filtering).
36 | var classesSelectedForGeneration: [String] = []
   |     |- warning: var 'classesSelectedForGeneration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'classesSelectedForGeneration' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'classesSelectedForGeneration' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | /// Utility that trims whitespace and removes the `.swift` suffix when present.
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:105:5: warning: var 'core_types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 | }
104 |
105 | var core_types = [
    |     |- warning: var 'core_types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'core_types' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'core_types' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |               "String",
107 |               "Vector2",
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:250:5: warning: var 'mapStringToSwift' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
248 | }
249 |
250 | var mapStringToSwift = true
    |     |- warning: var 'mapStringToSwift' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'mapStringToSwift' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'mapStringToSwift' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
251 |
252 | /// Given a type definition with its metadata, and the context where the type is being
[218/226] Compiling Generator DocModel.swift
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:12:5: warning: let 'rxConstantParam' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | @available(macOS 13.0, iOS 16.0, *)
 12 | let rxConstantParam: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(constant|param) ([\\w\\._@]+)\\]")
    |     |- warning: let 'rxConstantParam' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxConstantParam' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 | @available(macOS 13.0, iOS 16.0, *)
 14 | let rxEnumMethodMember: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(enum|method|member) ([\\w\\.@_/]+)\\]")
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:14:5: warning: let 'rxEnumMethodMember' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
 12 | let rxConstantParam: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(constant|param) ([\\w\\._@]+)\\]")
 13 | @available(macOS 13.0, iOS 16.0, *)
 14 | let rxEnumMethodMember: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(enum|method|member) ([\\w\\.@_/]+)\\]")
    |     |- warning: let 'rxEnumMethodMember' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxEnumMethodMember' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 | @available(macOS 13.0, iOS 16.0, *)
 16 | let rxTypeName: Regex<(Substring, Substring)> = try! Regex ("\\[([A-Z]\\w+)\\]")
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:16:5: warning: let 'rxTypeName' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
 14 | let rxEnumMethodMember: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(enum|method|member) ([\\w\\.@_/]+)\\]")
 15 | @available(macOS 13.0, iOS 16.0, *)
 16 | let rxTypeName: Regex<(Substring, Substring)> = try! Regex ("\\[([A-Z]\\w+)\\]")
    |     |- warning: let 'rxTypeName' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxTypeName' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 | @available(macOS 13.0, iOS 16.0, *)
 18 | let rxEmptyLeading: Regex<Substring> = try! Regex ("\\s+")
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:18:5: warning: let 'rxEmptyLeading' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
 16 | let rxTypeName: Regex<(Substring, Substring)> = try! Regex ("\\[([A-Z]\\w+)\\]")
 17 | @available(macOS 13.0, iOS 16.0, *)
 18 | let rxEmptyLeading: Regex<Substring> = try! Regex ("\\s+")
    |     |- warning: let 'rxEmptyLeading' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxEmptyLeading' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 | @available(macOS 13.0, iOS 16.0, *)
 20 | let rxUrl: Regex<(Substring,Substring)> = try! Regex ("\\[url=(.*?)\\]")
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:20:5: warning: let 'rxUrl' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | let rxEmptyLeading: Regex<Substring> = try! Regex ("\\s+")
 19 | @available(macOS 13.0, iOS 16.0, *)
 20 | let rxUrl: Regex<(Substring,Substring)> = try! Regex ("\\[url=(.*?)\\]")
    |     |- warning: let 'rxUrl' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxUrl' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 | // If the string contains a ".", it will return a pair
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:89:19: warning: main actor-isolated let 'jsonApi' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 46 | //    }
 47 |
 48 |     func lookupConstant (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'lookupConstant' part of global actor 'MainActor'
 49 |         func lookInDef (def: JClassInfo, match: String, local: Bool) -> String? {
 50 |             // TODO: for builtins, we wont have a cdef
    :
 87 |             }
 88 |         }
 89 |         for ed in jsonApi.globalEnums {
    |                   `- warning: main actor-isolated let 'jsonApi' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 90 |             for ev in ed.values {
 91 |                 if ev.name == txt {
/host/spi-builder-workspace/Generator/Generator/main.swift:105:5: note: let declared here
103 |
104 | let jsonData = try! Data(url: URL(fileURLWithPath: jsonFile))
105 | let jsonApi = try! JSONDecoder().decode(JGodotExtensionAPI.self, from: jsonData)
    |     `- note: let declared here
106 |
107 | func dropMatchingPrefix(_ enumName: String, _ enumKey: String) -> String {
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:107:27: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 46 | //    }
 47 |
 48 |     func lookupConstant (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'lookupConstant' part of global actor 'MainActor'
 49 |         func lookInDef (def: JClassInfo, match: String, local: Bool) -> String? {
 50 |             // TODO: for builtins, we wont have a cdef
    :
105 |         let (type, name) = splitAtLastDot(str: txt)
106 |         if type != "" {
107 |             if let ldef = classMap [type] {
    |                           `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
108 |                 if let r = lookInDef(def: ldef, match: name, local: false) {
109 |                     return "``\(getGodotType(SimpleType (type: type)) + "/" + r)``"
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:111:34: error: main actor-isolated var 'builtinMap' can not be referenced from a nonisolated context
 46 | //    }
 47 |
 48 |     func lookupConstant (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'lookupConstant' part of global actor 'MainActor'
 49 |         func lookInDef (def: JClassInfo, match: String, local: Bool) -> String? {
 50 |             // TODO: for builtins, we wont have a cdef
    :
109 |                     return "``\(getGodotType(SimpleType (type: type)) + "/" + r)``"
110 |                 }
111 |             } else if let ldef = builtinMap[type] {
    |                                  `- error: main actor-isolated var 'builtinMap' can not be referenced from a nonisolated context
112 |                 if let r = lookInDef(def: ldef, match: name, local: false) {
113 |                     return "``\(getGodotType(SimpleType (type: type)) + "/" + r)``"
/host/spi-builder-workspace/Generator/Generator/main.swift:192:5: note: var declared here
190 | func isStruct(_ type: String) -> Bool { structTypes.contains(type) }
191 |
192 | var builtinMap: [String: JGodotBuiltinClass] = [:]
    |     `- note: var declared here
193 |
194 | for x in jsonApi.builtinClasses {
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:169:24: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
147 |     }
148 |
149 |     func convertMethod (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'convertMethod' part of global actor 'MainActor'
150 |         if txt.starts(with: "@") {
151 |             // TODO, examples:
    :
167 |         var args = ""
168 |         if let type {
169 |             if let m = classMap [type] {
    |                        `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
170 |                 if let method = findMethod (name: member, on: m) {
171 |                     args = assembleArgs (method, method.arguments)
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:173:31: error: main actor-isolated var 'builtinMap' can not be referenced from a nonisolated context
147 |     }
148 |
149 |     func convertMethod (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'convertMethod' part of global actor 'MainActor'
150 |         if txt.starts(with: "@") {
151 |             // TODO, examples:
    :
171 |                     args = assembleArgs (method, method.arguments)
172 |                 }
173 |             } else if let m = builtinMap [type] {
    |                               `- error: main actor-isolated var 'builtinMap' can not be referenced from a nonisolated context
174 |                 if let method = findMethod (name: member, on: m) {
175 |                     args = assembleArgs(nil, method.arguments)
/host/spi-builder-workspace/Generator/Generator/main.swift:192:5: note: var declared here
190 | func isStruct(_ type: String) -> Bool { structTypes.contains(type) }
191 |
192 | var builtinMap: [String: JGodotBuiltinClass] = [:]
    |     `- note: var declared here
193 |
194 | for x in jsonApi.builtinClasses {
/host/spi-builder-workspace/Generator/Generator/Enums.swift:15:5: error: main actor-isolated var 'globalEnums' can not be mutated from a nonisolated context
 11 | /// Stores enum definitions so other generator stages (like default-value mapping)
 12 | /// can resolve `enum::Type.Value` even when we skip emitting the corresponding type.
 13 | func registerEnumDefinition(_ enumDef: JGodotGlobalEnumElement, prefix: String?) {
    |      `- note: add '@MainActor' to make global function 'registerEnumDefinition(_:prefix:)' part of global actor 'MainActor'
 14 |     guard let prefix else { return }
 15 |     globalEnums[prefix + enumDef.name] = enumDef
    |     `- error: main actor-isolated var 'globalEnums' can not be mutated from a nonisolated context
 16 | }
 17 |
/host/spi-builder-workspace/Generator/Generator/main.swift:127:5: note: mutation of this var is only permitted within the actor
125 | }
126 |
127 | var globalEnums: [String: JGodotGlobalEnumElement] = [:]
    |     `- note: mutation of this var is only permitted within the actor
128 |
129 | // Maps from a the class name to its definition
/host/spi-builder-workspace/Generator/Generator/Enums.swift:37:22: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 24 |
 25 | // The name of the form 'bitfield::'
 26 | func findEnumDef (name: String) -> JGodotGlobalEnumElement? {
    |      `- note: add '@MainActor' to make global function 'findEnumDef(name:)' part of global actor 'MainActor'
 27 |     guard name.starts(with: "bitfield::") else {
 28 |         return nil
    :
 35 |     }
 36 |     let type = full [full.startIndex..<split]
 37 |     guard let cdef = classMap [String (type)] else {
    |                      `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 38 |         print ("Could not find class \(type) for \(name)")
 39 |         return nil
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
[219/226] Compiling Generator Enums.swift
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:12:5: warning: let 'rxConstantParam' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | @available(macOS 13.0, iOS 16.0, *)
 12 | let rxConstantParam: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(constant|param) ([\\w\\._@]+)\\]")
    |     |- warning: let 'rxConstantParam' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxConstantParam' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 | @available(macOS 13.0, iOS 16.0, *)
 14 | let rxEnumMethodMember: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(enum|method|member) ([\\w\\.@_/]+)\\]")
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:14:5: warning: let 'rxEnumMethodMember' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
 12 | let rxConstantParam: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(constant|param) ([\\w\\._@]+)\\]")
 13 | @available(macOS 13.0, iOS 16.0, *)
 14 | let rxEnumMethodMember: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(enum|method|member) ([\\w\\.@_/]+)\\]")
    |     |- warning: let 'rxEnumMethodMember' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxEnumMethodMember' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 | @available(macOS 13.0, iOS 16.0, *)
 16 | let rxTypeName: Regex<(Substring, Substring)> = try! Regex ("\\[([A-Z]\\w+)\\]")
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:16:5: warning: let 'rxTypeName' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
 14 | let rxEnumMethodMember: Regex<(Substring,Substring,Substring)> = try! Regex ("\\[(enum|method|member) ([\\w\\.@_/]+)\\]")
 15 | @available(macOS 13.0, iOS 16.0, *)
 16 | let rxTypeName: Regex<(Substring, Substring)> = try! Regex ("\\[([A-Z]\\w+)\\]")
    |     |- warning: let 'rxTypeName' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxTypeName' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 | @available(macOS 13.0, iOS 16.0, *)
 18 | let rxEmptyLeading: Regex<Substring> = try! Regex ("\\s+")
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:18:5: warning: let 'rxEmptyLeading' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
 16 | let rxTypeName: Regex<(Substring, Substring)> = try! Regex ("\\[([A-Z]\\w+)\\]")
 17 | @available(macOS 13.0, iOS 16.0, *)
 18 | let rxEmptyLeading: Regex<Substring> = try! Regex ("\\s+")
    |     |- warning: let 'rxEmptyLeading' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxEmptyLeading' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 | @available(macOS 13.0, iOS 16.0, *)
 20 | let rxUrl: Regex<(Substring,Substring)> = try! Regex ("\\[url=(.*?)\\]")
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:20:5: warning: let 'rxUrl' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | let rxEmptyLeading: Regex<Substring> = try! Regex ("\\s+")
 19 | @available(macOS 13.0, iOS 16.0, *)
 20 | let rxUrl: Regex<(Substring,Substring)> = try! Regex ("\\[url=(.*?)\\]")
    |     |- warning: let 'rxUrl' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'rxUrl' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 | // If the string contains a ".", it will return a pair
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:89:19: warning: main actor-isolated let 'jsonApi' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 46 | //    }
 47 |
 48 |     func lookupConstant (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'lookupConstant' part of global actor 'MainActor'
 49 |         func lookInDef (def: JClassInfo, match: String, local: Bool) -> String? {
 50 |             // TODO: for builtins, we wont have a cdef
    :
 87 |             }
 88 |         }
 89 |         for ed in jsonApi.globalEnums {
    |                   `- warning: main actor-isolated let 'jsonApi' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 90 |             for ev in ed.values {
 91 |                 if ev.name == txt {
/host/spi-builder-workspace/Generator/Generator/main.swift:105:5: note: let declared here
103 |
104 | let jsonData = try! Data(url: URL(fileURLWithPath: jsonFile))
105 | let jsonApi = try! JSONDecoder().decode(JGodotExtensionAPI.self, from: jsonData)
    |     `- note: let declared here
106 |
107 | func dropMatchingPrefix(_ enumName: String, _ enumKey: String) -> String {
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:107:27: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 46 | //    }
 47 |
 48 |     func lookupConstant (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'lookupConstant' part of global actor 'MainActor'
 49 |         func lookInDef (def: JClassInfo, match: String, local: Bool) -> String? {
 50 |             // TODO: for builtins, we wont have a cdef
    :
105 |         let (type, name) = splitAtLastDot(str: txt)
106 |         if type != "" {
107 |             if let ldef = classMap [type] {
    |                           `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
108 |                 if let r = lookInDef(def: ldef, match: name, local: false) {
109 |                     return "``\(getGodotType(SimpleType (type: type)) + "/" + r)``"
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:111:34: error: main actor-isolated var 'builtinMap' can not be referenced from a nonisolated context
 46 | //    }
 47 |
 48 |     func lookupConstant (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'lookupConstant' part of global actor 'MainActor'
 49 |         func lookInDef (def: JClassInfo, match: String, local: Bool) -> String? {
 50 |             // TODO: for builtins, we wont have a cdef
    :
109 |                     return "``\(getGodotType(SimpleType (type: type)) + "/" + r)``"
110 |                 }
111 |             } else if let ldef = builtinMap[type] {
    |                                  `- error: main actor-isolated var 'builtinMap' can not be referenced from a nonisolated context
112 |                 if let r = lookInDef(def: ldef, match: name, local: false) {
113 |                     return "``\(getGodotType(SimpleType (type: type)) + "/" + r)``"
/host/spi-builder-workspace/Generator/Generator/main.swift:192:5: note: var declared here
190 | func isStruct(_ type: String) -> Bool { structTypes.contains(type) }
191 |
192 | var builtinMap: [String: JGodotBuiltinClass] = [:]
    |     `- note: var declared here
193 |
194 | for x in jsonApi.builtinClasses {
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:169:24: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
147 |     }
148 |
149 |     func convertMethod (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'convertMethod' part of global actor 'MainActor'
150 |         if txt.starts(with: "@") {
151 |             // TODO, examples:
    :
167 |         var args = ""
168 |         if let type {
169 |             if let m = classMap [type] {
    |                        `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
170 |                 if let method = findMethod (name: member, on: m) {
171 |                     args = assembleArgs (method, method.arguments)
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/DocModel.swift:173:31: error: main actor-isolated var 'builtinMap' can not be referenced from a nonisolated context
147 |     }
148 |
149 |     func convertMethod (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'convertMethod' part of global actor 'MainActor'
150 |         if txt.starts(with: "@") {
151 |             // TODO, examples:
    :
171 |                     args = assembleArgs (method, method.arguments)
172 |                 }
173 |             } else if let m = builtinMap [type] {
    |                               `- error: main actor-isolated var 'builtinMap' can not be referenced from a nonisolated context
174 |                 if let method = findMethod (name: member, on: m) {
175 |                     args = assembleArgs(nil, method.arguments)
/host/spi-builder-workspace/Generator/Generator/main.swift:192:5: note: var declared here
190 | func isStruct(_ type: String) -> Bool { structTypes.contains(type) }
191 |
192 | var builtinMap: [String: JGodotBuiltinClass] = [:]
    |     `- note: var declared here
193 |
194 | for x in jsonApi.builtinClasses {
/host/spi-builder-workspace/Generator/Generator/Enums.swift:15:5: error: main actor-isolated var 'globalEnums' can not be mutated from a nonisolated context
 11 | /// Stores enum definitions so other generator stages (like default-value mapping)
 12 | /// can resolve `enum::Type.Value` even when we skip emitting the corresponding type.
 13 | func registerEnumDefinition(_ enumDef: JGodotGlobalEnumElement, prefix: String?) {
    |      `- note: add '@MainActor' to make global function 'registerEnumDefinition(_:prefix:)' part of global actor 'MainActor'
 14 |     guard let prefix else { return }
 15 |     globalEnums[prefix + enumDef.name] = enumDef
    |     `- error: main actor-isolated var 'globalEnums' can not be mutated from a nonisolated context
 16 | }
 17 |
/host/spi-builder-workspace/Generator/Generator/main.swift:127:5: note: mutation of this var is only permitted within the actor
125 | }
126 |
127 | var globalEnums: [String: JGodotGlobalEnumElement] = [:]
    |     `- note: mutation of this var is only permitted within the actor
128 |
129 | // Maps from a the class name to its definition
/host/spi-builder-workspace/Generator/Generator/Enums.swift:37:22: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 24 |
 25 | // The name of the form 'bitfield::'
 26 | func findEnumDef (name: String) -> JGodotGlobalEnumElement? {
    |      `- note: add '@MainActor' to make global function 'findEnumDef(name:)' part of global actor 'MainActor'
 27 |     guard name.starts(with: "bitfield::") else {
 28 |         return nil
    :
 35 |     }
 36 |     let type = full [full.startIndex..<split]
 37 |     guard let cdef = classMap [String (type)] else {
    |                      `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 38 |         print ("Could not find class \(type) for \(name)")
 39 |         return nil
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
[220/226] Compiling Generator ClassGen.swift
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:485:5: warning: var 'okList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
483 | var skipList = Set<String>()
484 | #else
485 | var okList = Set<String>()
    |     |- warning: var 'okList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'okList' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'okList' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
486 | var skipList = Set<String>()
487 | #endif
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:486:5: warning: var 'skipList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
484 | #else
485 | var okList = Set<String>()
486 | var skipList = Set<String>()
    |     |- warning: var 'skipList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'skipList' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'skipList' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
487 | #endif
488 |
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:30:12: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
  9 | import ExtensionApi
 10 |
 11 | func makeDefaultInit (godotType: String, initCollection: String = "") -> String {
    |      `- note: add '@MainActor' to make global function 'makeDefaultInit(godotType:initCollection:)' part of global actor 'MainActor'
 12 |     switch godotType {
 13 |     case "Variant":
    :
 28 |         let nestedTypeName = String (t.dropFirst(12))
 29 |         let simple = SimpleType(type: nestedTypeName)
 30 |         if classMap [nestedTypeName] != nil {
    |            `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 31 |             return "TypedArray<\(getGodotType (simple))?>(\(initCollection))"
 32 |         } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:84:46: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 69 | }
 70 |
 71 | func generateVirtualProxy (_ p: Printer,
    |      `- note: add '@MainActor' to make global function 'generateVirtualProxy(_:cdef:methodName:method:)' part of global actor 'MainActor'
 72 |                            cdef: JGodotExtensionAPIClass,
 73 |                            methodName: String,
    :
 82 |     if let ret = method.returnValue {
 83 |         let godotReturnType = ret.type
 84 |         let godotReturnTypeIsReferenceType = classMap [godotReturnType] != nil
    |                                              `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 85 |         returnOptional = godotReturnTypeIsReferenceType && isReturnOptional(className: cdef.name, method: methodName)
 86 |
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:113:23: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
111 |             if arg.type == "String" {
112 |                 argCall += "GString.stringFromGStringPtr (ptr: args [\(i)]!) ?? \"\""
113 |             } else if classMap [arg.type] != nil {
    |                       `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
114 |                 //
115 |                 // This idiom guarantees that: if this is a known object, we surface this
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:180:27: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
178 |                     derefField = "array.content"
179 |                     derefType = "type (of: ret.array.content)"
180 |                 } else if classMap [ret.type] != nil {
    |                           `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
181 |                     derefField = "handle"
182 |                     derefType = " GodotNativeObjectPointer?.self"
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:192:30: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
190 |                     target = "array.content"
191 |                 } else {
192 |                     target = classMap [ret.type] != nil ? "handle" : "content"
    |                              `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
193 |                 }
194 |                 if classMap [ret.type] != nil && isRefCountedType(ret.type) {
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:194:20: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
192 |                     target = classMap [ret.type] != nil ? "handle" : "content"
193 |                 }
194 |                 if classMap [ret.type] != nil && isRefCountedType(ret.type) {
    |                    `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
195 |                     p("gi.ref_set_object(retPtr, ret\(returnOptional ? "?" : "").handle)")
196 |                 } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:350:20: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
339 |     p ("\n/* Properties */\n")
340 |
341 |     func findMethod (forProperty: JGodotProperty, startAt: JGodotExtensionAPIClass, name: String, resolvedName: inout String, argName: inout String) -> JGodotClassMethod? {
    |          `- note: add '@MainActor' to make local function 'findMethod(forProperty:startAt:name:resolvedName:argName:)' part of global actor 'MainActor'
342 |         if let here = methods.first(where: { $0.name == name}) {
343 |             return here
    :
348 |                 return nil
349 |             }
350 |             cdef = classMap [parentName]
    |                    `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
351 |             guard let cdef else {
352 |                 print ("Warning: Missing type \(parentName)")
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:432:46: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
330 |     }
331 | }
332 | func generateProperties (_ p: Printer,
    |      `- note: add '@MainActor' to make global function 'generateProperties(_:cdef:_:_:_:asSingleton:)' part of global actor 'MainActor'
333 |                          cdef: JGodotExtensionAPIClass,
334 |                          _ properties: [JGodotProperty],
    :
430 |         }
431 |         let godotReturnType = method.returnValue?.type
432 |         let godotReturnTypeIsReferenceType = classMap [godotReturnType ?? ""] != nil
    |                                              `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
433 |
434 |         let propertyOptional = godotReturnType == "Variant" || godotReturnTypeIsReferenceType && isReturnOptional(className: cdef.name, method: property.getter)
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:586:23: warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
584 |
585 |     // Determine if it is a singleton, but exclude EditorInterface
586 |     let isSingleton = jsonApi.singletons.contains (where: { $0.name == cdef.name })
    |                       `- warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
587 |     let asSingleton = isSingleton && cdef.name != "EditorInterface"
588 |
/host/spi-builder-workspace/Sources/ExtensionApi/ApiJsonModel.swift:9:15: note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
  7 |
  8 | // MARK: - JGodotExtensionAPI
  9 | public struct JGodotExtensionAPI: Codable {
    |               `- note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
 10 |     public let header: JGodotHeader
 11 |     public let builtinClassSizes: [JGodotBuiltinClassSize]
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ExtensionApi'
  7 |
  8 | import Foundation
  9 | import ExtensionApi
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ExtensionApi'
 10 |
 11 | func makeDefaultInit (godotType: String, initCollection: String = "") -> String {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:590:41: warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
588 |
589 |     // Clear the result
590 |     let p = await PrinterFactory.shared.initPrinter(cdef.name, withPreamble: true)
    |                                         `- warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
591 |
592 |     // Save it
/host/spi-builder-workspace/Generator/Generator/Printer.swift:10:7: note: class 'Printer' does not conform to the 'Sendable' protocol
  8 | import Foundation
  9 |
 10 | class Printer {
    |       `- note: class 'Printer' does not conform to the 'Sendable' protocol
 11 |     let name: String
 12 |     // Where we accumulate our output for the p/b routines
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:586:23: warning: expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode
584 |
585 |     // Determine if it is a singleton, but exclude EditorInterface
586 |     let isSingleton = jsonApi.singletons.contains (where: { $0.name == cdef.name })
    |                       |- warning: expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode
    |                       `- note: property access is 'async'
587 |     let asSingleton = isSingleton && cdef.name != "EditorInterface"
588 |
[221/226] Compiling Generator Data.swift
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:485:5: warning: var 'okList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
483 | var skipList = Set<String>()
484 | #else
485 | var okList = Set<String>()
    |     |- warning: var 'okList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'okList' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'okList' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
486 | var skipList = Set<String>()
487 | #endif
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:486:5: warning: var 'skipList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
484 | #else
485 | var okList = Set<String>()
486 | var skipList = Set<String>()
    |     |- warning: var 'skipList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'skipList' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'skipList' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
487 | #endif
488 |
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:30:12: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
  9 | import ExtensionApi
 10 |
 11 | func makeDefaultInit (godotType: String, initCollection: String = "") -> String {
    |      `- note: add '@MainActor' to make global function 'makeDefaultInit(godotType:initCollection:)' part of global actor 'MainActor'
 12 |     switch godotType {
 13 |     case "Variant":
    :
 28 |         let nestedTypeName = String (t.dropFirst(12))
 29 |         let simple = SimpleType(type: nestedTypeName)
 30 |         if classMap [nestedTypeName] != nil {
    |            `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 31 |             return "TypedArray<\(getGodotType (simple))?>(\(initCollection))"
 32 |         } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:84:46: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 69 | }
 70 |
 71 | func generateVirtualProxy (_ p: Printer,
    |      `- note: add '@MainActor' to make global function 'generateVirtualProxy(_:cdef:methodName:method:)' part of global actor 'MainActor'
 72 |                            cdef: JGodotExtensionAPIClass,
 73 |                            methodName: String,
    :
 82 |     if let ret = method.returnValue {
 83 |         let godotReturnType = ret.type
 84 |         let godotReturnTypeIsReferenceType = classMap [godotReturnType] != nil
    |                                              `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 85 |         returnOptional = godotReturnTypeIsReferenceType && isReturnOptional(className: cdef.name, method: methodName)
 86 |
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:113:23: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
111 |             if arg.type == "String" {
112 |                 argCall += "GString.stringFromGStringPtr (ptr: args [\(i)]!) ?? \"\""
113 |             } else if classMap [arg.type] != nil {
    |                       `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
114 |                 //
115 |                 // This idiom guarantees that: if this is a known object, we surface this
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:180:27: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
178 |                     derefField = "array.content"
179 |                     derefType = "type (of: ret.array.content)"
180 |                 } else if classMap [ret.type] != nil {
    |                           `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
181 |                     derefField = "handle"
182 |                     derefType = " GodotNativeObjectPointer?.self"
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:192:30: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
190 |                     target = "array.content"
191 |                 } else {
192 |                     target = classMap [ret.type] != nil ? "handle" : "content"
    |                              `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
193 |                 }
194 |                 if classMap [ret.type] != nil && isRefCountedType(ret.type) {
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:194:20: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
192 |                     target = classMap [ret.type] != nil ? "handle" : "content"
193 |                 }
194 |                 if classMap [ret.type] != nil && isRefCountedType(ret.type) {
    |                    `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
195 |                     p("gi.ref_set_object(retPtr, ret\(returnOptional ? "?" : "").handle)")
196 |                 } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:350:20: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
339 |     p ("\n/* Properties */\n")
340 |
341 |     func findMethod (forProperty: JGodotProperty, startAt: JGodotExtensionAPIClass, name: String, resolvedName: inout String, argName: inout String) -> JGodotClassMethod? {
    |          `- note: add '@MainActor' to make local function 'findMethod(forProperty:startAt:name:resolvedName:argName:)' part of global actor 'MainActor'
342 |         if let here = methods.first(where: { $0.name == name}) {
343 |             return here
    :
348 |                 return nil
349 |             }
350 |             cdef = classMap [parentName]
    |                    `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
351 |             guard let cdef else {
352 |                 print ("Warning: Missing type \(parentName)")
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:432:46: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
330 |     }
331 | }
332 | func generateProperties (_ p: Printer,
    |      `- note: add '@MainActor' to make global function 'generateProperties(_:cdef:_:_:_:asSingleton:)' part of global actor 'MainActor'
333 |                          cdef: JGodotExtensionAPIClass,
334 |                          _ properties: [JGodotProperty],
    :
430 |         }
431 |         let godotReturnType = method.returnValue?.type
432 |         let godotReturnTypeIsReferenceType = classMap [godotReturnType ?? ""] != nil
    |                                              `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
433 |
434 |         let propertyOptional = godotReturnType == "Variant" || godotReturnTypeIsReferenceType && isReturnOptional(className: cdef.name, method: property.getter)
/host/spi-builder-workspace/Generator/Generator/main.swift:130:5: note: var declared here
128 |
129 | // Maps from a the class name to its definition
130 | var classMap: [String: JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
131 |
132 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:586:23: warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
584 |
585 |     // Determine if it is a singleton, but exclude EditorInterface
586 |     let isSingleton = jsonApi.singletons.contains (where: { $0.name == cdef.name })
    |                       `- warning: non-sendable type 'JGodotExtensionAPI' of let 'jsonApi' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
587 |     let asSingleton = isSingleton && cdef.name != "EditorInterface"
588 |
/host/spi-builder-workspace/Sources/ExtensionApi/ApiJsonModel.swift:9:15: note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
  7 |
  8 | // MARK: - JGodotExtensionAPI
  9 | public struct JGodotExtensionAPI: Codable {
    |               `- note: struct 'JGodotExtensionAPI' does not conform to the 'Sendable' protocol
 10 |     public let header: JGodotHeader
 11 |     public let builtinClassSizes: [JGodotBuiltinClassSize]
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ExtensionApi'
  7 |
  8 | import Foundation
  9 | import ExtensionApi
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ExtensionApi'
 10 |
 11 | func makeDefaultInit (godotType: String, initCollection: String = "") -> String {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:590:41: warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
588 |
589 |     // Clear the result
590 |     let p = await PrinterFactory.shared.initPrinter(cdef.name, withPreamble: true)
    |                                         `- warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
591 |
592 |     // Save it
/host/spi-builder-workspace/Generator/Generator/Printer.swift:10:7: note: class 'Printer' does not conform to the 'Sendable' protocol
  8 | import Foundation
  9 |
 10 | class Printer {
    |       `- note: class 'Printer' does not conform to the 'Sendable' protocol
 11 |     let name: String
 12 |     // Where we accumulate our output for the p/b routines
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:586:23: warning: expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode
584 |
585 |     // Determine if it is a singleton, but exclude EditorInterface
586 |     let isSingleton = jsonApi.singletons.contains (where: { $0.name == cdef.name })
    |                       |- warning: expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode
    |                       `- note: property access is 'async'
587 |     let asSingleton = isSingleton && cdef.name != "EditorInterface"
588 |
[222/226] Compiling Generator Arguments.swift
/host/spi-builder-workspace/Generator/Generator/Arguments.swift:201:16: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
189 | }
190 |
191 | func getArgRef (arg: JGodotArgument) -> String {
    |      `- note: add '@MainActor' to make global function 'getArgRef(arg:)' part of global actor 'MainActor'
192 |     var argref: String
193 |     var optstorage: String
    :
199 |             optstorage = ".content"
200 |         } else {
201 |             if builtinSizes [arg.type] != nil && arg.type != "Object" {
    |                `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
202 |                 optstorage = ".content"
203 |             } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:202:5: note: var declared here
200 |
201 | let buildConfiguration: String = "float_64"
202 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
203 | for cs in jsonApi.builtinClassSizes {
204 |     if cs.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:601:5: warning: var 'builtinGodotTypeNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 599 |     case isClass
 600 | }
 601 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
     |     |- warning: var 'builtinGodotTypeNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |     |- note: convert 'builtinGodotTypeNames' to a 'let' constant to make 'Sendable' shared state immutable
     |     |- note: add '@MainActor' to make var 'builtinGodotTypeNames' part of global actor 'MainActor'
     |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 602 | var builtinClassStorage: [String:String] = [:]
 603 |
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:602:5: warning: var 'builtinClassStorage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 600 | }
 601 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
 602 | var builtinClassStorage: [String:String] = [:]
     |     |- warning: var 'builtinClassStorage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |     |- note: convert 'builtinClassStorage' to a 'let' constant to make 'Sendable' shared state immutable
     |     |- note: add '@MainActor' to make var 'builtinClassStorage' part of global actor 'MainActor'
     |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 603 |
 604 | func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) async {
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:864:59: error: main actor-isolated var 'builtinMemberOffsets' can not be referenced from a nonisolated context
 862 |                 storedMembers = bc.members
 863 |             } else {
 864 |                 if kind == .isStruct, let memberOffsets = builtinMemberOffsets [bc.name] {
     |                                                           `- error: main actor-isolated var 'builtinMemberOffsets' can not be referenced from a nonisolated context
 865 |                     storedMembers = memberOffsets.compactMap({ m in
 866 |                         return bc.members?.first(where: { $0.name == m.member })
/host/spi-builder-workspace/Generator/Generator/main.swift:210:5: note: var declared here
208 |     }
209 | }
210 | var builtinMemberOffsets: [String: [JGodotMember]] = [:]
    |     `- note: var declared here
211 | for mo in jsonApi.builtinClassMemberOffsets {
212 |     if mo.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:1192:58: warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
1190 |         default:
1191 |             // printer for class itself
1192 |             let p: Printer = await PrinterFactory.shared.initPrinter(bc.name, withPreamble: true)
     |                                                          `- warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
1193 |
1194 |             mapStringToSwift = bc.name != "String"
/host/spi-builder-workspace/Generator/Generator/Printer.swift:10:7: note: class 'Printer' does not conform to the 'Sendable' protocol
  8 | import Foundation
  9 |
 10 | class Printer {
    |       `- note: class 'Printer' does not conform to the 'Sendable' protocol
 11 |     let name: String
 12 |     // Where we accumulate our output for the p/b routines
[223/226] Compiling Generator BuiltinGen.swift
/host/spi-builder-workspace/Generator/Generator/Arguments.swift:201:16: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
189 | }
190 |
191 | func getArgRef (arg: JGodotArgument) -> String {
    |      `- note: add '@MainActor' to make global function 'getArgRef(arg:)' part of global actor 'MainActor'
192 |     var argref: String
193 |     var optstorage: String
    :
199 |             optstorage = ".content"
200 |         } else {
201 |             if builtinSizes [arg.type] != nil && arg.type != "Object" {
    |                `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
202 |                 optstorage = ".content"
203 |             } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:202:5: note: var declared here
200 |
201 | let buildConfiguration: String = "float_64"
202 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
203 | for cs in jsonApi.builtinClassSizes {
204 |     if cs.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:601:5: warning: var 'builtinGodotTypeNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 599 |     case isClass
 600 | }
 601 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
     |     |- warning: var 'builtinGodotTypeNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |     |- note: convert 'builtinGodotTypeNames' to a 'let' constant to make 'Sendable' shared state immutable
     |     |- note: add '@MainActor' to make var 'builtinGodotTypeNames' part of global actor 'MainActor'
     |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 602 | var builtinClassStorage: [String:String] = [:]
 603 |
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:602:5: warning: var 'builtinClassStorage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 600 | }
 601 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
 602 | var builtinClassStorage: [String:String] = [:]
     |     |- warning: var 'builtinClassStorage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |     |- note: convert 'builtinClassStorage' to a 'let' constant to make 'Sendable' shared state immutable
     |     |- note: add '@MainActor' to make var 'builtinClassStorage' part of global actor 'MainActor'
     |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 603 |
 604 | func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) async {
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:864:59: error: main actor-isolated var 'builtinMemberOffsets' can not be referenced from a nonisolated context
 862 |                 storedMembers = bc.members
 863 |             } else {
 864 |                 if kind == .isStruct, let memberOffsets = builtinMemberOffsets [bc.name] {
     |                                                           `- error: main actor-isolated var 'builtinMemberOffsets' can not be referenced from a nonisolated context
 865 |                     storedMembers = memberOffsets.compactMap({ m in
 866 |                         return bc.members?.first(where: { $0.name == m.member })
/host/spi-builder-workspace/Generator/Generator/main.swift:210:5: note: var declared here
208 |     }
209 | }
210 | var builtinMemberOffsets: [String: [JGodotMember]] = [:]
    |     `- note: var declared here
211 | for mo in jsonApi.builtinClassMemberOffsets {
212 |     if mo.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:1192:58: warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
1190 |         default:
1191 |             // printer for class itself
1192 |             let p: Printer = await PrinterFactory.shared.initPrinter(bc.name, withPreamble: true)
     |                                                          `- warning: non-sendable result type 'Printer' cannot be sent from actor-isolated context in call to instance method 'initPrinter(_:withPreamble:)'; this is an error in the Swift 6 language mode
1193 |
1194 |             mapStringToSwift = bc.name != "String"
/host/spi-builder-workspace/Generator/Generator/Printer.swift:10:7: note: class 'Printer' does not conform to the 'Sendable' protocol
  8 | import Foundation
  9 |
 10 | class Printer {
    |       `- note: class 'Printer' does not conform to the 'Sendable' protocol
 11 |     let name: String
 12 |     // Where we accumulate our output for the p/b routines
[226/240] Write sources
[229/240] Write swift-version-24593BA9C3E375BF.txt
[231/237] Emitting module ArgumentParserToolInfo
[232/237] Compiling ArgumentParserToolInfo ToolInfo.swift
[233/238] Wrapping AST for ArgumentParserToolInfo for debugging
[235/284] Emitting module ArgumentParser
[236/290] Compiling ArgumentParser Foundation.swift
[237/290] Compiling ArgumentParser Mutex.swift
[238/290] Compiling ArgumentParser Platform.swift
[239/290] Compiling ArgumentParser SequenceExtensions.swift
[240/290] Compiling ArgumentParser StringExtensions.swift
[241/290] Compiling ArgumentParser SwiftExtensions.swift
[242/290] Compiling ArgumentParser DumpHelpGenerator.swift
[243/290] Compiling ArgumentParser HelpCommand.swift
[244/290] Compiling ArgumentParser HelpGenerator.swift
[245/290] Compiling ArgumentParser MessageInfo.swift
[246/290] Compiling ArgumentParser UsageGenerator.swift
[247/290] Compiling ArgumentParser CollectionExtensions.swift
[248/290] Compiling ArgumentParser InputOrigin.swift
[249/290] Compiling ArgumentParser Name.swift
[250/290] Compiling ArgumentParser Parsed.swift
[251/290] Compiling ArgumentParser ParsedValues.swift
[252/290] Compiling ArgumentParser ParserError.swift
[253/290] Compiling ArgumentParser SplitArguments.swift
[254/290] Compiling ArgumentParser Tree.swift
[255/290] Compiling ArgumentParser CodingKeyValidator.swift
[256/290] Compiling ArgumentParser NonsenseFlagsValidator.swift
[257/290] Compiling ArgumentParser ParsableArgumentsValidation.swift
[258/290] Compiling ArgumentParser PositionalArgumentsValidator.swift
[259/290] Compiling ArgumentParser UniqueNamesValidator.swift
[260/290] Compiling ArgumentParser ArgumentVisibility.swift
[261/290] Compiling ArgumentParser CompletionKind.swift
[262/290] Compiling ArgumentParser Errors.swift
[263/290] Compiling ArgumentParser Flag.swift
[264/290] Compiling ArgumentParser NameSpecification.swift
[265/290] Compiling ArgumentParser Option.swift
[266/290] Compiling ArgumentParser OptionGroup.swift
[267/290] Compiling ArgumentParser BashCompletionsGenerator.swift
[268/290] Compiling ArgumentParser CompletionsGenerator.swift
[269/290] Compiling ArgumentParser FishCompletionsGenerator.swift
[270/290] Compiling ArgumentParser ZshCompletionsGenerator.swift
[271/290] Compiling ArgumentParser Argument.swift
[272/290] Compiling ArgumentParser ArgumentDiscussion.swift
[273/290] Compiling ArgumentParser ArgumentHelp.swift
[274/290] Compiling ArgumentParser ParentCommand.swift
[275/290] Compiling ArgumentParser AsyncParsableCommand.swift
[276/290] Compiling ArgumentParser CommandConfiguration.swift
[277/290] Compiling ArgumentParser CommandGroup.swift
[278/290] Compiling ArgumentParser EnumerableFlag.swift
[279/290] Compiling ArgumentParser ExpressibleByArgument.swift
[280/290] Compiling ArgumentParser ParsableArguments.swift
[281/290] Compiling ArgumentParser ParsableCommand.swift
[282/290] Compiling ArgumentParser ArgumentDecoder.swift
[283/290] Compiling ArgumentParser ArgumentDefinition.swift
[284/290] Compiling ArgumentParser ArgumentSet.swift
[285/290] Compiling ArgumentParser CommandParser.swift
[286/290] Compiling ArgumentParser InputKey.swift
[287/291] Wrapping AST for ArgumentParser for debugging
[289/294] Emitting module EntryPointGenerator
[290/294] Compiling EntryPointGenerator EntryPointGenerator.swift
/host/spi-builder-workspace/Sources/EntryPointGenerator/EntryPointGenerator.swift:25:23: error: type of expression is ambiguous without a type annotation
23 |
24 |     mutating func run() throws {
25 |         let visitor = GodotMacroSearchingVisitor(viewMode: .all, logger: verbose ? logVerbose : nil)
   |                       `- error: type of expression is ambiguous without a type annotation
26 |
27 |         logVerbose("Scanning source files...")
/host/spi-builder-workspace/Sources/EntryPointGenerator/EntryPointGenerator.swift:52:70: error: cannot infer contextual base in reference to member 'utf8'
50 |         logVerbose("Writing \(count) to '\(outputFile)'...")
51 |         let outputURL = URL(fileURLWithPath: outputFile)
52 |         try source.write(to: outputURL, atomically: true, encoding: .utf8)
   |                                                                      `- error: cannot infer contextual base in reference to member 'utf8'
53 |         log("Generated swift_entry_point, registering \(count) classes, in \(outputURL.lastPathComponent).")
54 |     }
[291/294] Compiling EntryPointGenerator GodotMacroSearchingVisitor.swift
[1/1] Compiling plugin EntryPointGeneratorPlugin
[2/2] Compiling plugin CodeGeneratorPlugin
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
[5/5] Compiling plugin GenerateManual
[6/6] Compiling plugin GenerateDoccReference
Building for debugging...
error: couldn't build /host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/SwiftGodotRuntime/destination/CodeGeneratorPlugin/GeneratedSources/SwiftGodotRuntime/generated-builtin/AABB.swift because of missing inputs: /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Generator
[6/130] Write sources
[6/130] Compiling _SwiftSyntaxCShims dummy.c
[6/130] Compiling GDExtension GDExtensionSupport.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Found unhandled resource at /host/spi-builder-workspace/Tests/SwiftGodotMacrosTests/Resources
[0/14] Write swift-version-24593BA9C3E375BF.txt
[2/23] Compiling SwiftSyntax510 Empty.swift
[3/23] Compiling SwiftSyntax509 Empty.swift
[4/23] Emitting module SwiftSyntax509
[5/24] Emitting module SwiftSyntax600
[6/24] Emitting module SwiftSyntax510
[7/25] Compiling SwiftSyntax600 Empty.swift
[11/23] Compiling ExtensionApi ApiJsonModel+Extra.swift
[12/87] Emitting module ExtensionApi
[13/87] Compiling ExtensionApi ApiJsonModel.swift
[15/87] Compiling SwiftSyntax AbsolutePosition.swift
[16/87] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[17/87] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[18/87] Compiling SwiftSyntax Assert.swift
[19/87] Compiling SwiftSyntax BumpPtrAllocator.swift
[20/87] Compiling SwiftSyntax CommonAncestor.swift
[21/87] Compiling SwiftSyntax Convenience.swift
[22/87] Compiling SwiftSyntax CustomTraits.swift
[23/87] Compiling SwiftSyntax Identifier.swift
[24/95] Compiling SwiftSyntax MemoryLayout.swift
[25/95] Compiling SwiftSyntax MissingNodeInitializers.swift
[26/95] Compiling SwiftSyntax RawSyntax.swift
[27/95] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[28/95] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[29/95] Compiling SwiftSyntax RawSyntaxTokenView.swift
[30/95] Compiling SwiftSyntax SourceEdit.swift
[31/95] Compiling SwiftSyntax SourceLength.swift
[32/95] Compiling SwiftSyntax SourceLocation.swift
[33/95] Emitting module SwiftSyntax
[34/95] Compiling SwiftSyntax SyntaxKind.swift
[35/95] Compiling SwiftSyntax SyntaxRewriter.swift
[36/95] Compiling SwiftSyntax SyntaxTraits.swift
[37/95] Compiling SwiftSyntax SyntaxVisitor.swift
[38/95] Compiling SwiftSyntax TokenKind.swift
[39/95] Compiling SwiftSyntax Tokens.swift
[40/95] Compiling SwiftSyntax TriviaPieces.swift
[41/95] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[42/95] Compiling SwiftSyntax RawSyntaxNodesC.swift
[43/95] Compiling SwiftSyntax RawSyntaxNodesD.swift
[44/95] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[45/95] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[46/95] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[47/95] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[48/95] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[49/95] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[50/95] Compiling SwiftSyntax RawSyntaxValidation.swift
[51/95] Compiling SwiftSyntax SyntaxNodesAB.swift
[52/95] Compiling SwiftSyntax SyntaxNodesC.swift
[53/95] Compiling SwiftSyntax SyntaxNodesD.swift
[54/95] Compiling SwiftSyntax SyntaxNodesEF.swift
[55/95] Compiling SwiftSyntax SyntaxNodesGHI.swift
[56/95] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[57/95] Compiling SwiftSyntax SyntaxNodesOP.swift
[58/95] Compiling SwiftSyntax SyntaxNodesQRS.swift
[59/95] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[60/95] Compiling SwiftSyntax SyntaxNodeFactory.swift
[61/95] Compiling SwiftSyntax SyntaxNodeStructure.swift
[62/95] Compiling SwiftSyntax SyntaxProtocol.swift
[63/95] Compiling SwiftSyntax SyntaxText.swift
[64/95] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[65/95] Compiling SwiftSyntax TokenDiagnostic.swift
[66/95] Compiling SwiftSyntax TokenSequence.swift
[67/95] Compiling SwiftSyntax TokenSyntax.swift
[68/95] Compiling SwiftSyntax Trivia.swift
[69/95] Compiling SwiftSyntax SourcePresence.swift
[70/95] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[71/95] Compiling SwiftSyntax Syntax.swift
[72/95] Compiling SwiftSyntax SyntaxArena.swift
[73/95] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[74/95] Compiling SwiftSyntax SyntaxChildren.swift
[75/95] Compiling SwiftSyntax SyntaxCollection.swift
[76/95] Compiling SwiftSyntax SyntaxHashable.swift
[77/95] Compiling SwiftSyntax SyntaxIdentifier.swift
[78/95] Compiling SwiftSyntax Utils.swift
[79/95] Compiling SwiftSyntax ChildNameForKeyPath.swift
[80/95] Compiling SwiftSyntax Keyword.swift
[81/95] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[82/95] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[83/95] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[84/95] Compiling SwiftSyntax SyntaxBaseNodes.swift
[85/95] Compiling SwiftSyntax SyntaxCollections.swift
[86/95] Compiling SwiftSyntax SyntaxEnum.swift
[88/111] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[89/112] Compiling SwiftDiagnostics Message.swift
[90/153] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[91/153] Emitting module SwiftDiagnostics
[92/153] Compiling SwiftBasicFormat Syntax+Extensions.swift
[93/153] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[94/153] Compiling SwiftParser Expressions.swift
[95/153] Compiling SwiftDiagnostics Note.swift
[96/153] Compiling SwiftBasicFormat InferIndentation.swift
[97/153] Compiling SwiftParser IncrementalParseTransition.swift
[98/153] Compiling SwiftParser IsValidIdentifier.swift
[99/153] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[100/153] Compiling SwiftDiagnostics FixIt.swift
[101/153] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[102/153] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[104/153] Emitting module SwiftBasicFormat
[105/153] Compiling SwiftBasicFormat BasicFormat.swift
[107/153] Compiling SwiftParser SwiftParserCompatibility.swift
[108/153] Compiling SwiftParser SwiftVersion.swift
[109/153] Compiling SwiftParser SyntaxUtils.swift
[110/153] Compiling SwiftParser TokenConsumer.swift
[111/153] Compiling SwiftParser TokenPrecedence.swift
[112/153] Compiling SwiftParser TokenSpec.swift
[113/153] Compiling SwiftParser TokenSpecSet.swift
[114/153] Compiling SwiftParser TopLevel.swift
[115/153] Compiling SwiftParser TriviaParser.swift
[116/153] Compiling SwiftParser Types.swift
[117/158] Emitting module SwiftParser
[118/158] Compiling SwiftParser Patterns.swift
[119/158] Compiling SwiftParser Recovery.swift
[120/158] Compiling SwiftParser Specifiers.swift
[121/158] Compiling SwiftParser Statements.swift
[122/158] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[123/158] Compiling SwiftParser StringLiterals.swift
[124/158] Compiling SwiftParser Modifiers.swift
[125/158] Compiling SwiftParser Names.swift
[126/158] Compiling SwiftParser Nominals.swift
[127/158] Compiling SwiftParser Parameters.swift
[128/158] Compiling SwiftParser ParseSourceFile.swift
[129/158] Compiling SwiftParser Parser.swift
[130/158] Compiling SwiftParser LexemeSequence.swift
[131/158] Compiling SwiftParser Lexer.swift
[132/158] Compiling SwiftParser RegexLiteralLexer.swift
[133/158] Compiling SwiftParser UnicodeScalarExtensions.swift
[134/158] Compiling SwiftParser Lookahead.swift
[135/158] Compiling SwiftParser LoopProgressCondition.swift
[136/158] Compiling SwiftParser Attributes.swift
[137/158] Compiling SwiftParser Availability.swift
[138/158] Compiling SwiftParser CharacterInfo.swift
[139/158] Compiling SwiftParser CollectionNodes+Parsable.swift
[140/158] Compiling SwiftParser Declarations.swift
[141/158] Compiling SwiftParser Directives.swift
[146/158] Compiling SwiftParser Cursor.swift
[147/158] Compiling SwiftParser Lexeme.swift
[148/158] Compiling SwiftParser ExperimentalFeatures.swift
[149/158] Compiling SwiftParser IsLexerClassified.swift
[150/158] Compiling SwiftParser LayoutNodes+Parsable.swift
[151/158] Compiling SwiftParser Parser+TokenSpecSet.swift
[152/158] Compiling SwiftParser TokenSpecStaticMembers.swift
[154/171] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[155/172] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[156/172] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[157/172] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[158/172] Compiling SwiftParserDiagnostics Utils.swift
[159/172] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[160/172] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[161/172] Emitting module SwiftParserDiagnostics
[162/172] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[163/172] Compiling SwiftParserDiagnostics PresenceUtils.swift
[164/172] Compiling SwiftParserDiagnostics MissingNodesError.swift
[165/172] Compiling SwiftParserDiagnostics MissingTokenError.swift
[166/172] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[167/172] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[169/187] Compiling SwiftSyntaxBuilder Indenter.swift
[170/187] Compiling SwiftSyntaxBuilder ListBuilder.swift
[171/188] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[172/188] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[173/188] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[174/188] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[175/188] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[176/188] Emitting module SwiftSyntaxBuilder
[177/188] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[178/188] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[179/188] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[180/188] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[181/188] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[182/188] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[183/188] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[184/188] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[186/203] Compiling Generator UnsafePointerHelpers.swift
[187/203] Compiling Generator UtilityGen.swift
[188/204] Emitting module Generator
[189/204] Compiling Generator main.swift
[190/204] Compiling Generator StringOperations.swift
[191/204] Compiling Generator TypeHelpers.swift
[192/204] Compiling Generator NativeStructures.swift
[193/204] Compiling Generator Printer.swift
[194/204] Compiling Generator DocModel.swift
[195/204] Compiling Generator Enums.swift
[196/204] Compiling Generator GenerationSettings.swift
[197/204] Compiling Generator MethodGen.swift
[198/204] Compiling Generator ClassGen.swift
[199/204] Compiling Generator Data.swift
[200/204] Compiling Generator Arguments.swift
[201/204] Compiling Generator BuiltinGen.swift
[202/205] Wrapping AST for Generator for debugging
[203/205] Write Objects.LinkFileList
[204/205] Linking Generator-tool
[205/216] Write swift-version-24593BA9C3E375BF.txt
[207/213] Emitting module ArgumentParserToolInfo
[208/213] Compiling ArgumentParserToolInfo ToolInfo.swift
[210/259] Emitting module ArgumentParser
[211/265] Compiling ArgumentParser Foundation.swift
[212/265] Compiling ArgumentParser Mutex.swift
[213/265] Compiling ArgumentParser Platform.swift
[214/265] Compiling ArgumentParser SequenceExtensions.swift
[215/265] Compiling ArgumentParser StringExtensions.swift
[216/265] Compiling ArgumentParser SwiftExtensions.swift
[217/265] Compiling ArgumentParser InputOrigin.swift
[218/265] Compiling ArgumentParser Name.swift
[219/265] Compiling ArgumentParser Parsed.swift
[220/265] Compiling ArgumentParser ParsedValues.swift
[221/265] Compiling ArgumentParser ParserError.swift
[222/265] Compiling ArgumentParser SplitArguments.swift
[223/265] Compiling ArgumentParser Tree.swift
[224/265] Compiling ArgumentParser CodingKeyValidator.swift
[225/265] Compiling ArgumentParser NonsenseFlagsValidator.swift
[226/265] Compiling ArgumentParser ParsableArgumentsValidation.swift
[227/265] Compiling ArgumentParser PositionalArgumentsValidator.swift
[228/265] Compiling ArgumentParser UniqueNamesValidator.swift
[229/265] Compiling ArgumentParser DumpHelpGenerator.swift
[230/265] Compiling ArgumentParser HelpCommand.swift
[231/265] Compiling ArgumentParser HelpGenerator.swift
[232/265] Compiling ArgumentParser MessageInfo.swift
[233/265] Compiling ArgumentParser UsageGenerator.swift
[234/265] Compiling ArgumentParser CollectionExtensions.swift
[235/265] Compiling ArgumentParser ParentCommand.swift
[236/265] Compiling ArgumentParser AsyncParsableCommand.swift
[237/265] Compiling ArgumentParser CommandConfiguration.swift
[238/265] Compiling ArgumentParser CommandGroup.swift
[239/265] Compiling ArgumentParser EnumerableFlag.swift
[240/265] Compiling ArgumentParser ExpressibleByArgument.swift
[241/265] Compiling ArgumentParser ParsableArguments.swift
[242/265] Compiling ArgumentParser BashCompletionsGenerator.swift
[243/265] Compiling ArgumentParser CompletionsGenerator.swift
[244/265] Compiling ArgumentParser FishCompletionsGenerator.swift
[245/265] Compiling ArgumentParser ZshCompletionsGenerator.swift
[246/265] Compiling ArgumentParser Argument.swift
[247/265] Compiling ArgumentParser ArgumentDiscussion.swift
[248/265] Compiling ArgumentParser ArgumentHelp.swift
[249/265] Compiling ArgumentParser ArgumentVisibility.swift
[250/265] Compiling ArgumentParser CompletionKind.swift
[251/265] Compiling ArgumentParser Errors.swift
[252/265] Compiling ArgumentParser Flag.swift
[253/265] Compiling ArgumentParser NameSpecification.swift
[254/265] Compiling ArgumentParser Option.swift
[255/265] Compiling ArgumentParser OptionGroup.swift
[256/265] Compiling ArgumentParser ParsableCommand.swift
[257/265] Compiling ArgumentParser ArgumentDecoder.swift
[258/265] Compiling ArgumentParser ArgumentDefinition.swift
[259/265] Compiling ArgumentParser ArgumentSet.swift
[260/265] Compiling ArgumentParser CommandParser.swift
[261/265] Compiling ArgumentParser InputKey.swift
[263/268] Emitting module EntryPointGenerator
[264/268] Compiling EntryPointGenerator GodotMacroSearchingVisitor.swift
[265/268] Compiling EntryPointGenerator EntryPointGenerator.swift
[266/269] Wrapping AST for EntryPointGenerator for debugging
[267/269] Write Objects.LinkFileList
[268/269] Linking EntryPointGenerator-tool
[0/1] Planning build
[1/1] Compiling plugin EntryPointGeneratorPlugin
[2/2] Compiling plugin CodeGeneratorPlugin
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
[5/5] Compiling plugin GenerateManual
[6/6] Compiling plugin GenerateDoccReference
Building for debugging...
[6/130] Write sources
[47/130] Copying extension_api.json
[49/130] Compiling GDExtension GDExtensionSupport.c
[50/130] Compiling _SwiftSyntaxCShims dummy.c
[51/130] Compiling GDExtension GDExtensionSupport.c
[52/130] Write swift-version-24593BA9C3E375BF.txt
[53/130] Compiling _SwiftSyntaxCShims dummy.c
[55/145] Emitting module SwiftSyntax510
[56/146] Emitting module SwiftSyntax509
[57/146] Emitting module SwiftSyntax600
[61/148] Compiling ExtensionApiJson resource_bundle_accessor.swift
[62/148] Emitting module ExtensionApiJson
[63/148] Compiling ExtensionApiJson ExtensionApiJson.swift
[66/156] Emitting module ExtensionApi
[68/159] Emitting module ArgumentParserToolInfo
[71/162] Emitting module ExtensionApiJson
[72/162] Emitting module ExtensionApi
[73/162] Compiling SwiftSyntax600 Empty.swift
[74/163] Compiling SwiftSyntax509 Empty.swift
[75/163] Emitting module SwiftSyntax509
[77/164] Emitting module SwiftSyntax510
[78/164] Compiling SwiftSyntax510 Empty.swift
[80/165] Wrapping AST for SwiftSyntax600 for debugging
[81/165] Wrapping AST for SwiftSyntax510 for debugging
[82/166] Wrapping AST for SwiftSyntax509 for debugging
[83/230] Wrapping AST for ExtensionApi for debugging
[84/230] Wrapping AST for ArgumentParserToolInfo for debugging
[86/230] Compiling ArgumentParserToolInfo ToolInfo.swift
[86/231] Wrapping AST for SwiftSyntax600 for debugging
[88/231] Wrapping AST for SwiftSyntax510 for debugging
[89/231] Wrapping AST for SwiftSyntax509 for debugging
[90/277] Wrapping AST for ArgumentParserToolInfo for debugging
[92/277] Emitting module ArgumentParser
[94/278] Emitting module SwiftGodotTestRunner
[95/278] Compiling SwiftGodotTestRunner SwiftGodotTestRunner.swift
/host/spi-builder-workspace/Sources/SwiftGodotTestRunner/SwiftGodotTestRunner.swift:32:33: error: cannot find 'Process' in scope
 30 |
 31 |         // Find swift executable from PATH
 32 |         let whichSwiftProcess = Process()
    |                                 `- error: cannot find 'Process' in scope
 33 |         whichSwiftProcess.executableURL = URL(fileURLWithPath: "/usr/bin/which")
 34 |         whichSwiftProcess.arguments = ["swift"]
/host/spi-builder-workspace/Sources/SwiftGodotTestRunner/SwiftGodotTestRunner.swift:56:27: error: cannot find 'Process' in scope
 54 |         let products = [extensionTarget, "SwiftGodot", "SwiftGodotRuntime"]
 55 |         for product in products {
 56 |             let process = Process()
    |                           `- error: cannot find 'Process' in scope
 57 |             process.executableURL = URL(fileURLWithPath: swiftPath)
 58 |             process.arguments = ["build", "--product", product, "-c", buildConfiguration]
/host/spi-builder-workspace/Sources/SwiftGodotTestRunner/SwiftGodotTestRunner.swift:147:28: error: cannot find 'Process' in scope
145 |
146 |         // Find godot
147 |         let whichProcess = Process()
    |                            `- error: cannot find 'Process' in scope
148 |         whichProcess.executableURL = URL(fileURLWithPath: "/usr/bin/which")
149 |         whichProcess.arguments = ["godot"]
/host/spi-builder-workspace/Sources/SwiftGodotTestRunner/SwiftGodotTestRunner.swift:169:29: error: cannot find 'Process' in scope
167 |         // 3. Import project (needed to detect GDExtensions)
168 |         print("\n[3/5] Importing Godot project...")
169 |         let importProcess = Process()
    |                             `- error: cannot find 'Process' in scope
170 |         importProcess.executableURL = URL(fileURLWithPath: godotPath)
171 |         importProcess.arguments = ["--headless", "--verbose","--import", "--path", absoluteProjectPath]
/host/spi-builder-workspace/Sources/SwiftGodotTestRunner/SwiftGodotTestRunner.swift:186:28: error: cannot find 'Process' in scope
184 |         // 4. Launch Godot
185 |         print("\n[4/5] Running tests in Godot...")
186 |         let godotProcess = Process()
    |                            `- error: cannot find 'Process' in scope
187 |         godotProcess.executableURL = URL(fileURLWithPath: godotPath)
188 |         godotProcess.arguments = ["--headless", "--verbose", "--path", absoluteProjectPath]
[96/278] Compiling ExtensionApiJson ExtensionApiJson.swift
[97/278] Compiling ExtensionApiJson resource_bundle_accessor.swift
[97/278] Wrapping AST for ArgumentParser for debugging
[100/279] Compiling ArgumentParser Foundation.swift
[101/279] Compiling ArgumentParser Mutex.swift
[102/279] Compiling ArgumentParser Platform.swift
[103/279] Compiling ArgumentParser SequenceExtensions.swift
[104/279] Compiling ArgumentParser StringExtensions.swift
[105/279] Compiling ArgumentParser SwiftExtensions.swift
[106/285] Compiling SwiftGodotTestRunner TestResults.swift
[107/285] Compiling ExtensionApi ApiJsonModel+Extra.swift
BUILD FAILURE 6.1 wasm