VocalName skipped when music start with a rest

Roman Stawski <[email protected]> Mon, 28 Jul 2025 11:51:27 +0200
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
Hi folks

I've encountered an issue with vocalName and rests:

---

\version "2.25.27"
<<
   \new Staff {
     \new Voice = "melody" {
       r2 c' | \break  2 2 | \break 2 2\bar "|."
   } }
   \new Lyrics { \lyricsto "melody" { \lyricmode {
     \set vocalName = "V."
     \set shortVocalName = "v."
     A B C D E F
   } } }
 >>

---

If the music starts with a rest, as in the snippet, then the vocalName 
is not printed on the first line. if the rest is replaced by a note then 
the vocalName appears as expected. ShortVocalName appears correctly in 
all cases.

The same issue occurs with instrument name and shortInstrumentName.