lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scheme compile error


From: Urs Liska
Subject: Re: scheme compile error
Date: Thu, 20 Dec 2018 11:00:53 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

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: 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: 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
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

[Prev in Thread] Current Thread [Next in Thread]