Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MatanArmoza opened this issue Jun 19, 2024 · 1 comment
Open

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

MatanArmoza opened this issue Jun 19, 2024 · 1 comment

Comments

@MatanArmoza
Copy link

MatanArmoza commented Jun 19, 2024

Hello,

  • Affected language: Lua
  • OS: Ubuntu
  • FlatBuffers version: 24.3.25

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
Copy link
Contributor

TJKoury commented Jun 24, 2024

#7111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants