Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Lua Development Tools » Limited autocomplete issue on multiple globals
Limited autocomplete issue on multiple globals [message #1268179] Mon, 10 March 2014 06:43 Go to next message
tobias peters is currently offline tobias petersFriend
Messages: 4
Registered: March 2014
Junior Member
it seems that I won't get completion on more then the first module global
I know it's not recommended to use globals but I'm documenting an existing lib

--bar.lua
local M = {}

---@field [parent=#global] bar#bar bar
bar = M

---@function [parent=#bar] foobar
function M.foobar()
end

return M


--foo.lua
local M = {}

---@field [parent=#global] foo#foo foo
foo = M

---@function [parent=#foo] completeme
function M.completeme()
end

return M


--main.lua
local Foo = require("foo")
local Bar = require("bar")

local function main()

Foo.completeme()
Bar.foobar()
bar.foobar()
foo.
end

main()


I get completion on Foo, Bar and bar but not on foo
using Standalone 1.1
Re: Limited autocomplete issue on multiple globals [message #1269167 is a reply to message #1268179] Tue, 11 March 2014 13:27 Go to previous messageGo to next message
Marc Aubry is currently offline Marc AubryFriend
Messages: 86
Registered: August 2012
Member
Hi Tobias,

Thanks for your feedback. It's seems there is a bug somewhere, when trying to reproduce I even don't have auto-completion after the "bar.".
I have filed a bug for this, feel free to follow it and comment it if you find more informations about the cases when this bug appears.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=430089

Marc
Re: Limited autocomplete issue on multiple globals [message #1269425 is a reply to message #1269167] Tue, 11 March 2014 21:32 Go to previous message
tobias peters is currently offline tobias petersFriend
Messages: 4
Registered: March 2014
Junior Member
yeah thx for confirmation
I can get completion for the first module global I make not for any following. In the given example I could get completion on foo instead of bar the other day but before posting and retrying I only could get it on bar. strange that you won't get completion on the global at all
it is all in all strange and I did take my time to study the docs to see if I was wrong, but at least it is reproducible
Previous Topic:Lua Socket library
Next Topic:Koneki / Mihini Mac OSX install
Goto Forum:
  


Current Time: Thu Apr 18 20:40:15 GMT 2024

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

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

Back to the top