LuaLS / LuaLS/lua-language-server

From 3.6.5 on, luarc is not being modified properly

未關閉
#1,859 35 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

bug Info Needed
主要語言
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

1. Open a lua file having workspace setting set up.
2. It will look for all workspace.
3. It should write in `.luarc.json` all 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
Lua = {
runtime = { version = "LuaJIT" },
diagnostics = { globals = { "vim" } },
workspace = { library = vim.api.nvim_get_runtime_file("", true) },
},
```

### Log File

_No response_

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。