LuaLS / LuaLS/vscode-lua

Export Document Renders Nothing

Open
#137 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
215
Forks
62
PR merge metrics
No merged PRs in 30d

Description

### 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
[C]: in function 'xpcall'
script/proto/proto.lua:200: in function <script/proto/proto.lua:175>
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with script/cli/doc.lua around collectConfig at line 287 and the export path in script/cli/doc.lua, then follow script/core/command/exportDocument.lua:11. Reproduce the documented command sequence with LuaJIT and use the stack trace to inspect why export produces no files. Done means the selected folder receives markdown output, or the extension reports a clear configuration error.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
cli, documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.