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

Reproduction steps
- Set
"runtime.version": "Lua 5.1"
- Write
gcinfo
- See that it is not defined
Additional Notes
No response
Log File
No response
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
gcinfoought to exist in Lua 5.1 (although it is deprecated).https://www.lua.org/manual/5.1/manual.html#7.2
Probably somewhere here?
lua-language-server/meta/template/basic.lua
Lines 37 to 43 in 802e13c
Actual Behaviour
Reproduction steps
"runtime.version": "Lua 5.1"gcinfoAdditional Notes
No response
Log File
No response