iamhyc / Overleaf-Workshop

Open Overleaf/ShareLaTex projects in vscode, with full collaboration support.
https://marketplace.visualstudio.com/items?itemName=iamhyc.overleaf-workshop
GNU Affero General Public License v3.0
442 stars 10 forks source link

“No Local Replica Found” Notification After Inactivity #153

Closed chenhengzh closed 2 months ago

chenhengzh commented 2 months ago

Describe the bug

If I stop activities for a period, the cloud icon at the bottom will disappear, and my local replica cannot sync with Overleaf. At this point, when I hit "Open Project Locally..." again, it shows "No Local Replica Found."

Expected behavior

I wish that my local replica can keep sync I cancel it

How To Reproduce

Close the local replica for a period

Environment

iamhyc commented 2 months ago

Hi @chenhengzh , I will check it later tomorrow.

The local replica (or the cloud icon on status bar) would be automatically deleted, when there is any error happened in the sync.

I also need to know how you "stop activities for a period". Please try to give detailed description so I can reproduce the situation on my side.

chenhengzh commented 2 months ago

Thank you for your rapid response! I just discovered that the cloud icon disappears if I don’t perform any operations for a while (possibly due to sync errors during this period). And I have to create a new local replica again and wait for at least several minutes. This is very troublesome. I’m not sure if this is a bug or due to my improper usage.

chenhengzh commented 2 months ago

This will also cause other problems. Sometimes I don't realize the cloud icon has disappeared and continue to write LaTeX locally. Once the sync recovers, the local version will be overwritten by the online version, and what I wrote will disappear.

iamhyc commented 2 months ago

@chenhengzh Hi, I found the automatic removal only happen at the initial setup of local replica. That is to say, the "idle for a while " will not cause the removal of local replica.

For now, I simply disable the "automatic removal" and only show error message instead. The fix is also included in PR #155 .