lilypond-devel
[Top][All Lists]
Advanced

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

Re: generate-documentation failure on context mods


From: David Kastrup
Subject: Re: generate-documentation failure on context mods
Date: Tue, 12 Jul 2022 15:29:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Jean Abou Samra <jean@abou-samra.fr> writes:

> Le 12/07/2022 à 13:54, Dan Eble a écrit :
>> I cannot tell why adding this to ly/context-mods-init.ly makes my build fail.
>>
>> ```
>> DoSomething = \with {
>>    \description "Blah blah @code{segnoBarType} blah blah @code{\\section}."
>>    segnoBarType = "S-||"
>> }
>> ```
>>
>> This is the end of Documentation/out/en/generate-documentation.log:
>>
>> /home/user/lilypond-build/out/share/lilypond/current/scm/lily/document-context-mods.scm/home/user/lilypond-build/out/share/lilypond/current/scm/lily/lily.scmBacktrace:
>>            18 (primitive-load-path "lily/documentation-generate.scm")
>> In srfi/srfi-1.scm:
>>      640:9 17 (for-each #<procedure ly:load (a)> _)
>> In ice-9/eval.scm:
>>      619:8 16 (_ #(#(#(#(#<directory (lily) ffff8d0d5780>) "d?") #) #))
>> In unknown file:
>>            15 (primitive-load-path "lily/document-context-mods")
>> In ice-9/eval.scm:
>>     626:19 14 (_ #<module (#{ g210}#) ffff8e93ed20>)
>>     173:55 13 (_ #<module (#{ g210}#) ffff8e93ed20>)
>>      155:9 12 (_ _)
>> In srfi/srfi-1.scm:
>>     697:23 11 (filter-map #<procedure document-mod (a)> _ . _)
>> In ice-9/eval.scm:
>>     174:20 10 (_ #(#(#(#(#(#<module (#{ g210}#) ffff8e93?>) ?) ?) ?) ?))
>>     177:49  9 (lp (#<procedure ffff8f36be20 at ice-9/eval.scm:125:?> ?))
>>     177:49  8 (lp (#<procedure ffff8f36be00 at ice-9/eval.scm:273:?> ?))
>>     177:32  7 (lp (#<procedure ffff8f36bde0 at ice-9/eval.scm:182:7 ?>))
>> In srfi/srfi-1.scm:
>>     592:29  6 (map1 ((description "Blah blah @code{segnoBarType}?") #))
>>     592:17  5 (map1 ((assign segnoBarType "S-||")))
>> In ice-9/eval.scm:
>>      159:9  4 (_ #(#(#(#(#<module (#{ g210}#) ffff8e93ed20>) #) # ?) ?))
>>     245:16  3 (_ #(#(#(#(#<module (#{ g210}#) ffff8e93ed20>) #) # ?) ?))
>>      155:9  2 (_ #(#(#(#(#<module (#{ g210}#) ffff8e93ed20>) #) # ?) ?))
>>     223:20  1 (proc #(#(#(#(#<module (#{ g210}#) ffff8e93ed?>) ?) ?) ?))
>> In unknown file:
>>             0 (%resolve-variable (7 . value) #<module (#{ g210}#) fff?>)
>>
>> ERROR: In procedure %resolve-variable:
>> Unbound variable: value
>
> The backtrace is unusable because the Scheme code is
> being evaluated without compiled bytecode. It gets much
> more helpful if you run "GUILE_AUTO_COMPILE=1 make".
>
>
> Making Documentation/out/en/internals.texi
>
> Please check the logfile
>
> /home/jean/repos/lilypond/build/Documentation/out/en/generate-documentation.log
>
> for errors. Last 20 lines:
>
> In srfi/srfi-1.scm:
>     634:9  8 (for-each #<procedure ly:load (x)> _)
> In
> /home/jean/repos/lilypond/build/out/share/lilypond/current/scm/lily/lily.scm:
>     465:4  7 (ly:load "document-context-mods")
> In unknown file:
>            6 (primitive-load-path "lily/document-context-mods")
> In
> /home/jean/repos/lilypond/build/out/share/lilypond/current/scm/lily/document-context-mods.scm:
>     93:11  5 (_)
> In srfi/srfi-1.scm:
>    691:23  4 (filter-map #<procedure document-mod (obj-pair)> _ . _)
> In
> /home/jean/repos/lilypond/build/out/share/lilypond/current/scm/lily/document-context-mods.scm:
>     80:12  3 (document-context-mod (DoSomething . #<Context_mod ((d?>))
> In srfi/srfi-1.scm:
>    586:29  2 (map1 ((description "Blah blah @code{segnoBarType}?") #))
>    586:17  1 (map1 ((assign segnoBarType "S-||")))
> In
> /home/jean/repos/lilypond/build/out/share/lilypond/current/scm/lily/document-context-mods.scm:
>     47:31  0 (document-mod-list (assign segnoBarType "S-||"))
>
> /home/jean/repos/lilypond/build/out/share/lilypond/current/scm/lily/document-context-mods.scm:47:31:
> In procedure document-mod-list:
> Unbound variable: value
>
>
>
> Apparently, document-mod-list in document-context-mods.scm reads
> an unbound variable.

Well, yes.

      ((assign)
       (string-append
        (format #f "@item Sets translator property @code{~a} to" name-sym)
        (if (pretty-printable? value)
            (format #f ":~a\n" (scm->texi (car args)))
            (format #f " ~a.\n" (scm->texi (car args))))))

Here (pretty-printable? value) should likely be (pretty-printable? (car
args)) .

-- 
David Kastrup



reply via email to

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