Zettlr: Frequent typ removal

Created on 16 Jul 2020  路  10Comments  路  Source: Zettlr/Zettlr

Description

When typing in Zettlr words are removed. This happens once or twice a minute.

Reproducing

I cannot document the issue that is happening, it just happens! However, when I typed a word and it is deleted by Zettlr I can get the word back with history (by pressing ctlr-Z)

Expected behaviour

Do not remove typed words!

Screenshots

Platform

  • OS and version:
    Windows 10 Education, Version 1909, OS build 18363.900
  • Zettlr Version:
    1.7.1
  • Screen Resolution:
    2560x1440

    Additional information

I know this is a very vague description of the problem, but that is because I cannot retrace to the origin of the problem, so I hope you guys can help me out!

Most helpful comment

@Blistax This issue (#746) is solved in version 1.7.3. You may want to get the latest version (1.7.4) and see if that works for you.

All 10 comments

Thanks so much for opening up your first issue here on the repository! 馃帀 We would like to warmly welcome you to the community behind the app! 鈽猴笍 We'll check in soon and have a look at your issue. In the meantime, you can check your issue and make sure it aligns with our contribution guidelines! Here's the comprehensive list:

Enhancements

An enhancement takes a feature and improves or alters its behaviour. Please make sure to argue how your proposition will aid non-technical text workers, and why it can't be emulated easily with other features or apps!

Feature requests

Feature requests introduce whole new features into the app. This requires a lot of work, so these might be turned down if the implementation costs supersede the benefits we expect to see from implementing it. Please do not be disappointed if that happens. It likely has nothing to do with your great request but simply with us and our missing resources!
You can of course always ask someone to implement this feature, because a PR with a working new feature has much higher chances of being merged! :)

Bug reports

Please note that one of the main reasons for why bug reports cannot be addressed is that there's not enough information for us to find and fix the bug you describe, so make sure you try to pinpoint the bug as close as possible.
The ideal bug report for us has two qualities:

  1. The bug is always reproducible, at least within a certain context. 2. We know exactly what specifically goes wrong, and there is consensus on
    what should happen instead.

Please note that if you encounter behaviour that does not align with your expectations of what would happen, this might as well be simply intended behaviour and we need to simply _clarify_ why the behaviour is the way it is. This is not to be considered a bug and such issues may be closed! Suggest an enhancement instead!
But now, have a great day and thank you again!

I have a feeling that this may be related to #746

@Blistax are your notes in a directory that is synced to cloud (OneDrive, Dropbox, etc.)?

Hi @canpolat ,

Yes my notes are stored in an online cloud application (Onedrive)

In that case, I think you case is related to the bug I linked to. As far as I can see, Zettlr may get confused in such scenarios (the dev team still is looking into the issue). When the sync happens, Zettlr thinks the file has been modified outside Zettlr (even though it is actually not modified) and tries to load that older version of the file (which results in loss of the most recent change).

While the dev team looks into it, I suppose there are some workarounds:

  1. If you move the files outside OneDrive, I think the problem wil disappear (but I can understand if you don't want to do this, it feels safe to have continuous backup)
  2. You keep your files in the OneDrive directory. In Preferences > General tab, you can disable "Always load remote changes to the current file". When you do this, you may start getting pop up dialogs saying the the file has been modified outside Zettlr (even though it is not) and asks you if you want to reload it or not. If you get too many of these, it may get very annoying very quickly. In that case, you may want to go to Preferences > Advanced, enable "Activate Watchdog polling" and set the time to wait to a value like 10000 (ten thousand). See if this helps.

Hi @canpolat ,

Thank you for your time and help regarding this issue. Option 2 you are mentioning is worth the try. Another workaround which works for me as well, is pausing the sync of Onedrive itself (for approx. 2 hours). I've tested it and it seems the bug is resolved when pausing Onedrive. So your feeling might be right the bug finds it origin in syncing.

Temporary pause is a good idea. You get the best of both worlds.

If you agree, I would suggest closing this issue (since it is technically a duplicate) and following up the process in #746

Yes, this issue can be closed!

I've tested it and it seems the bug is resolved when pausing Onedrive. So your feeling might be right the bug finds it origin in syncing.

I do have the feeling I need to get back to the chokidar issue tracker to see if there is something going on! Further discussion as already mentioned in #746 please! Thanks y'all! <3

@Blistax This issue (#746) is solved in version 1.7.3. You may want to get the latest version (1.7.4) and see if that works for you.

Installed the new update. No bugs while onedrive sync was on today. I think the update fixed it! Thank you all!

Was this page helpful?
0 / 5 - 0 ratings