musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.22k stars 2.64k forks source link

Close and re-open file doesn't refresh contents based on disk (appimage on Linux) #25310

Open sevagh opened 10 hours ago

sevagh commented 10 hours ago

Issue type

Opening/saving issue

Description with steps to reproduce

  1. Open Musescore (appimage on Linux in my case)
  2. Open a midi file
  3. Change the file on disk (regenerate it, copy a different file into same location, etc.)
  4. Close the midi file in Musescore
  5. File -> open file and choose the same file (with different contents)
  6. Musescore will load the previous contents of the file unless you exit and reopen Musescore

Supporting files, videos and screenshots

No need for a screenshot, easily reproducible

What is the latest version of MuseScore Studio where this issue is present?

4.4.2.242570931

Regression

I was unable to check

Operating system

Pop!_OS 22.04

Additional context

No response

Checklist

MarcSabatella commented 7 hours ago

I can't reproduce this usign the AppImage on Debian, and I can't see how it would be even be possible for this to happen - unless perhaps your OS is caching the file and something is going awry with that? Please be sure you are actually modifying the correct copy of the file (when you open it, check carefully the folder you are opening from, the filename, size, & modified date, etc). If you continue to see an issue, please make a screen recording showing the entire process, including where you are verifying you are opening the modified file and not an older copy.

cbjeukendrup commented 6 hours ago

Also make sure that there is no confusion between the MIDI file itself and the resulting MSCZ file when you import that MIDI file in MuseScore. I.e. if you do the following

  1. Import the MIDI file in MuseScore
  2. Save that as a MSCZ file and close it
  3. Modify the MIDI file
  4. Open the MSCZ file again

Then you will see the contents of the MIDI file from before the modifications, because you're not opening the (modified) MIDI file itself, but the MSCZ file that resulted from the import before the modifications.