love-atom
love-atom copied to clipboard
Autocomplete stops working when accessing table contents of love.filesystem.getInfo
This bug seems to be specifically and uniquely related to the love.filesystem.getInfo
call. Unlike other LÖVE calls, this one returns a table with named fields inside of it. As soon as any field is accessed in the results (not necessarily an existing field, but just a field from the results), the entire autocomplete suite (not just love-atom
) stops responding after the first character is typed.
The same issue does not occur if you call any other function that returns a table. I've also tested writing my own function that returned a table with named fields, but it works fine. Accessing these fields using brackets does not solve the issue. Disabling the love-atom
package does solve the issue.
https://user-images.githubusercontent.com/6296061/107862994-8fcc9600-6e2f-11eb-9f01-5e7720ab4810.mp4
@HugoBDesigner Thanks for the report, unfortunately I don't have the time to look at this properly. On a quick test of mine I think I also could reproduce it with love.graphics.getSupported
which might point to a deeper problems with functions that return tables.
It might be possible that the autocomplete-lua package got some update that broke love-atom, but I'd have to investigate. I haven't been using Atom for a couple of years and would really appreciate if somebody would take over this package. Sorry.
Maybe @pablomayobre or @JanWerder could help?
I'm sorry, but I haven't used Atom in ages, either.