LuaLS / LuaLS/lua-language-server
From 3.6.5 on, luarc is not being modified properly
还没有人认领这个 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?
Libraries
Expected Behaviour
I expect my workspace libraries to be added to .luarc.json.
Actual Behaviour
.luarc.json is not being created nor modified at all. It also prompts for luassert addition to workspace, where I answer 1, yes and modify settings. It does not modifies them.
Reproduction steps
- Open a lua file having workspace setting set up.
- It will look for all workspace.
- It should write in
.luarc.jsonall the content.
Additional Notes
I tried and 3.6.4 was working, 3.6.5 and so on not. Maybe due to https://github.com/sumneko/lua-language-server/blob/4a9ab5b1ae9889e9732b53ad8cdf3b6db5394c3b/changelog.md?plain=1#L33
This is my config on nvim lspconfig:
Lua = {
runtime = { version = "LuaJIT" },
diagnostics = { globals = { "vim" } },
workspace = { library = vim.api.nvim_get_runtime_file("", true) },
},
Log File
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用所示的 Lua 工作区配置在 Neovim 中重现回归,将版本 3.6.4 与 3.6.5 及更高版本进行比较。检查所引用的 changelog.md 条目,并观察在接受工作区库和 luassert 后是否创建或更新了 .luarc.json。当预期的工作区设置写入 .luarc.json 后即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- lua, neovim
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100