Skip to content

gcinfo is not defined in standard library #3146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rhys-vdw opened this issue Apr 1, 2025 · 0 comments
Open

gcinfo is not defined in standard library #3146

rhys-vdw opened this issue Apr 1, 2025 · 0 comments

Comments

@rhys-vdw
Copy link

rhys-vdw commented Apr 1, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant