programming error: cyclic dependency: example

Richard Shann <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.devel
Message-ID <[email protected]>
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
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.