-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
'Unexpected end of JSON input' on download #806
Comments
Try running |
I tried, then tried downloading my settings again, went through the process of reinputting my gist id and token, and then got the same error. |
Check either this file is invalid - Also check either your |
I tried deleting both those files, resetting sync settings, tried again, and got the same error. The settings.json in the gis is valid. I do notice the gist has many files that start with Some of my projects do have a |
https://github.com/shanalikhan/code-settings-sync#global-settings Try with adding |
It doesn't. I've tried resetting sync settings, deleting the old gist, uploading settings, then downloading settings on the same machine after excluding |
So you have added |
* #806 * prettify custom setting json (#812) * Fix auto upload (#801) * Fix auto upload! * Properly stop watching * Add synchronous functions * Move watcher to a new service * Make a new service for watcher * Add general ignored items setting for chokidar * Use globalCommons's autoUploadService instance * Reset * Add local settings to ignored files * Asynchronously get ignored items * Remove unused import * Use autoUploadService * Use the globalCommonService everywhere Since the autoUploadService is an instance in Commons, using a global Commons instance will allow everything to use the same instance. * Stop spamming with extension paths * Fix to work with async functions * Add global state to ignored files * Add .DS_Store and sync.lock * Start watcher only after downloading has finished * Inform user that auto upload has started * #805 * #820 * #820 * #821 * #805 * #823 * Go back to webpack and fix source maps * Ignore node_modules and some other files (#826)
Thanks! |
I just tried updating to 3.2.8, deleting the gist, resetting my code sync settings, uploading and then downloading again, and got the same error. |
Try adding the folder in ignoreUploadFolders in new gist. It will stop that folder contents to upload there. |
Ok, adding |
Actually the goal is to keep the files that should be valid. But what is your scenario, what are the content of |
It's produced by the Perhaps the underlying issue is some of those JSON files are invalid according to the VSCode JSON parser, but valid according to whatever JSON system mypy is using internally. But that shouldn't break this extension. |
Does anyone have more info about this? I'm having this problem downloading a gist |
I'm seeing this on one of my hosts. I've tried the following without joy:
The error:
Setting Sync v.3.4.3 |
🐛 Describe the bug
A clear and concise description of what the bug is. You are always welcome to check the Troubleshooting section before filing the ticket.
🌴 Visual Studio Code Version : 1.32.3
🌴 Code Settings Sync Version : 3.2.7
🌴 Standard or Insiders : standard
🌴 OSS or Portable : neither, conventional install
🌴 Operating System : os x 10.14
🌴 Occurs On: download
🌴 Proxy Enabled: no
🌴 Gist Id: 64afc42c160cca771c6e871caea06f77
📰 To Reproduce
Issue 'Download settings' command after having successfully inputted my gist token.
💪 Expected behavior
Settings downloads.
📺 Console Error Log
I get an error dialog that an error was logged to the console. The developer console shows
📺 Additional context
I tried uninstalling and reinstalling the extension, and deleting
.vscode/extensions/.shan*
directories, but the error persists.The text was updated successfully, but these errors were encountered: