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

`--version` command returns `<Unknown>` when lua-language-server installed via homebrew

Open yoichimichael opened this issue 5 months ago • 1 comments

How are you using the lua-language-server?

NeoVim

Which OS are you using?

MacOS

What is the issue affecting?

Annotations

Expected Behaviour

Running lua-language-server --version should return x.x.x

Actual Behaviour

Running lua-language-server --version returns <Unknown>

Reproduction steps

  1. Install lua-language-server via homebrew
  2. Run lua-language-server --version
  3. See '<Unknown>'

Additional Notes

Running brew list --versions I can see that I have v3.14.0 installed. However, running lua-language-server --version from the command line returns <Unknown>.

This comports with the readout from running :LspInfo within neovim:

- lua_ls (id: 1)
  - Version: <Unknown>
  - Root directory: ~/.config/nvim
  - Command: { "lua-language-server" }
  - Settings: {
      Lua = {
        runtime = {
          version = "LuaJIT"
        },
        workspace = {
          checkThirdParty = false,
          library = { "/opt/homebrew/Cellar/neovim/0.11.1/share/nvim/runtime", "${3rd}/luv/library" }
        }
      }
    }
  - Attached buffers: 1, 4

Log File

No response

yoichimichael avatar May 03 '25 19:05 yoichimichael