LuaLS / LuaLS/vscode-lua

It is not possible to **not** use the bundled server

Đang mở
#124 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

question
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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. 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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.