Sample code in Sublime / Corona Editor getting attempt to index a nil value

I have installed Corona SDK and can run sample apps from there just fine.  Now, I installed Sublime and the Corona Editor on top of that.  I also downloaded Lua, compiled it, and adjusted Sublime path to point to that version of Lua.  I set Sublime to treat all files with lua extension as Corona SDK Lua files.  When I open the main.lua from any of the sample apps and build it I am getting an “attempt to access nil value (global ‘display’)”.  This is occurring on the first executable line of each sample program.  See attached screen shot.

  

Corona SDK uses it’s own version of Lua compiled into the product. You cannot use the external standalone version of Lua. Lua doesn’t know about Corona SDK APIs.

Rob

Thanks Rob!  A short while after posting this I stumbled on the ability to run the project from the Corona Editor menu :slight_smile:

Corona SDK uses it’s own version of Lua compiled into the product. You cannot use the external standalone version of Lua. Lua doesn’t know about Corona SDK APIs.

Rob

Thanks Rob!  A short while after posting this I stumbled on the ability to run the project from the Corona Editor menu :slight_smile: