LuaLS / LuaLS/lua-language-server

`Lua: Export Document ...` fails, throws error in log when trying to export documentation.

Đang mở
#2,657 5 bình luận 6 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?

Other

Expected Behaviour

Export document to allow exporting documentation.

Actual Behaviour

Nothing happens, though if you check the logs there is the following error:

[20:31:45.883][error][#0]: script\cli\doc.lua:287: bad argument #1 to 'path' (bee::path expected, got nil)
stack traceback:
	[C]: in function 'bee.filesystem.path'
	script\cli\doc.lua:287: in upvalue 'collectConfig'
	script\cli\doc.lua:300: in function 'cli.doc.export'
	script\cli\doc.lua:354: in function 'cli.doc.makeDoc'
	script\core\command\exportDocument.lua:11: in function 'core.command.exportDocument'
	script\provider\provider.lua:984: in function <script\provider\provider.lua:962>
	[C]: in function 'xpcall'
	script\proto\proto.lua:200: in function <script\proto\proto.lua:175>
Reproduction steps
  1. Open Command Pallete
  2. Select Lua: Export Document ...
  3. Select a location to export to.
  4. Observe as nothing is output, and the error is thrown in the log.
Additional Notes

No response

Log File

file_d%3A_Desktop_MMC_MultiMC_instances_pathfinding_.minecraft_saves_world_computercraft_computer_1_Simplify-Mapping.log

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 lỗi với lệnh Lua: Export Document, sau đó bắt đầu từ script/cli/doc.lua:287 trong collectConfig. Theo dõi lời gọi từ script/core/command/exportDocument.lua. Kiểm tra log được cung cấp và cách xử lý đường dẫn export; hoàn tất khi việc chọn vị trí đầu ra tạo ra tài liệu mà không có lỗi được ghi lại.

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
Lĩnh vực
cli, documentation
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
Đặc tả rõ ràng
Mức phù hợp với người mới
35/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.