| Summary: | Kate fails to reload files from disk as they disappear/reappear (and other cases) | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | nfxjfg |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | justin.zobel, waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | 5.90.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | 480680a89da30a4e2a45e34d0101cb8db76b99b4 | Version Fixed/Implemented In: | 5.91 |
| Sentry Crash Report: | |||
|
Description
nfxjfg
2017-12-24 01:13:09 UTC
Can you please confirm if this happens on a more recent version of Kate. I haven't been able to reproduce this issue. Reproduces with kate 20.08.2, Kate Part 5.74.0. Here's a potentially better reproduction: First make sure the project plugin is enabled. Enable "Warn about files being modified by foreign processes" in the kate general options. Step 1, run this in bash: mkdir /tmp/gittest cd /tmp/gittest git init . echo "a" > foo1.txt echo "b" > foo2.txt git add foo* git commit -m "c1" git checkout -b branch2 echo "c" > foo3.txt echo "d" > foo4.txt git add foo* git commit -m "c2" Step 2: open foo1.txt in bash. The "Projects" tab will now list the files foo1.txt to foo4.txt. Step 3: open all files. Click on foo1.txt to foo4.txt in the "Projects" file list. They will show what was written to them by the shell commands. Step 4: run "git checkout master" in the shell. Kate will tell you that foo3.txt and foo4.txt will be deleted. Click "Reload". Step 5: confirm file contents and click foo4.txt down to foo1.txt in the "Projects" file list. foo4.txt and foo3.txt are empty. Step 6: run "git checkout branch2". You will notice that kate neither notifies nor reload anything. If you click on foo3.txt and foo4.txt, they are still shown as empty. You can do "File->Reload All", and the expected file contents fill show up properly. I've tested this with the kate version mentioned above. For my private use, I'm using a hacked kate version from 2017, which does not have this problem. PS: let me know at which step the results of my reproduction differs from yours. Requested information was added with comment 2; changing status for inspection. Can now confirm this with the steps provided in Comment 2 Fixed in 5.91 |