You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python main.py
Traceback (most recent call last):
File "main.py", line 4, in <module>
thriftpy2.load('./test.thrift')
File "/Users/asaka/Codes/thriftpy2/thriftpy2/parser/__init__.py", line 33, in load
include_dir=include_dir)
File "/Users/asaka/Codes/thriftpy2/thriftpy2/parser/parser.py", line 588, in parse
parser.parse(data)
File "/Users/asaka/Codes/thriftpy2/venv/lib/python3.7/site-packages/ply/yacc.py", line 333, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/Users/asaka/Codes/thriftpy2/venv/lib/python3.7/site-packages/ply/yacc.py", line 1120, in parseopt_notrack
p.callable(pslice)
File "/Users/asaka/Codes/thriftpy2/thriftpy2/parser/parser.py", line 399, in p_ref_type
(p[1], p.lineno(1)))
thriftpy2.parser.exc.ThriftParserError: No type found: 'people.People', at line 3
The original thrift can parse this style's thrift but thriftpy2 does not. I think this should be a bug in thriftpy2.
The text was updated successfully, but these errors were encountered:
animal.people.thrift:
test.thrift:
main.py:
Run it:
The original thrift can parse this style's thrift but thriftpy2 does not. I think this should be a bug in thriftpy2.
The text was updated successfully, but these errors were encountered: