C#] [Export] does not support struct types (GD0102), inconsistent with GDScript struct support
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start by tracing the GD0102 diagnostic for exported C# members and the export type validation path; the issue names no source files or tests. Check how GDScript struct support is represented and compare it with C#/Mono exports. Done means either C# struct fields can be exported with suitable coverage, or the limitation is documented clearly.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Tested versions
Latest Redot stable build.
System information
Window 11
Issue description
GDScript has support for struct types, but the equivalent C#/Mono side does not — marking a C# struct field with [Export] fails to compile with GD0102. This is inconsistent: both GDScript and C# are first-class scripting languages in Redot, but only one of them can use structs as an exportable grouping of related fields.
Expected: a C# struct should be exportable via [Export], consistent with GDScript's struct support — or, if this is intentionally unsupported, it should be documented clearly as a known C#/Mono limitation rather than failing with a generic "type not supported" diagnostic.
Actual: the project fails to build entirely, and they say that struct are not supported.
Steps to reproduce
Create a C# script with a [Export] field typed as a custom struct.
Attempt to build the project.
Build fails with GD0102.
Minimal reproduction code:
public partial class Test : Node
{
[Export] Stats stats;
}
public partial struct Stats
{
public int health;
public int maxHealth;
public int level;
public int maxLevel;
}
Error output:
GD0102: The type of the exported member 'Test.stats' is not supported
Minimal reproduction project (MRP)
Not needed just create a new mono project and export the C# struct as a member it will throw an error.
- Lenguaje dominante
- C++
- Estrellas
- 6.1k
- Forks
- 337
- Merge medio
- 5 d 8 h
- PR fusionados (30 d)
- 13
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Redot-Engine/redot-engine
-
Trait is not being resolvedAbiertobug topic:gdscript
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
Redot-Engine/redot-engine#1588 ·
Los mantenedores suelen responder en 1 día
-
Handle stateful audio effects when a bus channel becomes inactivePosiblemente ocupada @GeneralProtectionFault la tomó hace 27 días. Abierto
Redot-Engine/redot-engine#1584 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
bug usability
Dificultad 3/5 1-2 días Aptitud para principiantes 53/100
Redot-Engine/redot-engine#1583 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug confirmed topic:3d topic:rendering
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Redot-Engine/redot-engine#1568 ·
Los mantenedores suelen responder en 1 día
-
bug enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 57/100
Redot-Engine/redot-engine#1559 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Redot-Engine/redot-engine
Issues similares
-
Make the HTTP server's keep-alive and headers timeouts configurablePosiblemente ocupada @mattgodbolt la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
compiler-explorer/compiler-explorer#9902 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Nixtla/statsforecast#1371 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itselfPosiblemente ocupada @fedonman la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
task
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
SparseLinearAlgebra/spla#316 · 1 comentario ·
Los mantenedores suelen responder en 1 día