lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to read a error message?


From: Urs Liska
Subject: Re: How to read a error message?
Date: Tue, 14 Mar 2017 10:53:15 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0


Am 14.03.2017 um 10:43 schrieb David Kastrup:
> Urs Liska <address@hidden> writes:
>
>> Am 14.03.2017 um 09:00 schrieb David Kastrup:
>>> and then the offending line, split into two just at the offending
>>> location.  In your case, the first occurences of h are flagged since h
>>> is not part of the default note language.
>> To add something more general to that: The "error: unrecognized string"
>> indicates that LilyPond is given something to parse (here: "h") which it
>> doesn't understand ("recognize") at this place. It can be a note name in
>> the wrong language but it could also be a misspelled command (e.g.
>> \brake instead of \break) or a variable you have declared in another
>> file which you forgot to include.
>>
>> So essentially this error tells you "There is *something* wrong with
>> your input but I can't tell you what exactly". And LilyPond can't tell
>> you "this is not a note name" here because there are plenty of other
>> valid things that could go there, articulations, dynamics, ties,
>> arbitrary commands or Scheme expressions ...
> None of which have the form of a string.  I do think that the error
> message is too circumlocutory.
>

Maybe something like Python3:

>>> prnit("Something")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'prnit' is not defined

We could have something like:

error: unknown item 'h'

in the OP's example?

-- 
address@hidden
https://openlilylib.org
http://lilypondblog.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]