ly not reformatting?

32 views
Skip to first unread message

Knute Snortum

unread,
Aug 21, 2025, 4:10:12 PMAug 21
to Frescobaldi
Is anyone else having problems getting ly to reformat a document?  I have v0.9.9 installed from source and it's not working for me, or maybe it's a problem with the current version of python-ly.

--
Knute Snortum

Federico Bruni

unread,
Aug 22, 2025, 4:26:50 PMAug 22
to fresc...@googlegroups.com, Knute Snortum
Il giorno gio 21 ago 2025 alle 13:09:56 -07:00:00, Knute Snortum
<ksno...@gmail.com> ha scritto:
> Is anyone else having problems getting ly to reformat a document? I
> have v0.9.9 installed from source and it's not working for me, or
> maybe it's a problem with the current version of python-ly.

I had the same problem the first time I launched Frescobaldi, then it
disappeared.
Can you reproduce it consistently?



Knute Snortum

unread,
Aug 23, 2025, 10:18:19 AMAug 23
to Federico Bruni, fresc...@googlegroups.com
I can, something as simple as:

    \version "2.24.4" \score { \new Staff \relative { c''4 c c c } }

does not format.  It can re-indent, but not format.


--
Knute Snortum


Federico Bruni

unread,
Aug 24, 2025, 10:08:21 AMAug 24
to fresc...@googlegroups.com, Knute Snortum
I haven't used it for a long time, but are you sure that it ever did
what you are expecting? I think it just removes the trailing spaces,
indent and move long comments:

https://github.com/frescobaldi/python-ly/blob/ea3c0c472a2450c108e54e1c8d7a054d75d567dc/ly/reformat.py



Il giorno sab 23 ago 2025 alle 07:18:04 -07:00:00, Knute Snortum
<ksno...@gmail.com> ha scritto:
> I can, something as simple as:
>
> \version "2.24.4" \score { \new Staff \relative { c''4 c c c } }
>
> does not format. It can re-indent, but not format.
>
>
> --
> Knute Snortum
>
>
>
> On Fri, Aug 22, 2025 at 1:26 PM Federico Bruni <fe...@inventati.org>
> wrote:
>> Il giorno gio 21 ago 2025 alle 13:09:56 -07:00:00, Knute Snortum
>> <ksno...@gmail.com> ha scritto:
>> > Is anyone else having problems getting ly to reformat a document?
>> I
>> > have v0.9.9 installed from source and it's not working for me, or
>> > maybe it's a problem with the current version of python-ly.
>>
>> I had the same problem the first time I launched Frescobaldi, then
>> it
>> disappeared.
>> Can you reproduce it consistently?
>>
>>
>>
> --
> Frescobaldi homepage: http://www.frescobaldi.org/
> Mailing list: http://groups.google.com/group/frescobaldi
> Issue tracker: https://github.com/frescobaldi/frescobaldi/issues
> ---
> You received this message because you are subscribed to the Google
> Groups "Frescobaldi" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to frescobaldi...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/frescobaldi/CALmeJxQ0ehcyE21jowAJj%3DiSCp2vZ7tutXfdD6bbzWFwB8Cw5A%40mail.gmail.com.


Knute Snortum

unread,
Aug 26, 2025, 10:09:14 AM (12 days ago) Aug 26
to Federico Bruni, fresc...@googlegroups.com
On Sun, Aug 24, 2025 at 7:08 AM Federico Bruni <fe...@inventati.org> wrote:
I haven't used it for a long time, but are you sure that it ever did
what you are expecting? I think it just removes the trailing spaces,
indent and move long comments:

https://github.com/frescobaldi/python-ly/blob/ea3c0c472a2450c108e54e1c8d7a054d75d567dc/ly/reformat.py

It looks like, from the code, that it only "reformats"  when the line doesn't end with a } or >>.  I didn't remember that limitation, but it seems like it's been there all along.

Sorry for the noise, and thanks to those who checked this out for me.

--
Knute Snortum

Reply all
Reply to author
Forward
0 new messages