lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

`gcinfo` is not defined in standard library

Open rhys-vdw opened this issue 6 months ago • 0 comments

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?

https://github.com/LuaLS/lua-language-server/blob/802e13ccac1153c32b90e6f203fa482fff7a603e/meta/template/basic.lua#L37-L43

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

rhys-vdw avatar Apr 01 '25 14:04 rhys-vdw