Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Koneki » Code Assistant doesn't work with networked sources?(Code Assistant help)
Code Assistant doesn't work with networked sources? [message #898075] Wed, 25 July 2012 14:08 Go to next message
scott thompson is currently offline scott thompson
Messages: 13
Registered: July 2012
Junior Member
If I copy my entire Lua source to a local hard drive, then switch to that workspace in LDT, then the code assistant works perfectly. It picks up every single function.

However, if I have my code on a MAPPED network drive...the code assistant doesn't work.

Is there something I need to do? I can't find any config settings for the code assistant.

Any help would be appreciated. Thanks.
Re: Code Assistant doesn't work with networked sources? [message #898759 is a reply to message #898075] Fri, 27 July 2012 09:08 Go to previous messageGo to next message
scott thompson is currently offline scott thompson
Messages: 13
Registered: July 2012
Junior Member
And now all of a sudden the Code Assistant doesn't work at all. I've switched back to my local hard drive workspace and when I press "ctrl+space" all i get is a list of the basic lua reserved words (for, if, do else, etc)

What do i need to do to get LDT to "rebuild" the code assistant. Is there a file that the code assistant information is stored (ascii file?) so i can see what it is populated with? There needs to be a button for "reprocess for code assistant" or something and then maybe a "status" or "results" dialog so that i can figure out why all my functions and variables aren't being picked up anymore.

Help please! this is really frustrating me because i cannot figure out why it's no longer working. I love this feature!
Re: Code Assistant doesn't work with networked sources? [message #898760 is a reply to message #898759] Fri, 27 July 2012 09:11 Go to previous messageGo to next message
scott thompson is currently offline scott thompson
Messages: 13
Registered: July 2012
Junior Member
For more information, I'm not writing compilable Lua. I'm just writing scripts to be used inside an application with Lua APIs. I have no idea why it has all of a sudden decided not to show all my functions in the code assistant
Re: Code Assistant doesn't work with networked sources? [message #898789 is a reply to message #898760] Fri, 27 July 2012 10:58 Go to previous messageGo to next message
Simon Bernard is currently offline Simon Bernard
Messages: 164
Registered: July 2009
Senior Member
Hi,
I never test to use LDT with my code in a network drive.
On which platform are you ?(windows, linux ?) How did you mapped your drive ?

For the user assistance, there are no persistent cache, so restart the IDE can resolve potential cache problem.
Could you give me the LDT version you use ?
Re: Code Assistant doesn't work with networked sources? [message #898796 is a reply to message #898789] Fri, 27 July 2012 12:16 Go to previous messageGo to next message
scott thompson is currently offline scott thompson
Messages: 13
Registered: July 2012
Junior Member
I'm on windows. the mapped drive is drive T:

I'm using LDT version 0.1.0.201201241319

Like i said..it was working 2 days ago..i must have clicked something that turned it off? i don't know

I'd rather figure out why it is no longer working when working with a project on my local hard drive.
Re: Code Assistant doesn't work with networked sources? [message #898802 is a reply to message #898796] Fri, 27 July 2012 12:48 Go to previous messageGo to next message
scott thompson is currently offline scott thompson
Messages: 13
Registered: July 2012
Junior Member
Just downloaded the newest version from http://www.eclipse.org/koneki/ldt/
..still does the same thing. The only thing content assist will show me is lua reserved words and templates (snippets)

btw, I'm using the stand-alone because i have to use it on a network without internet connection. So, i can't just install packages and extensions easily.

Re: Code Assistant doesn't work with networked sources? [message #898813 is a reply to message #898802] Fri, 27 July 2012 14:05 Go to previous messageGo to next message
scott thompson is currently offline scott thompson
Messages: 13
Registered: July 2012
Junior Member
well i switched back to verison 0.1 ..and magically all my stuff showed up in content assistant again...who knows why..don't care. I won't be going to 0.8 anytime soon since apparently there is a whole bunch of extra junk you have to do to get stuff to appear in content assist (lua documentor junk)
Re: Code Assistant doesn't work with networked sources? [message #899038 is a reply to message #898813] Mon, 30 July 2012 05:55 Go to previous messageGo to next message
Simon Bernard is currently offline Simon Bernard
Messages: 164
Registered: July 2009
Senior Member
Happy to see you find a solution.
We don't think our work on lua documentor is a junk ...
We are aware for some users this could be a regression, and we are sorry about that.
But with lua documentor we can bring code assistance to a lot of different use cases.
We think this approach has a great potential.
I'm not sure, you really try to test it before you post your constructive feedback.
I encourage you to try the execution environmment support.
You could download and add the Lua 5.1 execution environment support to your project to test that.
Re: Code Assistant doesn't work with networked sources? [message #900369 is a reply to message #899038] Mon, 06 August 2012 13:07 Go to previous messageGo to next message
scott thompson is currently offline scott thompson
Messages: 13
Registered: July 2012
Junior Member
First, let me apologize for my rash response. I was just quite incensed at upgrading to a new version and losing functionality. Especially since I spent about a week trying to figure out how I must have screwed up the environment.

That being said...Lua documentor is NOT junk..it is a good feature and is quite powerful (though I cannot tell if it is as powerful as the "main" lua documenter tool it is based on, because the wiki on it isn't very exhaustive). lua-users(dot)org/wiki/LuaDocumentation

Regardless, it is a good tool..probably could use better explanations though. (Perhaps when i have time I will update the wiki)

The point of my rant though, is that the code completion tool was the main reason I am using Koneki. It's the only one that I could find that had one that worked. I'm working with scripts (not "real" code) and in my "environment" all scripts can call another script. So I have a "library" of functions that allows me to use comon tools for controlling my aircraft (using for an aircraft simulator).

Anyways, the fact that I had a 2 keystroke short-cut to all my functions was very useful.

I even used a "linked resource" lua file to implement blank functions of all the LUA-API functions that are in my C++-application so that I could easily "see" them during script development...this ability is now gone with the current iteration.

I ask, and perhaps others will second this motion, that the code assistant be returned to a form similar to the previous version. LEAVE LUA documentor...it's good...but give me my code assistant back..i don't want to spend months adding EXTRA comments to all my 2,000+ headers just so i can use code assistant.
Re: Code Assistant doesn't work with networked sources? [message #900375 is a reply to message #900369] Mon, 06 August 2012 13:29 Go to previous messageGo to next message
scott thompson is currently offline scott thompson
Messages: 13
Registered: July 2012
Junior Member
Let me make a suggestion (And i will copy this to the "requested features" forum.

In Options-> Resources, add a tab for "Undocumented code" that can be parsed by the code-assistant and generated all the time. The option should allow me to add a "folder location" and a check box available for "Include all sub-folders"

This would give me the capability to access my "Library" functions
Re: Code Assistant doesn't work with networked sources? [message #901296 is a reply to message #900375] Fri, 10 August 2012 12:31 Go to previous messageGo to next message
Simon Bernard is currently offline Simon Bernard
Messages: 164
Registered: July 2009
Senior Member
We plan to improve our code-assistant, and the goal is to be able to do more than we can do with the 0.1.0 version, this may take some time. Pending you could follow this bug.

For your C++ stub library, you could do the same thing as you done by creating an empty lua file with the documentation (you could surely generate it with lua from your blank functions easily). You could be interested by creating your own execution environment too.

I'm not sure to understand your feature request ? I believe your could already do that by modifiyng the buildpath (right click build path/configure build path).

To better understand your use case, all your scripts define "global function" which must be accessible every time in the content assist, that's right ?
Re: Code Assistant doesn't work with networked sources? [message #901816 is a reply to message #901296] Tue, 14 August 2012 12:49 Go to previous message
scott thompson is currently offline scott thompson
Messages: 13
Registered: July 2012
Junior Member
That's close.

Bascially, every one of my scripts calls a built-in function (include) which allows me to load scripts (and their functions) into my application.

Once the script is loaded, I can then call its functions. The typical scenario is to "include" all of my "Library functions" at the beginning of each test script. This way, that test script has the full range of functions against my aircraft sim. Some of these "functions" do things like, make the aircraft takeoff, fly to x altitude with x heading, at x knots. Other "functions" configure my navigation sources (INU, GPS, VOTAC, etc).

I'm not sure the build path is the way to go for me. I don't "build" these files, I simply run them in my script run-time environment.
Previous Topic:No Outline Information for Lua Files
Next Topic:[SOLVED] Koneki Deliverables?
Goto Forum:
  


Current Time: Fri Aug 01 11:54:17 EDT 2014

Powered by FUDForum. Page generated in 0.13577 seconds