Skip to content

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

@yoichimichael

Description

@yoichimichael

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 ''

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions