lilypond-user-fr
[Top][All Lists]
Advanced

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

Re: Bug de Frescobaldi ?


From: Vincent Gay
Subject: Re: Bug de Frescobaldi ?
Date: Mon, 18 Oct 2021 17:42:07 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

Le 18/10/2021 à 14:26, Jean Abou Samra a écrit :
C'est une bonne idée. Le suivi des bogues de l'outil
interne qui se charge de l'analyse syntaxique se fait
ici :

https://github.com/frescobaldi/python-ly/issues

Si vous êtes suffisamment à l'aise en anglais, je
vous invite à y ouvrir une page (je peux aussi le
faire si vous préférez).
Je qualifierai mon niveau d'anglais d'assez moyen. Voici ce que je propose (pour correction) :

-----------------------

If Frescobaldi encounters a function whose name starts with \set-[anything-you-want] it expects an equal sign before an argument. If it doesn't find it, it loses all its indentation, autocompletion and syntax coloring capabilities. Here is a minimal compilable example:


\version "2.22.1"

rs = {
  \once \override Rest.stencil = #ly:percent-repeat-item-interface::beat-slash
  \once \override Rest.thickness = #0.48
   r4
}
set-comp = #(define-music-function (count) (integer?)
              #{
                \override Rest.stencil = #ly:percent-repeat-item-interface::beat-slash
                \override Rest.thickness = #0.48
                \repeat unfold $count { r4 }
                \revert Rest.stencil
              #}
              )

\set-comp #24
\repeat volta 2
{
c'4 4 4 4
}

The problem appears after the line \set-comp #24, the Frescobaldi editor doesn't offer any help to the code input anymore.

If you change the name of the function (e.g. setcomp without hyphen) everything becomes normal again.

--
Vincent Gay
Envoyé depuis mon saxo-phone :)
https://myrealbook.vintherine.org/ - http://photos.vintherine.org/

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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