Bug 486667 - compare not working from sftp
Summary: compare not working from sftp
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.02.2
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-06 13:27 UTC by neurofibromin
Modified: 2025-02-03 20:02 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description neurofibromin 2024-05-06 13:27:34 UTC
SUMMARY
I often use the compare to active document feature, but if the files (one or both) are accessed from sftp network storage the compare tool does not work. Both files can be read and edited, compare can be clicked, but the new screen that comes up is just empty.

STEPS TO REPRODUCE
1. in kate open two files from sftp network storage
2. try to "compare with active document" one with the other
3. the compare screen shows but its empty

OBSERVED RESULT
compare screen shows but its empty

EXPECTED RESULT
compare screen shows with the diff

SOFTWARE/OS VERSIONS
Linux kernel: 6.8.7
Fedora 40
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Comment 1 Grósz Dániel 2024-11-22 15:36:31 UTC
Same here, neither the built-in comparison works, nor the external tools, even the KDE ones. My use case was comparing a config file between two remote machines.
Comment 2 Christoph Cullmann 2025-01-05 19:08:19 UTC
True, we will need to improve KateFileActions::compareWithExternalProgram to dump remote files to temp files to have that.
Comment 3 Christoph Cullmann 2025-01-05 19:12:12 UTC
(In reply to Christoph Cullmann from comment #2)
> True, we will need to improve KateFileActions::compareWithExternalProgram to
> dump remote files to temp files to have that.

And DiffWidget::diffDocsGitArgs
Comment 4 Grósz Dániel 2025-01-05 20:11:48 UTC
(In reply to Christoph Cullmann from comment #2)
> True, we will need to improve KateFileActions::compareWithExternalProgram to
> dump remote files to temp files to have that.

For external KDE tools that shouldn't be needed, as you can pass URLs directly to KDiff3, no?
Comment 5 Christoph Cullmann 2025-02-03 20:02:37 UTC
(In reply to Grósz Dániel from comment #4)
> (In reply to Christoph Cullmann from comment #2)
> > True, we will need to improve KateFileActions::compareWithExternalProgram to
> > dump remote files to temp files to have that.
> 
> For external KDE tools that shouldn't be needed, as you can pass URLs
> directly to KDiff3, no?

We can not be sure that works for the tool the user selects. Beside that we use git diff in some cases.