inkdropapp / forum

User support forum for Inkdrop
https://www.inkdrop.info/
10 stars 1 forks source link

Editor ignores changes made by other device #51

Closed beeblebrox3 closed 7 years ago

beeblebrox3 commented 7 years ago

Bug report

Edit a note while it is open on another instance (on another computer, tablet, phone etc) can lead to data loss.

Info

Reproduce

Question: how difficult is implement something like the editor of google docs or dropbox paper, where you can edit the same document on different devices without conflict?

craftzdog commented 7 years ago

Hi Luís,

Thank you for the report! I managed to reproduce the problem that an opened note won't be synced correctly to the latest state changed from other device. The editor component unexpectedly ignored the changes. It will be fixed in the next version soon!

Answer: Inkdrop relies on CouchDB's HTTP long-poll based synchronization. Google Docs and Dropbox Paper offer real-time sync including cursor position whereas CouchDB is a document based database. It is necessary to implement additional sync mechanism specifically for the real-time sync. Inkdrop is made for personal use and is not a service for collaboration and teamwork like Google Docs, so it's unfortunately not planned to be supported.

beeblebrox3 commented 7 years ago

Thanks!

My question was not because I want to collaborate with other people, but for handling de conflicts between versions of the same document. Sometimes I just start to write a note on my computer and go to another place to continue on my phone or iPad. Depending of the time it takes to sync I end up losing data. Simplenote was the fastest that I've used, but the simplicity of the editor wasn't enought for me. But that's ok. Inkdrop show to me when it is syncing and on mobile apps we have a button to force the sync. Is enought, I think.

Thanks for the great app! :+1:

craftzdog commented 7 years ago

Resolved in v3.6.1. Thanks again for your report :D

You are right. It always takes several seconds to sync so you have to wait until it finished so that you can edit same note, or you will lost the data. Merging diffs for automatically resolving conflicts is not supported at this point because it's very rarely happened in my experience. Please check if the editor correctly shows the latest data on v3.6.1. 😃

beeblebrox3 commented 7 years ago

It's working fine now. Thanks. You won't provide .deb files anymore?

craftzdog commented 7 years ago

Oops, the link was missing. deb file is here! Thanks!