LuaLS / LuaLS/lua-language-server
`--version` command returns `<Unknown>` when lua-language-server installed via homebrew
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
- Install
lua-language-serverviahomebrew - Run
lua-language-server --version - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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