CharlesChiuGit / Logseq-Git-Sync-101

This repo aims to help Logseq users to sync their data with Git and GitHub.
MIT License
996 stars 82 forks source link

Unable to link working copy to folder on iPhone - “Name already in use. Choose any other name” #14

Closed willcray closed 1 year ago

willcray commented 1 year ago

Hey, first of all, this is an awesome repo. This is a huge game changer for me and my Logseq experience. I appreciate you putting this together. I don’t have an issue with your repo, but I would appreciate any help you’re willing to offer with a small sync issue I’m having.

I’m running in to a small issue where my phone has gotten out of sync following a phone upgrade. I’m unable to get working copy to recognize and track changes made via logseq on my phone. I don’t think working copy is properly linked to the local repo on my phone.

When I long-press the repo in working copy, hit “Share”, and then hit “Link Repository to Folder”, I get an error message that says “Filename already in use. Pick some other name.”

In order to fix this, I’ve picked some other folder, then tried the same process to link it to the folder of interest. I receive the same error. I’ve also tried deleting the repository and re-cloning. I’ve also tried deleting working copy from my phone and following the whole setup procedure again.

I still cannot get local changes in logseq to be tracked in working copy, and therefore, I cannot get what I write in my phone to sync with the remote repository and other devices.

CharlesChiuGit commented 1 year ago

hmmm, interesting

CharlesChiuGit commented 1 year ago

Sorry, click the wrong button!

CharlesChiuGit commented 1 year ago

When I long-press the repo in working copy, hit “Share”, and then hit “Link Repository to Folder”, I get an error message that says “Filename already in use. Pick some other name.”

This is expected, since u can only link one repo to one local folder at a time. It's a two way link, so before u link repo to a folder, u need to make sure that:

  1. the repo in working copy hasn't been linked to any folder.
  2. the local folder is empty.

Have u tried create a new folder while choosing folder when doing Link repo to Folder?

I would suggest:

  1. BACKUP your graph firsrt.
  2. delete the local logseq graph folder.
  3. remove the clone repo in working copy.
  4. re-clone the repo
  5. creat a new folder during Link repo to folder.

Hope it would help!

CharlesChiuGit commented 1 year ago

@willcray did it fixed?

CharlesChiuGit commented 1 year ago

Close it as there's no further response, feel free to reopen it. 🙂