google / flatbuffers

FlatBuffers: Memory Efficient Serialization Library
https://flatbuffers.dev/
Apache License 2.0
22.52k stars 3.19k forks source link

Auto-generated Lua files doesn't support lower-case struct name #8334

Open MatanArmoza opened 2 weeks ago

MatanArmoza commented 2 weeks ago

Hello,

I have a basic hello.fbs file:

namespace foo;

struct header {
  tag:int;
}

table hello {
  head:header;
  msg:string;
}

root_type hello;

When I generate Lua files for this fbs (using flatc --lua hello.fbs), I get the following files: foo/Header.lua foo/Hello.lua

The first line in Hello.lua is local __sensor_header = require('sensor.header') But, sensor.header is not an existing file because of its case-sensitivity.

Thank you.

TJKoury commented 1 week ago

https://github.com/google/flatbuffers/issues/7111