Bug 422897 - KDevelop doesn't restore files after finished 'Show differences' operation
Summary: KDevelop doesn't restore files after finished 'Show differences' operation
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 5.5.2
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-12 22:57 UTC by Piotr Mierzwinski
Modified: 2020-08-07 10:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Mierzwinski 2020-06-12 22:57:10 UTC
SUMMARY
Seems after update do Plasma 5.19 in my distribution (Arch) KDevelop stopped restore files after I back to source code mode from checking differences. I get only all files opened in 'checking differences' mode (including generated patch file, usually calling similar to: "/tmp/kdevelop_QCVP2;.patch).

Issue is supper annoying, because you lost all opened files in code mode and every time after using "Show Differences" needs to open them again.
Additionally this looks like regression, because I remember such issue in the past - for sure in version 5 KDevelop. I think I reported such.

STEPS TO REPRODUCE
1. Open several files in KDevelop
2. Make changes in at lease 2 files
3. Invoke git -> Show Differences..
4. Click "Finish Review" in Diff view
5. Compare opened files by your eyes

OBSERVED RESULT
Instead of opened originally files (before 'checking differences') in editor are opened only files what were changed (including generated patch file).

EXPECTED RESULT
Should be restore all files opened before 'checking differences'.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: YES
(available in About System)
KDE Plasma Version: 5.19
KDE Frameworks Version: 5.70
Qt Version: Qt-5.15

ADDITIONAL INFORMATION
Issue is repeatable.
I tested it with originally kdevelop package coming from my distribution, so kdevelop-5.5.2-2. Additionally tested with AppImage version: KDevelop-5.5.2-x86_64.AppImage and built from source version: kdevelop-git-5.5.2.r164.g3f66ae9f97-1-x86_64.pkg.tar. For all I observed the same result.

Today I installed KDE Applications with version 20.04, but the problem happened before.

$ pacman -Q|grep komp
kompare 20.04.2-1
libkomparediff2 20.04.2-1
Comment 1 Piotr Mierzwinski 2020-08-07 10:35:27 UTC
Another funny thing is that. Only I move window to second desktop their number increase to three. And when I moved all windows present in second desktop into first then number of virtual desktops just back to two.
This is very strange behavior.
Comment 2 Piotr Mierzwinski 2020-08-07 10:46:06 UTC
Sorry for incorrect last message, not related with this issue.

I tested KDevelop 5.5.2 in KaOS and wasn't able to reproduce issue. Seems this is something in my system, so I close this bug report.

To fix this I simply removed all configuration of KDevelop, and after freshly running KDevelop issue doesn't happen.