Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile on MacOS - bad argument #1 to 'rawget' #316

Open
thelaumix opened this issue Sep 5, 2023 · 3 comments
Open

Can't compile on MacOS - bad argument #1 to 'rawget' #316

thelaumix opened this issue Sep 5, 2023 · 3 comments

Comments

@thelaumix
Copy link

Hey,

I'm trying to include lylualatex into Texifier on MacOS (Lilypond v2.24.2 / homebrew), but despite my efforts, any attempt to compile even the most basic scores results in an error being thrown by LuaLaTeX.

(lyluatex)	Compiling score tmp-ly/8de58477103c654174a63450fab5a00f with LilyPond executable '/opt/homebrew/bin/lilypond'.
...23/texmf-dist/tex/lualatex/luaoptions/luaoptions-lib.lua:236: bad argument #1 to 'rawget' (table expected, got nil)
stack traceback:
	[C]: in function 'rawget'
	...23/texmf-dist/tex/lualatex/luaoptions/luaoptions-lib.lua:236: in metamethod '__index'
	...al/texlive/2023/texmf-dist/scripts/lyluatex/lyluatex.lua:802: in method 'lilypond_cmd'
	...al/texlive/2023/texmf-dist/scripts/lyluatex/lyluatex.lua:1146: in method 'run_lilypond'
	...al/texlive/2023/texmf-dist/scripts/lyluatex/lyluatex.lua:1110: in method 'process'
	[\directlua]:1: in main chunk.
\ly@compilescore ...directlua {ly.score:process()}
                                                  
l.16 \end{lilypond}

I did already find some issues referring to a similar log output, but so far none of the solutions provided there have been able to resolve the problem. Does anyone know what might be causing this to happen?

Best regards

@profejuanca
Copy link

Same error in manjaro (in 3 different computers), using Gummy or another editor, but if I use a document without save them and autocompile option fron ram, this works perfectly, but is useless without saving option.

@MacLotsen
Copy link

Same for Ubuntu 22.04 with GNU LilyPond 2.24.3 and TeX Live (latest, not apt).
MWE: lualatex lualatex --shell-escape myfile

\documentclass[11pt]{scrbook}
\usepackage{lyluatex}
\begin{document}
    \begin{lilypond}[quote,fragment,staffsize=26]
      c'4 d' e' f' g'2 g'
    \end{lilypond}
\end{document}

However, it does the same for any lilypond macro.

@MacLotsen
Copy link

When the first argument is nil, the log file couldn't be found. I think you can work around it if you keep the source and output directory the same. I have opened a PR in luaoptions to solve this matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants