Code-settings-sync: code snippets not being synced after update to 3.3.0

Created on 25 Jun 2019  路  27Comments  路  Source: shanalikhan/code-settings-sync

馃悰 Describe the bug
The code snippets are not being synced after update to 3.3.0 earlier today. Also, I noticed that the existing snippets file in my private gist got deleted after the first upload post updating to 3.3.0
Everything else is syncing fine.

馃尨 Visual Studio Code Version : [ 1.35.1 ]
馃尨 Code Settings Sync Version : [ 3.3.1 ]
馃尨 Standard or Insiders : [ Standard ]
馃尨 Portable or Installed : [ Installed ]
馃尨 OSS or Official Build : [ Official Build ]
馃尨 Operating System : [ Ubuntu 18.04.2 LTS ]
馃尨 Occurs On: [Upload ]
馃尨 Proxy Enabled: [ No ]

馃摪 To Reproduce
Steps to reproduce the behavior:

  1. Run sync from the command palette

馃挭 Expected behavior
Code snippets file is not synced; also the snippets file does not exist in the gist.

馃摵 Console Error Log
None

馃摵 Additional context
Part of the summary page:

```
Files Uploaded:
extensions.json > extensions.json
keybindings.json > keybindings.json
settings.json > settings.json

bug 馃悰 fixed

Most helpful comment

v3.4.0 is released and this has been fixed.
Update the extension and let me know if there is any issue.

All 27 comments

Same problem here

@arnohovhannisyan Problem persists here in 3.3.1.vsix

@luizgdi Can you please show the console output? Go to Help -> Toggle Developer Tools and send a screenshot of it.

image

sync
@arnohovhannisyan

@arnohovhannisyan Yes! Fixed in this version, thanks!!

@arnohovhannisyan
I installed the new version but I'm getting this error.

Capture1
Capture2

@Calvin-Newton-UNC Can you make sure that the gist id is correct? You might have swapped the gist id and token.

I get this error when trying to do Sync: Update/Upload Settings.

Here are the steps:
If I reset the extension settings with Sync: Reset Extension Settings and try to upload again it prompts for the access token
Capture3
If I generate a new token and copy it to the prompt I get the same error. My token looks like 5e5d4758a9450a288e3e3dc3f0b7bbd09b530acb

@Calvin-Newton-UNC Have you added the gist option when creating the token? If so, then this is an issue with the gist id, not the token. Try going to https://gist.github.com and finding your gist. Then copy the id from the address bar (it should look like the token). Go into your VSCode settings and paste it into the sync.gist setting.

Still not uploading snippets for me either... Confirmed Gist id is good, and can see upload revisions in the Gist online, but no snippet files being uploaded.

Same problem as above - update deleted the snippets that were already in the gist and being backed up, and I haven't been able to upload them since.

Edit - currently using 3.3.1 updated through Code

@arnohovhannisyan Thank you!! I was experiencing the same problem and found this open issue. I was using 3.3.1 which was updated through Code but after manually installing your 3.3.1 it is now uploading my snippets to my gist. I have installed that vsix on all my systems. Thanks again.

I also have this issue. I have tried uninstalling settings sync and reinstalling from the vsix file at the link above. I also reset the "Settings Sync" settings to see if that would help but snippets still not showing in my gist.

Is there anything else I can try?

Problem still exists with these steps:

  • Sync: Reset extension settings
  • Uninstall Sync
  • Reinstall Sync from vsix

Here's my environment:

Version: 1.35.1 (user setup)
Commit: c7d83e57cd18f18026a8162d042843bda1bcf21f
Date: 2019-06-12T14:30:02.622Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17763

There's nothing wrong in the console output. Just saying "nothing to update".

3.3.1 still not working.

3.2.9 it's ok.

Had version 3.3.1 and it didn't work for me.
Didn't uninstall but simply reinstalled version 3.3.1 from the .vsix file above and now it works.

@arnohovhannisyan I'm on 1.36.0 and it doesn't seem to sync snippets. It's the first time I try to sync snippets, so I'm not sure if it has worked previously. I can't see any errors in dev tools console.

Files Uploaded:
  extensions.json > extensions.json
  keybindings.json > keybindingsMac.json
  settings.json > settings.json

Solved by switching to "syncing" extension, does the same thing but hasn't deleted my previously created snippets as of yet.

@robjvan Just curious, is the snippet file still present in your gist on GitHub, or has it been deleted likewise? Only the snippet file in my gist was deleted while the file was still present on my local system after the upload.

@marjorg Have you tried this? https://cdn.discordapp.com/attachments/549007146868539408/593317522242011147/code-settings-sync-3.3.1.vsix

@arnohovhannisyan Nice, that works for me. Thanks!

So how to get the deleted snippet files back?

Here are the steps to get back to older version of GIST

How to Revert to an earlier GIST

The bug will be fixed in upcoming v3.4.0 of Settings Sync.

v3.4.0 is released and this has been fixed.
Update the extension and let me know if there is any issue.

Was this page helpful?
0 / 5 - 0 ratings