Page MenuHomePhabricator

Score: Colors names (e.g. #red) are not recognized
Closed, ResolvedPublic


Author: jeanluc.thiebaut


\version "2.14"
  \override NoteHead #'color = #red
\override NoteHead #'color = #'(1 0 0) %red

Version: unspecified
Severity: normal
OS: Linux
Platform: PC

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:25 AM
bzimport set Reference to bz58526.
bzimport added a subscriber: Unknown Object (MLST).

jeanluc.thiebaut wrote:

Sorry unexpected return save it before ending...

I've tried this with fhe EN and FR wikisource sandbox,
OS Linux ; Firefox 24

In the first sequence, "#red" is unknown
error reported :
.../ error: GUILE signaled an error for the expression beginning here

\override NoteHead #'color = #

Interpreting music...
warning: type check for color' failed; value #<unspecified>' must be of type `color'

It can be circumvented via the second sequence
( \override NoteHead #'color = #'(1 0 0) )

This is valid for any color.

This is upstream issue (Color names should be enabled in safe mode but aren't)

Change 370306 had a related patch set uploaded (by Ebe123; owner: Ebe123):
[mediawiki/extensions/Score@master] Run lilypond from inside firejail

Change 370306 merged by jenkins-bot:
[mediawiki/extensions/Score@master] Add option to use -dsafe argument in Lilypond command

Resolved with safe mode deactivated.

{ \override NoteHead #'color = #red g'4 }

kji70sq2.png (52×83 px, 3 KB)

Aklapper removed a project: Patch-For-Review.
Aklapper added a subscriber: Ebe123.
Pppery added a subscriber: Pppery.

Linked patch was merged.