Flatbuffers flatc 模式编译器不生成文件

Flatbuffers flatc schema compiler not generating file

我正在尝试 运行 flatc -s test.idl 但没有成功。这曾经有效,但在更换笔记本电脑后,我无法再编译模式了。如果我故意破坏 test.idl,我会得到错误,但如果语法正确,它只会默默地失败。

test.idl 看起来像这样:

namespace Foo;
enum Type : byte {
  type_request = 1,
  type_reply = 2,
}

struct UUID {
  low_bytes: ulong;
  high_bytes: ulong;
}

table Request {
  req_id: UUID    ( required );
}
root_type Request;

table Reply {
  req_id: UUID    ( required );
}
root_type Reply;

有什么想法吗?我可能 运行 正在使用不同版本的 flatc(当前为 1.7.0),有什么变化吗?

我找到了答案,似乎(仅?)现在支持 .fbs 扩展,因此更改名称和 运行 flatc -s test.fbs 可以正常工作。