oniksan / godobuf

A Google Protobuf implementation for Godot / GDScript
BSD 3-Clause "New" or "Revised" License
260 stars 36 forks source link

Add command line interface #17

Closed StefanLobbenmeier closed 3 years ago

StefanLobbenmeier commented 3 years ago

I want to be able to compile the protobuf files during a CI workflow, so I need to call this addon from the terminal. From local testing it generated the same output when calling from the terminal as when calling from the UI.

I did get a strange error message after compilation though:

* Output file was created successfully. *
Compiled 'redacted' to 'redacted'.
ERROR: ~List: Condition "_first != __null" is true.
   At: ./core/self_list.h:112.
ERROR: ~List: Condition "_first != __null" is true.
   At: ./core/self_list.h:112.
WARNING: cleanup: ObjectDB instances leaked at exit (run with --verbose for details).
   At: core/object.cpp:2132.
ERROR: clear: Resources still in use at exit (run with --verbose for details).
   At: core/resource.cpp:450.

Process finished with exit code 0

Not quite sure what to do about the error message, I do not know Godot that well yet.

ERROR: clear: Resources still in use at exit (run with --verbose for details).
   At: core/resource.cpp:450.

seems to go away if I delete

tool
extends Node

from parser.gd, but I did not dare to remove it in this Pull Request.