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

error running example test.lua #36

Open
onlynishant opened this issue Nov 30, 2017 · 2 comments
Open

error running example test.lua #36

onlynishant opened this issue Nov 30, 2017 · 2 comments

Comments

@onlynishant
Copy link

onlynishant commented Nov 30, 2017

I tried running test.lua after compiling you code but getting error.

$ lua -v
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
$ protoc --version
libprotoc 3.4.0
$ protoc --lua_out=./ person.proto
$ lua test.lua
lua: ../protobuf/encoder.lua:224: attempt to call upvalue '_EncodeSignedVarint' (a nil value)
stack traceback:
	../protobuf/encoder.lua:224: in function <../protobuf/encoder.lua:219>
	(tail call): ?
	../protobuf/encoder.lua:257: in function '?'
	../protobuf/protobuf.lua:302: in function '_AttachFieldHelpers'
	../protobuf/protobuf.lua:904: in function 'Message'
	./person_pb.lua:104: in main chunk
	[C]: in function 'require'
	test.lua:4: in main chunk
	[C]: ? 

Can you please guide me?

@0xkilen
Copy link

0xkilen commented Mar 29, 2021

Have you solved it? I have the same problem

@0xkilen
Copy link

0xkilen commented Mar 29, 2021

pb and encoder.lua do not match maybe, I'll just regenerate it and solve it(no that error)

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

2 participants