godot-kotlin-jvm icon indicating copy to clipboard operation
godot-kotlin-jvm copied to clipboard

Game Window closes itself without any error message when GDJ files are outdated

Open MartinHaeusler opened this issue 1 year ago • 2 comments

I've experienced the following several times:

  • change some kotlin files which have @RegisterClass on them
  • forget to rebuild gradle
  • switch to godot editor
  • launch the game
  • the game window appears...
  • ... and closes itself immediately again

The issue here is that we get no error message or any indication of what went wrong. Perhaps we could improve upon this by showing some logs?

MartinHaeusler avatar Jan 10 '24 13:01 MartinHaeusler

The logs should already be printed to the editor log window as well as to the system terminal (if the editor was launched through that). I'll check what C# does here and suggest that we'll align us with them there as they have the same challanges

chippmann avatar Feb 08 '24 10:02 chippmann

@chippmann I've never seen this issue again ever since. Maybe it was some sort of race condition between my gradle build running in the background and the godot editor grabbing the GDJ files. But I agree, seeing some kind of message in case of a fatal error would be very useful for debugging.

MartinHaeusler avatar Feb 08 '24 16:02 MartinHaeusler