Am 20.12.18 um 10:52 schrieb Gianmaria Lari:
This program does not compile because myvar is not defined.
\version "2.19.82"
test = #(cond
((= myvar 0) "zero")
((= myvar 1) "one")
)
\markup \test
And this is the fixed version
\version "2.19.82"
myvar = 1
test = #(cond
((= myvar 0) "zero")
((= myvar 1) "one")
)
\markup \test
The errors I get when I compile the wrong code are the following
C:/Users/GIANMA~1/AppData/Local/Temp/frescobaldi-gtv7n2o_/tmpj0pm3z6i/document.ly:2:9
<0>: error: GUILE signaled an error for the expression beginning here
test = #
(cond
C:/Users/GIANMA~1/AppData/Local/Temp/frescobaldi-gtv7n2o_/tmpj0pm3z6i/document.ly:7:9
<1>: error: not a markup
\markup
\test
For me these are not enough clear to understand the problem. Is there
any way to get a more precise indication of the error I did?
Yes, by reading the whole output ;-) Sorry for sounding harsh, I agree
that it is non-intuitive. But often the messages for "GUILE signaled an
error..." are at the very end of the log output, in this case:
Starting lilypond 2.19.82 [Untitled]...
...
Unbound variable: myvar
fatal error: failed files:
"/tmp/frescobaldi-t7hq7cd0/tmpr_qtu9_l/document.ly"
HTH
Urs
Thank you, g.
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user