Re: Error in Extending Lilypond example

Jean Abou Samra <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs,gmane.comp.gnu.lilypond.general
Message-ID <[email protected]>

> Le 1 févr. 2023 à 11:23, Thomas Morley <[email protected]> a écrit :
> 
> Am Mi., 1. Feb. 2023 um 04:16 Uhr schrieb Saul Tobin
> <[email protected]>:
>> 
>> The fourth example engraver here:
>> https://extending-lilypond.readthedocs.io/en/latest/extending/translation.html#fourth-engraver-example
>> 
>> Running this code in 2.24 crashes on initializing the engraver with In
>> procedure ly:spanner-set-bound!: Wrong type argument in position 3
>> (expecting Item): ().
> 
> Fwiw, looks like (ly:context-property ctx 'currentCommandColumn) is
> not longer available in the initialize-step of an engraver.
> Not the time to bisect when and why this happened,

It’s this: https://gitlab.com/lilypond/lilypond/-/commit/7a09ffee2c69ab9617289afd21dae1b9198a9fee

Perfectly intentional.

Also, reading it in initialize was a bad idea in 2.22 in the first place. That creates a dependency on the order in which engravers are \consists-ed between your engraver and Paper_column_engraver. I’ll fix it by doing it in the first run of process-music. It should have been like that in the first place.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.