Thread Tools Display Modes
01/09/15, 05:42 PM   #1
mctaylor
 
mctaylor's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 21
Originally Posted by katkat42 View Post
Personally, I'm waiting for someone to write an EMACS major mode...
There is a Lua mode already. Okay, not in the base distribution I believe, but really, did you think anything called a programming language lacked a emacs mode?

Now I will confess to having used notepad++, ZeroBrane Studio, and vim/gvim for my Lua/ESOUI work...

But let's not mix recreation with religions.
  Reply With Quote
01/11/15, 11:38 PM   #2
katkat42
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 155
Originally Posted by mctaylor View Post
There is a Lua mode already. Okay, not in the base distribution I believe, but really, did you think anything called a programming language lacked a emacs mode?

Now I will confess to having used notepad++, ZeroBrane Studio, and vim/gvim for my Lua/ESOUI work...

But let's not mix recreation with religions.
By the Eight, I hadn't seen that! But in the end, I suppose you're right...
  Reply With Quote
12/02/17, 04:57 PM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
Just updated the API to 100021 for IntelliJ IDEA editor.
Installation:
Go to the "Configure SDK" dialog, click on LuaJ, and add the extracted ZIP archive folder to the classpath.
The lua files will be searched for the functions etc. and you are able to use them in your code afterwards with autocompletion etc.

Last edited by Baertram : 06/03/18 at 02:08 PM.
  Reply With Quote
06/03/18, 02:07 PM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
IntelliJ api support files for the luaJ SDK for ESOUI API 100023.
Some contents are double, some might be missing.
Updated the constant values from teh esoui wiki pages, and used the parser components of "reaby" to build the classes, functions and some other file contents. Thx reaby!

IntelliJ IDEA - luaJ SDK für ESOUI "Summerset" API 100023
  Reply With Quote
09/18/18, 06:28 AM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
IntelliJ API support for ESOU 100025

And here are some parse tools, based on PHP, which are able to parse the ESOUIDocumentationPxx.txt file.
You can use them to parse the txt file for a new API and build your own IntelliJ compatible lua files for autocompletion and lookup of constant values.
An addon "Dumpvars" is included so you can parse the constants from the txt, put the created file into the addon, run the addon and dump the constants + the sound names to the savedvars. Then puzt the result back into lua files for IntelliJ.
-> Credit for the parsing stuff go to "Reaby"! Thanks a lot for your work

Be sure to read the included howto txt file for more information.
Parse script sphp based for IntelliJ lua file creation + instructions
  Reply With Quote
11/29/18, 10:18 PM   #6
r4cken
 
r4cken's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2018
Posts: 13
Great work!

Im using this from now on, however im having issues with the eso-api.classes.lua file not showing up at all on autocomplete or intellisense on it Any suggestions? The other files seem to be picking up my CTRL+SPACE
  Reply With Quote
11/30/18, 01:30 PM   #7
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
Originally Posted by r4cken View Post
Im using this from now on, however im having issues with the eso-api.classes.lua file not showing up at all on autocomplete or intellisense on it Any suggestions? The other files seem to be picking up my CTRL+SPACE
CTRL+click does not work as there is missing an entry for each object/class in file eso-api.classes.lua like this
Lua Code:
  1. AddOnManager = {}

This would make IntelliJ find the definition.

But the current file supports the function name help using CTRL+sapce, e.g. type
"AddOnManager."
and then press CTRL+space
  Reply With Quote
11/30/18, 03:24 PM   #8
r4cken
 
r4cken's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2018
Posts: 13
I used the latest files from API 100025 but writing AddOnManager brings up nothing at all
  Reply With Quote
11/30/18, 03:35 PM   #9
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
Try out "AddOnManager." (with the . at the end) and then CTRL+space.
  Reply With Quote
11/30/18, 03:40 PM   #10
r4cken
 
r4cken's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2018
Posts: 13
That brings up nothing as well. I even added each object like AddOnManager = {} at the top of the classes file.
  Reply With Quote
11/30/18, 04:37 PM   #11
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
Originally Posted by r4cken View Post
That brings up nothing as well. I even added each object like AddOnManager = {} at the top of the classes file.
Hm, maybe depends on the lua plugin then.
I'm using the current IntelliJ v2018.3 with the "working" lua plugin (EmmyLua) and it brings up the following for me:


Adding the = {} will just make you "navigate to the file" via STRG+left mouse click.
  Reply With Quote
11/30/18, 04:43 PM   #12
r4cken
 
r4cken's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2018
Posts: 13
Oh i was not using emmylua, i just searched in the repository for "lua" and installed that just like the start of the thread suggested. Im using the community edition 2018.2.6

So should i not add the "= {}" parts or like another "guide" had it was like

AnimationObjectTranslate = AnimationObject

*EDIT*
It works perfectly now with emmylua! Thank you so much Baertram!

Last edited by r4cken : 11/30/18 at 04:57 PM.
  Reply With Quote
12/05/18, 01:29 PM   #13
Architecture
 
Architecture's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2016
Posts: 7
Double tapping shift also can bring up a symbol / workspace search (Or the old fashioned Ctrl+Shift+F). I've found Ctrl + Space usually brings up the autocompletion options where appropriate (I think it depends on if I have full inspection turned on or not). I highly recommend the experience you currently get with IntelliJ and Lua. While it is not perfect (you will definitely be dealing with beta status plugins) I find that it is in general superior to the alternatives.

Cheers,
  Reply With Quote
07/21/19, 08:07 AM   #14
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
https://www.esoui.com/downloads/info...Luaplugin.html

Due to the non compatible version of silvanaar with the most up2date IntelliJ Community version 19.1 I had to switch to EmmyLua plugin.
It is working but the auto complete and CTRL+click on functions and variables sometimes does not work properly anymore
If anyone got a fix or hint how to het this to work reliably again, I'd be really glad to know it.
Thank you.

Edit:
Due to whatever settings my normal build in LUA plugin for IntelliJ was not updated to the newest version and always shown as not compatible.
I have disabled and chanegd a lot of settings until I saw the "Update" button and now it's up2date again (LUA IntelliJ plugin, version 1.0.117).
Now the CTRL+left click to jump to the declaration works again, but not for the classes like EVENT_MANAGER anymore (mooooh!).
So I reinstaleld EmmyLUA and enabled it, and now the CTRL+CLICK does not work at all anymore. So build in IntelliJ "silvanaar" lua plugins support at least half of the jumpings... And CTRL+SPACE seems to be working with EmmyLUA as well for most of the stuff.
It used to work for all of them though, too bad.

As EmmyLUA seems to be the only working CTRL+SPACE autocomplete lua plugin which is comaptible with the generated ESOUI lua files I'll keep usign this for the moment. Build in "sylvanaar" Lua plugin just works for CTRL+left click for variables in the same files. It's not even jumping to the declaration if it was declared in another file (like it was in the past). But EmmyLUA enither does nro did this in the past (too bad).
Hopefully they will fix this. I'll try to raise a bug for the sylvanaar plugin: https://bitbucket.org/sylvanaar2/lua...ew&status=open

Edit2:
Seems this bug is already known since 2018 but no solved or worked on yet :-(
https://bitbucket.org/sylvanaar2/lua...on-cross-files

Last edited by Baertram : 12/31/20 at 02:39 PM.
  Reply With Quote
07/21/19, 02:36 PM   #15
Architecture
 
Architecture's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2016
Posts: 7
Looks like they put out a new version of Lua plugin yesterday. Lame -- will eventually have to see for myself what is up next time I am doing more dev. Thanks for the heads up!
  Reply With Quote
07/22/19, 04:18 AM   #16
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
Updated my reply 1 post above. The bug in silvanaar is already known since 2018 but not yet resolved.
Trying to find equal "bug report" in EmmyLUA or raise one

Edit:
Raised one as most bugs are in raised Chinese language and I wasn't able to find a similar one:
https://github.com/EmmyLua/IntelliJ-EmmyLua/issues/264

Last edited by Baertram : 07/22/19 at 04:43 AM.
  Reply With Quote
05/06/20, 05:55 AM   #17
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
IntelliJ auto completion for ESO - Last update: 2020-10-13

Auto completion (and harcoded helper files) for "IntelliJ IDEA"
https://www.esoui.com/downloads/info...Luaplugin.html
Updated: 31st October 2020

Last edited by Baertram : 12/31/20 at 02:38 PM.
  Reply With Quote
12/30/20, 01:18 PM   #18
DewiMorgan
 
DewiMorgan's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 14
Thank you so much!
I've used IntelliJ for PHP and Java at work for the last few years now, and love it.
I didn't even know they had a community version, so that alone made me happy, let alone your work with getting the ESO commands to autocomplete!
  Reply With Quote
12/31/20, 09:29 AM   #19
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
You are welcome.

Most current version can be found here:
https://www.esoui.com/downloads/info...Luaplugin.html

To the mass:
I'd be happy if I get any support of others devs here using the parsers after ESO APiversion changes + adding new static / removing obsolete variables to/from the static file.
Maintinign all the addons often does not provide the time to keep these files here updated as well. At least running the PHP the parser scripts on new ESOUIDocumentationxx.txt files, creating the XML json + a quick check if all created files are valid without errors, and the distribution here or even at githubg would be a real help.

I've created a github repo for the parser scripts, and the static file:
IntelliJ ESOUI AutoCompletion

If anyone wants to contribute, send me a request please.
Many thanks

Last edited by Baertram : 12/31/20 at 02:38 PM.
  Reply With Quote
01/01/21, 12:24 AM   #20
DewiMorgan
 
DewiMorgan's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 14
Originally Posted by Baertram View Post
I'd be happy if I get any support of others devs here[...]
If anyone wants to contribute, send me a request please.
Happy to do whatever I can to help, but I'm wondering if there isn't some way in IntelliJ just to point the "libs" folder to an unzipped copy of the source and have it pick up from there, then people could just grab the latest source zipfile from ESOUI without us needing to do any extra work.

Mind you, I've already been briefly futzing with getting that to work today, and had no luck. Whereas, yours works perfectly.
  Reply With Quote

ESOUI » Developer Discussions » Dev Tools » IntelliJ and sylvanaar


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