I have a directory called Starter2 which stores all of my app data. I downloaded a library called sano.lua which implements a variety of data structures that I want to use. This is all i have in my main.lua, which is the exact implementation spelled out in the Sano API:
[lua]
local sano = require “sano”
local v = sano.Vector:new()
[/lua]
If I run via the Corona Simulator i get the error:
--------------------------------------------------------------------------------------------------------------
File: …eorgetown/Computer Science/GameDev/Starter2/sano.lua
Line: 7386
Attempt to call a nil value
stack traceback:
[C]: ?
…eorgetown/Computer Science/GameDev/Starter2/sano.lua:7386: in function <…eorgetown/Computer Science/GameDev/Starter2/sano.lua:7378>
(tail call): ?
…eorgetown/Computer Science/GameDev/Starter2/main.lua:8: in main chunk
--------------------------------------------------------------------------------------------------------------
The reason I am really confused is that if I navigate to the Starter2 folder in terminal and run :
lua main.lua
It runs with no errors.
Is this a bug in the Corona Simulator? Could it be related to the fact that I am still using the Free starter version?