Re: programming errors: "Object is not a markup." and "I am not spanned!"
"Dmytro O. Redchuk" writes: > On Sun 03 Oct 2010, 03:12 David Kastrup wrote: >> Wilbert Berendsen writes: >> >> > Op donderdag 30 september 2010 schreef Marnix: >> > >> >> L.S., >> >> >> >> For the following file >> >> >> >> \version "2.12.4" >> >> { R\breve\fermata } >> > >> > use R\breve-\fermataMarkup (see the docs about full measure rests). >> > >> >> Even more alarming-looking, >> >> >> >> \version "2.12.4" >> >> { R2 } >> >> >> >> results in a (correct) "barcheck failed" warning, but also in an "I am not >> >> spanned!" error: >> > >> > R2 does not fill the measure that's why the MultiMeasureRest complains. >> > No LilyPond bugs as far as I can tell. >> >> Incomprehensible error messages count as bugs. > > Please, can you tell what lilypond should output in this case? We currently get /tmp/junk2.ly:1:2: warning: barcheck failed at: 1/2 { R2 } Preprocessing graphical objects... programming error: Multi_measure_rest::get_rods (): I am not spanned! continuing, cross fingers programming error: Object is not a markup. continuing, cross fingers This object should be a markup: () programming error: Multi_measure_rest::get_rods (): I am not spanned! continuing, cross fingers Instead, the message better be either Warning: multimeasure rest fails bar check (in case that its length _is_ a full bar multiple) or Error: multimeasure rest size not a multiple of bar size (in case that it could not work out anyway). In case of a warning, error recovery needs to result in something reasonably sensible. If that is not feasible, one needs to create an error instead. A warning implies that Lilypond is going to do continue with reasonable results. -- David Kastrup ___ bug-lilypond mailing list bug-lilypond@gnu.org http://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: programming errors: "Object is not a markup." and "I am not spanned!"
On Sun 03 Oct 2010, 03:12 David Kastrup wrote: > Wilbert Berendsen writes: > > > Op donderdag 30 september 2010 schreef Marnix: > > > >> L.S., > >> > >> For the following file > >> > >> \version "2.12.4" > >> { R\breve\fermata } > > > > use R\breve-\fermataMarkup (see the docs about full measure rests). > > > >> Even more alarming-looking, > >> > >> \version "2.12.4" > >> { R2 } > >> > >> results in a (correct) "barcheck failed" warning, but also in an "I am not > >> spanned!" error: > > > > R2 does not fill the measure that's why the MultiMeasureRest complains. > > No LilyPond bugs as far as I can tell. > > Incomprehensible error messages count as bugs. Hi! Please, can you tell what lilypond should output in this case? Thanks! -- Dmytro O. Redchuk Bug Squad ___ bug-lilypond mailing list bug-lilypond@gnu.org http://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: programming errors: "Object is not a markup." and "I am not spanned!"
On Mon 04 Oct 2010, 09:59 David Kastrup wrote: > We currently get > /tmp/junk2.ly:1:2: warning: barcheck failed at: 1/2 > { > R2 } > Preprocessing graphical objects... > programming error: Multi_measure_rest::get_rods (): I am not spanned! > continuing, cross fingers > programming error: Object is not a markup. > continuing, cross fingers > This object should be a markup: () > programming error: Multi_measure_rest::get_rods (): I am not spanned! > continuing, cross fingers > > > Instead, the message better be either > Warning: multimeasure rest fails bar check > (in case that its length _is_ a full bar multiple) > or > Error: multimeasure rest size not a multiple of bar size > (in case that it could not work out anyway). > > In case of a warning, error recovery needs to result in something > reasonably sensible. If that is not feasible, one needs to create an > error instead. > > A warning implies that Lilypond is going to do continue with reasonable > results. Thank you David and Marnix; added this as 1291: http://code.google.com/p/lilypond/issues/detail?id=1291 -- Dmytro O. Redchuk Bug Squad ___ bug-lilypond mailing list bug-lilypond@gnu.org http://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: programming errors: "Object is not a markup." and "I am not spanned!"
Wilbert Berendsen writes: > Op donderdag 30 september 2010 schreef Marnix: > >> L.S., >> >> For the following file >> >> \version "2.12.4" >> { R\breve\fermata } > > use R\breve-\fermataMarkup (see the docs about full measure rests). > >> Even more alarming-looking, >> >> \version "2.12.4" >> { R2 } >> >> results in a (correct) "barcheck failed" warning, but also in an "I am not >> spanned!" error: > > R2 does not fill the measure that's why the MultiMeasureRest complains. > No LilyPond bugs as far as I can tell. Incomprehensible error messages count as bugs. -- David Kastrup ___ bug-lilypond mailing list bug-lilypond@gnu.org http://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: programming errors: "Object is not a markup." and "I am not spanned!"
Op donderdag 30 september 2010 schreef Marnix: > L.S., > > For the following file > > \version "2.12.4" > { R\breve\fermata } use R\breve-\fermataMarkup (see the docs about full measure rests). > Even more alarming-looking, > > \version "2.12.4" > { R2 } > > results in a (correct) "barcheck failed" warning, but also in an "I am not > spanned!" error: R2 does not fill the measure that's why the MultiMeasureRest complains. No LilyPond bugs as far as I can tell. best regards, Wilbert Berendsen -- Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/ Nederlands LilyPond forum: http://www.lilypondforum.nl/ ___ bug-lilypond mailing list bug-lilypond@gnu.org http://lists.gnu.org/mailman/listinfo/bug-lilypond
programming errors: "Object is not a markup." and "I am not spanned!"
L.S., For the following file \version "2.12.4" { R\breve\fermata } lilypond reports the following "programming error": $ lilypond bug.ly GNU LilyPond 2.12.4 Processing `bug.ly' Parsing... Interpreting music... Preprocessing graphical objects... programming error: Object is not a markup. continuing, cross fingers This object should be a markup: () Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... programming error: cannot align on self: empty element continuing, cross fingers Layout output to `bug.ps'... Converting to `./bug.pdf'... $ Even more alarming-looking, \version "2.12.4" { R2 } results in a (correct) "barcheck failed" warning, but also in an "I am not spanned!" error: $ lilypond bug2.ly GNU LilyPond 2.12.4 Processing `bug2.ly' Parsing... Interpreting music... bug2.ly:2:2: warning: barcheck failed at: 1/2 { R2 } Preprocessing graphical objects... programming error: Multi_measure_rest::get_rods (): I am not spanned! continuing, cross fingers programming error: Object is not a markup. continuing, cross fingers This object should be a markup: () programming error: Multi_measure_rest::get_rods (): I am not spanned! continuing, cross fingers Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to `bug2.ps'... Converting to `./bug2.pdf'... $ (Probably irrelevant, but I'm running under cygwin.) Groetjes, <>< Marnix ___ bug-lilypond mailing list bug-lilypond@gnu.org http://lists.gnu.org/mailman/listinfo/bug-lilypond