Skip to content
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

sync not working in vscode 1.37.0 #1002

Closed
limejuly opened this issue Aug 13, 2019 · 13 comments
Closed

sync not working in vscode 1.37.0 #1002

limejuly opened this issue Aug 13, 2019 · 13 comments

Comments

@limejuly
Copy link

**Visual Studio Code Version : 1.37.0
**Code Settings Sync Version : 3.2.9 and all later versions
**Operating System : MacOS 10.13.6
**Occurs On: Upload, Download
**Proxy Enabled: No

The extension had been working perfectly, but today as VSCode automatically updates, I find it fails to sync.

By choosing "upload", the status bar says " Sync: Reading Settings and Extensions. ", and then nothing happens, no message in output.
Also, by triggering "download", the status bar says " Sync: Reading Settings Online." without any following.

I'm hoping it spit out any error message at least, so I can know which part goes wrong.

@yubaoquan
Copy link

There is no errors in devTool either.

@shanalikhan
Copy link
Owner

The extension had been working perfectly, but today as VSCode automatically updates, I find it fails to sync.

I have tried on linux and its working.

@yubaoquan are you also using MacOS ?

@Vorror
Copy link

Vorror commented Aug 17, 2019

Also happening to me. No message or feedback. The only workaround is to turn on forceUpload.

@yubaoquan
Copy link

The extension had been working perfectly, but today as VSCode automatically updates, I find it fails to sync.

I have tried on linux and its working.

@yubaoquan are you also using MacOS ?

I use windows 10.

@shanalikhan
Copy link
Owner

New version is released. let me know if its working at your end.
I have test on Windows and Ubuntu

@yubaoquan
Copy link

version: 3.4.2

  1. Turn off the force upload
  2. Modify a snippet file
  3. Execute Sync: Update/Upload Settings

Expect:
snippet upload to gist

Actual:

  1. A message show in bottom bar something like "Sync is reading extensions and config"
  2. Nothing happens, no output

By the way, how to set setting sync show English text? I don't want it showing me the local language.

@shanalikhan
Copy link
Owner

By the way, how to set setting sync show English text? I don't want it showing me the local language.

Yes, There is already issue opened for this: #987

@limejuly
Copy link
Author

tried the new version 3.4.2, the problem remains.

@austincummings
Copy link

austincummings commented Aug 26, 2019

@shanalikhan I believe this has to do with the IsGistNewer call in github.service.ts always returning true. In my case the localLastUpload and gistLastUpload dates are always equal.

When it's being called here... (sync.ts:259)

            const gistNewer = await github.IsGistNewer(
              syncSetting.gist,
              new Date(customSettings.lastUpload)
            );

The customSettings.lastUpload is the same date as the gist last upload date. And while that is probably what it is supposed to be, I don't know why this check is being done.

Locally I change the >= in IsGistNewer to just be > and it works, but I don't know what I'm breaking by doing that.

Hope this helps.

@tommulkins
Copy link

@shanalikhan I believe this has to do with the IsGistNewer call in github.service.ts always returning true. In my case the localLastUpload and gistLastUpload dates are always equal.

When it's being called here... (sync.ts:259)

            const gistNewer = await github.IsGistNewer(
              syncSetting.gist,
              new Date(customSettings.lastUpload)
            );

The customSettings.lastUpload is the same date as the gist last upload date. And while that is probably what it is supposed to be, I don't know why this check is being done.

Locally I change the >= in IsGistNewer to just be > and it works, but I don't know what I'm breaking by doing that.

Hope this helps.

I think this is it. Since updating when I attempt to upload my settings it complains "Gist has a newer or identical version of your settings" though I know my local version is more up to date.

I have to select Yes to enable forceUpload.

@Fred-Vatin
Copy link

I think this is it. Since updating when I attempt to upload my settings it complains "Gist has a newer or identical version of your settings" though I know my local version is more up to date.

I have to select Yes to enable forceUpload.

VS Code version OS Extension version
1.37.1 Win 10 x64 pro (french) 18362 3.4.2

I confirm the same non-sense message: Gist has newer or identical version of your settings…

Locally I change the >= in IsGistNewer to just be > and it works, but I don't know what I'm breaking by doing that.

Hope this helps.

Basically, this edit does the same as force upload. It’s not a fix.

@shanalikhan
Copy link
Owner

Duplicate of #1016

@shanalikhan shanalikhan marked this as a duplicate of #1016 Sep 2, 2019
@shanalikhan
Copy link
Owner

@limejuly I suggest you to open new issue if you are not asking about the Force Upload Bug.

sync not working in vscode 1.37.0

There must be any console log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants