It is not possible to **not** use the bundled server
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 215
- Fork
- 62
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tìm cấu hình khởi chạy server và binary đi kèm của plugin VS Code được mô tả trong issue. Thêm một thiết lập chấp nhận đường dẫn tuyệt đối, đường dẫn tương đối hoặc command được phân giải qua PATH cho Lua language server, sau đó xác minh rằng executable đã cấu hình được khởi chạy thay cho binary đi kèm, bao gồm cả trên NixOS.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- lua, typescript
- Lĩnh vực
- tooling
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 65/100