retext-project / retext

ReText: Simple but powerful editor for Markdown and reStructuredText
GNU General Public License v2.0
1.88k stars 196 forks source link

Unexpected change of tab #441

Open muessjoeh opened 5 years ago

muessjoeh commented 5 years ago

Hello!

When I open more than one file, one tab for each file is opened. When I edit in one tab, the focus changes regularly every few seconds so that I am editing another buffer.

mitya57 commented 5 years ago

Can you please give more detail? What is your OS, desktop environment, what are versions of ReText and Qt?

Maybe you can record a screencast demonstrating this?

muessjoeh commented 5 years ago

I am using Kubuntu 18.10, running the standard KDE and the standard ReText 7.0.3 and Qt 5.11.1. How do I record a screencast?

muessjoeh commented 5 years ago

When I am trying to reproduce this effect with a minimal example, this effect does not occur any more. Strangely, with the original files, this error still occurs, but I do not want to show these files publicly.

mitya57 commented 5 years ago

Maybe some part of original files would be enough to trigger it?

Will it be an option to send them to me in private? mitya57 at gmail.com

muessjoeh commented 5 years ago

I now could reproduce the tab change: The edited files have to be in a directory that is supervised by TeamDrifve (see https://teamdrive.com/), which is an encrypted storage space in the internet that can be accessed by other devices (like an encrypted dropbox). The directory is a normal local directory, and a demon looks whether any of the files in this directory has changed, and mirror it there if so. The file date is not affected by this. How can I find out what is causing the tab change?

muessjoeh commented 5 years ago

Is this issue abandoned or is it still active?

I also found that not only tabs are affected, but also the cursor position, which is making this program completely useless for me.

Is there an easy way to find out what triggers this strange changes? By the way, you can try Teamdrive yourself, which is a no-cost-service for 2GB storage, so you do not need to give me the corresponding credentials.

mitya57 commented 5 years ago

Sorry, I do not remember why I did not reply to you last time. I will try to look at this again soon.

mitya57 commented 5 years ago

Can you please test if the latest commit in master fixes the issue for you?

muessjoeh commented 5 years ago

Semi-good news. The tabs stay the same, but the cursor position still changes.

mitya57 commented 5 years ago

Can you describe how exactly it changes? Do you have unsaved changes at that moment?

muessjoeh commented 5 years ago

This happens when there are unsaved changes, or when the files are not touched at all. So, the position change is independent of this.

mitya57 commented 5 years ago

Where does the cursor jump? To the beginning of the file, to the end, or to some other place?

muessjoeh commented 5 years ago

Yes. To the beginning of the file.

mitya57 commented 5 years ago

I installed TeamDrive today, and I could not reproduce this issue — the cursor does not change for me.

So I have to ask you more questions:

muessjoeh commented 5 years ago
myaunian commented 5 years ago

Same bug if \ on one of the tabs, fixed by adding # like #\

mitya57 commented 5 years ago

@myaunian Interesting. Do you experience cursor change or tab change? Do you use any synchronization service or are these normal local files? Can you attach an example file?