LuaLS / LuaLS/lua-language-server

`gcinfo` is not defined in standard library

Open
#3,146 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with meta/template/basic.lua around lines 37-43 and compare the standard-library definitions with the Lua 5.1 manual section linked in the issue. Reproduce with runtime.version set to Lua 5.1 and confirm that gcinfo is recognized afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
devtools
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.