Page MenuHomePhabricator

Score needs better error differentiation
Closed, DeclinedPublic

Description

In the case of lilypond syntax errors, it really shouldn't carry on and try and push it through ghostscript. Extracting the error and showing it to the user would be good

e.g. from bug 47534

Processing `.../file.ly'
Parsing...
.../file.ly:14:0: error: syntax error, unexpected \header

\header {
.../file.ly:34:24: error: syntax error, unexpected '}'

}Interpreting music... [8]

Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `file.eps'...
Converting to PNG...GS exited with status: 9


Version: unspecified
Severity: enhancement

Details

Reference
bz47571

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:31 AM
bzimport set Reference to bz47571.
bzimport added a subscriber: Unknown Object (MLST).

I guess if reedy fixes up the mediawiki install and fix GS error 9 all the error message will be invisible. Good question _how_ should the extension notify the user if there's seemingly some useful score output emitted...

Note, the random syntax errors I have made don't have the GS error 9, but instead look something like:

Processing `/tmp/MWLP.ebe90cf9bcc69ad96d400911052e46f2/file.ly'
Parsing...
/tmp/MWLP.ebe90cf9bcc69ad96d400911052e46f2/file.ly:12:1: error: syntax error, unexpected SCM_TOKEN

#(set-global-staff-size 14)
/tmp/MWLP.ebe90cf9bcc69ad96d400911052e46f2/file.ly:25:24: error: syntax error, unexpected '}'

}Interpreting music...

Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `file.ps'...
Converting to PNG...
error: failed files: "/tmp/MWLP.ebe90cf9bcc69ad96d400911052e46f2/file.ly"

exited with status: 1

I'm going to mark wontfix. All the GS status 9 are all the same error (out of memory)

Gilles raised the priority of this task from High to Unbreak Now!.Dec 4 2014, 10:20 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to High.Dec 4 2014, 11:21 AM