Need Help with seting up editor for LUA

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
senecjusz
Posts: 1
Joined: Thu Feb 07, 2013 8:24 pm

Need Help with seting up editor for LUA

Post by senecjusz »

I'm not professional programmer, but I used to do some coding in VBA. I need to work a little with LUA now. The main issue for me is lack of code and variable names completion.

I'm trying to setup editor so I can easly programm with lua, but I'm failing.
For an example I have a code

Code: Select all

myclass = { }
myclass.Radius = 100;

function myclass.EnemiesNear(lRadius)
   -- do something
return 1
end

function myclass.run
local var1
var1 = myclass.>><<.EnemiesNear(myclass.>><<.Radius)

end;


I have put (>><<) in place when I'm expectig to see a window wher I can choose variable name or function name (just like on this pic :
http://www.zeusedit.com/images/lookcode.png) I have spend 3 hours already .. but no success.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

[I'm trying to setup editor so I can easly program with lua, but I'm failing.

Lua is a dynamic language. It is a like a host of other dynamic languages like Python, Ruby, etc.

What this means is a lot of your code is determined at run time.

Compare this to Visual Basic which was a static language (i.e. you had to compile the code before you could run it).

Now when it comes to autocomplete for dynamic languages, it is very difficult to implement, because the autocomplete details you want to present to the user are not available until the code actually runs.

For this reason autocomplete will not work inside of Zeus for these types of languages.

You might want to try LuaEclipse: http://luaeclipse.luaforge.net/

I've not used this IDE myself, but from what I have read, most Eclipse based language IDEs tend to embed the language inside the IDE which means they have a better chance of doing such autocomplete.

Cheers Jussi
Post Reply