lilypond-user
[Top][All Lists]
Advanced

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

Re: another 'wrong type argument' error


From: David Kastrup
Subject: Re: another 'wrong type argument' error
Date: Sun, 09 Oct 2022 21:19:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Kieren MacMillan <kieren@kierenmacmillan.info> writes:

> Hi again,
>
> D'oh… The better implication for me to have gotten from your helpful
> email would have been to search for "list-head" in all the files in my
> path/folder…
>
> Here's the output of that effort:
>
> [from OLL]
> edition-engraver/engine.scm:623: ) (wildcard2regex (list-tail
> (list-head mod-cl (1- (length mod-cl))) 1) ))
> oll-core/internal/os-path.scm:174: (list-head path-list (- (length
> path-list) 1))))
> oll-core/internal/os-path.scm:208:      (list-head file (- (length file) 1))))
> oll-core/internal/os-path.scm:213:      (list-head file (- (length file) 2))))
> oll-core/internal/properties.scm:424: ((propset-path (list-head
> configuration-path (- (length configuration-path) 1)))
> oll-core/package.ily:59:        (oll-root (list-head path (- (length path) 
> 2)))
> oll-misc/custom-elements/compound-slurs/module.ily:261: (list-head
> (list-tail cps 1) (- (length cps) 2))
> snippets/ly/_internal/options.ily:66: (parent (list-head opt-path (-
> (length opt-path) 1)))
> snippets/notation-snippets/compound-slurs/module.ily:261: (list-head
> (list-tail cps 1) (- (length cps) 2))

Those all look like they could not produce (list-head '() 2).

These two can theoretically trigger:

> snippets/templates/adjustable-centered-stanzas/module.ily:45: (helper
> (cons (list-head remain next-sublist-size) accum)

> [from personal/non-OLL files]
> text-spanner-inner-texts.ly:160: (cons (list-head text-list (car
> line-count-list)) result)))))

And the rest should not be able to produce that call either.

> text-spanner-inner-texts.ly:198: (tslc (append (list-head tslc (1-
> (length tslc)))
> text-spanner-inner-texts.ly:463: (inner-texts (cdr (list-head texts
> (1- (length texts))))))
>
> Anything there helpful for the purposes of diagnosis?

No idea.  Most can be ruled out, and for the other two one would have to
look at more context.

It's really a clumsy way to debug.  Let's hope that better error
pinpointing starts working soonish.

-- 
David Kastrup



reply via email to

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