cloudwu / pbc

A protocol buffers library for C
MIT License
1.62k stars 567 forks source link

parser.lua 解析报错问题 #112

Open mxdy opened 6 years ago

mxdy commented 6 years ago

02-05 18:49:09.616 26004-26025/? I/Unity: LuaScriptException: [string "pbc/parser.lua"]:258: RechargeActivity at LuaInterface.LuaState.ThrowExceptionFromError (Int32 oldTop) [0x00000] in :0 at LuaInterface.LuaState.DoString (System.String chunk, System.String chunkName, LuaInterface.LuaTable env) [0x00000] in :0 at LuaInterface.LuaState.DoString (System.String chunk) [0x00000] in :0 at LuaScriptMgr.DoString (System.String str) [0x00000] in :0 at LuaMgr.Init () [0x00000] in :0 at GameSystem.Start () [0x00000] in :0 at EngineFramework.Awake () [0x00000] in :0 UnityEngine.GameObject:Internal_AddComponentWithType(Type) UnityEngine.GameObject:AddComponent(Type) UnityEngine.GameObject:.ctor(String, Type[]) MonoSingleton`1:get_Instance() SceneProc:Awake()

                                      (Filename:  Line: -1)

不知道这个报错什么意思,我的注册顺序保证了RechargeActivity先声明,另一个proto依赖这个,但是这个proto在它下面注册的。这个错误的原因是什么呢,希望指点

sniper00 commented 6 years ago

要先注册,依赖的