lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

From 3.6.5 on, luarc is not being modified properly

Open carlosala opened this issue 2 years ago • 35 comments

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

carlosala avatar Jan 30 '23 09:01 carlosala