Skip to content

error running example test.lua  #36

@onlynishant

Description

@onlynishant

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions