You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ambigpage="file">You might be looking for the "file" Library, which has the same name as this class.</ambig><typename="File" category="classfunc" is="class"><summary>This is the file object. It used used primarily to read or write binary data from files.
The default endianness is little-endian. To use big-endian you will need to provide your own functions to read and write shorts and longs.
The object is returned by <page>file.Open</page>.
</summary></type>
This causes neither type to be correct when using file.Open:
According to the wiki
file.Open
returns afile_class
On the
file_class
page the type name is specified asFile
:This causes neither type to be correct when using file.Open:
The generated library and class annotations for reference: https://github.com/luttje/glua-api-snippets/blob/lua-language-server-addon/library/file.lua
I guess this is done on the wiki because of case insensitivity, so there can't be File and file page for the class and library respectively.
Possible Solutions
What I can think of right now:
name
attribute instead of thetype
attribute from the file.Open function wiki (not sure if that would be correct everywhere):The text was updated successfully, but these errors were encountered: