C#] [Export] does not support struct types (GD0102), inconsistent with GDScript struct support
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C++
- スター
- 6.1k
- フォーク
- 337
- 平均マージ
- 5日 8時間
- マージ済み PR(30日)
- 13
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Redot-Engine/redot-engine のほかの issue
-
bug topic:gdscript
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
Redot-Engine/redot-engine#1588 ·
メンテナーはふだん 1 日以内に返信
-
Handle stateful audio effects when a bus channel becomes inactive対応中かも @GeneralProtectionFault が 27 日前に担当しました。 オープン
Redot-Engine/redot-engine#1584 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug usability
難易度 3/5 1〜2日 初心者へのやさしさ 53/100
Redot-Engine/redot-engine#1583 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug confirmed topic:3d topic:rendering
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Redot-Engine/redot-engine#1568 ·
メンテナーはふだん 1 日以内に返信
-
bug enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
Redot-Engine/redot-engine#1559 ·
メンテナーはふだん 1 日以内に返信
Redot-Engine/redot-engine の issue をすべて見る
似ている issue
-
Make the HTTP server's keep-alive and headers timeouts configurable対応中かも @mattgodbolt が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
compiler-explorer/compiler-explorer#9902 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Nixtla/statsforecast#1371 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itself対応中かも @fedonman が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
task
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
SparseLinearAlgebra/spla#316 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信