latex3 / luaotfload

OpenType font loader for LuaTeX
Other
56 stars 6 forks source link

`luaotfload-tool --find` fails due to missing functionality in `luaonly` mode #277

Open wangweixuan opened 3 months ago

wangweixuan commented 3 months ago

Currently the command-line tool luaotfload-tool --find is not working:

...4/texmf-dist/tex/luatex/luaotfload/luaotfload-arabic.lua:19: attempt to index a nil value (global 'node')

It works if I comment out this line (introduced in 79e909f): https://github.com/latex3/luaotfload/blob/72561365e3de47c138418af7d11ab335683ff7f0/src/luaotfload-features.lua#L893

The required module relies on the node table. However,luaotfload-tool runs in luaonly mode. That mode has limited functionality (from LuaTeX manual):

[...] the tables that deal with typesetting, like tex, token, node and pdf, are off-limits during the execution of the startup file (they are nil’d).

zauguin commented 2 months ago

Resolved in dev with 12521e87463d78e2cbf0bd94a09381bf97ee29be.