Am 21. März 2017 18:13:58 MEZ schrieb Jeffery Shivers <jefferyshiv...@gmail.com>: >On Tue, Mar 21, 2017 at 12:51 PM, Urs Liska <u...@openlilylib.org> wrote: >> >> 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. > >Thanks. > >> 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. > >The problem was subtracting 2 from (length input-file) for `ctx`: > (input-file (string-split (car (ly:input-file-line-char-column >(*location*))) #\/ )) > (ctx (list-tail input-file (- (length input-file) 2))) > >This corrects that: > (ctx (list-tail input-file (- (length input-file) 1))) > >Sorry for the noise everyone. Don't know why I didn't look there >before posting. Should have eaten my Wheaties first.
Ehm, doesn't that break things in other situations? I assume the "2" is there fir a reason ... _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user