Closed randyzwitch closed 5 years ago
I would check if https://github.com/eleme/thriftpy handles circular types. I am guessing that not. Anyway, I think it would be possible to implement it. I would also start from contributing the change to thriftpy.
thriftpy has this as an open issue as well
Thanks for letting us know @ethe!
@marekjagielski How are you generating the R code from the Python code? Is it something I can help with? I'd love to give thriftr another chance, as I'd love to avoid wrapping the Python thrift library using reticulate
and just use plain R directly
@randyzwitch , I am happy that you are willing to contribute. I will be busy next 2 months, so I will not be able to code on thriftr. There is no automatic generation of R code. I just went line by line and tried to translate the syntax. So this logic has to be added to thriftr: https://github.com/Thriftpy/thriftpy2/pull/21/files
There are some bugs in ThriftPy handling out-of-order definitions, see https://github.com/Thriftpy/thriftpy2/pull/42 and get more information.
@ethe Thank you! I will incorporate these changes to thriftr.
The Thrift spec allows for circular type definition; this currently throws an error (I presume from top-down parsing of the .thrift file)
Result: