LuaLS / LuaLS/vscode-lua

Export Document Renders Nothing

未關閉
#137 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
TypeScript
星號
215
分支
62
PR 合併指標
30 天內沒有已合併 PR

描述

Which OS are you using?

Linux

Expected Behaviour

"Lua: Export Document" -> Should generate markdown files after choosing the output folder.

Actual Behaviour

Nothing renders

Reproduction steps
  1. Open a lua file
  2. press ctl + shift + p
  3. select "Lua: Export Document"
  4. choose a folder

no output generated.

Additional Notes
  • This may be user error, if so, no notification provided by the extension.
  • I'm using LuaJIT as the interpreter.
Log
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>

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先從 script/cli/doc.lua 中第 287 行附近的 collectConfig 以及 script/cli/doc.lua 中的匯出路徑開始,然後追蹤 script/core/command/exportDocument.lua:11。使用 LuaJIT 重現文件記載的命令序列,並利用堆疊追蹤檢查匯出為何沒有產生檔案。當選取的資料夾收到 markdown 輸出,或擴充功能回報明確的設定錯誤時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
lua
領域
cli, documentation
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。