LuaLS / LuaLS/lua-language-server
Undefined global for builtins
还没有人认领这个 Issue。
- 主要语言
- Lua
- 星标
- 4.4k
- 派生
- 442
- PR 合并指标
- 30 天内没有已合并 PR
描述
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)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从引用的 issue 1600 以及此处描述的诊断/语法检查行为开始。尝试在通过重新加载 Neovim 缓冲区重现警告时捕获缺失的日志,然后比较 builtin globals 出现或消失的情况。完成的标志是确定一个可靠的原因,并防止出现关于未定义全局变量的错误警告。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- lua
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100