-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Both local and remote notebook have been modified #35
Comments
You can force load or force save a single note with a long tap. I believe there's also an option to create a duplicate, at which point you could do a local git diff if you wanted. And I'm sure I'm misremembering, but I thought that auto-merge was being discussed at some point? Probably just wishful thinking. In any case, there's no need for you to clear the database, just choose the version you want and sync that. I do run into this occasionally, but not too often. I'm not a fan of auto-syncing on orgzly's side, I like that I can control data usage - but I can see how having the option would be useful, and would probably clear up a good deal of issues like this for other people. TLDR, get into the habit of syncing regularly when you open the app, make sure dropbox is always running locally, many of these issues will go away. If something goes wrong, force pull/push and continue from there - if syncs are happening regularly, you should rarely ever lose more than one or two items. Autosync would likely help with that, but I prefer manual syncing and rarely get bitten by it. |
I was playing a bit with merging long time ago. It shouldn't be too hard to use a plain diff/patch approach for start, though I'm not sure how often that would work. Long-term, every change to a note could be encoded and saved and then reproduced, but that would require each note having an ID (like MobileOrg does). I've been passionately avoiding that, though it might be necessary for some other features too (dependencies, internal linking, etc).
It's the saving to Google Drive part that can cause a conflict. :) Problem with conflict in Orgzly is not different from the same issue Dropbox and Google Drive have. If you were to "Pause syncing" in Dropbox for example, you'd soon run into it. :) So yeah, some of the options:
|
I actually like the auto-merging feature, especially if it keeps the conflicts marked in the text, like git does on a conflict:
This is really easy to see and resolve manually, later, without having to compare two individually saved files (like your 3rd bullet). However, it probably requires having a common "baseline" version that your other two versions forked from, so you can see what the conflicts were and diff them independently. And, there's the rub, I guess. |
This situation can usually be avoided by being religious about hitting 'sync' before and after anything you do. However, there's one major issue with this: Sending anything to orgzly via 'share' does not sync first. So if I made any changes on the computer, and later find something on the phone that I want to save in orgzly, there's no way to avoid a conflict unless I remember to manually switch to orgzly first and sync. |
The git synchronization I'm working on in #173 should handle most (any cases that git itself would handle) of this properly. |
Sorry to be dense, but where is this "Force load"/"Force save" option? I can't find it in 1.6 from Fdroid. As a result, I'm not currently sure how to recover from a conflicted notebook. |
@inducer Doesn't exists. Would need a changes to the repo interface as of right now. |
In the list of notebooks, long-click one of the notebook to open the menu. You will lose changes on one side of course, as the name implies.
This is for Git sync, right? |
OIC, found it. Thanks! I was trying long-click in the left-side pull-out menu, which didn't do much. |
For some reason, it does not work for me. I am using the android version of the application and nothing happens when I long click on the notebook name in the Notebooks menu. Any ideas on what could be wrong? |
No, not the menu. Click on "Notebooks" in the menu, which will give you another list of notebooks. Long-pressing on those gives that option. |
Got it, Thanks a lot! |
I believe "force load" and "force save" are a bit confusing - save local to cloud or cloud to local? Same goes with load, probably not confusing for native speakers, but I'm confused. Something more opposite like upload/download would be more obvious. |
It's not always the cloud though, it can be a local directory. So even upload/download don't seem right I think. Perhaps localization is an option? |
There are some reasons for my phone to be in English locale, so localization is not an option in my case. |
Just started using Orgzly and ran into this issue. |
Have you managed to resolve the conflict? |
Yes! The solution was a bit complicated but I figured it out.
…On Sat, Apr 27, 2019, 1:05 AM Neven ***@***.***> wrote:
Just started using Orgzly and ran into this issue.
Have you managed to resolve the conflict?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#35 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATXBKKZDVQNZ7BO6PPKT5LPSP3LBANCNFSM4DCR34CA>
.
|
For Emacs users, a reasonably decent fix when this happens is this:
That may sound complicated but it's really quite easy, and if you haven't used ediff, it's great - just hit |
Is it possible to add something like "view merge confilits diff"? I often fix merge conflicts by hand and for that I will have to skim through an entire file. Even the worst diff would be so much more helpful! Thank you for the amazing app btw! |
Sounds good, can you open a new issue? Thanks! |
Sure!
#633
…On Tue, Nov 12, 2019, 11:42 AM Neven ***@***.***> wrote:
Is it possible to add something like "view merge confilits diff"? I often
fix merge conflicts by hand and for that I will have to skim through an
entire file.
Sounds good, can you open a new issue? Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#35?email_source=notifications&email_token=ABF6TYUEEPYMUGGBW6ZYINTQTKCAJA5CNFSM4DCR34CKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDZ2HNY#issuecomment-552838071>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABF6TYS7CNVRP3XR7EVC2YDQTKCAJANCNFSM4DCR34CA>
.
|
Don't worry, the app will ask you with a modal dialog like "Do you want to
overwrite local?" when you tap any of the buttons. But the second (arrow
up) is the one that overwrites the remote notebook.
…On Mon, Jun 1, 2020, 4:32 AM Dmitry Skopa ***@***.***> wrote:
I've fall into the same issue, and I want my orgzly changes override ones
that are in the directory (I'm using Syncthing).
Now the question is which of this buttons keeps changes made in orgzly and
discards changes in the directory:
[image: image]
<https://user-images.githubusercontent.com/856038/83370695-cd37e300-a3c8-11ea-997e-1dcfa3afe0cc.png>
I'm afraid to tap any of them, since the meaning of these icons is not
obvious for me :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#35 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABF6TYWWLFJBOIIY7VRJHUTRUMHLFANCNFSM4DCR34CA>
.
|
There's a thing you can do, I think in almost all (if not every) android app, where if you press and hold an icon button, it'll show a tooltip with the name of the button :) |
Now what?
I could minimize the chance of this happening by setting auto-save in emacs, make sure dropbox is always running with a big warning if network can't connect.
On the orgzly side it would make sense to sync both before and after adding a new note.
But still, conflict is inevitable. The only way forward now seems to be to clear the database and start over. I guess I'd prefer some options like diff, merge, rename, remote wins, local wins.
This is happening on my first day of use; The very first time I tried adding a note with orgzly. I guess more experienced users have discovered a practice to avoid the situation. Please share how you do it.
Update
Clear database is not a great idea. You lose all your settings.
Occurs to me that if org files were simply saved on Google Drive as a text file that the system would take care of synchronization. Is that what others are doing?
The text was updated successfully, but these errors were encountered: