Quick Links: Gideros Home | Download Gideros | Developer Guide
Gideros API for Intellij IDEA - Gideros Forums
Gideros API for Intellij IDEA
  • yarly +1 -1 (+5 / -0 )
    Just thought I would share this basic API I made for the lua plugin for Intellij IDEA. No documentation to go with it yet, but the API does what you need. I didn't see one out there posted anywhere yet. It's updated to work with the latest API changes.

    You also need https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Home as well as Intellij IDEA of course to use it.

    http://pastie.org/3709547

    EDIT: added the missing parts evs pointed out. Thanks evs!

    EDIT: added in the new changes to the API Release notes (2012.2.2)
  • wow! thanks! yarly!!! i use IntelliJ IDEA and this is very very very very USEFUL!!!!!

    thanks!. :)>-
    Gianluca.
    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
  • Is that pastie link the one for the api he made? I don't like clicking on links that hide where there are leading to.
  • The pastie link is a site that lets you paste code snippets. His link doesn't redirect you to anything else.
  • Ah ok, never heard about it. I would use this on twitter where character space is relevant. Not really on a forum. But hey, thanks for sharing.
  • Sure, no problem :)

    If i missed anything just let me know. The lua plugin developer is supposed to be adding inheritance and some other nice features in his next update that will make it even better.

    pastie.org is just my favorite pastebin like site (I like the dark theme). It's not a link shortener or anything. It wouldn't let me just attach the file here or I would have done that.

    I used some regex and some manual editing to create it, but if Gideros used Doxygen documentation, we could auto generate the API needed. Wonder if they would be receptive to switching or adding it to the site.
  • Thanks,

    There's also:

    Event.APPLICATION_EXIT
    Event.APPLICATION_RESUME
    Event.APPLICATION_START
    Event.APPLICATION_SUSPEND
    Event.KEY_DOWN
    Event.KEY_UP

    cheers

    evs
  • FAIL!
    I am so tired about software where you have fiddle around to get it work. I will skip this.

    After installing the LUA plugin, I got the attached error.
    2012-04-02_1717.png
    1181 x 167 - 40K
  • @yarly

    Do you know IntelliJ parses the html output of doxygen or needs to use a more raw format?

    (I'm attaching an example of our internal documentation format. It uses markdown and a small .lua file parses and converts it into html)
    application.txt
    9K
  • @atilim

    It needs a more raw format. Here's an example for Moai:

    http://pastebin.com/WHh8FMsS (the documention that comes up with quick help in intellij and code completion)

    http://pastebin.com/ZvUud6wy (the api that goes with it)

    Those can be generated from doxygen documentation using this: https://github.com/Odie/dox2intellij

    I think your internal documentation could be used instead as well with quick script to pull out the bits needed and formatted into something Intellij can read. The lua plugin creator has a page on how to properly format it here: https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Setting_Up_Custom_Documentation

    After it's parsed out and generated, the lua plugin for intellij would have no problems reading it. Would just need to add it via the directions here: https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Setting_Up_Custom_API's

    If you guys are able to work it out and have the time, that would be awesome, but if not and you can supply all the documentation in a plaintext way like that somewhere on the site, I wouldn't mind taking a crack at making a parser I would share with everyone to easily update it for every new API release so we can keep using it in Intellij without manual editing.

    @MikeHart

    No idea why you got an error offhand. The plugin isn't perfect, but it's still very useful and worth trying if one prefers having an IDE. Perhaps see it was submitted to the maintainer's bug reporter on bitbucket? He actively maintains the plugin and fixes things.
  • @all it's me or intelliJ is real slow ?

    tested on my MacBookPro(i5), PC (QuadCore Q9550 win7) and laptop (ubuntu 12.04 with ssd vertex 3) ?

    some tips to speed-up?
    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
  • How slow is it? Compare it to Eclipse. It'll be slower than native IDEs, since it's Java based. Are you using the latest, non beta?

    It also runs with java 6 by default (internal jre it comes with), but you can force it to use java 7 if you have it installed. Java 7 is a bit faster.
  • really slow. (i type a word and the lag is about 1-2 seconds)
    no problem at all with Eclipse.
    i use 11.1 (an oll systems) don't know on osx or linux but on windows i'm using java 7.
    i tried to deactivate all the "intentions" but not speed change...

    damn! ... I really like as editor....

    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
  • Have you disabled/removed any plugins you do not need? I know that can bring the speed down as there are a ton of them.
  • Hello,

    @gregbug That's strange because it is faster than Eclipse for me and I haven't removed any plug-ins! Just added the lua one - IntelliJ IDEA CE 11.1.1 Mac OS X 10.7.3 on an old white iMac Core 2 Duo 3 GB Ram (Java 6)


    cheers

    evs
  • Yeah, it's way faster for me as well (former eclipse convert to Intellij and eclipse was much slower). Using Kubuntu 11.10, Core i7 920, 16GB RAM + SSD drive.

    It's slow on my Netbook , but I would be shocked if a Java based IDE wasn't.
  • yarly +1 -1 (+1 / -0 )
    Some people have complained about performance in the latest version of intellij, perhaps roll back to the previous one if you can

    http://blogs.jetbrains.com/idea/2012/03/intellij-idea-1111/#comments

    http://devnet.jetbrains.net/docs/DOC-1228

    Loves: avo

  • Still can't get that damn LUA plugin to install. Do you know any other free editor that has a decent function list (on the side of the code) and can be customized to handle the syntax of gideros? That is all I need.
  • So, I shall ask the question.

    Is everyone jumping ship from the Gideros IDE and going 3rd party?

    Cheers
  • MikeHart said:

    Still can't get that damn LUA plugin to install. Do you know any other free editor that has a decent function list (on the side of the code) and can be customized to handle the syntax of gideros? That is all I need.



    How are you installing it? Are you doing it from the plugins area under settings in intellij? Don't get it from the bitbucket link if that's what you're doing. See attached png for details.

    Eclipse would probably work as it has a Lua plugin, but I never tried the Lua plugin myself.
    lua.png
    1031 x 845 - 151K
  • Yes I downloaded the zip file from bitbucket and then tried to install it via settings/plugins/...
  • zakkwylde said:

    So, I shall ask the question.

    Is everyone jumping ship from the Gideros IDE and going 3rd party?

    Cheers



    I think most would agree Gideros having its own ide is really great, but also that adding features we can use to make better apps is probably more important to most people than a slightly better IDE, when we can use a 3rd party if necessary in the short term.

    The ide as is for me is sufficient so far, but I'm looking into the IntelliJ route as well, although I have the same slowness problem as GregBUG.

    edit: @GregBUG I had the same problem with 2-4 sec lag on typing. I installed 11.0.2 again from yarly's link here http://devnet.jetbrains.net/docs/DOC-1228 and it seems to have fixed the problem. It's the second one, I almost got tricked into downloading the ultimate version :)
  • GregBUGGregBUG +1 -1 (+1 / -0 )
    i also tried to disable all plugins... (except for lua one) but is also slow
    ... :(

    the main feature that i like to see in gideros ide is "functions list browser"...
    very very handy for large projects... (is the major reason that i installed intelliJ)...

    Loves: MikeHart

    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
  • GregBUG said:

    the main feature that i like to see in gideros ide is "functions list browser"...
    very very handy for large projects... (is the major reason that i installed intelliJ)...



    shhht, don't mention it. They know that already because I bugged them so many times.

    :D
  • @MikeHart your problem might be from trying to install it manually? It worked for me from going through the Plugin menu in IntelliJ. It's simply called "Lua" and has a lot of downloads.
  • avo said:

    @MikeHart your problem might be from trying to install it manually? It worked for me from going through the Plugin menu in IntelliJ. It's simply called "Lua" and has a lot of downloads.



    Thanks, I might give it another try.

  • :-\"
    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
  • So, what do I do with that pastie link above?
  • GregBUGGregBUG +1 -1 (+1 / -0 )
    installed intelliJ 10.5 and solved all my speed problems!

    Loves: avo

    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
  • avoavo +1 -1 (+1 / -0 )
    MikeHart said:

    So, what do I do with that pastie link above?



    I saved it as a lua file and put it into a folder then I added that folder following the directions shown in the screenshots here: https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Installing_a_Custom_API

    It works adding to "Kahlua" for me, even though I installed Lua 5.1.4 first since I thought I had to.

    Loves: GregBUG

  • avo said:

    MikeHart said:

    So, what do I do with that pastie link above?



    I saved it as a lua file and put it into a folder then I added that folder following the directions shown in the screenshots here: https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Installing_a_Custom_API

    It works adding to "Kahlua" for me, even though I installed Lua 5.1.4 first since I thought I had to.



    installed same as @avo
    and work fine. (also on ItelliJ 10.5.4 at full speed!)
    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
  • Ok, got it working. Thanks for all the help. =D>
  • If the guys at gideros can supply us with some sort of full documentation like the snippet they linked above, we can get the internal doc/quick help to work with gideros in intellij as well. It could be done without that via the html doc on the site, but that's harder to parse so I'm holding off trying to do that until we hear something back.
  • @GregBUG Is it still full speed for you? I downgraded to 11.02 and it was fast for a bit but now its real slow again, weird.

    I see you are using 10.5.4 I'll try that next if yours is still working :)
  • GregBUGGregBUG +1 -1 (+1 / -0 )
    @avo Yes work at full speed. (using now on win7).
    And for me no really functionals differences from 11.1. :)

    Loves: avo

    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
  • Just a few random things with intellij if anyone finds it useful:

    A good font for it:

    http://chrisrickard.blogspot.com/2010/03/dina-font-for-visual-studio-2010.html (set the font to size 12 for optimal use).

    Attached is the custom theme I made for it for anyone that would like to try it(you will have to rename the .txt file back to .jar and then import it into intellij). I like dark themes as they're easier on the eyes :)

    If anyone is interested, I could write up a small "how to" tie gideros into intellij so you can build your apps with it (for testing) like you would on their IDE with intellij's command line tools.
    theme.png
    487 x 323 - 14K
    myintellijsettings.txt
    4K
  • @yarly

    Nice Theme! I'd like to see a "how to".

    I currently use an AppleScript from intelliJ to run code via Gideros Studio and either the iOS Simulator, Gideros Player or connected device. With Gideros studio showing the console output.


    cheers

    evs
  • I am interested, but do you mean something besides saving you from clicking back to gideros and hitting play?
  • Hello,

    @avo
    I have it set up so that I just click run in intelliJ, I don't have to touch Gideros Studio, unless I change to another project.


    cheers

    evs
  • yarly +1 -1 (+3 / -0 )
    Thanks evs. I probably would have gone that route too for building if I currently was not using mainly windows and would like to avoid their methods of scripting for the OS, lol.

    @avo
    Intellij has the ability to set up custom command line tools using http://www.jetbrains.com/idea/webhelp/creating-a-command-line-tool.html and http://www.jetbrains.com/idea/webhelp/creating-and-editing-run-debug-configurations.html. In short, you can build a project with it, launch the gideros player or run the android emulator/ios simulator or whatever.

    I'll write something up less abstract though that shows how to work with gideros in it so having the gideros IDE open isn't needed.

    Loves: MikeHart, avo, gorkem

  • Here's an alternative dina font. The other one doesn't work on my mac

    http://www.geenat.com/?p=66 size 13 or 14 looks best to me


    cheers

    evs
  • The one hangup with Intellij and running things is using the Gideros Player itself. Putting stuff on android and iOS goes okay with command line tools, but having it launch locally to the player, I don't think can be done without a small script with vbscript or applescript to send the proper keystrokes.

    It's odd the player doesn't accept running an app as an argument to run it like Moai, LOVE or Corona do, but it doesn't. I'm not quite sure how it runs it when you click play exactly in GiderosPlayer as no packets seem to be sent from the tcp connection the GiderosIDE makes with the player.
  • evs said:

    Here's an alternative dina font. The other one doesn't work on my mac

    http://www.geenat.com/?p=66 size 13 or 14 looks best to me


    cheers

    evs



    I've tried that one before and it looks a bit weird in bold (like too curved) but it's pretty much the same otherwise. The original dina font is a bitmap font (http://www.donationcoder.com/Software/Jibz/Dina/), but bitmap fonts don't seem to work in Intellij as far as I've tried (java doesn't support them :( ).


  • yarly said:

    The one hangup with Intellij and running things is using the Gideros Player itself. Putting stuff on android and iOS goes okay with command line tools, but having it launch locally to the player, I don't think can be done without a small script with vbscript or applescript to send the proper keystrokes.

    It's odd the player doesn't accept running an app as an argument to run it like Moai, LOVE or Corona do, but it doesn't. I'm not quite sure how it runs it when you click play exactly in GiderosPlayer as no packets seem to be sent from the tcp connection the GiderosIDE makes with the player.



    From what I heard, there is some data transfered to the player. Maybe you are watching the wrong ports.

  • Hmm...I'll try running it through wireshark again with a different project that hasnt been loaded before and see if anything happens.
  • Has anyone made anymore progress with this?
  • I've made a step by step video tutorial on how to setup IntelliJ to work with Corona SDK (including autocompletion and parameter info).

    I KNOW this is not the Corona forum. But to setup for Gideros, just download the Gideros API reference instead (provided by the OP at http://pastie.org/3709547). Same process, different paths. The video may be useful for some that are having trouble setting up IntelliJ.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID

In this Discussion

Top Posters