[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unexpected version number behaviour
From: |
Cameron Horsburgh |
Subject: |
Re: Unexpected version number behaviour |
Date: |
Sat, 10 Jun 2006 20:49:58 +1000 |
User-agent: |
Mutt/1.5.11+cvs20060403 |
On Sat, Jun 10, 2006 at 01:44:49AM -0700, Graham Percival wrote:
>
> On 10-Jun-06, at 1:10 AM, Cameron Horsburgh wrote:
>
> >On Sat, Jun 10, 2006 at 12:51:27AM -0700, Graham Percival wrote:
> >
> >>\version "2.7.0"
> >>{ c'4}
> >>produces:
> >>
> >>error: Incorrect lilypond version: 2.7.0 (2.7.38, 2.9.8)
> >>error: Consider updating the input with the convert-ly script
> >>foo.ly: 0: warning: no \version statement found, please add
> >>
> >>\version "2.9.8"
> >That's weird. I just reran the same file and I got the error you have.
> >The error I reported was cut-n-pasted from the compilation buffer, and
> >I *swear* I'm not lying!
> >
> >Oh well, that's got to be the most efficient bug fix I've ever seen...
>
> Err, it's not really a bug fix. It still claims that "no \version
> statement found", which is incorrect.
> - Graham
It is if you consider the bug to be between the keyboard and the chair...
However, this suggests a problem with the way the version warnings are done.
When I ran that file there was a syntax problem that filled my compilation
buffer *between* the two error reports. This meant I missed the first one which
is the one I needed to see.
Imagine a newbie compiling an older file. If syntax changes between the two
versions cause the run to fail (like mine did) and they're left with a warning
to add a version number, they might do that, which wouldn't fix anything. If
they use their brains and change the existing number *no version related
warnings will be printed at all.* The file would still fail, but any warnings
that might help them figure out the source of their troubles no longer exist.
May I make a suggestion? If a file needs updating, the note to add a version
number should be suppressed. This will ensure that the note to run convert-ly
will always appear, and will (hopefully) be found and run.
--
=============================================
Cameron Horsburgh
http://web.netcall.com.au/horsburgh
=============================================