LuaLS / LuaLS/lua-language-server
Unexpected behavior of terminal pop-up
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?
Windows
What is the issue affecting?
Other
Expected Behaviour
No terminal pop-up.
Actual Behaviour
When I access file or :wq save and exit .lua file, terminal(not in neovim) will pop-up.
Reproduction steps
1.install mason in neovim
2.add lsp lua_ls
3.open or close lua file
Additional Notes
Client lua_ls quit with exit code 1 and signal 0. Check log for errors: C:\Users%username%\AppData\Local\nvim-data/lsp.log
my username is non-ASCII, and the log shows that it can't identify my username.
Log File
[ERROR][2024-08-12 19:05:02] .../vim/lsp/rpc.lua:770 "rpc" "C:\Users\鍚曠菠钂橽\AppData\Local\nvim-data\mason\bin\lua-language-server.CMD" "stderr"
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
Start with the reported Windows reproduction using Mason's lua_ls entry and inspect the C:\Users%username%\AppData\Local\nvim-data\lsp.log output, especially the lua-language-server.CMD path and non-ASCII username. Done means opening or saving and quitting a .lua file in Neovim no longer opens an external terminal, and lua_ls does not exit with code 1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100