love-atom icon indicating copy to clipboard operation
love-atom copied to clipboard

Autocomplete stops working when accessing table contents of love.filesystem.getInfo

Open HugoBDesigner opened this issue 3 years ago • 3 comments

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 avatar Feb 13 '21 22:02 HugoBDesigner

@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.

rm-code avatar Feb 14 '21 20:02 rm-code

Maybe @pablomayobre or @JanWerder could help?

rm-code avatar Feb 14 '21 20:02 rm-code

I'm sorry, but I haven't used Atom in ages, either.

JanWerder avatar Feb 15 '21 09:02 JanWerder