Am 21.03.2017 um 17:33 schrieb Jeffery Shivers: > Hi, > > I am working compiling a document located at: > /Users/Jeffery/work/scholarly/doc/source/examples/annotate/min.ly > > I can cd all the way into `examples`, and run lily fine (and get all > the correct outputs) with: > lilypond -I "/Users/Jeffery/work" -dclip-systems annotate/min.ly > > But if I go one directory deeper into `annotate`, and run: > lilypond -I "/Users/Jeffery/work" -dclip-systems min.ly > > It stops with the following error: > GNU LilyPond 2.19.56 > Processing `min.ly` > Parsing... > Package scholarly @0.5.0 registered successfully. > /Users/Jeffery/work/scholarly/annotate/module.ily:77:12: In > procedure list-tail in expression (list-tail input-file (- # 2)): > /Users/Jeffery/work/scholarly/annotate/module.ily:77:12: Value out > of range 0 to 4294967295: -1 > > The line about "Package scholarly ..." is just a confirmation one of > the included files prints when its invoked in the document. > > I wonder if the problem is something to do with the compiled doc and > that `annotate/module.ily` being in similarly named directories? > > Best, > Jeffery
Just to clarify before anyone is getting confused: This is most surely not a general issue with LilyPond but with the module loading code in the "scholarly" package. "input-file" here is a list split from the (*location*) string. Then the last two elements of that list are retrieved, and for some reason the location list here doesn't have enough elements. Please insert the line (dummy (ly:message "\n\n\ninput-file: ~a\n\n\n" input-file)) between the lines starting with "(input-file" and "(ctx" in module.ily (around line 77) and tell me what the output is (presumably immediately before the crash). Maybe give the output of a failing and a crashing compilation. Urs -- u...@openlilylib.org https://openlilylib.org http://lilypondblog.org _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user