Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Lua Development Tools » Code completion does not work with global variables
Code completion does not work with global variables [message #899837] Thu, 02 August 2012 14:11 Go to next message
Emilien Gorisse is currently offline Emilien GorisseFriend
Messages: 4
Registered: August 2012
Junior Member
Hi !

I am new to Koneki.
I have
* installed the application,
* created my lua project,
* imported sources (from 2 different folders)
* linked the "official" Koneki EE.
* built, rebuilt, cleaned, re-rebuilt (etc.) my project.

The code completion works just fine with local variables and functions, but does not recognize global ones.

local function TestGlobal()
	_myGlobal = 0;
	_my//I am trying "ctrl-space" here
end


answers
No completions available.


Moreover (... maybe linked ? which is why I post on the same thread...), the code documentation does not work at all.
When I try this

------------------------------------------------------------------------------
-- Prints something
-- @param something the thing to print
local function PrintSomething(something)
	print(something);
end


and put the cursor on "something", I get the message

something : 
Note: This element has no documentation and hence no information could be found.


even if it seems consistent with the documentation language.


Any Idea of what I am doing wrong ?
Thank you very much!



Emilien
Re: Code completion does not work with global variables [message #901308 is a reply to message #899837] Fri, 10 August 2012 17:14 Go to previous messageGo to next message
Kevin KIN-FOO is currently offline Kevin KIN-FOOFriend
Messages: 58
Registered: January 2010
Member
Hi,

First of all, thanks for using Koneki LDT and sharing your feedback with us.

    You should have content assist :
  • on local variables.
  • on global variables considered as preloaded in your execution environment. (like print in lua 5.1)
  • on module documented with luadocumentor.

About the documentation language. The previous link is the right one, the one you used is outdated and we might delete it.

So far, the only way to have a global in content assist is define it in global.lua in an execution environment. We handle it this way because it is tricky to define where and when a global should be available in code assistance.

Yes, we do not handle the parameter tool tip so far, but neither the less the documentation language is working.

Looking forward to read your future posts about Koneki.

Kevin
Re: Code completion does not work with global variables [message #901700 is a reply to message #901308] Tue, 14 August 2012 08:21 Go to previous message
Emilien Gorisse is currently offline Emilien GorisseFriend
Messages: 4
Registered: August 2012
Junior Member
Hi Kevin,

Thank you very much for your answer and the new link to the documentation language.
I will try the "global.lua" method to handle globals.

By the way, not having these features does lower the awesomeness of the editor, so thank you again for it Smile

All the best



Émilien
Previous Topic:Debugging Lua code launched from a Lua program
Next Topic:LDT and Lua Inspect
Goto Forum:
  


Current Time: Thu Apr 25 20:16:32 GMT 2024

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

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

Back to the top