Using idea intellij with Corona

Has anyone been able to set up idea Intellij idea with corona SDK? Here’s what I’ve tried:

  1. Installed community version of IntelliJ idea

  2. I’ve installed the Lua SDK

  3. Installed the Lua for idea plugin by following the screenshots on the bottom of the page

  4. I created a project and dumped the files from this corona sample game project into it

  5. I installed the corona API plugin by downloading the link and following the instruction found here

  6. I went into the Edit -> Project Structure and made sure that I have the Lua SDK and the Lua for Idea plugin loaded

When I try to run the project however, I get an error that ‘composer’ is not defined. This makes me think that Corona SDK is not linked to the project. How do I link Corona SDK to my project?

I kinda solved the problem by using a different plugin. Its old but it still works. Instructions here: 

https://www.youtube.com/watch?v=9QFIHXmeRLk

The only thing is that corona has changed the way it works so you get this warning:

Note: 'Corona Terminal' is deprecated.  You should run the 'Corona Simulator' application instead.

I could not get that to work however but for now using the Corona Terminal works. If anyone has any clues about that let me know.

i did it only installing IntelliJ Idea. Inside it i search lua in plugins, install it from there and created a test file and worked.

Intelij has been my IDE at least for the past 3-4 years from a php to now a lua programmer.  I tried the corona editor plugins in sublime and atom, but I still missed the IDE built in functions that intelij has… which has always made me go back.

Jon’s lua plugin works, but it is very bare bones (and outdated) for autocompletion the corona side.

I’ve been meaning to actually go in and update it myself so that the autocompletion works for corona as well as get the debugger working. (all the recent blog posts have re-inspired me to do so)

I’ve just been stuck on trying to find how to easily extract the docs to the function list since the way jon got them was the old corona doc layout and before he refactored the backend.   I’ve been looking how the guy who made the love plugin for IDEA made their docs… and following a similar approach (https://github.com/rm-code/love-IDEA-plugin)
 

To solve the ‘corona terminal deprecated’ problem, you can set it up like this.

In your Run/Debug configurations:

/CoronaSDK-Beta/ folder can be whatever your path to Corona Simulator.app is at.

fPdlH2G.png

that way when you “Build” it will spit out the output in the Run output.

@noriega Thanks man you are awesome! Yeah debugging would be awesome! Let me know if you need help updating/developing a corona plugin for Idea IntelliJ. I’ll help with R&D :smiley:

You can hit me up at roman@chaoticformula.com

I kinda solved the problem by using a different plugin. Its old but it still works. Instructions here: 

https://www.youtube.com/watch?v=9QFIHXmeRLk

The only thing is that corona has changed the way it works so you get this warning:

Note: 'Corona Terminal' is deprecated.  You should run the 'Corona Simulator' application instead.

I could not get that to work however but for now using the Corona Terminal works. If anyone has any clues about that let me know.

i did it only installing IntelliJ Idea. Inside it i search lua in plugins, install it from there and created a test file and worked.

Intelij has been my IDE at least for the past 3-4 years from a php to now a lua programmer.  I tried the corona editor plugins in sublime and atom, but I still missed the IDE built in functions that intelij has… which has always made me go back.

Jon’s lua plugin works, but it is very bare bones (and outdated) for autocompletion the corona side.

I’ve been meaning to actually go in and update it myself so that the autocompletion works for corona as well as get the debugger working. (all the recent blog posts have re-inspired me to do so)

I’ve just been stuck on trying to find how to easily extract the docs to the function list since the way jon got them was the old corona doc layout and before he refactored the backend.   I’ve been looking how the guy who made the love plugin for IDEA made their docs… and following a similar approach (https://github.com/rm-code/love-IDEA-plugin)
 

To solve the ‘corona terminal deprecated’ problem, you can set it up like this.

In your Run/Debug configurations:

/CoronaSDK-Beta/ folder can be whatever your path to Corona Simulator.app is at.

fPdlH2G.png

that way when you “Build” it will spit out the output in the Run output.

@noriega Thanks man you are awesome! Yeah debugging would be awesome! Let me know if you need help updating/developing a corona plugin for Idea IntelliJ. I’ll help with R&D :smiley:

You can hit me up at roman@chaoticformula.com