Hi Rob,
sure thing. I’ve reduced it to this main.lua:
setmetatable(\_G, { \_\_newindex = function( \_, n) error( "Attempt to write an undeclared variable! " .. n, 2 ) end, \_\_index = function(\_, n) error( "Attempt to read an undeclared variable! " .. n, 2 ) end, }) local pbit = require( 'plugin.bit' ) print( "Hello there!" )
The error I’m getting is:
Copyright (C) 2009-2018 C o r o n a L a b s I n c . Version: 3.0.0 Build: 2018.3276 Loading project from: ~/Corona/Pruebas Project sandbox folder: ~/Library/Application Support/Corona Simulator/Pruebas-A75E94AAF1DE89AC09940DAF4DDF321E Platform: GT-I9300 / x86\_64 / 10.13.4 / Apple Software Renderer / 2.1 APPLE-16.5.10 / 2018.3276 / en-ES | ES | en\_ES | en ERROR: Runtime error [string "--..."]:91: Attempt to write an undeclared variable! settings stack traceback: [C]: in function 'error' /Users/jaime/Corona/Pruebas/main.lua:6: in function \</Users/jaime/Corona/Pruebas/main.lua:5\> [string "--..."]:91: in main chunk ?: in function 'require' /Users/jaime/Corona/Pruebas/main.lua:14: in main chunk
build.settings correctly asks for plugin.bit. Liine 14 is of course the one "local pbit = require( ‘plugin.bit’ ) "
Best regards