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

Failed to parse message in lua when proto file imports another proto file #20

Open
qiyuguo opened this issue Mar 20, 2015 · 5 comments
Open

Comments

@qiyuguo
Copy link

qiyuguo commented Mar 20, 2015

Failed to parse message in lua, when the message contains embedded field which is defined in another proto file.

the error message and stack:

[LUA-print] LUA ERROR: [string "pb/containers.lua"]:27: attempt to index field '_message_descriptor' (a nil value)

[LUA-print] stack traceback:
[string ".\script/main.lua"]:53: in function <[string ".\script/main.lua"]:50>
[string "pb/containers.lua"]:27: in function 'add'
[string "pb/decoder.lua"]:249: in function 'field_decoder'
[string "pb/protobuf.lua"]:684: in function '_InternalParse'
[string "pb/decoder.lua"]:271: in function 'field_decoder'
[string "pb/protobuf.lua"]:684: in function '_internal_parse'
[string "pb/protobuf.lua"]:693: in function 'merge_from_string'
[string "pb/protobuf.lua"]:702: in function 'ParseFromString'

@qiyuguo
Copy link
Author

qiyuguo commented Mar 20, 2015

Is it a bug? or I missed something when compiling proto files?
Any suggestion or solution will be appreciated.

@ukid
Copy link

ukid commented May 25, 2015

This project does have some bugs,most in encrypting messages in lua.You may post your proto file here,or we can help you to figure it out

@nneesshh
Copy link

did this bug is fixed?

@a652
Copy link

a652 commented May 31, 2019

I got this error message either...

[error] 16634#0: *331110815 lua entry thread aborted: runtime error: lua/protobuf/containers.lua:27: attempt to index field '_message_descriptor' (a nil value)
stack traceback:
coroutine 0:
lua/protobuf/containers.lua: in function 'add'
lua/protobuf/decoder.lua:249: in function 'field_decoder'
lua/protobuf/protobuf.lua:684: in function '_internal_parse'
lua/protobuf/protobuf.lua:693: in function 'merge_from_string'
lua/protobuf/protobuf.lua:702: in function 'ParseFromString'

@ukid
Copy link

ukid commented May 31, 2019

@a652 I recommend you use starwing/lua-protobuf instead.

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

4 participants