flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

-o option conflicts with namespace when generating lua code.

Open wxjcug opened this issue 1 month ago • 1 comments

flatc.exe --lua -o lua schema.fbs

if there is a namespace declaration in the firtst line of schema.fbs, it will generate two empty folders with out any code.

wxjcug avatar Nov 07 '25 02:11 wxjcug

@wxjcug I have identified the issue and also created a PR and I don't know when it will be reviewed so you can follow the given fix

  • Use ConCatPathFileName(options_.output_path, path) and EnsureDirExists(full_dir) so generators create namespace directories under the provided -o path.

beingbrijesh avatar Nov 08 '25 19:11 beingbrijesh