Backlog
Labels
area:buildDocumentation generation, build inputs and output verification.bugSomething isn't workingp2Useful follow-up that can proceed independently of the core milestone.port:luaWork on the Lua documentation port.topic:apiPublic API reference, symbol links and discoverability.
Description
Summary
A cached Lua export records declaration line numbers and a Git revision. If the source changes during export and is then restored, the website still uses the cached line numbers for the restored commit. Readers can land on another declaration.
Reproduction
- Check out the public Lua source below. Insert ten blank lines at the beginning of
lua/libtmux/_internal/runtime.lua. - Run the Lua documentation exporter. Restore the source file from Git and keep the export.
- Generate the website Lua model from the restored checkout and inspect the emitted source location for
Runtime:connect.
Expected
The website cites a declaration only when the exporter read the same bytes as the linked Git blob.
Actual
Runtime:connect points to line 1064, the spawn declaration. The committed connect declaration is at line 1054.
Environment
Website and exporter
Linux ARM64, Node 26.5.1, LuaJIT 2.1, LuaLS 3.19.1. The restored checkout was clean and the cached export still recorded its commit.
References
Codex reproduced the misplaced link using a public checkout and its native exporter.
Metadata
Metadata
Assignees
Labels
area:buildDocumentation generation, build inputs and output verification.bugSomething isn't workingp2Useful follow-up that can proceed independently of the core milestone.port:luaWork on the Lua documentation port.topic:apiPublic API reference, symbol links and discoverability.
Activity
tony commentedon Dec 5, 2026
The website fix is in #394. On current Lua master, a fresh export links
Runtime:connectto line 1054. Restoring an older export previously sent that link tospawnat line 1064. The fixed reference keeps the signature and the other 17 verified files. Onv0.1.1, the link opensconnectat line 1046 and the example still installs0.1.1-1with the release’s original launcher.The draft builds on the release recipe PR and uses the declaration hashes supplied by the Lua exporter. Website recipes · Lua exporter.
I also built the tagged site and opened the method in Chromium. Clicking Source displayed the declaration at line 1046 beside the reference page, and Escape closed the pane. The example’s launcher matched the tagged file byte for byte. Method in the public tag.