On 11-03-04 05:57 AM, Laura Conrad wrote:
Run the attached "lilypond-book bookcrash.lytex" in a directory that
does not include a file named "missing.ly".
With lilypond-book (GNU LilyPond) 2.13.51, on ubuntu 10.04 LTS, I get
the correct error message:
lilypond-book: error: file not found: missing.ly
But then I get a python crash:
Traceback (most recent call last):
File "/home/newlily/lilypond/usr/bin/lilypond-book", line 703, in ?
main ()
File "/home/newlily/lilypond/usr/bin/lilypond-book", line 685, in main
chunks = do_file (files[0])
File "/home/newlily/lilypond/usr/bin/lilypond-book", line 569, in do_file
chunks = find_toplevel_snippets (source, global_options.formatter)
File "/home/newlily/lilypond/usr/bin/lilypond-book", line 333, in
find_toplevel_snippets
snip = klass (type, m, formatter, line_number, global_options)
File
"/home/newlily/lilypond/usr/share/lilypond/current/python/book_snippets.py",
line 803, in __init__
self.contents = file (BookBase.find_file (self.substring ('filename'),
global_options.include_path)).read ()
File
"/home/newlily/lilypond/usr/share/lilypond/current/python/book_base.py", line
25, in find_file
exit (1)
TypeError: 'str' object is not callable
I believe this was also true in 2.12, so it isn't a regression.
Many of lilypond's scripts and modules will produce a python traceback
on an ABEND, Laura. Do you mean that you would expect lilypond-book to
exit gracefully after emitting the error message? At the moment, I
think this would be an enhancement request, so before I put it on the
tracker, I'll be glad of any detail you can add.
Colin Campbell
Bug Squad
--
The test of our progress is not whether we add more to the abundance
of those who have much, it is whether we provide enough for those who
have too little.
-Franklin D. Roosevelt, 32nd US President (1882-1945)
_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond