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