Skip to main content



      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 09:40 Go to next message
Eclipse UserFriend
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 321 times)
Re: Unable to make autocoplete working [message #1386259 is a reply to message #1386223] Mon, 16 June 2014 04:42 Go to previous messageGo to next message
Eclipse UserFriend
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 04:43] by Moderator

Re: Unable to make autocoplete working [message #1386349 is a reply to message #1386259] Mon, 16 June 2014 16:01 Go to previous messageGo to next message
Eclipse UserFriend
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 08:48 Go to previous messageGo to next message
Eclipse UserFriend
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 14:21 Go to previous messageGo to next message
Eclipse UserFriend
There is working lua execution environment for cocos2d-x 3.x

Hope this help somebody
  • Attachment: ee.zip
    (Size: 153.43KB, Downloaded 291 times)
Re: Unable to make autocoplete working [message #1389196 is a reply to message #1386899] Fri, 27 June 2014 09:19 Go to previous message
Eclipse UserFriend
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: Wed Mar 19 17:28:33 EDT 2025

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

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

Back to the top