in plugin.thrift, the structs are ordered
but t_struct refers to t_field. So when I gen ocaml code:
thrift//compiler/cpp/thrift -r --gen ocaml thrift/compiler/cpp/src/thrift/plugin/plugin.thrift
ocamlfind ocamlc -thread -package thrift -c gen-ocaml/plugin_types.mli
File "gen-ocaml/plugin_types.mli", line 284, characters 23-30:
Error: Unbound type constructor t_field
Fixing is easy (since the types aren't recursive) – just swap the order of the structs.