Re: programming error: cyclic dependency: example

Dan Eble <[email protected]> Fri, 29 Aug 2025 06:34:15 -0400
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
[moving to [email protected]]

On 2025-08-28 10:52, Richard Shann wrote:
> The score below has the Bar_number_engraver moved to Staff level:
> depending on the details of the music this causes an error:
> 
> programming error: cyclic dependency: calculation-in-progress encountered for VerticalAxisGroup.adjacent-pure-heights
> continuing, cross fingers
> 
> In the real-life example that lead to this MWE the typesetting is ok,
> so I'm submitting this in the hope it may prove useful for developers.
> 
> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
> \version "2.24"
> MI = {
>           s1
>           \startStaff \unHideNotes
>           c''1
>           c''
>       }
> MII = {
>           R1
>           R1
>           R1
> }
> \score {
>            <<
>              \new Staff  \with {
>                                \RemoveAllEmptyStaves
>                                \consists "Bar_number_engraver"  %this causes programming error: cyclic dependency
>                                }
>                     {
>                       \stopStaff \hideNotes
>                       \override Staff.TimeSignature.transparent = ##t
>                       \override Staff.Clef.stencil = ##f
>                       \MI
>                      }
>              \new Staff
>                     {
>                     \MII
>                     }
>            >>
>         }
> 8><8><8><8><8><8><8><8><8><8><8><8><8><
> 
> Richard Shann
> 
>