Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using IntelliJ IDE and Lua Programming Language to make Corona Applications

I have successfully installed:

1) IntelliJ IDEA 10.0.3 with Lua Plugin 2) Corona SDK 3) Corona API for IntelliJ

I can now use autocompletion features of Lua and Corona using IntelliJ IDEA

Now my problem is :

When I try to run a sample main.lua script file using IntelliJ IDEA, i get this error

"C:\Program Files\Lua\5.1\lua.exe" C:/Users/mshahab/IdeaProjects/TestOne/main.lua
C:\Program Files\Lua\5.1\lua.exe: C:/Users/mshahab/IdeaProjects/TestOne/main.lua:1: attempt to index global 'display' (a nil value)
stack traceback:
    C:/Users/mshahab/IdeaProjects/TestOne/main.lua:1: in main chunk
    [C]: ?

Process finished with exit code 1

And when I run it (main.lua file) manually using the Corona Simulator it works fine. I am not sure what am I missing here ? Any pointers would be great :) Thanks

I am attaching the screenshot too enter image description here

like image 215
Muhammad Shahab Avatar asked May 31 '11 08:05

Muhammad Shahab


People also ask

Can you make programs with Lua?

Lua can be used in everyday applications to extend the existing functionality or create new features and functions. Some popular games, programs, and services that use Lua are Dark Souls, Fable II, Garry's Mod, Wireshark, VLC, Apache, and Nginx Web Servers.

What IDE uses the Lua language?

If you want an IDE, try ZeroBrane Studio. If you use Linux or Mac OS X, Lua is either already installed on your system or there is a Lua package for it. Make sure you get the latest release of Lua (currently 5.4. 4).


1 Answers

There is a good blog post that explains the setup

http://producerism.com/blog/how-to-develop-in-corona-sdk-on-windows/

like image 176
sylvanaar Avatar answered Oct 06 '22 04:10

sylvanaar