paranext / paranext-core

Electron client, extension host, and C# library for Paranext
https://paranext.github.io/paranext-core/
MIT License
17 stars 2 forks source link

S/R between P10 and P9 leads to message that book can't be found in P9 #1154

Open katherinejensen00 opened 2 months ago

katherinejensen00 commented 2 months ago

Describe the bug Send/Receive to get a project on P10 could cause the appearance that books had been lost when the project is viewed in P9.

To Reproduce Jeff Klassen mentioned this bug. He was trying to get a project in P10 so he did a S/R of a project he has in P9 which successfully sent it to P10. After that he opened the project in P9 and he got a warning about something like "This book has been removed from the project" but the book files were still present in the file system.

Expected behavior I should be able to Send/Receive a P9 project into P10 and view the project in both P9 and P10 (not necessarily at the same exact time) without any data loss in reality or appearance.

Original Report When I[Jeff Klassen] encountered this, the project USFM / text files were still present. So - it seems more an issue of Paratext thinking they (i.e. the books) were removed from the project. The error was something like "This book has been removed from the project" -- with a suggestion that I could get it back by restoring the book.

After a half hour or so uninstalling Paratext 10 / reinstalling Platform and PT 10 Studio, and testing again. I uninstalled both again and restored my GNTPA project folder from a local backup (external drive). I restored a backup from a couple days earlier.

Everything seems to be working again. I do not have Paratext 10 installed right now. Oddly -- a couple times this week I had the same error occur with GNTPA in Paratext 9.

The experience seemed to start after doing a S/R in Paratext 10 to try to get a project to display in Paratext 10. I did a S/R to get GNTPA (which is a project I do a lot of testing with Publishing Assistant in). The S/R process seemed to work. I could see GNTPA in the Open Project dialog, but when I selected it and clicked OK, a project window never opened.

Katherine - I say seemed in asterisks above, since I never saw this problem occur before trying out Paratext 10. But, since I've seen it a couple times after uninstalling -- and after restoring the GNTPA project from a time before I installed Paratext 10 -- I'm not at all confident that it is Paratext 10 related. It is just that I had never experienced it before having Paratext 10.

tjcouch-sil commented 2 months ago

Did Jeff mention what happened, if it was reproducible, how he fixed the problem, what changes were present in the project files, etc? This seems like it would be a good thing to look into

katherinejensen00 commented 2 months ago

Good questions! I asked Jeff and put his answer in the details above.

jwickberg commented 2 months ago

Maybe the place to start would be to get the project from the S/R server and then look at the history. My guess would be that there were some changes to Settings.xml.