Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Gideros API for Intellij IDEA — Gideros Forum

Gideros API for Intellij IDEA

yarlyyarly Member
edited April 2012 in General questions
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)
+1 -1 (+5 / -0 )Share on Facebook
«1

Comments

  • 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.
  • yarlyyarly Member
    edited April 2012
    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.
  • evsevs Member
    edited April 2012
    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
  • atilimatilim Maintainer
    @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)
    txt
    txt
    application.txt
    9K
  • yarlyyarly Member
    edited April 2012
    @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
  • yarlyyarly Member
    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
  • yarlyyarly Member
    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.
  • evsevs Member
    edited April 2012
    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
  • yarlyyarly Member
    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.
  • yarlyyarly Member
    edited April 2012
    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

    Likes: avo

    +1 -1 (+1 / -0 )Share on Facebook
  • 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
  • yarlyyarly Member
    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
    lua.png 150.6K
  • Yes I downloaded the zip file from bitbucket and then tried to install it via settings/plugins/...
  • avoavo Member
    edited April 2012
    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 Guru
    edited April 2012
    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)...

    Likes: MikeHart

    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
    +1 -1 (+1 / -0 )Share on Facebook
  • 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
  • avoavo Member
    @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.
  • @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?
  • installed intelliJ 10.5 and solved all my speed problems!

    Likes: avo

    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
    +1 -1 (+1 / -0 )Share on Facebook
  • avoavo Member
    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.

    Likes: GregBUG

    +1 -1 (+1 / -0 )Share on Facebook
  • 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
Sign In or Register to comment.