Bug 426498 - Kate looking for a remote location without reason
Summary: Kate looking for a remote location without reason
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 20.08.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-13 20:22 UTC by Marie Kalouguine
Modified: 2021-03-16 20:50 UTC (History)
2 users (show)

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


Attachments
Error screenshot (59.86 KB, image/png)
2020-09-13 20:22 UTC, Marie Kalouguine
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marie Kalouguine 2020-09-13 20:22:23 UTC
Created attachment 131613 [details]
Error screenshot

SUMMARY

STEPS TO REPRODUCE
1. Use Kate through sftp with remote files
2. Disconnect the remote computer (by being on another network for example)
3. Launch Kate
I am not sure though that this is really reproducible, since I used it with sftp for over a month, so there may be a config file that was written automatically.

OBSERVED RESULT
An error occurs after some time (~one minute), saying "Timeout connecting to [Remote name]". If closed, it appears again, periodically. See screenshot.

EXPECTED RESULT
No errors, Kate is not supposed to be trying to connect to this remote computer.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0
Linux Kernel: 5.8.7-arch1-1

ADDITIONAL INFORMATION
Comment 1 Justin Zobel 2020-10-27 07:45:51 UTC
Marie I've tried to reproduce this but cannot.

I've done
1. Open sftp://ip/home/justin/blahdocument via Dolphin in Kate
2. Closed Kate
3. Disconnected myself from the network
4. Opened Kate

But no warning or issues occurred, I was presented with an Untitled(unsaved blank) document.

Can you please confirm this is still occurring for you.
Comment 2 Marie Kalouguine 2020-10-30 13:01:05 UTC
The issue is still occurring every time I launch Kate. I am not sure these steps are the only ones I did to get this bug, since I used it with a remote for a very long time and don't remember everything, sorry.
I tried to look for the name of the remote with a recursive grep from $HOME, and only found these lines in $HOME/.local/share/kate/anonymous.katesession:

[Plugin:katefilebrowserplugin:MainWindow:0]
Allow Expansion=false
Decoration position=2
Show Inline Previews=true
Show Preview=false
Show hidden files=false
Sort by=Name
Sort directories first=true
Sort reversed=false
View Style=DetailTree
auto sync folder=false
filter history=
location=sftp://username@remote_ip/home/username/my/workspace

The file is generated automatically on startup, so removing it didn't change a thing. Maybe I did something in the past to make it remember the location somehow ?
Comment 3 Christoph Feck 2020-11-09 23:42:10 UTC
Requested information was added with comment 2; changing status for inspection.
Comment 4 Christoph Cullmann 2020-12-13 14:51:49 UTC
That is the location for the file browser plugin (the toolview normally on the left that let's you browse directories).

The last used directory is remembered, does it show that directory for you?
It should remember an other one, if you browse to some other location.
Comment 5 Marie Kalouguine 2021-03-13 12:37:22 UTC
You were right, I did not understand at first but when opening the "Filesystem Browser" tab, it showed me the remote filesystem. Apparently the location doesn't update itself, so it just remembered the last time I set it manually. Moving to $HOME fixed the problem.
Thank you !
Comment 6 Marie Kalouguine 2021-03-13 12:45:38 UTC
I still wonder, though, where was this configuration stored if not in a plain text config file ? The idea that the name of the remote device is still somewhere on my computer is not exactly thrilling...
Comment 7 Christoph Cullmann 2021-03-16 20:50:37 UTC
Hi,

hmm, I thought it was the config file for the session below 

$HOME/.local/share/kate/anonymous.katesession

with the location=... line.

Beside that, some config might linger in other sessions in that folder or in $HOME/.config/katerc

I consider this fixed now.