"Copy Lyrics To Clipboard" feature: copy-paste lyrics, if single or in first staff, no longer works
Reported version
3.2
Type
Functional
Frequency
Many
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project
- any multi-voice score will do
- issue the command to copy lyrics to clipboard
- check the result and you'll see tht some voice(s) are missing (see forum link: https://musescore.org/en/node/292822#comment-937158)
Fix version
3.3.0
Comments
From scratch:
1) Load this test file (for Soprano): soprano 1.mscz
2) Tools -> Copy Lyrics to Clipboard
3) Open a word processor (say LibreOffice) -> Paste
Result: nothing
1) Add a second soprano (and Lyrics): soprano 1 and 2.mscz
2) Again steps #2 and 3
Result: paste works but only for the second soprano.
It will be the same (with three and four staves, eg Four soprano.mscz )
Works: lyrics only on the second staff
Conclusion: With one single staff, the operation fails. With two and more staves: paste works. But the first staff continues to fail.
What is the regression? Does the same thing work fully in 2.x? Or before 3.2?
Works with 2.3.2 indeed. I tried. And you, have you tried to?
Before 3.2? Don't know. Not checked.
Easiest workaround: clicking twice on 'Copy Lyrics To Clipboard' before paste in a word processor
Wow, thanks for that workaround! Just ran into this myself.
There have been a number of bugs with this function that have caused things to be omitted, so it isn't immediately obvious what the specific triggers have been. But see also #290695: Copy lyrics to clipboard skips verse 1 - is this a duplicate?
It's clearly related. Especially since the workaround works the same way.
So, we could write that it is a duplicate, since this current issue was found by entering verse1. But I would rather say that these are two different scenarios of the same issue. To be sure, it may not be pointless to leave them both open?
So, to be seen, according to your own opinion.
I think it best to leave them both open just to be sure that any fix really does address both cases.
After checking:
- This nightly works (May 5, 2019): dc11916
- Not the next day with : 8e1b944
So, I would say the same last mentioned commit, to fix: #282333: Crashing on lyric entry
Amazingly enough, this is also the change that broke the ability to use the Inspector or perform other operations while editing text (#295544: Actions applied during text editing more automatically revert on return to normal mode).
It is probably the previous commit that actually broke this (this one, for another my PR), it reworked a logic of repeat list usage while the code which extracts lyrics seems to depend on some implementation details specific to RepeatList. For a quick fix for this issue see https://github.com/musescore/MuseScore/pull/5400.
Fixed in branch master, commit c004c48906
_fix #292830: fix copying lyrics to clipboard
Was broken after 1a6058f9a1245772d695fd5e9068c3139ea15589.
Score::extractLyrics() depends on Measure::playbackCount values which
are used internally by RepeatList. A quick way to fix the issue with
extracting lyrics (implemented in this commit) is to force repeat list
to be computed before resetting playbackCount variables inside
extractLyrics().
Fixed in branch master, commit f8f139c334
_Merge pull request #5400 from dmitrio95/292830-copy-lyrics-failure
fix #292830: fix copying lyrics to clipboard_
Automatically closed -- issue fixed for 2 weeks with no activity.