-
Notifications
You must be signed in to change notification settings - Fork 351
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
beginNamespace promblem #266
Comments
I'm having the same problem, Did you solve it? |
Rioni писал 2022-03-29 20:39:
I'm having the same problem, Did you solve it?
--
Reply to this email directly, view it on GitHub [1], or unsubscribe [2].
You are receiving this because you authored the thread.Message ID: ***@***.***>
No :(
I'm using another script language
Links:
------
[1]
#266 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/AOJX3AQTBA3CGNY2HA73MI3VCM56LANCNFSM5FSHIDDQ
|
Hi! I solved it, for some reason it works when I use in another class. It only gives the error in my Script class, I'm not sure why it happens but it seems to be that |
Next time please provide a minimal working example if you want to get a quick response. In you case such example is:
The lua_State* L = luaL_newstate();
luaL_openlibs(L); BTW this can be useful for debugging: #include <LuaBridge/detail/dump.h>
#include <sstream>
...
lua_State* L = luaL_newstate();
auto global = luabridge::getGlobalNamespace(L);
std::ostringstream stream; // There's no console in the app
luabridge::debug::dumpState(L, stream);
// Now can see the stream contents in the debugger. The stack has a single nil value |
Hello! I have a problem. I have registered several SFML classes, but it gives an error when running.
This error:
/home/pyxiion/lua/bridge2.6/LuaBridge/detail/Namespace.h:1034: luabridge::Namespace::Namespace(const char*, luabridge::Namespace&): Assertion lua_istable (L, -1)' failed.
I have a script class that looks like this:
I register classes first, call LoadFile, and then call Start
I do not know, maybe I should update LuaBridge.
Even when I register only the namespace, it throws this error.
I have debugged this code and I am sure that the error is happening right here.
I will try to update LuaBridge.(It didn't help)The text was updated successfully, but these errors were encountered: