gdext icon indicating copy to clipboard operation
gdext copied to clipboard

Live-reload panic when changing export type

Open callumbirks opened this issue 1 year ago • 0 comments

Using godot 4.2-rc1, and gdext master (8ec6a22).

Repro steps:

  • Enable live reloading
  • Create a #[export] property in a GodotClass struct (i.e. test: bool)
  • Build, tab into editor to see property added to inspector
  • Change property type (i.e. test: i64)
  • Build, tab into editor
  • Receive some log in editor like:
/home/callumbirks/.cargo/git/checkouts/gdext-76630c89719e160c/8ec6a22/godot-core/src/lib.rs:155 - Rust function panicked in file /home/callumbirks/.cargo/git/checkouts/gdext-76630c89719e160c/8ec6a22/godot-core/src/builtin/meta/signature.rs at line 450. Context: set_test
/home/callumbirks/.cargo/git/checkouts/gdext-76630c89719e160c/8ec6a22/godot-core/src/lib.rs:103 - Panic msg:  set_test: parameter [0] has type i64, which is unable to store argument Variant(ty=Bool, val=true)

Noted that, everything still works fine, the property type still updates.

callumbirks avatar Nov 20 '23 23:11 callumbirks