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
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.
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).
There is a good blog post that explains the setup
http://producerism.com/blog/how-to-develop-in-corona-sdk-on-windows/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With