Skip to content

gcinfo is not defined in standard library #3146

@rhys-vdw

Description

@rhys-vdw

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Libraries

Expected Behaviour

gcinfo ought to exist in Lua 5.1 (although it is deprecated).

https://www.lua.org/manual/5.1/manual.html#7.2

Probably somewhere here?

---#else
---#DES 'collectgarbage'
---@param opt? gcoptions
---@param arg? integer
---@return any
function collectgarbage(opt, arg) end
---#end

Actual Behaviour

Image

Reproduction steps

  1. Set "runtime.version": "Lua 5.1"
  2. Write gcinfo
  3. See that it is not defined

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions