title: Using IntelliJ IDE and Lua Programming Language to make Corona Applications
body: <p>I have successfully installed:</p>
  
  <p>1) IntelliJ IDEA 10.0.3 with Lua Plugin
  2) Corona SDK
  3) Corona API for IntelliJ</p>
  
  <p>I can now use autocompletion features of Lua and Corona using IntelliJ IDEA</p>
  
  <p>Now my problem is : </p>
  
  <p>When I try to run a sample main.lua script file using IntelliJ IDEA, i get this error</p>
  
  <pre><code>"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
  </code></pre>
  
  <p>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</p>
  
  <p>I am attaching the screenshot too 
  <img src="https://i.stack.imgur.com/zySaw.png" alt="enter image description here"></p>