LuaLS / LuaLS/lua-language-server

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

Open
#3,172 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by installing lua-language-server through Homebrew on macOS and running lua-language-server --version. Then trace the command's version-reporting and Homebrew packaging entry points to determine why it returns <Unknown> instead of the installed v3.14.0; done means the command reports the actual version and the Neovim :LspInfo value is no longer unknown.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.