Skip to content

Conversation

@jtdavis777
Copy link
Collaborator

Fixes #8635

The lua generator expects a root type to be present, but only for comment header generation. This fix just omits the line when a file is presented that isn't from a rooting type.

@github-actions github-actions bot added c++ codegen Involving generating code from schema lua labels Nov 11, 2025
@jtdavis777
Copy link
Collaborator Author

@aardappel this one is also ready and I think should be a quick review -- I was able to test the problem fbs file from the linked ticket and get a successful operation.

@aardappel aardappel enabled auto-merge (squash) November 17, 2025 22:27
@aardappel aardappel merged commit ac8b124 into google:master Nov 17, 2025
50 checks passed
@jtdavis777 jtdavis777 deleted the fix/lua_no_root_table branch November 19, 2025 00:13
TJKoury pushed a commit to DigitalArsenal/flatbuffers that referenced this pull request Nov 19, 2025
Co-authored-by: Wouter van Oortmerssen <aardappel@gmail.com>
TJKoury pushed a commit to DigitalArsenal/flatbuffers that referenced this pull request Nov 19, 2025
Co-authored-by: Wouter van Oortmerssen <aardappel@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ codegen Involving generating code from schema lua

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flatc --lua segfaults when missing root_type

2 participants