Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Lua Development Tools » Unable to make autocoplete working(Cocos2d-x 3.x Lua ee)
Unable to make autocoplete working [message #1386223] Sun, 15 June 2014 13:40 Go to next message
Stepan Alimov is currently offline Stepan AlimovFriend
Messages: 6
Registered: June 2014
Junior Member
I am using eclipse with milestone LDT plugin.

For plain new LuaProject-s autocomplete works fine (math, io, os, etc...).
I've found several projects on github which explains how to build your own ee for ldt/eclipse.

I've created and imported ee into eclipse, added it to project. After this manipulations can see imported ee in Script Explorer tab, can open it and navigate through doc files. But autocomplete doesn't work.

Can you point what step I've missed?

EE arhcive in attachment
  • Attachment: ee.zip
    (Size: 154.08KB, Downloaded 245 times)
Re: Unable to make autocoplete working [message #1386259 is a reply to message #1386223] Mon, 16 June 2014 08:42 Go to previous messageGo to next message
Simon Bernard is currently offline Simon BernardFriend
Messages: 345
Registered: July 2009
Senior Member
Hi,
I just tested your Execution environment and I can use autocompletion with this sample of code :
local a = require "Action"

a: -- I call autocompletion here


But I see a mistake with inheritance in your EE :

--------------------------------
-- @module Action
-- @extend Ref


should be written :

--------------------------------
-- @module Action
-- @extends Ref#Ref

[Updated on: Mon, 16 June 2014 08:43]

Report message to a moderator

Re: Unable to make autocoplete working [message #1386349 is a reply to message #1386259] Mon, 16 June 2014 20:01 Go to previous messageGo to next message
Stepan Alimov is currently offline Stepan AlimovFriend
Messages: 6
Registered: June 2014
Junior Member
Thanks for reply, is there a way to make autocomplete working for global tables just like io table?
Re: Unable to make autocoplete working [message #1386418 is a reply to message #1386349] Tue, 17 June 2014 12:48 Go to previous messageGo to next message
Simon Bernard is currently offline Simon BernardFriend
Messages: 345
Registered: July 2009
Senior Member
Your execution does not contains the module description of standard lua vm. (io, table, math ...)
You should add it, if you want tooling for those modules too.

(Just add files from lua 5.1 EE to your EE, if there are a 'global' module you need to merge it)
Hope this help Smile
Re: Unable to make autocoplete working [message #1386899 is a reply to message #1386418] Sun, 22 June 2014 18:21 Go to previous messageGo to next message
Stepan Alimov is currently offline Stepan AlimovFriend
Messages: 6
Registered: June 2014
Junior Member
There is working lua execution environment for cocos2d-x 3.x

Hope this help somebody
  • Attachment: ee.zip
    (Size: 153.43KB, Downloaded 253 times)
Re: Unable to make autocoplete working [message #1389196 is a reply to message #1386899] Fri, 27 June 2014 13:19 Go to previous message
Simon Bernard is currently offline Simon BernardFriend
Messages: 345
Registered: July 2009
Senior Member
if you want you could add it to this page : https://wiki.eclipse.org/Koneki/LDT/User_Area/Available_Execution_Environments
It seems there is already an execution environment for cocos2D.
I don't know if it's the same version Smile
Previous Topic:Problems with Lua Remote Application
Next Topic:Debug though co-routines
Goto Forum:
  


Current Time: Thu Apr 25 02:14:58 GMT 2024

Powered by FUDForum. Page generated in 0.04073 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top