It is not possible to **not** use the bundled server
還沒有人認領這個 Issue。
- 主要語言
- TypeScript
- 星號
- 215
- 分支
- 62
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Which OS are you using?
Linux
Expected Behaviour
I can specify and run an arbitrary location for the LSP binary.
Actual Behaviour
Only the bundled with the addon binary is used
Reproduction steps
Use this VScode plugin
Additional Notes
On NixOS binaries dowloaded from the web usually do not work, as their interpreter is not at the usual location that usually is assumed.
A common workaround we usually use is to use a softlink that replaces the binary to something we built with nix or set another location in VScode (we actually prefer the latter).
In a perfect world, the option can be either absolute, relative or just the binary for a lookup in the PATH.
(PS: the first version does also not work for this plugin, as then it follows the symlink and tries to write into a read only location, so I had to hardcopy the proper binary)
Log
[Error - 8:10:44 AM] Lua client: couldn't create connection to server.
Launching server using command /home/nobbz/.vscode/extensions/sumneko.lua-3.6.26-linux-x64/server/bin/lua-language-server failed. Error: spawn /home/nobbz/.vscode/extensions/sumneko.lua-3.6.26-linux-x64/server/bin/lua-language-server ENOENT
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先找出 issue 中描述的 VS Code 外掛程式伺服器啟動與隨附二進位檔設定。新增一個設定,讓 Lua language server 接受絕對路徑、相對路徑或透過 PATH 解析的命令,然後確認啟動的是已設定的可執行檔,而不是隨附的二進位檔,包括在 NixOS 上也是如此。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- lua, typescript
- 領域
- tooling
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 65/100