LuaLS / LuaLS/lua-language-server
Unexpected behavior of terminal pop-up
还没有人认领这个 Issue。
- 主要语言
- Lua
- 星标
- 4.4k
- 派生
- 442
- PR 合并指标
- 30 天内没有已合并 PR
描述
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"
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 Mason 的 lua_ls 条目复现报告的 Windows 问题,并检查 C:\Users%username%\AppData\Local\nvim-data\lsp.log 的输出,尤其是 lua-language-server.CMD 路径和非 ASCII 用户名。完成标准是:在 Neovim 中打开或保存并退出 .lua 文件时不再打开外部终端,并且 lua_ls 不再以代码 1 退出。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- lua, neovim
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100