Repository navigation
Description
Summary
The README quick start installs the published rock 0.1.1-1 and then runs programs that call Runtime:start_server, which that rock does not contain. A reader who follows the page on trunk would get attempt to call method 'start_server' (a nil value) on the first program. I read the code and tags and did not run the quick start.
Released and source installs
The README at d8266f2 now identifies the missing constructor in 0.1.1-1 and tells readers how to select the checkout on LUA_PATH. The source rock listed by LuaRocks matched the artifact used in the isolated install check (SHA-256 320ffd815b375dbd5fb031ca2c526927476d6ab90e1da890a2d7f542e0707a7e). Quick-start installation · Released rock
Both installed modules reported 0.1.1. In the registry install, connect was a function and start_server and with_server were nil. In the SCM install all three were functions. The registry-only quick start exited 1 on the missing constructor. For the release check, run the example with only the installed rock on the module path. issue 116 tracks the attaching guide's consumer.
Motivation
The first thing an adopter does is paste the quick start. The page gives two steps that disagree: the install pulls the latest published rock, and the program needs an API that exists only on trunk. CI cannot catch it: the check gate puts the checkout's lua/?.lua first on LUA_PATH (scripts/check/gates.lua lines 64-65), so every program runs against trunk.
Evidence
The quick start installs from LuaRocks, with no version, in README.md lines 56-62, then runs lua examples/api/new_session.lua from a clone (lines 118-126). The program calls runtime:start_server({ binary = binary }) and owned:stop().
LuaRocks lists 0.1.1-1 as the newest version, built from tag v0.1.1. git grep start_server v0.1.1 finds no match, and CHANGES.md lines 7-17 lists Runtime:start_server and Runtime:with_server under Unreleased.
The repository keeps the library under lua/libtmux/, and luarocks --local path adds only the rocks tree, so require("libtmux.runtime.luv") resolves to the installed 0.1.1-1, not to the checkout. Nineteen of the 20 programs under examples/ call start_server or with_server, so none of them runs against the published rock.
The published docs at https://libtmux.org/en/lua/latest/ still describe the previous release (the reference pages still show run.sh), so the page and the repository README now describe different libraries.
A search of open and closed issues for start_server, luarocks and unreleased finds only #103, which added the API.
Proposal
Release a version that contains start_server and name it in the quick start. Until it ships, keep the README's install on the route that has the API, for example the scm-1 rockspec. Add a CI step that installs the built rock into an empty tree and runs examples/api/new_session.lua against it, with LUA_PATH and LUA_CPATH pointing only at that tree, so the quick start is tested the way a reader runs it.
Activity
docs(readme[quick-start]) Say start_server is not in the published rock
tony commentedon Dec 5, 2026
Try the calculator in draft PR 151. In a fresh install of
0.1.1-1, the query example ran and the live session example stopped at its missingstart_servermethod. Following the new checkout instructions, I got19 + 23 = 42in a shell and7 + 8 = 15in a running Neovim. On tmux 3.3a the linked screen-reading example printedlua input ready.The installed-example test also runs a calculator that answers 41 and one that stays silent while the terminal echoes the input. Both must fail and release their private servers. Checkout instructions
tony commentedon Dec 5, 2026
The calculator example has now run from a clean SCM installation under standalone Lua and headless Neovim. The installed test checks both a wrong answer and a silent calculator. On the published 0.1.1-1 rock, users still need the release’s launcher. The ordinary package check and the old rockspec check have separate fixes. Calculator PR · Checkout package issue · Released rockspec issue.
The rebased calculator PR ran from a clean development-rock install on Ubuntu’s Lua 5.4.6 with its packaged
lua-luv. The calculator printed19 + 23 = 42. The proposed numbered 0.1.2-1 install also produced 42 in standalone Lua and Neovim during local release preparation. Tested quick start · Calculator PR.I also installed
masterdirectly into an empty LuaRocks tree with Lua 5.5.1 and tmux 3.8. The development rock (scm-1) started a private server. With terminal echo disabled, Lua sent19 23and Enter to an awk program and read its reply,total: 42, throughwatch:next(). The bundled pane-stream example printedoutput: watched. Typed characters alone are enough for that example. Tested master · Pane-stream example.