LuaLS / LuaLS/lua-language-server

Addon manager takes wrong path when using Lua.addonManager.repositoryPath

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

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

Ngôn ngữ chính
Lua
Star
4.4k
Fork
442
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Libraries

Expected Behaviour

I expect it works with custom repository addons (workspaceStorage)

Image
Actual Behaviour

It works with official repository addons (globalStorage)

important note: I copied the files from "workspaceStorage" to "globalStorage" to illustrate the problem. Without this, the custom library will not activate.

Image
Reproduction steps
  1. Go to 'settings', search for 'Lua.addonManager.repositoryPath'
  2. Type 'https://github.com/antim0118/LLS-Addons-LPYT'
  3. Open 'Addon manager'
  4. Activate any custom addon
  5. Nothing happens (because it tries to find the addon in globalStorage folder)
Additional Notes

No response

Log File

Log file

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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

Tái hiện vấn đề bằng cách đặt Lua.addonManager.repositoryPath thành repository được liên kết và kích hoạt một addon thông qua Addon manager. Theo dõi quá trình phân giải đường dẫn repository của addon manager, sau đó xác minh rằng các addon của repository tùy chỉnh được tải từ workspaceStorage mà không được sao chép sang globalStorage.

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, vscode
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/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.