|
From: | Mats Bengtsson |
Subject: | Re: lilypond-book fails on identical snippets |
Date: | Sun, 02 May 2010 23:11:33 +0200 |
User-agent: | Thunderbird 2.0.0.24 (X11/20100317) |
Werner LEMBERG wrote:
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.[lilypond 2.13.16, but there weren't related changes in newer versions] This input file zzz.tex ---------------------------------------------------------------------- \begin{lilypond} { c' } \end{lilypond} \begin{lilypond} { c' } \end{lilypond} ---------------------------------------------------------------------- called with lilypond-book --output=out zzz.tex causes the following error:
/Mats
---------------------------------------------------------------------- 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 snippet.write_ly() File "/usr/local/bin/lilypond-book", line 1333, in write_ly diff_against_existing = filter_pipe (self.full_ly (), 'diff -u %s -' % filename) 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. Werner _______________________________________________ bug-lilypond mailing list address@hidden http://lists.gnu.org/mailman/listinfo/bug-lilypond
-- ============================================= Mats Bengtsson Signal Processing School of Electrical Engineering Royal Institute of Technology (KTH) SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: address@hidden WWW: http://www.s3.kth.se/~mabe =============================================
[Prev in Thread] | Current Thread | [Next in Thread] |