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 GodotVision, reference main (63b25b), with Swift 6.0 for Linux on 4 Nov 2024 07:59:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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/kevinw/GodotVision.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/kevinw/GodotVision
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 63b25b2 Cleanup.
Cloned https://github.com/kevinw/GodotVision.git
Revision (git rev-parse @):
63b25b2ec5ca9e8c58f009495f053ede6156931b
SUCCESS checkout https://github.com/kevinw/GodotVision.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/kevinw/GodotVision.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/multijam/SwiftGodotKit
[1/502] Fetching swiftgodotkit
Fetched https://github.com/multijam/SwiftGodotKit from cache (0.47s)
Fetching https://github.com/multijam/SwiftGodot
[1/5575] Fetching swiftgodot
Fetched https://github.com/multijam/SwiftGodot from cache (4.58s)
Fetching https://github.com/swiftlang/swift-syntax
[1/66399] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (7.95s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 510.0.3 (4.41s)
Creating working copy for https://github.com/multijam/SwiftGodot
Working copy of https://github.com/multijam/SwiftGodot resolved at a9753686164b63b8228d3b98389d4326d942be80
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/multijam/SwiftGodotKit
Working copy of https://github.com/multijam/SwiftGodotKit resolved at 526ae902f84c1604d30680d8198c09fdfa566848
[1397/56671603] Downloading https://github.com/multijam/SwiftGodot/releases/download/4.3.0/libgodot.xcframework.zip
Downloading binary artifact https://github.com/multijam/SwiftGodot/releases/download/4.3.0/libgodot.xcframework.zip
Downloaded https://github.com/multijam/SwiftGodot/releases/download/4.3.0/libgodot.xcframework.zip (8.51s)
Building for debugging...
[0/23] Write sources
[10/23] Write swift-version-24593BA9C3E375BF.txt
[12/27] Emitting module SwiftSyntax509
[13/30] Emitting module SwiftSyntax510
[14/30] Compiling SwiftSyntax509 Empty.swift
[15/31] Compiling SwiftSyntax510 Empty.swift
[17/32] Emitting module ExtensionApi
[18/32] Wrapping AST for SwiftSyntax509 for debugging
[19/32] Wrapping AST for SwiftSyntax510 for debugging
[21/92] Compiling SwiftSyntax SyntaxArena.swift
[22/92] Compiling SwiftSyntax SyntaxChildren.swift
[23/92] Compiling SwiftSyntax SyntaxCollection.swift
[24/92] Compiling SwiftSyntax SyntaxHashable.swift
[25/92] Compiling SwiftSyntax SyntaxIdentifier.swift
[26/92] Compiling SwiftSyntax SyntaxNodeStructure.swift
[27/92] Compiling SwiftSyntax SyntaxProtocol.swift
[28/92] Compiling SwiftSyntax SyntaxText.swift
[29/92] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[30/100] Compiling SwiftSyntax AbsolutePosition.swift
[31/100] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[32/100] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[33/100] Compiling SwiftSyntax Assert.swift
[34/100] Compiling SwiftSyntax BumpPtrAllocator.swift
[35/100] Compiling SwiftSyntax CommonAncestor.swift
[36/100] Compiling SwiftSyntax Convenience.swift
[37/100] Compiling SwiftSyntax MemoryLayout.swift
[38/100] Compiling SwiftSyntax MissingNodeInitializers.swift
[39/100] Compiling SwiftSyntax RawSyntax.swift
[40/100] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[41/100] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[42/100] Compiling SwiftSyntax RawSyntaxTokenView.swift
[43/100] Compiling SwiftSyntax SourceLength.swift
[44/100] Compiling SwiftSyntax SourceLocation.swift
[45/100] Compiling SwiftSyntax SourcePresence.swift
[46/100] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[47/100] Compiling SwiftSyntax Syntax.swift
[48/100] Compiling ExtensionApi ApiJsonModel.swift
[49/100] Compiling ExtensionApi ApiJsonModel+Extra.swift
[50/101] Wrapping AST for ExtensionApi for debugging
[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 RenamedNodesCompatibility.swift
[70/101] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[71/101] Compiling SwiftSyntax SyntaxBaseNodes.swift
[72/101] Compiling SwiftSyntax SyntaxCollections.swift
[73/101] Compiling SwiftSyntax SyntaxEnum.swift
[74/101] Compiling SwiftSyntax SyntaxKind.swift
[75/101] Compiling SwiftSyntax SyntaxRewriter.swift
[76/101] Compiling SwiftSyntax SyntaxTraits.swift
[77/101] Compiling SwiftSyntax SyntaxTransform.swift
[78/101] Compiling SwiftSyntax SyntaxVisitor.swift
[79/101] Compiling SwiftSyntax TokenKind.swift
[80/101] Compiling SwiftSyntax Tokens.swift
[81/101] Compiling SwiftSyntax TriviaPieces.swift
[82/101] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[83/101] Compiling SwiftSyntax RawSyntaxNodesC.swift
[84/101] Compiling SwiftSyntax RawSyntaxNodesD.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 Convenience.swift
[96/153] Compiling SwiftDiagnostics Note.swift
[97/153] Emitting module SwiftBasicFormat
[98/153] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[99/153] Compiling SwiftDiagnostics Message.swift
[100/153] Emitting module SwiftDiagnostics
[101/153] Compiling SwiftBasicFormat Syntax+Extensions.swift
[102/153] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[103/153] Compiling SwiftDiagnostics FixIt.swift
[104/153] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[105/153] Compiling SwiftDiagnostics Diagnostic.swift
[106/153] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[108/154] Compiling SwiftBasicFormat BasicFormat.swift
[108/155] Wrapping AST for SwiftDiagnostics for debugging
[110/155] Wrapping AST for SwiftBasicFormat for debugging
[112/155] Compiling SwiftParser Lexer.swift
[113/155] Compiling SwiftParser RegexLiteralLexer.swift
[114/155] Compiling SwiftParser UnicodeScalarExtensions.swift
[115/155] Compiling SwiftParser Lookahead.swift
[116/155] Compiling SwiftParser LoopProgressCondition.swift
[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] Emitting module SwiftParser
[128/160] Compiling SwiftParser Modifiers.swift
[129/160] Compiling SwiftParser Names.swift
[130/160] Compiling SwiftParser Nominals.swift
[131/160] Compiling SwiftParser Parameters.swift
[132/160] Compiling SwiftParser ParseSourceFile.swift
[133/160] Compiling SwiftParser Parser.swift
[134/160] Compiling SwiftParser Patterns.swift
[135/160] Compiling SwiftParser Recovery.swift
[136/160] Compiling SwiftParser Specifiers.swift
[137/160] Compiling SwiftParser Statements.swift
[138/160] Compiling SwiftParser Attributes.swift
[139/160] Compiling SwiftParser Availability.swift
[140/160] Compiling SwiftParser CharacterInfo.swift
[141/160] Compiling SwiftParser CollectionNodes+Parsable.swift
[142/160] Compiling SwiftParser Declarations.swift
[143/160] Compiling SwiftParser Directives.swift
[144/160] Compiling SwiftParser ExperimentalFeatures.swift
[145/160] Compiling SwiftParser Expressions.swift
[146/160] Compiling SwiftParser IncrementalParseTransition.swift
[147/160] Compiling SwiftParser Cursor.swift
[148/160] Compiling SwiftParser Lexeme.swift
[149/160] Compiling SwiftParser LexemeSequence.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] Emitting module SwiftParserDiagnostics
[158/175] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[159/175] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[160/175] Compiling SwiftParserDiagnostics Utils.swift
[161/175] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.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 ValidatingSyntaxNodes.swift
[174/190] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[175/191] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[176/191] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[177/191] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[178/191] Compiling SwiftSyntaxBuilder Indenter.swift
[179/191] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[180/191] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[181/191] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[182/191] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[183/191] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[184/191] Emitting module SwiftSyntaxBuilder
[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
[191/207] Compiling Generator TypeHelpers.swift
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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] Emitting module Generator
[194/207] Compiling Generator main.swift
[195/207] Compiling Generator DocModel.swift
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/Generator/Generator/DocModel.swift:96:35: 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
    :
 94 |         }
 95 |         let (type, name) = splitAtLastDot(str: txt)
 96 |         if type != "", let ldef = classMap [type] {
    |                                   `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 97 |             if let r = lookInDef(def: ldef, match: name, local: false) {
 98 |                 return "``\(getGodotType(SimpleType (type: type)) + "/" + r)``"
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/Generator/Generator/DocModel.swift:153:24: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
131 |     }
132 |
133 |     func convertMethod (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'convertMethod' part of global actor 'MainActor'
134 |         if txt.starts(with: "@") {
135 |             // TODO, examples:
    :
151 |         var args = ""
152 |         if let type {
153 |             if let m = classMap [type] {
    |                        `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
154 |                 if let method = findMethod (name: member, on: m) {
155 |                     args = assembleArgs (method, method.arguments)
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/Generator/Generator/DocModel.swift:157:31: error: main actor-isolated var 'builtinMap' can not be referenced from a nonisolated context
131 |     }
132 |
133 |     func convertMethod (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'convertMethod' part of global actor 'MainActor'
134 |         if txt.starts(with: "@") {
135 |             // TODO, examples:
    :
155 |                     args = assembleArgs (method, method.arguments)
156 |                 }
157 |             } else if let m = builtinMap [type] {
    |                               `- error: main actor-isolated var 'builtinMap' can not be referenced from a nonisolated context
158 |                 if let method = findMethod (name: member, on: m) {
159 |                     args = assembleArgs(nil, method.arguments)
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/Generator/Generator/Enums.swift:139: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
    :
137 |         }
138 |         if let prefix {
139 |             globalEnums [prefix + enumDef.name] = enumDef
    |             `- error: main actor-isolated var 'globalEnums' can not be mutated from a nonisolated context
140 |         }
141 |     }
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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
[196/207] Compiling Generator Enums.swift
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/Generator/Generator/DocModel.swift:96:35: 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
    :
 94 |         }
 95 |         let (type, name) = splitAtLastDot(str: txt)
 96 |         if type != "", let ldef = classMap [type] {
    |                                   `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
 97 |             if let r = lookInDef(def: ldef, match: name, local: false) {
 98 |                 return "``\(getGodotType(SimpleType (type: type)) + "/" + r)``"
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/Generator/Generator/DocModel.swift:153:24: error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
131 |     }
132 |
133 |     func convertMethod (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'convertMethod' part of global actor 'MainActor'
134 |         if txt.starts(with: "@") {
135 |             // TODO, examples:
    :
151 |         var args = ""
152 |         if let type {
153 |             if let m = classMap [type] {
    |                        `- error: main actor-isolated var 'classMap' can not be referenced from a nonisolated context
154 |                 if let method = findMethod (name: member, on: m) {
155 |                     args = assembleArgs (method, method.arguments)
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/Generator/Generator/DocModel.swift:157:31: error: main actor-isolated var 'builtinMap' can not be referenced from a nonisolated context
131 |     }
132 |
133 |     func convertMethod (_ txt: String.SubSequence) -> String {
    |          `- note: add '@MainActor' to make local function 'convertMethod' part of global actor 'MainActor'
134 |         if txt.starts(with: "@") {
135 |             // TODO, examples:
    :
155 |                     args = assembleArgs (method, method.arguments)
156 |                 }
157 |             } else if let m = builtinMap [type] {
    |                               `- error: main actor-isolated var 'builtinMap' can not be referenced from a nonisolated context
158 |                 if let method = findMethod (name: member, on: m) {
159 |                     args = assembleArgs(nil, method.arguments)
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/Generator/Generator/Enums.swift:139: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
    :
137 |         }
138 |         if let prefix {
139 |             globalEnums [prefix + enumDef.name] = enumDef
    |             `- error: main actor-isolated var 'globalEnums' can not be mutated from a nonisolated context
140 |         }
141 |     }
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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
[197/207] Compiling Generator Arguments.swift
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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 {
[198/207] Compiling Generator BuiltinGen.swift
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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 {
[199/207] Compiling Generator MethodGen.swift
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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
[200/207] Compiling Generator NativeStructures.swift
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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
[201/207] Compiling Generator ClassGen.swift
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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 {
[202/207] Compiling Generator Data.swift
/host/spi-builder-workspace/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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/.build/checkouts/SwiftGodot/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 {
[203/207] Compiling Generator Printer.swift
[204/207] Compiling Generator StringOperations.swift
BUILD FAILURE 6.0 linux