Quantcast IntelliJ and sylvanaar - Page 3 - ESOUI
Thread Tools Display Modes
11/30/18, 01:30 PM   #41
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 2,267
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   #42
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
__________________
Addon creator, programmer and gamer girl
  Reply With Quote
11/30/18, 03:35 PM   #43
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 2,267
Try out "AddOnManager." (with the . at the end) and then CTRL+space.
  Reply With Quote
11/30/18, 03:40 PM   #44
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.
__________________
Addon creator, programmer and gamer girl
  Reply With Quote
11/30/18, 04:37 PM   #45
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 2,267
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   #46
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!
__________________
Addon creator, programmer and gamer girl

Last edited by r4cken : 11/30/18 at 04:57 PM.
  Reply With Quote
12/05/18, 01:29 PM   #47
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   #48
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 2,267
IntelliJ ESO API 100028 updated files.

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 : 07/22/19 at 10:03 AM.
  Reply With Quote
07/21/19, 02:36 PM   #49
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   #50
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 2,267
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

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