The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SwiftGodot, reference main (a8ceee), with Swift 6.0 for Linux on 31 Oct 2024 20:16:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/multijam/SwiftGodot.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/multijam/SwiftGodot
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a8ceee7 use local
Cloned https://github.com/multijam/SwiftGodot.git
Revision (git rev-parse @):
a8ceee7f4bc71a8c635bd8d6887077f2773f13e5
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/multijam/SwiftGodot.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/multijam/SwiftGodot.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/swiftlang/swift-syntax
[1/2038] Fetching swift-docc-plugin
[2039/14370] Fetching swift-docc-plugin, swift-argument-parser
[14371/80758] Fetching swift-docc-plugin, swift-argument-parser, swift-syntax
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (3.47s)
Fetched https://github.com/apple/swift-argument-parser from cache (3.47s)
Fetched https://github.com/swiftlang/swift-syntax from cache (3.51s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 510.0.3 (2.10s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (1.75s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (0.54s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3153] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.41s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.53s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 510.0.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Building for debugging...
[0/23] Write sources
[10/23] Write swift-version-24593BA9C3E375BF.txt
[12/30] Emitting module SwiftSyntax510
[13/30] Compiling SwiftSyntax510 Empty.swift
[14/31] Wrapping AST for SwiftSyntax510 for debugging
[16/31] Emitting module SwiftSyntax509
[17/31] Compiling SwiftSyntax509 Empty.swift
[18/32] Wrapping AST for SwiftSyntax509 for debugging
[20/92] Compiling SwiftSyntax SyntaxArena.swift
[21/92] Compiling SwiftSyntax SyntaxChildren.swift
[22/92] Compiling SwiftSyntax SyntaxCollection.swift
[23/92] Compiling SwiftSyntax SyntaxHashable.swift
[24/92] Compiling SwiftSyntax SyntaxIdentifier.swift
[25/92] Compiling SwiftSyntax SyntaxNodeStructure.swift
[26/92] Compiling SwiftSyntax SyntaxProtocol.swift
[27/92] Compiling SwiftSyntax SyntaxText.swift
[28/92] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[29/100] Compiling ExtensionApi ApiJsonModel+Extra.swift
[30/100] Compiling ExtensionApi ApiJsonModel.swift
/host/spi-builder-workspace/Sources/ExtensionApi/ApiJsonModel.swift:567:7: warning: non-final class 'JSONCodingKey' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
565 | }
566 |
567 | class JSONCodingKey: CodingKey {
    |       `- warning: non-final class 'JSONCodingKey' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
568 |     let key: String
569 |
[31/100] Emitting module ExtensionApi
/host/spi-builder-workspace/Sources/ExtensionApi/ApiJsonModel.swift:567:7: warning: non-final class 'JSONCodingKey' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
565 | }
566 |
567 | class JSONCodingKey: CodingKey {
    |       `- warning: non-final class 'JSONCodingKey' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
568 |     let key: String
569 |
[32/101] Wrapping AST for ExtensionApi for debugging
[34/101] Compiling SwiftSyntax AbsolutePosition.swift
[35/101] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[36/101] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[37/101] Compiling SwiftSyntax Assert.swift
[38/101] Compiling SwiftSyntax BumpPtrAllocator.swift
[39/101] Compiling SwiftSyntax CommonAncestor.swift
[40/101] Compiling SwiftSyntax Convenience.swift
[41/101] Compiling SwiftSyntax MemoryLayout.swift
[42/101] Compiling SwiftSyntax MissingNodeInitializers.swift
[43/101] Compiling SwiftSyntax RawSyntax.swift
[44/101] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[45/101] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[46/101] Compiling SwiftSyntax RawSyntaxTokenView.swift
[47/101] Compiling SwiftSyntax SourceLength.swift
[48/101] Compiling SwiftSyntax SourceLocation.swift
[49/101] Compiling SwiftSyntax SourcePresence.swift
[50/101] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[51/101] Compiling SwiftSyntax Syntax.swift
[52/101] Emitting module SwiftSyntax
[53/101] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[54/101] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[55/101] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[56/101] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[57/101] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[58/101] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[59/101] Compiling SwiftSyntax RawSyntaxValidation.swift
[60/101] Compiling SwiftSyntax SyntaxNodesAB.swift
[61/101] Compiling SwiftSyntax TokenDiagnostic.swift
[62/101] Compiling SwiftSyntax TokenSequence.swift
[63/101] Compiling SwiftSyntax TokenSyntax.swift
[64/101] Compiling SwiftSyntax Trivia.swift
[65/101] Compiling SwiftSyntax Utils.swift
[66/101] Compiling SwiftSyntax ChildNameForKeyPath.swift
[67/101] Compiling SwiftSyntax Keyword.swift
[68/101] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[69/101] Compiling SwiftSyntax SyntaxTransform.swift
[70/101] Compiling SwiftSyntax SyntaxVisitor.swift
[71/101] Compiling SwiftSyntax TokenKind.swift
[72/101] Compiling SwiftSyntax Tokens.swift
[73/101] Compiling SwiftSyntax TriviaPieces.swift
[74/101] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[75/101] Compiling SwiftSyntax RawSyntaxNodesC.swift
[76/101] Compiling SwiftSyntax RawSyntaxNodesD.swift
[77/101] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[78/101] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[79/101] Compiling SwiftSyntax SyntaxBaseNodes.swift
[80/101] Compiling SwiftSyntax SyntaxCollections.swift
[81/101] Compiling SwiftSyntax SyntaxEnum.swift
[82/101] Compiling SwiftSyntax SyntaxKind.swift
[83/101] Compiling SwiftSyntax SyntaxRewriter.swift
[84/101] Compiling SwiftSyntax SyntaxTraits.swift
[85/101] Compiling SwiftSyntax SyntaxNodesC.swift
[86/101] Compiling SwiftSyntax SyntaxNodesD.swift
[87/101] Compiling SwiftSyntax SyntaxNodesEF.swift
[88/101] Compiling SwiftSyntax SyntaxNodesGHI.swift
[89/101] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[90/101] Compiling SwiftSyntax SyntaxNodesOP.swift
[91/101] Compiling SwiftSyntax SyntaxNodesQRS.swift
[92/101] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[93/102] Wrapping AST for SwiftSyntax for debugging
[95/153] Compiling SwiftDiagnostics Message.swift
[96/153] Compiling SwiftDiagnostics Note.swift
[97/153] Compiling SwiftBasicFormat Syntax+Extensions.swift
[98/153] Compiling SwiftDiagnostics Convenience.swift
[99/153] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[100/153] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[101/153] Compiling SwiftDiagnostics FixIt.swift
[102/153] Compiling SwiftDiagnostics Diagnostic.swift
[103/153] Emitting module SwiftDiagnostics
[104/153] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[105/153] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[106/154] Wrapping AST for SwiftDiagnostics for debugging
[108/154] Emitting module SwiftBasicFormat
[109/154] Compiling SwiftBasicFormat BasicFormat.swift
[110/154] Compiling SwiftParser Modifiers.swift
[111/154] Compiling SwiftParser Names.swift
[112/154] Compiling SwiftParser Nominals.swift
[113/154] Compiling SwiftParser Parameters.swift
[114/154] Compiling SwiftParser ParseSourceFile.swift
[115/160] Wrapping AST for SwiftBasicFormat for debugging
[117/160] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[118/160] Compiling SwiftParser StringLiterals.swift
[119/160] Compiling SwiftParser SwiftParserCompatibility.swift
[120/160] Compiling SwiftParser SyntaxUtils.swift
[121/160] Compiling SwiftParser TokenConsumer.swift
[122/160] Compiling SwiftParser TokenPrecedence.swift
[123/160] Compiling SwiftParser TokenSpec.swift
[124/160] Compiling SwiftParser TokenSpecSet.swift
[125/160] Compiling SwiftParser TopLevel.swift
[126/160] Compiling SwiftParser TriviaParser.swift
[127/160] Compiling SwiftParser Lexer.swift
[128/160] Compiling SwiftParser RegexLiteralLexer.swift
[129/160] Compiling SwiftParser UnicodeScalarExtensions.swift
[130/160] Compiling SwiftParser Lookahead.swift
[131/160] Compiling SwiftParser LoopProgressCondition.swift
[132/160] Compiling SwiftParser Parser.swift
[133/160] Compiling SwiftParser Patterns.swift
[134/160] Compiling SwiftParser Recovery.swift
[135/160] Compiling SwiftParser Specifiers.swift
[136/160] Compiling SwiftParser Statements.swift
[137/160] Emitting module SwiftParser
[138/160] Compiling SwiftParser ExperimentalFeatures.swift
[139/160] Compiling SwiftParser Expressions.swift
[140/160] Compiling SwiftParser IncrementalParseTransition.swift
[141/160] Compiling SwiftParser Cursor.swift
[142/160] Compiling SwiftParser Lexeme.swift
[143/160] Compiling SwiftParser LexemeSequence.swift
[144/160] Compiling SwiftParser Attributes.swift
[145/160] Compiling SwiftParser Availability.swift
[146/160] Compiling SwiftParser CharacterInfo.swift
[147/160] Compiling SwiftParser CollectionNodes+Parsable.swift
[148/160] Compiling SwiftParser Declarations.swift
[149/160] Compiling SwiftParser Directives.swift
[150/160] Compiling SwiftParser Types.swift
[151/160] Compiling SwiftParser IsLexerClassified.swift
[152/160] Compiling SwiftParser LayoutNodes+Parsable.swift
[153/160] Compiling SwiftParser Parser+TokenSpecSet.swift
[154/160] Compiling SwiftParser TokenSpecStaticMembers.swift
[155/161] Wrapping AST for SwiftParser for debugging
[157/174] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[158/175] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[159/175] Emitting module SwiftParserDiagnostics
[160/175] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[161/175] Compiling SwiftParserDiagnostics Utils.swift
[162/175] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[163/175] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[164/175] Compiling SwiftParserDiagnostics PresenceUtils.swift
[165/175] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[166/175] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[167/175] Compiling SwiftParserDiagnostics MissingNodesError.swift
[168/175] Compiling SwiftParserDiagnostics MissingTokenError.swift
[169/175] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[170/175] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[171/176] Wrapping AST for SwiftParserDiagnostics for debugging
[173/190] Compiling SwiftSyntaxBuilder Indenter.swift
[174/190] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[175/190] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[176/190] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[177/190] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[178/190] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[179/191] Emitting module SwiftSyntaxBuilder
[180/191] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[181/191] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[182/191] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[183/191] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[184/191] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[185/191] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[186/191] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[187/191] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[188/192] Wrapping AST for SwiftSyntaxBuilder for debugging
[190/206] Compiling Generator UtilityGen.swift
/host/spi-builder-workspace/Generator/Generator/UtilityGen.swift:12:41: warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; 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")
   |                                         `- warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
13 |     p.preamble()
14 |     defer {
/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
[191/207] Compiling Generator TypeHelpers.swift
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:98: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
 96 | }
 97 |
 98 | 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: annotate 'core_types' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 99 |               "String",
100 |               "Vector2",
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:229: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
227 | }
228 |
229 | 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: annotate 'mapStringToSwift' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | /// Given a type definition with its metadata, and the context where the type is being
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:565: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
563 | }
564 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
565 | 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: annotate 'builtinClassStorage' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
566 |
567 | func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) async {
/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:94:5: note: var declared here
 92 | }
 93 |
 94 | var globalEnums: [String: JGodotGlobalEnumElement] = [:]
    |     `- note: var declared here
 95 |
 96 | // 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:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:341:16: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
233 | ///
234 | ///
235 | func getGodotType (_ t: TypeWithMeta?, kind: ArgumentKind = .classes) -> String {
    |      `- note: add '@MainActor' to make global function 'getGodotType(_:kind:)' part of global actor 'MainActor'
236 |     guard let t else {
237 |         return ""
    :
339 |             let nested = SimpleType(type: nestedTypeName, meta: nil)
340 |
341 |             if classMap [nestedTypeName] != nil {
    |                `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
342 |                 return "ObjectCollection<\(getGodotType (nested))>"
343 |             } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:359:22: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
356 | /// containing the Swift-type that is used to store this, and a suitable initialization
357 | /// value for it.
358 | func getBuiltinStorage (_ name: String) -> (String, String) {
    |      `- note: add '@MainActor' to make global function 'getBuiltinStorage' part of global actor 'MainActor'
359 |     guard let size = builtinSizes [name] else {
    |                      `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
360 |         fatalError()
361 |     }
/host/spi-builder-workspace/Generator/Generator/main.swift:124:5: note: var declared here
122 |
123 | let buildConfiguration: String = "float_64"
124 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
125 | for cs in jsonApi.builtinClassSizes {
126 |     if cs.buildConfiguration == buildConfiguration {
[192/207] Compiling Generator UnsafePointerHelpers.swift
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:98: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
 96 | }
 97 |
 98 | 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: annotate 'core_types' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 99 |               "String",
100 |               "Vector2",
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:229: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
227 | }
228 |
229 | 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: annotate 'mapStringToSwift' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | /// Given a type definition with its metadata, and the context where the type is being
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:565: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
563 | }
564 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
565 | 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: annotate 'builtinClassStorage' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
566 |
567 | func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) async {
/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:94:5: note: var declared here
 92 | }
 93 |
 94 | var globalEnums: [String: JGodotGlobalEnumElement] = [:]
    |     `- note: var declared here
 95 |
 96 | // 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:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:341:16: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
233 | ///
234 | ///
235 | func getGodotType (_ t: TypeWithMeta?, kind: ArgumentKind = .classes) -> String {
    |      `- note: add '@MainActor' to make global function 'getGodotType(_:kind:)' part of global actor 'MainActor'
236 |     guard let t else {
237 |         return ""
    :
339 |             let nested = SimpleType(type: nestedTypeName, meta: nil)
340 |
341 |             if classMap [nestedTypeName] != nil {
    |                `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
342 |                 return "ObjectCollection<\(getGodotType (nested))>"
343 |             } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:359:22: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
356 | /// containing the Swift-type that is used to store this, and a suitable initialization
357 | /// value for it.
358 | func getBuiltinStorage (_ name: String) -> (String, String) {
    |      `- note: add '@MainActor' to make global function 'getBuiltinStorage' part of global actor 'MainActor'
359 |     guard let size = builtinSizes [name] else {
    |                      `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
360 |         fatalError()
361 |     }
/host/spi-builder-workspace/Generator/Generator/main.swift:124:5: note: var declared here
122 |
123 | let buildConfiguration: String = "float_64"
124 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
125 | for cs in jsonApi.builtinClassSizes {
126 |     if cs.buildConfiguration == buildConfiguration {
[193/207] Compiling Generator Printer.swift
[194/207] Compiling Generator StringOperations.swift
[195/207] Compiling Generator main.swift
/host/spi-builder-workspace/Generator/Generator/main.swift:162:54: warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
160 | let semaphore = DispatchSemaphore(value: 0)
161 | let _ = Task {
162 |     let coreDefPrinter = await PrinterFactory.shared.initPrinter("core-defs")
    |                                                      `- warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
163 |     coreDefPrinter.preamble()
164 |     generateUnsafePointerHelpers(coreDefPrinter)
/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:165:5: warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
163 |     coreDefPrinter.preamble()
164 |     generateUnsafePointerHelpers(coreDefPrinter)
165 |     generateEnums(coreDefPrinter, cdef: nil, values: jsonApi.globalEnums, prefix: "")
    |     `- warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
166 |     await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
167 |     await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
/host/spi-builder-workspace/Generator/Generator/main.swift:166:11: warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
164 |     generateUnsafePointerHelpers(coreDefPrinter)
165 |     generateEnums(coreDefPrinter, cdef: nil, values: jsonApi.globalEnums, prefix: "")
166 |     await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
    |           `- warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
167 |     await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
168 |     await generateClasses (values: jsonApi.classes, outputDir: generatedDir)
/host/spi-builder-workspace/Generator/Generator/main.swift:167:11: warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
165 |     generateEnums(coreDefPrinter, cdef: nil, values: jsonApi.globalEnums, prefix: "")
166 |     await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
167 |     await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
    |           `- warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
168 |     await generateClasses (values: jsonApi.classes, outputDir: generatedDir)
169 |     generateCtorPointers (coreDefPrinter)
/host/spi-builder-workspace/Generator/Generator/main.swift:168:11: warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
166 |     await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
167 |     await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
168 |     await generateClasses (values: jsonApi.classes, outputDir: generatedDir)
    |           `- warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
169 |     generateCtorPointers (coreDefPrinter)
170 |     generateNativeStructures (coreDefPrinter, values: jsonApi.nativeStructures)
/host/spi-builder-workspace/Generator/Generator/main.swift:170:5: warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
168 |     await generateClasses (values: jsonApi.classes, outputDir: generatedDir)
169 |     generateCtorPointers (coreDefPrinter)
170 |     generateNativeStructures (coreDefPrinter, values: jsonApi.nativeStructures)
    |     `- warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
171 |     if let generatedBuiltinDir {
172 |         coreDefPrinter.save (generatedBuiltinDir + "/core-defs.swift")
[196/207] Compiling Generator MethodGen.swift
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:229: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
227 | }
228 |
229 | 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: annotate 'mapStringToSwift' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | /// Given a type definition with its metadata, and the context where the type is being
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:208:24: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
206 |                     translation = .directPromoted(to: "Int")
207 |                 } else {
208 |                     if isStructMap[src.type] == true {
    |                        `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
209 |                         translation = .direct
210 |                     } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:211:28: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
209 |                         translation = .direct
210 |                     } else {
211 |                         if builtinSizes[src.type] != nil && src.type != "Object" {
    |                            `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
212 |                             translation = .contentRef
213 |                         } else if classMap[src.type] != nil {
/host/spi-builder-workspace/Generator/Generator/main.swift:124:5: note: var declared here
122 |
123 | let buildConfiguration: String = "float_64"
124 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
125 | for cs in jsonApi.builtinClassSizes {
126 |     if cs.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:213:35: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
211 |                         if builtinSizes[src.type] != nil && src.type != "Object" {
212 |                             translation = .contentRef
213 |                         } else if classMap[src.type] != nil {
    |                                   `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
214 |                             if options.contains(.nonOptionalObjects) {
215 |                                 translation = .objectRef(isOptional: false)
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:559:42: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
451 | ///  - usedMethods: a set of methods that have been referenced by properties, to determine whether we make this public or private
452 | /// - Returns: nil, or the method we surfaced that needs to have the virtual supporting infrastructured wired up
453 | 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'
454 |
455 |     let arguments = method.arguments ?? []
    :
557 |     var signatureArgs: [String] = []
558 |     let godotReturnType = method.returnValue?.type
559 |     let godotReturnTypeIsReferenceType = classMap [godotReturnType ?? ""] != nil
    |                                          `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
560 |     let returnOptional = godotReturnTypeIsReferenceType && isReturnOptional(className: className, method: method.name)
561 |     let returnType = getGodotType(method.returnValue) + (returnOptional ? "?" : "")
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:564: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
562 |     case isClass
563 | }
564 | 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: annotate 'builtinGodotTypeNames' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | var builtinClassStorage: [String:String] = [:]
566 |
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:624:27: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
602 |     }
603 |
604 |     func getCallResultArgument() -> String {
    |          `- note: add '@MainActor' to make local function 'getCallResultArgument()' part of global actor 'MainActor'
605 |         let ptrResult: String
606 |         if returnType != "" {
    :
622 |                 } else if frameworkType {
623 |                     ptrResult = "&_result"
624 |                 } else if builtinSizes [godotReturnType] != nil {
    |                           `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
625 |                     ptrResult = "&_result.content"
626 |                 } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:124:5: note: var declared here
122 |
123 | let buildConfiguration: String = "float_64"
124 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
125 | for cs in jsonApi.builtinClassSizes {
126 |     if cs.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:673:12: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
451 | ///  - usedMethods: a set of methods that have been referenced by properties, to determine whether we make this public or private
452 | /// - Returns: nil, or the method we surfaced that needs to have the virtual supporting infrastructured wired up
453 | 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'
454 |
455 |     let arguments = method.arguments ?? []
    :
671 |         let isOptional: Bool
672 |
673 |         if classMap [arg.type] != nil {
    |            `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
674 |             isOptional = isMethodArgumentOptional(className: className, method: method.name, arg: arg.name)
675 |         } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
[197/207] Compiling Generator NativeStructures.swift
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:229: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
227 | }
228 |
229 | 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: annotate 'mapStringToSwift' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | /// Given a type definition with its metadata, and the context where the type is being
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:208:24: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
206 |                     translation = .directPromoted(to: "Int")
207 |                 } else {
208 |                     if isStructMap[src.type] == true {
    |                        `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
209 |                         translation = .direct
210 |                     } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:211:28: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
209 |                         translation = .direct
210 |                     } else {
211 |                         if builtinSizes[src.type] != nil && src.type != "Object" {
    |                            `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
212 |                             translation = .contentRef
213 |                         } else if classMap[src.type] != nil {
/host/spi-builder-workspace/Generator/Generator/main.swift:124:5: note: var declared here
122 |
123 | let buildConfiguration: String = "float_64"
124 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
125 | for cs in jsonApi.builtinClassSizes {
126 |     if cs.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:213:35: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
211 |                         if builtinSizes[src.type] != nil && src.type != "Object" {
212 |                             translation = .contentRef
213 |                         } else if classMap[src.type] != nil {
    |                                   `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
214 |                             if options.contains(.nonOptionalObjects) {
215 |                                 translation = .objectRef(isOptional: false)
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:559:42: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
451 | ///  - usedMethods: a set of methods that have been referenced by properties, to determine whether we make this public or private
452 | /// - Returns: nil, or the method we surfaced that needs to have the virtual supporting infrastructured wired up
453 | 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'
454 |
455 |     let arguments = method.arguments ?? []
    :
557 |     var signatureArgs: [String] = []
558 |     let godotReturnType = method.returnValue?.type
559 |     let godotReturnTypeIsReferenceType = classMap [godotReturnType ?? ""] != nil
    |                                          `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
560 |     let returnOptional = godotReturnTypeIsReferenceType && isReturnOptional(className: className, method: method.name)
561 |     let returnType = getGodotType(method.returnValue) + (returnOptional ? "?" : "")
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:564: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
562 |     case isClass
563 | }
564 | 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: annotate 'builtinGodotTypeNames' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | var builtinClassStorage: [String:String] = [:]
566 |
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:624:27: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
602 |     }
603 |
604 |     func getCallResultArgument() -> String {
    |          `- note: add '@MainActor' to make local function 'getCallResultArgument()' part of global actor 'MainActor'
605 |         let ptrResult: String
606 |         if returnType != "" {
    :
622 |                 } else if frameworkType {
623 |                     ptrResult = "&_result"
624 |                 } else if builtinSizes [godotReturnType] != nil {
    |                           `- error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
625 |                     ptrResult = "&_result.content"
626 |                 } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:124:5: note: var declared here
122 |
123 | let buildConfiguration: String = "float_64"
124 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
125 | for cs in jsonApi.builtinClassSizes {
126 |     if cs.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/MethodGen.swift:673:12: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
451 | ///  - usedMethods: a set of methods that have been referenced by properties, to determine whether we make this public or private
452 | /// - Returns: nil, or the method we surfaced that needs to have the virtual supporting infrastructured wired up
453 | 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'
454 |
455 |     let arguments = method.arguments ?? []
    :
671 |         let isOptional: Bool
672 |
673 |         if classMap [arg.type] != nil {
    |            `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
674 |             isOptional = isMethodArgumentOptional(className: className, method: method.name, arg: arg.name)
675 |         } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
[198/207] 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: annotate 'rxConstantParam' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 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: annotate 'rxEnumMethodMember' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 | @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: annotate 'rxTypeName' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 | @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: annotate 'rxEmptyLeading' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 | @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: annotate 'rxUrl' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 | // 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:63:5: note: let declared here
 61 |
 62 | let jsonData = try! Data(url: URL(fileURLWithPath: jsonFile))
 63 | let jsonApi = try! JSONDecoder().decode(JGodotExtensionAPI.self, from: jsonData)
    |     `- note: let declared here
 64 |
 65 | // Determines whether a built-in type is defined as a structure, this means:
/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:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // 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:112:5: note: var declared here
110 | }
111 |
112 | var builtinMap: [String: JGodotBuiltinClass] = [:]
    |     `- note: var declared here
113 |
114 | 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:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // 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:112:5: note: var declared here
110 | }
111 |
112 | var builtinMap: [String: JGodotBuiltinClass] = [:]
    |     `- note: var declared here
113 |
114 | for x in jsonApi.builtinClasses {
/host/spi-builder-workspace/Generator/Generator/Enums.swift:23:22: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 10 |
 11 | // The name of the form 'bitfield::'
 12 | func findEnumDef (name: String) -> JGodotGlobalEnumElement? {
    |      `- note: add '@MainActor' to make global function 'findEnumDef(name:)' part of global actor 'MainActor'
 13 |     guard name.starts(with: "bitfield::") else {
 14 |         return nil
    :
 21 |     }
 22 |     let type = full [full.startIndex..<split]
 23 |     guard let cdef = classMap [String (type)] else {
    |                      `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 24 |         print ("Could not find class \(type) for \(name)")
 25 |         return nil
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/Enums.swift:140:13: error: main actor-isolated var 'globalEnums' can not be mutated from a nonisolated context
 38 | }
 39 |
 40 | func generateEnums (_ p: Printer, cdef: JClassInfo?, values: [JGodotGlobalEnumElement], prefix: String?) {
    |      `- note: add '@MainActor' to make global function 'generateEnums(_:cdef:values:prefix:)' part of global actor 'MainActor'
 41 |     for enumDef in values {
 42 |         let isBitField = enumDef.isBitfield ?? false
    :
138 |         }
139 |         if let prefix {
140 |             globalEnums [prefix + enumDef.name] = enumDef
    |             `- error: main actor-isolated var 'globalEnums' can not be mutated from a nonisolated context
141 |         }
142 |     }
/host/spi-builder-workspace/Generator/Generator/main.swift:94:5: note: mutation of this var is only permitted within the actor
 92 | }
 93 |
 94 | var globalEnums: [String: JGodotGlobalEnumElement] = [:]
    |     `- note: mutation of this var is only permitted within the actor
 95 |
 96 | // Maps from a the class name to its definition
[199/207] 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: annotate 'rxConstantParam' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 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: annotate 'rxEnumMethodMember' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 | @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: annotate 'rxTypeName' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 | @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: annotate 'rxEmptyLeading' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 | @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: annotate 'rxUrl' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 | // 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:63:5: note: let declared here
 61 |
 62 | let jsonData = try! Data(url: URL(fileURLWithPath: jsonFile))
 63 | let jsonApi = try! JSONDecoder().decode(JGodotExtensionAPI.self, from: jsonData)
    |     `- note: let declared here
 64 |
 65 | // Determines whether a built-in type is defined as a structure, this means:
/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:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // 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:112:5: note: var declared here
110 | }
111 |
112 | var builtinMap: [String: JGodotBuiltinClass] = [:]
    |     `- note: var declared here
113 |
114 | 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:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // 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:112:5: note: var declared here
110 | }
111 |
112 | var builtinMap: [String: JGodotBuiltinClass] = [:]
    |     `- note: var declared here
113 |
114 | for x in jsonApi.builtinClasses {
/host/spi-builder-workspace/Generator/Generator/Enums.swift:23:22: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 10 |
 11 | // The name of the form 'bitfield::'
 12 | func findEnumDef (name: String) -> JGodotGlobalEnumElement? {
    |      `- note: add '@MainActor' to make global function 'findEnumDef(name:)' part of global actor 'MainActor'
 13 |     guard name.starts(with: "bitfield::") else {
 14 |         return nil
    :
 21 |     }
 22 |     let type = full [full.startIndex..<split]
 23 |     guard let cdef = classMap [String (type)] else {
    |                      `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 24 |         print ("Could not find class \(type) for \(name)")
 25 |         return nil
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/Enums.swift:140:13: error: main actor-isolated var 'globalEnums' can not be mutated from a nonisolated context
 38 | }
 39 |
 40 | func generateEnums (_ p: Printer, cdef: JClassInfo?, values: [JGodotGlobalEnumElement], prefix: String?) {
    |      `- note: add '@MainActor' to make global function 'generateEnums(_:cdef:values:prefix:)' part of global actor 'MainActor'
 41 |     for enumDef in values {
 42 |         let isBitField = enumDef.isBitfield ?? false
    :
138 |         }
139 |         if let prefix {
140 |             globalEnums [prefix + enumDef.name] = enumDef
    |             `- error: main actor-isolated var 'globalEnums' can not be mutated from a nonisolated context
141 |         }
142 |     }
/host/spi-builder-workspace/Generator/Generator/main.swift:94:5: note: mutation of this var is only permitted within the actor
 92 | }
 93 |
 94 | var globalEnums: [String: JGodotGlobalEnumElement] = [:]
    |     `- note: mutation of this var is only permitted within the actor
 95 |
 96 | // Maps from a the class name to its definition
[200/207] Compiling Generator Arguments.swift
/host/spi-builder-workspace/Generator/Generator/Arguments.swift:70:98: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
 68 |         //  - typedarrays, the default values need to be handled one by one, or a general conversion
 69 |         // system needs to be implemented
 70 |         if !argumentType.starts(with: "Array") && !argumentType.starts(with: "bitfield::") && (!(isStructMap [argumentType] ?? false) || isPrimitiveType(name: argumentType)) && argumentType != "NodePath" && !argumentType.starts(with: "typedarray::") && !argumentType.starts (with: "Dictionary") && dv != "null" {
    |                                                                                                  `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
 71 |             if argument.type == "String" {
 72 |                 def = " = \(dv)"
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/Arguments.swift:193:10: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
187 | }
188 |
189 | func getArgRef (arg: JGodotArgument) -> String {
    |      `- note: add '@MainActor' to make global function 'getArgRef(arg:)' part of global actor 'MainActor'
190 |     var argref: String
191 |     var optstorage: String
192 |     var needAddress = "&"
193 |     if !(isStructMap [arg.type] ?? false) { // { ) isCoreType(name: arg.type){
    |          `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
194 |         argref = godotArgumentToSwift (arg.name)
195 |         if isStructMap [arg.type] ?? false {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/Arguments.swift:195:12: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
187 | }
188 |
189 | func getArgRef (arg: JGodotArgument) -> String {
    |      `- note: add '@MainActor' to make global function 'getArgRef(arg:)' part of global actor 'MainActor'
190 |     var argref: String
191 |     var optstorage: String
    :
193 |     if !(isStructMap [arg.type] ?? false) { // { ) isCoreType(name: arg.type){
194 |         argref = godotArgumentToSwift (arg.name)
195 |         if isStructMap [arg.type] ?? false {
    |            `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
196 |             optstorage = ""
197 |         } else if arg.type == "String" && mapStringToSwift {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:229: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
227 | }
228 |
229 | 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: annotate 'mapStringToSwift' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | /// Given a type definition with its metadata, and the context where the type is being
/host/spi-builder-workspace/Generator/Generator/Arguments.swift:201:16: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
187 | }
188 |
189 | func getArgRef (arg: JGodotArgument) -> String {
    |      `- note: add '@MainActor' to make global function 'getArgRef(arg:)' part of global actor 'MainActor'
190 |     var argref: String
191 |     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:124:5: note: var declared here
122 |
123 | let buildConfiguration: String = "float_64"
124 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
125 | for cs in jsonApi.builtinClassSizes {
126 |     if cs.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/Arguments.swift:212:9: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
187 | }
188 |
189 | func getArgRef (arg: JGodotArgument) -> String {
    |      `- note: add '@MainActor' to make global function 'getArgRef(arg:)' part of global actor 'MainActor'
190 |     var argref: String
191 |     var optstorage: String
    :
210 |         optstorage = ""
211 |     }
212 |     if (isStructMap [arg.type] ?? false) {
    |         `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
213 |         return "\(needAddress)\(escapeSwift(argref))\(optstorage)"
214 |     } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:564: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
562 |     case isClass
563 | }
564 | 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: annotate 'builtinGodotTypeNames' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | var builtinClassStorage: [String:String] = [:]
566 |
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:565: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
563 | }
564 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
565 | 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: annotate 'builtinClassStorage' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
566 |
567 | func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) async {
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:94:20: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
 84 | }
 85 |
 86 | func generateBuiltinCtors (_ p: Printer,
    |      `- note: add '@MainActor' to make global function 'generateBuiltinCtors(_:_:_:godotTypeName:typeName:typeEnum:members:)' part of global actor 'MainActor'
 87 |                            _ bc: JGodotBuiltinClass,
 88 |                            _ ctors: [JGodotConstructor],
    :
 92 |                            members: [JGodotArgument]?)
 93 | {
 94 |     let isStruct = isStructMap [typeName] ?? false
    |                    `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
 95 |
 96 |     for m in ctors {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:227:24: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
196 | }
197 |
198 | func generateMethodCall (_ p: Printer,
    |      `- note: add '@MainActor' to make global function 'generateMethodCall(_:typeName:methodToCall:godotReturnType:isStatic:isVararg:arguments:)' part of global actor 'MainActor'
199 |                          typeName: String,
200 |                          methodToCall: String,
    :
225 |     let ptrResult: String
226 |     if hasReturnStatement {
227 |         let isStruct = isStructMap [godotReturnType ?? ""] ?? false
    |                        `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
228 |         if isStruct {
229 |             ptrResult = "&result"
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:250:16: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
248 |             return "\(typeName).\(methodToCall)(nil, \(argsRef), \(ptrResult), \(countArg))"
249 |         } else {
250 |             if isStructMap [typeName] ?? false {
    |                `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
251 |                 return """
252 |                 var mutSelfCopy = self
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:376:32: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
374 |                     p ("\(declType) result: \(retType) = \(retType)()")
375 |                 }
376 |                 let isStruct = isStructMap [op.returnType] ?? false
    |                                `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
377 |                 if isStruct {
378 |                     ptrResult = "&result"
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:777:59: error: main actor-isolated var 'builtinMemberOffsets' can not be referenced from a nonisolated context
775 |                 storedMembers = bc.members
776 |             } else {
777 |                 if kind == .isStruct, let memberOffsets = builtinMemberOffsets [bc.name] {
    |                                                           `- error: main actor-isolated var 'builtinMemberOffsets' can not be referenced from a nonisolated context
778 |                     storedMembers = memberOffsets.compactMap({ m in
779 |                         return bc.members?.first(where: { $0.name == m.member })
/host/spi-builder-workspace/Generator/Generator/main.swift:132:5: note: var declared here
130 |     }
131 | }
132 | var builtinMemberOffsets: [String: [JGodotMember]] = [:]
    |     `- note: var declared here
133 | for mo in jsonApi.builtinClassMemberOffsets {
134 |     if mo.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:857:58: warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
855 |             break
856 |         default:
857 |             let p: Printer = await PrinterFactory.shared.initPrinter(bc.name)
    |                                                          `- warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
858 |             p.preamble()
859 |             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
[201/207] Compiling Generator BuiltinGen.swift
/host/spi-builder-workspace/Generator/Generator/Arguments.swift:70:98: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
 68 |         //  - typedarrays, the default values need to be handled one by one, or a general conversion
 69 |         // system needs to be implemented
 70 |         if !argumentType.starts(with: "Array") && !argumentType.starts(with: "bitfield::") && (!(isStructMap [argumentType] ?? false) || isPrimitiveType(name: argumentType)) && argumentType != "NodePath" && !argumentType.starts(with: "typedarray::") && !argumentType.starts (with: "Dictionary") && dv != "null" {
    |                                                                                                  `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
 71 |             if argument.type == "String" {
 72 |                 def = " = \(dv)"
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/Arguments.swift:193:10: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
187 | }
188 |
189 | func getArgRef (arg: JGodotArgument) -> String {
    |      `- note: add '@MainActor' to make global function 'getArgRef(arg:)' part of global actor 'MainActor'
190 |     var argref: String
191 |     var optstorage: String
192 |     var needAddress = "&"
193 |     if !(isStructMap [arg.type] ?? false) { // { ) isCoreType(name: arg.type){
    |          `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
194 |         argref = godotArgumentToSwift (arg.name)
195 |         if isStructMap [arg.type] ?? false {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/Arguments.swift:195:12: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
187 | }
188 |
189 | func getArgRef (arg: JGodotArgument) -> String {
    |      `- note: add '@MainActor' to make global function 'getArgRef(arg:)' part of global actor 'MainActor'
190 |     var argref: String
191 |     var optstorage: String
    :
193 |     if !(isStructMap [arg.type] ?? false) { // { ) isCoreType(name: arg.type){
194 |         argref = godotArgumentToSwift (arg.name)
195 |         if isStructMap [arg.type] ?? false {
    |            `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
196 |             optstorage = ""
197 |         } else if arg.type == "String" && mapStringToSwift {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:229: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
227 | }
228 |
229 | 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: annotate 'mapStringToSwift' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | /// Given a type definition with its metadata, and the context where the type is being
/host/spi-builder-workspace/Generator/Generator/Arguments.swift:201:16: error: main actor-isolated var 'builtinSizes' can not be referenced from a nonisolated context
187 | }
188 |
189 | func getArgRef (arg: JGodotArgument) -> String {
    |      `- note: add '@MainActor' to make global function 'getArgRef(arg:)' part of global actor 'MainActor'
190 |     var argref: String
191 |     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:124:5: note: var declared here
122 |
123 | let buildConfiguration: String = "float_64"
124 | var builtinSizes: [String: Int] = [:]
    |     `- note: var declared here
125 | for cs in jsonApi.builtinClassSizes {
126 |     if cs.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/Arguments.swift:212:9: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
187 | }
188 |
189 | func getArgRef (arg: JGodotArgument) -> String {
    |      `- note: add '@MainActor' to make global function 'getArgRef(arg:)' part of global actor 'MainActor'
190 |     var argref: String
191 |     var optstorage: String
    :
210 |         optstorage = ""
211 |     }
212 |     if (isStructMap [arg.type] ?? false) {
    |         `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
213 |         return "\(needAddress)\(escapeSwift(argref))\(optstorage)"
214 |     } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:564: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
562 |     case isClass
563 | }
564 | 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: annotate 'builtinGodotTypeNames' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | var builtinClassStorage: [String:String] = [:]
566 |
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:565: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
563 | }
564 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
565 | 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: annotate 'builtinClassStorage' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
566 |
567 | func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) async {
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:94:20: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
 84 | }
 85 |
 86 | func generateBuiltinCtors (_ p: Printer,
    |      `- note: add '@MainActor' to make global function 'generateBuiltinCtors(_:_:_:godotTypeName:typeName:typeEnum:members:)' part of global actor 'MainActor'
 87 |                            _ bc: JGodotBuiltinClass,
 88 |                            _ ctors: [JGodotConstructor],
    :
 92 |                            members: [JGodotArgument]?)
 93 | {
 94 |     let isStruct = isStructMap [typeName] ?? false
    |                    `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
 95 |
 96 |     for m in ctors {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:227:24: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
196 | }
197 |
198 | func generateMethodCall (_ p: Printer,
    |      `- note: add '@MainActor' to make global function 'generateMethodCall(_:typeName:methodToCall:godotReturnType:isStatic:isVararg:arguments:)' part of global actor 'MainActor'
199 |                          typeName: String,
200 |                          methodToCall: String,
    :
225 |     let ptrResult: String
226 |     if hasReturnStatement {
227 |         let isStruct = isStructMap [godotReturnType ?? ""] ?? false
    |                        `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
228 |         if isStruct {
229 |             ptrResult = "&result"
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:250:16: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
248 |             return "\(typeName).\(methodToCall)(nil, \(argsRef), \(ptrResult), \(countArg))"
249 |         } else {
250 |             if isStructMap [typeName] ?? false {
    |                `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
251 |                 return """
252 |                 var mutSelfCopy = self
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:376:32: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
374 |                     p ("\(declType) result: \(retType) = \(retType)()")
375 |                 }
376 |                 let isStruct = isStructMap [op.returnType] ?? false
    |                                `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
377 |                 if isStruct {
378 |                     ptrResult = "&result"
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:777:59: error: main actor-isolated var 'builtinMemberOffsets' can not be referenced from a nonisolated context
775 |                 storedMembers = bc.members
776 |             } else {
777 |                 if kind == .isStruct, let memberOffsets = builtinMemberOffsets [bc.name] {
    |                                                           `- error: main actor-isolated var 'builtinMemberOffsets' can not be referenced from a nonisolated context
778 |                     storedMembers = memberOffsets.compactMap({ m in
779 |                         return bc.members?.first(where: { $0.name == m.member })
/host/spi-builder-workspace/Generator/Generator/main.swift:132:5: note: var declared here
130 |     }
131 | }
132 | var builtinMemberOffsets: [String: [JGodotMember]] = [:]
    |     `- note: var declared here
133 | for mo in jsonApi.builtinClassMemberOffsets {
134 |     if mo.buildConfiguration == buildConfiguration {
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:857:58: warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
855 |             break
856 |         default:
857 |             let p: Printer = await PrinterFactory.shared.initPrinter(bc.name)
    |                                                          `- warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
858 |             p.preamble()
859 |             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
[202/207] Emitting module Generator
/host/spi-builder-workspace/Generator/Generator/main.swift:162:54: warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
160 | let semaphore = DispatchSemaphore(value: 0)
161 | let _ = Task {
162 |     let coreDefPrinter = await PrinterFactory.shared.initPrinter("core-defs")
    |                                                      `- warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
163 |     coreDefPrinter.preamble()
164 |     generateUnsafePointerHelpers(coreDefPrinter)
/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/BuiltinGen.swift:564: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
562 |     case isClass
563 | }
564 | 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: annotate 'builtinGodotTypeNames' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | var builtinClassStorage: [String:String] = [:]
566 |
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:565: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
563 | }
564 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
565 | 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: annotate 'builtinClassStorage' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
566 |
567 | func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) async {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:13:5: warning: var 'referenceTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 11 | // Populated with the types loaded from the api.json, we assume they are all reference types
 12 | // anything else is not
 13 | var referenceTypes: [String:Bool] = [:]
    |     |- warning: var 'referenceTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'referenceTypes' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'referenceTypes' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 | // Maps a typename to its toplevel Json element
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:16:5: warning: var 'tree' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | // Maps a typename to its toplevel Json element
 16 | var tree: [String: JGodotExtensionAPIClass] = [:]
    |     |- warning: var 'tree' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'tree' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'tree' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 | var typeToChildren: [String:[String]] = [:]
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:18:5: warning: var 'typeToChildren' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 | var tree: [String: JGodotExtensionAPIClass] = [:]
 17 |
 18 | var typeToChildren: [String:[String]] = [:]
    |     |- warning: var 'typeToChildren' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'typeToChildren' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'typeToChildren' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | func makeDefaultInit (godotType: String, initCollection: String = "") -> String {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:468: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
466 | var skipList = Set<String>()
467 | #else
468 | 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: annotate 'okList' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
469 | var skipList = Set<String>()
470 | #endif
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:469: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
467 | #else
468 | var okList = Set<String>()
469 | 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: annotate 'skipList' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
470 | #endif
471 |
/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: annotate 'rxConstantParam' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 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: annotate 'rxEnumMethodMember' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 | @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: annotate 'rxTypeName' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 | @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: annotate 'rxEmptyLeading' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 | @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: annotate 'rxUrl' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 | // 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/TypeHelpers.swift:98: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
 96 | }
 97 |
 98 | 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: annotate 'core_types' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 99 |               "String",
100 |               "Vector2",
/host/spi-builder-workspace/Generator/Generator/TypeHelpers.swift:229: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
227 | }
228 |
229 | 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: annotate 'mapStringToSwift' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | /// Given a type definition with its metadata, and the context where the type is being
/host/spi-builder-workspace/Generator/Generator/main.swift:165:5: warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
163 |     coreDefPrinter.preamble()
164 |     generateUnsafePointerHelpers(coreDefPrinter)
165 |     generateEnums(coreDefPrinter, cdef: nil, values: jsonApi.globalEnums, prefix: "")
    |     `- warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
166 |     await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
167 |     await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
/host/spi-builder-workspace/Generator/Generator/main.swift:166:11: warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
164 |     generateUnsafePointerHelpers(coreDefPrinter)
165 |     generateEnums(coreDefPrinter, cdef: nil, values: jsonApi.globalEnums, prefix: "")
166 |     await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
    |           `- warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
167 |     await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
168 |     await generateClasses (values: jsonApi.classes, outputDir: generatedDir)
/host/spi-builder-workspace/Generator/Generator/main.swift:167:11: warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
165 |     generateEnums(coreDefPrinter, cdef: nil, values: jsonApi.globalEnums, prefix: "")
166 |     await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
167 |     await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
    |           `- warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
168 |     await generateClasses (values: jsonApi.classes, outputDir: generatedDir)
169 |     generateCtorPointers (coreDefPrinter)
/host/spi-builder-workspace/Generator/Generator/main.swift:168:11: warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
166 |     await generateBuiltinClasses(values: jsonApi.builtinClasses, outputDir: generatedBuiltinDir)
167 |     await generateUtility(values: jsonApi.utilityFunctions, outputDir: generatedBuiltinDir)
168 |     await generateClasses (values: jsonApi.classes, outputDir: generatedDir)
    |           `- warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
169 |     generateCtorPointers (coreDefPrinter)
170 |     generateNativeStructures (coreDefPrinter, values: jsonApi.nativeStructures)
/host/spi-builder-workspace/Generator/Generator/main.swift:170:5: warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
168 |     await generateClasses (values: jsonApi.classes, outputDir: generatedDir)
169 |     generateCtorPointers (coreDefPrinter)
170 |     generateNativeStructures (coreDefPrinter, values: jsonApi.nativeStructures)
    |     `- warning: pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
171 |     if let generatedBuiltinDir {
172 |         coreDefPrinter.save (generatedBuiltinDir + "/core-defs.swift")
[203/207] Compiling Generator ClassGen.swift
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:13:5: warning: var 'referenceTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 11 | // Populated with the types loaded from the api.json, we assume they are all reference types
 12 | // anything else is not
 13 | var referenceTypes: [String:Bool] = [:]
    |     |- warning: var 'referenceTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'referenceTypes' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'referenceTypes' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 | // Maps a typename to its toplevel Json element
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:16:5: warning: var 'tree' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | // Maps a typename to its toplevel Json element
 16 | var tree: [String: JGodotExtensionAPIClass] = [:]
    |     |- warning: var 'tree' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'tree' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'tree' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 | var typeToChildren: [String:[String]] = [:]
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:18:5: warning: var 'typeToChildren' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 | var tree: [String: JGodotExtensionAPIClass] = [:]
 17 |
 18 | var typeToChildren: [String:[String]] = [:]
    |     |- warning: var 'typeToChildren' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'typeToChildren' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'typeToChildren' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | func makeDefaultInit (godotType: String, initCollection: String = "") -> String {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:468: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
466 | var skipList = Set<String>()
467 | #else
468 | 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: annotate 'okList' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
469 | var skipList = Set<String>()
470 | #endif
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:469: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
467 | #else
468 | var okList = Set<String>()
469 | 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: annotate 'skipList' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
470 | #endif
471 |
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:37:12: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 18 | var typeToChildren: [String:[String]] = [:]
 19 |
 20 | func makeDefaultInit (godotType: String, initCollection: String = "") -> String {
    |      `- note: add '@MainActor' to make global function 'makeDefaultInit(godotType:initCollection:)' part of global actor 'MainActor'
 21 |     switch godotType {
 22 |     case "int":
    :
 35 |         let nestedTypeName = String (t.dropFirst(12))
 36 |         let simple = SimpleType(type: nestedTypeName)
 37 |         if classMap [nestedTypeName] != nil {
    |            `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 38 |             return "ObjectCollection<\(getGodotType (simple))>(\(initCollection))"
 39 |         } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:564: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
562 |     case isClass
563 | }
564 | 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: annotate 'builtinGodotTypeNames' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | var builtinClassStorage: [String:String] = [:]
566 |
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:66:8: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
 63 | }
 64 |
 65 | func argTypeNeedsCopy (godotType: String) -> Bool {
    |      `- note: add '@MainActor' to make global function 'argTypeNeedsCopy(godotType:)' part of global actor 'MainActor'
 66 |     if isStructMap [godotType] ?? false {
    |        `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
 67 |         return true
 68 |     }
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:91:46: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 76 | }
 77 |
 78 | func generateVirtualProxy (_ p: Printer,
    |      `- note: add '@MainActor' to make global function 'generateVirtualProxy(_:cdef:methodName:method:)' part of global actor 'MainActor'
 79 |                            cdef: JGodotExtensionAPIClass,
 80 |                            methodName: String,
    :
 89 |     if let ret = method.returnValue {
 90 |         let godotReturnType = ret.type
 91 |         let godotReturnTypeIsReferenceType = classMap [godotReturnType] != nil
    |                                              `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 92 |         returnOptional = godotReturnTypeIsReferenceType && isReturnOptional(className: cdef.name, method: methodName)
 93 |
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:119:23: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
117 |             if arg.type == "String" {
118 |                 argCall += "GString.stringFromGStringPtr (ptr: args [\(i)]!) ?? \"\""
119 |             } else if classMap [arg.type] != nil {
    |                       `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
120 |                 //
121 |                 // This idiom guarantees that: if this is a known object, we surface this
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:126:20: error: main actor-isolated var 'hasSubclasses' can not be referenced from a nonisolated context
124 |                 argPrep += "let resolved_\(i) = args [\(i)]!.load (as: UnsafeRawPointer.self)\n"
125 |                 let handleResolver: String
126 |                 if hasSubclasses.contains(cdef.name) {
    |                    `- error: main actor-isolated var 'hasSubclasses' can not be referenced from a nonisolated context
127 |                     // If the type we are bubbling up has subclasses, we want to create the most
128 |                     // derived type if possible, so we perform the longer lookup
/host/spi-builder-workspace/Generator/Generator/main.swift:103:5: note: var declared here
101 | // for handle -> Swift type using `lookupObject` rather than creating
102 | // a plain wrapper directly from the handle
103 | var hasSubclasses = Set<String> ()
    |     `- note: var declared here
104 |
105 | for x in jsonApi.classes {
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:565: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
563 | }
564 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
565 | 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: annotate 'builtinClassStorage' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
566 |
567 | func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) async {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:157:16: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
155 |         }
156 |         if let ret = method.returnValue {
157 |             if isStructMap [ret.type] ?? false || isStructMap [virtRet ?? "NON_EXIDTENT"] ?? false || ret.type.starts(with: "bitfield::"){
    |                `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
158 |                 p ("retPtr!.storeBytes (of: ret, as: \(virtRet!).self)")
159 |             } else if ret.type.starts(with: "enum::") {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:157:51: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
155 |         }
156 |         if let ret = method.returnValue {
157 |             if isStructMap [ret.type] ?? false || isStructMap [virtRet ?? "NON_EXIDTENT"] ?? false || ret.type.starts(with: "bitfield::"){
    |                                                   `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
158 |                 p ("retPtr!.storeBytes (of: ret, as: \(virtRet!).self)")
159 |             } else if ret.type.starts(with: "enum::") {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:169:27: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
167 |                     derefField = "array.content"
168 |                     derefType = "type (of: ret.array.content)"
169 |                 } else if classMap [ret.type] != nil {
    |                           `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
170 |                     derefField = "handle"
171 |                     derefType = "UnsafeRawPointer?.self"
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:181:30: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
179 |                     target = "array.content"
180 |                 } else {
181 |                     target = classMap [ret.type] != nil ? "handle" : "content"
    |                              `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
182 |                 }
183 |                 p ("retPtr!.storeBytes (of: ret\(returnOptional ? "?" : "").\(derefField), as: \(derefType)) // \(ret.type)")
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:333:20: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
322 |     p ("\n/* Properties */\n")
323 |
324 |     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'
325 |         if let here = methods.first(where: { $0.name == name}) {
326 |             return here
    :
331 |                 return nil
332 |             }
333 |             cdef = classMap [parentName]
    |                    `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
334 |             guard let cdef else {
335 |                 print ("Warning: Missing type \(parentName)")
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:415:46: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
313 |     }
314 | }
315 | func generateProperties (_ p: Printer,
    |      `- note: add '@MainActor' to make global function 'generateProperties(_:cdef:_:_:_:asSingleton:)' part of global actor 'MainActor'
316 |                          cdef: JGodotExtensionAPIClass,
317 |                          _ properties: [JGodotProperty],
    :
413 |         }
414 |         let godotReturnType = method.returnValue?.type
415 |         let godotReturnTypeIsReferenceType = classMap [godotReturnType ?? ""] != nil
    |                                              `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
416 |
417 |         let propertyOptional = godotReturnTypeIsReferenceType && isReturnOptional(className: cdef.name, method: property.getter)
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:544:24: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
542 |             let construct: String
543 |
544 |             if let _ = classMap [arg.type] {
    |                        `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
545 |                 argUnwrap += "var ptr_\(argIdx): UnsafeMutableRawPointer?\n"
546 |                 argUnwrap += "args [\(argIdx)].toType (Variant.GType.object, dest: &ptr_\(argIdx))\n"
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:548:20: error: main actor-isolated var 'hasSubclasses' can not be referenced from a nonisolated context
546 |                 argUnwrap += "args [\(argIdx)].toType (Variant.GType.object, dest: &ptr_\(argIdx))\n"
547 |                 let handleResolver: String
548 |                 if hasSubclasses.contains(cdef.name) {
    |                    `- error: main actor-isolated var 'hasSubclasses' can not be referenced from a nonisolated context
549 |                     // If the type we are bubbling up has subclasses, we want to create the most
550 |                     // derived type if possible, so we perform the longer lookup
/host/spi-builder-workspace/Generator/Generator/main.swift:103:5: note: var declared here
101 | // for handle -> Swift type using `lookupObject` rather than creating
102 | // a plain wrapper directly from the handle
103 | var hasSubclasses = Set<String> ()
    |     `- note: var declared here
104 |
105 | for x in jsonApi.classes {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:652:23: warning: non-sendable type 'JGodotExtensionAPI' in implicitly asynchronous access to main actor-isolated let 'jsonApi' cannot cross actor boundary; this is an error in the Swift 6 language mode
650 | func processClass (cdef: JGodotExtensionAPIClass, outputDir: String?) async {
651 |     // Determine if it is a singleton, but exclude EditorInterface
652 |     let isSingleton = jsonApi.singletons.contains (where: { $0.name == cdef.name })
    |                       `- warning: non-sendable type 'JGodotExtensionAPI' in implicitly asynchronous access to main actor-isolated let 'jsonApi' cannot cross actor boundary; this is an error in the Swift 6 language mode
653 |     let asSingleton = isSingleton && cdef.name != "EditorInterface"
654 |
/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 | // Populated with the types loaded from the api.json, we assume they are all reference types
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:656:41: warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
654 |
655 |     // Clear the result
656 |     let p = await PrinterFactory.shared.initPrinter(cdef.name)
    |                                         `- warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
657 |     p.preamble()
658 |     p ("// Generated by Swift code generator - do not edit\n@_implementationOnly import GDExtension\n")
/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:690:24: error: main actor-isolated var 'hasSubclasses' can not be referenced from a nonisolated context
688 |             p.staticVar(visibility: "public ", name: "shared", type: cdef.name) {
689 |                 p ("return withUnsafePointer (to: &\(cdef.name).godotClassName.content)", arg: " ptr in") {
690 |                     if hasSubclasses.contains(cdef.name) {
    |                        `- error: main actor-isolated var 'hasSubclasses' can not be referenced from a nonisolated context
691 |                         p ("lookupObject (nativeHandle: gi.global_get_singleton (ptr)!)!")
692 |                     } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:103:5: note: var declared here
101 | // for handle -> Swift type using `lookupObject` rather than creating
102 | // a plain wrapper directly from the handle
103 | var hasSubclasses = Set<String> ()
    |     `- note: var declared here
104 |
105 | for x in jsonApi.classes {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:652:23: warning: expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode
650 | func processClass (cdef: JGodotExtensionAPIClass, outputDir: String?) async {
651 |     // Determine if it is a singleton, but exclude EditorInterface
652 |     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'
653 |     let asSingleton = isSingleton && cdef.name != "EditorInterface"
654 |
[204/207] Compiling Generator Data.swift
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:13:5: warning: var 'referenceTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 11 | // Populated with the types loaded from the api.json, we assume they are all reference types
 12 | // anything else is not
 13 | var referenceTypes: [String:Bool] = [:]
    |     |- warning: var 'referenceTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'referenceTypes' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'referenceTypes' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 | // Maps a typename to its toplevel Json element
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:16:5: warning: var 'tree' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | // Maps a typename to its toplevel Json element
 16 | var tree: [String: JGodotExtensionAPIClass] = [:]
    |     |- warning: var 'tree' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'tree' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'tree' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 | var typeToChildren: [String:[String]] = [:]
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:18:5: warning: var 'typeToChildren' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 | var tree: [String: JGodotExtensionAPIClass] = [:]
 17 |
 18 | var typeToChildren: [String:[String]] = [:]
    |     |- warning: var 'typeToChildren' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'typeToChildren' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'typeToChildren' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | func makeDefaultInit (godotType: String, initCollection: String = "") -> String {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:468: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
466 | var skipList = Set<String>()
467 | #else
468 | 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: annotate 'okList' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
469 | var skipList = Set<String>()
470 | #endif
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:469: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
467 | #else
468 | var okList = Set<String>()
469 | 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: annotate 'skipList' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
470 | #endif
471 |
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:37:12: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 18 | var typeToChildren: [String:[String]] = [:]
 19 |
 20 | func makeDefaultInit (godotType: String, initCollection: String = "") -> String {
    |      `- note: add '@MainActor' to make global function 'makeDefaultInit(godotType:initCollection:)' part of global actor 'MainActor'
 21 |     switch godotType {
 22 |     case "int":
    :
 35 |         let nestedTypeName = String (t.dropFirst(12))
 36 |         let simple = SimpleType(type: nestedTypeName)
 37 |         if classMap [nestedTypeName] != nil {
    |            `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 38 |             return "ObjectCollection<\(getGodotType (simple))>(\(initCollection))"
 39 |         } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:564: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
562 |     case isClass
563 | }
564 | 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: annotate 'builtinGodotTypeNames' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | var builtinClassStorage: [String:String] = [:]
566 |
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:66:8: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
 63 | }
 64 |
 65 | func argTypeNeedsCopy (godotType: String) -> Bool {
    |      `- note: add '@MainActor' to make global function 'argTypeNeedsCopy(godotType:)' part of global actor 'MainActor'
 66 |     if isStructMap [godotType] ?? false {
    |        `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
 67 |         return true
 68 |     }
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:91:46: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 76 | }
 77 |
 78 | func generateVirtualProxy (_ p: Printer,
    |      `- note: add '@MainActor' to make global function 'generateVirtualProxy(_:cdef:methodName:method:)' part of global actor 'MainActor'
 79 |                            cdef: JGodotExtensionAPIClass,
 80 |                            methodName: String,
    :
 89 |     if let ret = method.returnValue {
 90 |         let godotReturnType = ret.type
 91 |         let godotReturnTypeIsReferenceType = classMap [godotReturnType] != nil
    |                                              `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 92 |         returnOptional = godotReturnTypeIsReferenceType && isReturnOptional(className: cdef.name, method: methodName)
 93 |
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:119:23: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
117 |             if arg.type == "String" {
118 |                 argCall += "GString.stringFromGStringPtr (ptr: args [\(i)]!) ?? \"\""
119 |             } else if classMap [arg.type] != nil {
    |                       `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
120 |                 //
121 |                 // This idiom guarantees that: if this is a known object, we surface this
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:126:20: error: main actor-isolated var 'hasSubclasses' can not be referenced from a nonisolated context
124 |                 argPrep += "let resolved_\(i) = args [\(i)]!.load (as: UnsafeRawPointer.self)\n"
125 |                 let handleResolver: String
126 |                 if hasSubclasses.contains(cdef.name) {
    |                    `- error: main actor-isolated var 'hasSubclasses' can not be referenced from a nonisolated context
127 |                     // If the type we are bubbling up has subclasses, we want to create the most
128 |                     // derived type if possible, so we perform the longer lookup
/host/spi-builder-workspace/Generator/Generator/main.swift:103:5: note: var declared here
101 | // for handle -> Swift type using `lookupObject` rather than creating
102 | // a plain wrapper directly from the handle
103 | var hasSubclasses = Set<String> ()
    |     `- note: var declared here
104 |
105 | for x in jsonApi.classes {
/host/spi-builder-workspace/Generator/Generator/BuiltinGen.swift:565: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
563 | }
564 | var builtinGodotTypeNames: [String:BKind] = ["Variant": .isClass]
565 | 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: annotate 'builtinClassStorage' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
566 |
567 | func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) async {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:157:16: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
155 |         }
156 |         if let ret = method.returnValue {
157 |             if isStructMap [ret.type] ?? false || isStructMap [virtRet ?? "NON_EXIDTENT"] ?? false || ret.type.starts(with: "bitfield::"){
    |                `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
158 |                 p ("retPtr!.storeBytes (of: ret, as: \(virtRet!).self)")
159 |             } else if ret.type.starts(with: "enum::") {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:157:51: error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
155 |         }
156 |         if let ret = method.returnValue {
157 |             if isStructMap [ret.type] ?? false || isStructMap [virtRet ?? "NON_EXIDTENT"] ?? false || ret.type.starts(with: "bitfield::"){
    |                                                   `- error: main actor-isolated var 'isStructMap' can not be referenced from a nonisolated context
158 |                 p ("retPtr!.storeBytes (of: ret, as: \(virtRet!).self)")
159 |             } else if ret.type.starts(with: "enum::") {
/host/spi-builder-workspace/Generator/Generator/main.swift:69:5: note: var declared here
 67 | //
 68 | // The map is agumented during the JSON file processing
 69 | var isStructMap: [String:Bool] = [
    |     `- note: var declared here
 70 |     "const void*": true,
 71 |     "AudioFrame*": true
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:169:27: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
167 |                     derefField = "array.content"
168 |                     derefType = "type (of: ret.array.content)"
169 |                 } else if classMap [ret.type] != nil {
    |                           `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
170 |                     derefField = "handle"
171 |                     derefType = "UnsafeRawPointer?.self"
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:181:30: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
179 |                     target = "array.content"
180 |                 } else {
181 |                     target = classMap [ret.type] != nil ? "handle" : "content"
    |                              `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
182 |                 }
183 |                 p ("retPtr!.storeBytes (of: ret\(returnOptional ? "?" : "").\(derefField), as: \(derefType)) // \(ret.type)")
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:333:20: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
322 |     p ("\n/* Properties */\n")
323 |
324 |     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'
325 |         if let here = methods.first(where: { $0.name == name}) {
326 |             return here
    :
331 |                 return nil
332 |             }
333 |             cdef = classMap [parentName]
    |                    `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
334 |             guard let cdef else {
335 |                 print ("Warning: Missing type \(parentName)")
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:415:46: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
313 |     }
314 | }
315 | func generateProperties (_ p: Printer,
    |      `- note: add '@MainActor' to make global function 'generateProperties(_:cdef:_:_:_:asSingleton:)' part of global actor 'MainActor'
316 |                          cdef: JGodotExtensionAPIClass,
317 |                          _ properties: [JGodotProperty],
    :
413 |         }
414 |         let godotReturnType = method.returnValue?.type
415 |         let godotReturnTypeIsReferenceType = classMap [godotReturnType ?? ""] != nil
    |                                              `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
416 |
417 |         let propertyOptional = godotReturnTypeIsReferenceType && isReturnOptional(className: cdef.name, method: property.getter)
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:544:24: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
542 |             let construct: String
543 |
544 |             if let _ = classMap [arg.type] {
    |                        `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
545 |                 argUnwrap += "var ptr_\(argIdx): UnsafeMutableRawPointer?\n"
546 |                 argUnwrap += "args [\(argIdx)].toType (Variant.GType.object, dest: &ptr_\(argIdx))\n"
/host/spi-builder-workspace/Generator/Generator/main.swift:97:5: note: var declared here
 95 |
 96 | // Maps from a the class name to its definition
 97 | var classMap: [String:JGodotExtensionAPIClass] = [:]
    |     `- note: var declared here
 98 |
 99 | // Tracks whether a Godot type has subclasses, we want to use this
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:548:20: error: main actor-isolated var 'hasSubclasses' can not be referenced from a nonisolated context
546 |                 argUnwrap += "args [\(argIdx)].toType (Variant.GType.object, dest: &ptr_\(argIdx))\n"
547 |                 let handleResolver: String
548 |                 if hasSubclasses.contains(cdef.name) {
    |                    `- error: main actor-isolated var 'hasSubclasses' can not be referenced from a nonisolated context
549 |                     // If the type we are bubbling up has subclasses, we want to create the most
550 |                     // derived type if possible, so we perform the longer lookup
/host/spi-builder-workspace/Generator/Generator/main.swift:103:5: note: var declared here
101 | // for handle -> Swift type using `lookupObject` rather than creating
102 | // a plain wrapper directly from the handle
103 | var hasSubclasses = Set<String> ()
    |     `- note: var declared here
104 |
105 | for x in jsonApi.classes {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:652:23: warning: non-sendable type 'JGodotExtensionAPI' in implicitly asynchronous access to main actor-isolated let 'jsonApi' cannot cross actor boundary; this is an error in the Swift 6 language mode
650 | func processClass (cdef: JGodotExtensionAPIClass, outputDir: String?) async {
651 |     // Determine if it is a singleton, but exclude EditorInterface
652 |     let isSingleton = jsonApi.singletons.contains (where: { $0.name == cdef.name })
    |                       `- warning: non-sendable type 'JGodotExtensionAPI' in implicitly asynchronous access to main actor-isolated let 'jsonApi' cannot cross actor boundary; this is an error in the Swift 6 language mode
653 |     let asSingleton = isSingleton && cdef.name != "EditorInterface"
654 |
/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 | // Populated with the types loaded from the api.json, we assume they are all reference types
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:656:41: warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
654 |
655 |     // Clear the result
656 |     let p = await PrinterFactory.shared.initPrinter(cdef.name)
    |                                         `- warning: non-sendable type 'Printer' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
657 |     p.preamble()
658 |     p ("// Generated by Swift code generator - do not edit\n@_implementationOnly import GDExtension\n")
/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:690:24: error: main actor-isolated var 'hasSubclasses' can not be referenced from a nonisolated context
688 |             p.staticVar(visibility: "public ", name: "shared", type: cdef.name) {
689 |                 p ("return withUnsafePointer (to: &\(cdef.name).godotClassName.content)", arg: " ptr in") {
690 |                     if hasSubclasses.contains(cdef.name) {
    |                        `- error: main actor-isolated var 'hasSubclasses' can not be referenced from a nonisolated context
691 |                         p ("lookupObject (nativeHandle: gi.global_get_singleton (ptr)!)!")
692 |                     } else {
/host/spi-builder-workspace/Generator/Generator/main.swift:103:5: note: var declared here
101 | // for handle -> Swift type using `lookupObject` rather than creating
102 | // a plain wrapper directly from the handle
103 | var hasSubclasses = Set<String> ()
    |     `- note: var declared here
104 |
105 | for x in jsonApi.classes {
/host/spi-builder-workspace/Generator/Generator/ClassGen.swift:652:23: warning: expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode
650 | func processClass (cdef: JGodotExtensionAPIClass, outputDir: String?) async {
651 |     // Determine if it is a singleton, but exclude EditorInterface
652 |     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'
653 |     let asSingleton = isSingleton && cdef.name != "EditorInterface"
654 |
BUILD FAILURE 6.0 linux