LuaLS / LuaLS/lua-language-server
Undefined global for builtins
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?
NeoVim
Which OS are you using?
Linux
What is the issue affecting?
Diagnostics/Syntax Checking
Expected Behaviour
I think I'm encountering the same issue as https://github.com/sumneko/lua-language-server/issues/1600. In my case it happens sporadically - reloading a lua file in Neovim will often randomly introduce or resolve this behavior.
I'm running version 3.6.4-1 installed from pacman.
Actual Behaviour
Seeing warnings on all builtins as "undefined global"
Reproduction steps
I'm not sure how to reproduce reliably - it seems to happen somewhat randomly when I load the buffer.
Additional Notes
No response
Log File
(I'm time-constrained at the moment but I plan to add this later)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the referenced issue 1600 and the diagnostics/syntax-checking behavior described here. Try to capture the missing log while reproducing the warning through Neovim buffer reloads, then compare cases where builtin globals appear or disappear. Done means identifying a reliable cause and preventing false undefined-global warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100