Go Back   WowAce Forums > General > Lua Code Discussion
Lua Code Discussion You scared? Terrified. Mortified. Petrified. Stupefied... by [coding].

Reply
 
Thread Tools
Old 08-31-2010   #1
sylvanaar
Legendary Member
 
Join Date: Nov 2006
Posts: 2,869
Default A Lua IDE

I know this may not be for everyone, but I have been working on a Lua IDE within IntelliJ.

If you would like to try it out, there is a free version of IntelliJ 10:

http://www.jetbrains.com/idea/free_java_ide.html

Here is a screencast of how to set up a project: http://www.screencast.com/t/78ltrNMsC7

There are loads of pictures here on the wiki page: http://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Home

ohloh page: http://www.ohloh.net/p/idlua

Here's an (incomplete) feature list
  1. Debugger (Experimental)
  2. Modules Support (Experimental)
  3. LuaDoc Highlighting and Folding (Experimental)
  4. Lua SDK REPL Console (Experimental)
  5. Live Templates ("Zen Lua")
  6. Basic Completions
  7. Quick Documentation with Multiple documentation providers
  8. Resolving Globals in project and libraries
  9. Custom API Support including custom function signatures (Experimental)
  10. Function Information via Quickhelp
  11. Lua Standard Library Information via Quickhelp (ctrl-Q)
  12. Hilighting of Upvalues and Fields
  13. Goto Symbol
  14. Safe Delete (Experimental)
  15. Rename Identifier (Experimental)
  16. JavaHelp For Lua 5.1
  17. Execution in the Kahlua interpreter
  18. Go to definition
  19. find usages
  20. Code formatting
  21. Keyword completion
  22. 1 quickfix
  23. 5 code intentions
  24. 6 code inspection
  25. Highlighting global vs local variables
  26. Script execution and run configurations
  27. Kahlua interpreter window for interactive script execution (repl)
  28. Comes with an embedded Lua compiler written in Java (Kahlua)
  29. Structure view
  30. Syntax checking
  31. Syntax highlighting - including proper handling of extended syntax comments and quotes
  32. Customizable highlighting colors
  33. Code folding for code blocks and comments
  34. Brace Matching for do blocks, long strings and comments, and (, { , [
  35. Minor feature: comment in/out.

To install the Lua plugin, use the plugin manager inside IntelliJ

To do so, choose File/Settings/Plugins, and Locate the Lua plugin and right click it and choose install.

I am using it for my plugin development now. The global vs local highlighting is very handy!

Another example of how its being used

Here are some screencasts so you can see it in action:

Unbalanced Assignment Quickfix
Custom APIs and Parameter Info
Code Formatter
Lua API Documentation

Here's a screeshot:









Attached Images
File Type: jpg 8-31-2010 5-42-00.jpg (89.4 KB, 358 views)
File Type: jpg 1-29-2011 10-33-46 PM.jpg (100.2 KB, 213 views)
File Type: jpg wow-api-docs.jpg (99.8 KB, 124 views)
File Type: jpg sampletext.jpg (95.1 KB, 125 views)
__________________

Last edited by sylvanaar; 05-30-2011 at 05:21 PM. Reason: updated features for 1.0.a05
sylvanaar is offline   Reply With Quote
Old 09-08-2010   #2
Squeeg
Senior Member
 
Squeeg's Avatar
 
Join Date: Sep 2007
Posts: 314
Default Re: My Work on a Lua IDE

Nifty *downloads*
__________________
English doesn't borrow from other languages. It follows them down dark alleys, knocks them over, and goes through their pockets for loose grammar.
Squeeg is offline   Reply With Quote
Old 09-08-2010   #3
egingell
Amazing Member
 
egingell's Avatar
 
Join Date: May 2006
Location: Cenarion Circle
Posts: 1,582
Send a message via AIM to egingell Send a message via MSN to egingell
Default Re: My Work on a Lua IDE

I would suggest compiling it into an executable JAR.
__________________
WoWWiki has moved! Please, make a note of it.
My Addons (a handy dandy list).
My Characters (yes, I have a guild with only me in it).
egingell is offline   Reply With Quote
Old 09-12-2010   #4
sylvanaar
Legendary Member
 
Join Date: Nov 2006
Posts: 2,869
Default Re: My Work on a Lua IDE

updated to version 0.8

experimental support for "find usages" and "go to definition" - mind you *alot* of cases don't work, but its a definite start
__________________
sylvanaar is offline   Reply With Quote
Old 09-12-2010   #5
sylvanaar
Legendary Member
 
Join Date: Nov 2006
Posts: 2,869
Default Re: My Work on a Lua IDE

Quote:
Originally Posted by egingell View Post
I would suggest compiling it into an executable JAR.
You have to install IntelliJ - its based on that platform - sort of like LuaEclipse
__________________
sylvanaar is offline   Reply With Quote
Old 09-12-2010   #6
sylvanaar
Legendary Member
 
Join Date: Nov 2006
Posts: 2,869
Default Re: My Work on a Lua IDE

updated to 0.8.1 - identifier resolution fixes

try ctrl-clicking various identifiers (currently only works with locals)
__________________
sylvanaar is offline   Reply With Quote
Old 09-13-2010   #7
egingell
Amazing Member
 
egingell's Avatar
 
Join Date: May 2006
Location: Cenarion Circle
Posts: 1,582
Send a message via AIM to egingell Send a message via MSN to egingell
Default Re: My Work on a Lua IDE

Quote:
Originally Posted by sylvanaar View Post
You have to install IntelliJ - its based on that platform - sort of like LuaEclipse
Or you can pre-compile it into a self executing JAR file. What's the point of using a Java IDE to run an IDE that's written for Java when you can just use Java to run the IDE?
__________________
WoWWiki has moved! Please, make a note of it.
My Addons (a handy dandy list).
My Characters (yes, I have a guild with only me in it).
egingell is offline   Reply With Quote
Old 09-13-2010   #8
sylvanaar
Legendary Member
 
Join Date: Nov 2006
Posts: 2,869
Default Re: My Work on a Lua IDE

Quote:
Originally Posted by egingell View Post
Or you can pre-compile it into a self executing JAR file. What's the point of using a Java IDE to run an IDE that's written for Java when you can just use Java to run the IDE?

Its an extension to the IDE. (Like LuaEclipse is an extension of Eclipse and runs under Eclipse)

You can use it in several of their other IDE's like Ruby Mine, PyCharm, WebStorm, etc.

I'm not sure how to reuse their platform to make a Lua-only IDE.

Have you tried it out?
__________________
sylvanaar is offline   Reply With Quote
Old 09-13-2010   #9
sylvanaar
Legendary Member
 
Join Date: Nov 2006
Posts: 2,869
Default Re: My Work on a Lua IDE

Updated to 0.8.2 - support for for loop identifiers
__________________
sylvanaar is offline   Reply With Quote
Old 09-13-2010   #10
egingell
Amazing Member
 
egingell's Avatar
 
Join Date: May 2006
Location: Cenarion Circle
Posts: 1,582
Send a message via AIM to egingell Send a message via MSN to egingell
Default Re: My Work on a Lua IDE

Quote:
Originally Posted by sylvanaar View Post
Its an extension to the IDE. (Like LuaEclipse is an extension of Eclipse and runs under Eclipse)
Have you tried it out?
So, it's not an actually IDE. It's an IDE plug-in.

Quote:
Originally Posted by sylvanaar View Post
Have you tried it out?
No, and I have no intention to.
__________________
WoWWiki has moved! Please, make a note of it.
My Addons (a handy dandy list).
My Characters (yes, I have a guild with only me in it).
egingell is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:42 PM.