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

code snippets not being synced after update to 3.3.0 #927

Closed
pr4shan7 opened this issue Jun 25, 2019 · 27 comments
Closed

code snippets not being synced after update to 3.3.0 #927

pr4shan7 opened this issue Jun 25, 2019 · 27 comments

Comments

@pr4shan7
Copy link

🐛 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
@auxves auxves mentioned this issue Jun 25, 2019
1 task
@luizgdi
Copy link

luizgdi commented Jun 25, 2019

Same problem here

@auxves
Copy link
Contributor

auxves commented Jun 25, 2019

Please try this updated version: https://cdn.discordapp.com/attachments/549007146868539408/593147029165965322/code-settings-sync-3.3.1.vsix

Instructions: https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix

@luizgdi
Copy link

luizgdi commented Jun 25, 2019

@arnohovhannisyan Problem persists here in 3.3.1.vsix

@auxves
Copy link
Contributor

auxves commented Jun 25, 2019

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

@SimonGolms
Copy link

image

@luizgdi
Copy link

luizgdi commented Jun 25, 2019

sync
@arnohovhannisyan

@auxves
Copy link
Contributor

auxves commented Jun 26, 2019

@luizgdi This version should fix that: https://cdn.discordapp.com/attachments/549007146868539408/593317522242011147/code-settings-sync-3.3.1.vsix

@luizgdi
Copy link

luizgdi commented Jun 26, 2019

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

@calvinnewtonzero
Copy link

calvinnewtonzero commented Jun 26, 2019

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

Capture1
Capture2

@auxves
Copy link
Contributor

auxves commented Jun 26, 2019

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

@calvinnewtonzero
Copy link

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

@auxves
Copy link
Contributor

auxves commented Jun 26, 2019

@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.

@robjvan
Copy link

robjvan commented Jun 26, 2019

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

@auxves
Copy link
Contributor

auxves commented Jun 26, 2019

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

@JtMotoX
Copy link

JtMotoX commented Jun 27, 2019

@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.

@shanalikhan shanalikhan added this to the v3.4.0 milestone Jun 27, 2019
shanalikhan pushed a commit that referenced this issue Jun 28, 2019
* Fix snippet sync

* Implement supported file extensions

* Fix matchers

* Get rid of unnecessary console.log
@LABCAT
Copy link

LABCAT commented Jul 3, 2019

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?

@sunhs
Copy link

sunhs commented Jul 3, 2019

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".

@yuritoledo
Copy link

3.3.1 still not working.

3.2.9 it's ok.

@through-a-haze
Copy link

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.

@marjorg
Copy link

marjorg commented Jul 8, 2019

@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

@auxves
Copy link
Contributor

auxves commented Jul 8, 2019

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

@robjvan
Copy link

robjvan commented Jul 8, 2019

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

@pr4shan7
Copy link
Author

@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
Copy link

marjorg commented Jul 10, 2019

@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!

@yubaoquan
Copy link

So how to get the deleted snippet files back?

@shanalikhan
Copy link
Owner

shanalikhan commented Jul 10, 2019

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.

@shanalikhan
Copy link
Owner

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

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

No branches or pull requests