I'm having problems while trying to debug Premake5 (https://github.com/premake/premake-core) on macOS Sierra 10.12, using ZeroBrane
I've added the package.cpath and package.path (before calling require('mobdebug').start()
) as described in ZeroBrane documentation, but I always have the same error:
Error: error loading module 'socket.core' from file '/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/clibs53/socket/core.dylib':
file is not a bundle
Or, if I re-compile Lua with LUA_USE_DLOPEN I get a different error:
Error: error loading module 'socket.core' from file '/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/clibs/socket/core.dylib':
dlopen(/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/clibs/socket/core.dylib, 2): Symbol not found: _luaL_prepbuffsize
Referenced from: /Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/clibs/socket/core.dylib
Expected in: flat namespace
in /Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/clibs/socket/core.dylib
Any help available?
Thanks