LuaLS / LuaLS/lua-language-server

From 3.6.5 on, luarc is not being modified properly

オープン
#1,859 コメント 35 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

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 = {
  runtime = { version = "LuaJIT" },
  diagnostics = { globals = { "vim" } },
  workspace = { library = vim.api.nvim_get_runtime_file("", true) },
},
Log File

No response

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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 を短くまとめたダイジェスト。