dapetcu21 / atom-autocomplete-lua

Extensible autocomplete+ provider for Lua
35 stars 6 forks source link

Variable completion sometimes breaks #13

Open anantoghosh opened 7 years ago

anantoghosh commented 7 years ago

ide

I'm not 100% sure when it happens, I'm using it with defold and this breaks only on the 'self' variables.

function init(self)
    self.lucky = true
end

Now autocomplete starts suggesting self.l, self.lu ... etc (as in screenshot)

ide2

After restarting atom, the problem goes away for the already declared variables (here: direction, moving, speed) but still breaks for any new variables declared.

ideafter

On Atom 1.14.3 x64 Windows 10 x64

PS: Very useful extension, thanks for making this

dapetcu21 commented 7 years ago

Thanks for the report. Will look into it, but it might take a while, as I will probably only free up in early April.

pablomayobre commented 7 years ago

I cannot replicate this issue in Atom 1.17 beta 3, Windows 10 x64, autocomplete-lua 0.8.1

I typed the same thing you posted but those erroneous suggestions just weren't there. Is there something I'm missing?

dapetcu21 commented 7 years ago

This happened to me a few times as well lately. Not still exactly sure how to reproduce, but the issue is definitely there.