LuaLS / LuaLS/vscode-lua

"Lua PSI Viewer" feature not working.

Đang mở
#172 0 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
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

The "Lua PSI Viewer" feature, when ran, it expects some `index.html` file to be at this path:
~/.vscode/extensions/sumneko.lua-3.15.0-linux-x64/**client/web/dist/index.html**
but presumably the `index.html` file path actually exists here
~/.vscode/extensions/sumneko.lua-3.15.0-linux-x64/**client/webvue/build/index.html**

The error happens because of exactly this line:
https://github.com/LuaLS/vscode-lua/blob/9e91c07ce7b3b9fa162763b0eb7d39cf90033798/client/src/psi/psiViewer.ts#L18

so just do:
```diff
- private static readonly distDirectory = "client/web/dist";
+ private static readonly distDirectory = "client/webvue/build";
```

### Reproduction steps

Steps to reproduce:


Type: Lua PSI Viewer

Image

get this error message:

Image

### Additional Notes

the bug got introduces in ~3 years ago, by commit `1c7a326`

i actually dont know what this "Lua PSI Viewer" feature is for :P
Im curious to find out when it works (again)

Also, I was considering making this a pull request, but i dont know how to compile/run this project, so i cant test fix sry ):

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

Kiểm tra client/src/psi/psiViewer.ts, đặc biệt là giá trị distDirectory và cách PSI Viewer phân giải index.html. Thực hiện lại lệnh Lua PSI Viewer từ Command Palette và xác minh rằng đường dẫn client/webvue/build/index.html được đóng gói được sử dụng. Hoàn tất khi viewer mở mà không có lỗi thiếu tệp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

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