Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAutocomplete in eclipse with MOAI Lua
https://www.eclipse.org/forums/index.php/mv/msg/651455/1247992/#msg_1247992
Right now, autocomplete works with normal Lua libraries like math. and io. but what I want to do is set up autocomplete for the MOAI libraries. I have created and imported my library into Eclipse but the autocomplete doesn't work and I don't know why. I must be missing a step.
So far, I've gone to Window > Preferences > Lua > Execution Environment and added my library. Then I right clicked on my project and went to properties. Then I went to Lua > Build Path and added my library to the project. At this point I tried to use autocomplete functionality by typing things like MOAISim. but I had no luck.
I've searched around alot with no results. Any help would be great.
I have attached my library file.]]>Connor Schmidt2014-02-16T21:25:06-00:00Re: Autocomplete in eclipse with MOAI Lua
https://www.eclipse.org/forums/index.php/mv/msg/651455/1248033/#msg_1248033
Eric Rizzo2014-02-16T22:27:03-00:00Re: Autocomplete in eclipse with MOAI Lua
https://www.eclipse.org/forums/index.php/mv/msg/651455/1249520/#msg_1249520
It seems you have set two Execution Environment(EE) for your project. The problem is that only the global.lua file from the first EE is take in account for auto-completion.
In fact, only one EE is expected by project, I will try to explain:
An EE represent the runtime environment where your Lua gonna run. In your case as your are developing a MOAI application expected to run with the MOAI interpreter, you should had only the MOAI EE associated to your project. Having two Execution Environment on a project means the project can run on both Lua and MOAI interpreters which is wrong. So if the MOAI interpreter provide standard Lua libraries such as "math", you should include them in the MOAI EE instead to having two EE.
I hope it's clear.