[Top][All Lists]

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

Re: lilypond-book fails on identical snippets

From: Mats Bengtsson
Subject: Re: lilypond-book fails on identical snippets
Date: Sun, 02 May 2010 23:11:33 +0200
User-agent: Thunderbird (X11/20100317)

Werner LEMBERG wrote:
[lilypond 2.13.16, but there weren't related changes in newer versions]

This input file zzz.tex


  { c' }

  { c' }


called with

  lilypond-book --output=out zzz.tex

causes the following error:
Probably, since the file name is generated based on some hash function of the code snippet, so both snippets get the same file name. How likely is this to happen in a practical document? Well, perhaps it is, since it could be some short example just showing a clef or a C major scale or whatever, that appears several times in a document.



Traceback (most recent call last):
  File "/usr/local/bin/lilypond-book", line 2215, in <module>
    main ()
  File "/usr/local/bin/lilypond-book", line 2197, in main
    chunks = do_file (files[0])
  File "/usr/local/bin/lilypond-book", line 2099, in do_file
    do_process_cmd (chunks, input_fullname, global_options)
  File "/usr/local/bin/lilypond-book", line 1933, in do_process_cmd
  File "/usr/local/bin/lilypond-book", line 1333, in write_ly
    diff_against_existing = filter_pipe (self.full_ly (), 'diff -u %s -' % 
  File "/usr/local/bin/lilypond-book", line 1768, in filter_pipe
    error (_ ("`%s' failed (%d)") % (cmd, exit_status))
TypeError: 'str' object is not callable


The error doesn't happen if the two snippets are not identical.


bug-lilypond mailing list

        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe

reply via email to

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