Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/10/14, 11:45 PM   #1
Tinuviel
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 7
IntelliJ and sylvanaar

Hi there,

As I am a professional developer that works in Visual Studio all day, I guess I'm a bit spoiled by IDE's with a good feature set. Specifically, I missed syntax checking and code completion (intellisense). Because of this, I looked around for a bit and finally found a very good solution. It adds both missing features - and after configuration - full API intellisense. As such, I figured I would share my findings with other developers.





IDE: IntelliJ Community Edition. You can find it here: http://www.jetbrains.com/idea/download/

After IntelliJ is installed, you then need to add LUA support, and luckly someone already made a plugin for this! To install it, open IntelliJ and go to File->Settings->Plugins, click on 'Browse Repositories', search for 'Lua', and click 'Install'. If you want more information about the plugin itself, you can find it here: https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Home.

Now all that is needed is to add the ESO API into the intellisense. This requires a set of .lua files that define the functions and constants. There was nothing out there I could find in this format, so I created them myself! Simply extract this zip out to a folder and you're ready for the next step:
https://www.dropbox.com/s/4gbmmerpes...lls-online.zip.

These lua files were generated with a set of powershell scripts I created. With those, I copy/paste the api information off the esoui wiki pages into a text document, save the document, then run the powershell scripts. For those interested in those scripts, please PM me.

To enable to API intellisense:
Create a new project, select 'Lua' as your framework, press 'configure', choose 'LuaJ' then press the '+' button on the right. In the dialog that pops up, select the folder you extracted earlier.

Now when you make new projects just select the 'LuaJ' target, and you will have intellisense for the ESO API and your own code!

Last edited by Tinuviel : 04/11/14 at 12:41 PM. Reason: I was super tired when I wrote this, so I just cleaned up a lot of grammar.
  Reply With Quote
 

ESOUI » Developer Discussions » Dev Tools » IntelliJ and sylvanaar

Thread Tools
Display Modes

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

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