lualatex-tools / luaoptions

Option handling for LuaLaTeX packages
MIT License
2 stars 1 forks source link

luaoptions-lib.lua:236: bad argument #1 to 'rawget' (table expected, got nil) #5

Closed fedelibre closed 1 year ago

fedelibre commented 1 year ago

Two days ago I was able to compile my book, but now I'm getting an error. I'm not sure what changed. This happens on my laptop, where I have Fedora Silverblue, an immutable OS. Native Texlive 2022 is installed in my home, but I'm running lualatex (even tlmgr) inside a toolbox container, where perl is available.

(/var/home/fede/.local/texlive/2022/texmf-dist/tex/latex/microtype/mt-msa.cfg)
(/var/home/fede/.local/texlive/2022/texmf-dist/tex/latex/microtype/mt-msb.cfg)
[1{/var/home/fede/.local/texlive/2022/texmf-var/fonts/map/pdftex/updmap/pdftex.
map}] [2] (/tmp/tex2pdf.-f8226d8dd0e317d8/input.toc) [3] [4] [1] [2]
(lyluatex)  Compiling score tmp-ly/46d52b79d1eddb1b37a408b0a5e8bce8 with LilyPond executable 'lilypond'.
...22/texmf
-dist/tex/lualatex/luaoptions/luaoptions-lib.lua:236: bad argument #1 to 'rawget' (table expected, got nil).
\ly@compilescore ...directlua {ly.score:process()}

l.168 \end{lilypond}

The culprit seems to be around here.

fedelibre commented 1 year ago

I forgot that this error occurs when building from Markdown using pandoc directly with the pdf-engine=lualatex option. If I build the .tex file first and then the .pdf, it works fine.

Discussed here