Vscode: Error while starting Sync: d is not iterable

Created on 3 Aug 2020  ·  21Comments  ·  Source: microsoft/vscode




  • VSCode Version:
    image
    Version: 1.48.0-insider (user setup)
    Commit: 5696babbc1dce41788bae04b1a04ad35140bebfb
    Date: 2020-08-03T05:51:31.732Z
    Electron: 7.3.2
    Chrome: 78.0.3904.130
    Node.js: 12.8.1
    V8: 7.8.279.23-electron.0
    OS: Windows_NT x64 10.0.20180
  • OS Version:
    image
    Edição Windows 10 Pro Insider Preview
    Versão 2004
    Instalado em ‎29/‎07/‎2020
    Compilação do SO 20180.1000
    Experiência Windows Feature Experience Pack 120.19101.0.0

Steps to Reproduce:
1- Uninstall vscode completely and delete all the follwoing folders
C:UsersusernameAppDataRoamingCode - Insiders
C:Usersusername.vscode-insiders
2- Install fresh version of Visual Studio Code Insiders
3- Turn on settings sync

The follwing error will appear:
Error while starting Sync: d is not iterable
image

Logs
[2020-08-03 11:54:39.003] [sharedprocess] [info] main {"machineId":"31f224bcc7e494ee0bcb3a6cfebc3c082f7202dacf32774b1b4d1fdd99d5e7a3","windowId":2} [2020-08-03 11:54:56.877] [sharedprocess] [error] TypeError: d is not iterable at Object.t.merge (file:///C:/Users/username/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:563) at y.generateSyncPreview (file:///C:/Users/username/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:728) at processTicksAndRejections (internal/process/task_queues.js:85:5) at async y.doGenerateSyncResourcePreview (file:///C:/Users/username/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:441:752) [2020-08-03 11:55:21.081] [sharedprocess] [info] Starting to clean up unused language packs. [2020-08-03 12:00:02.030] [sharedprocess] [error] TypeError: d is not iterable at Object.t.merge (file:///C:/Users/username/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:563) at y.generateSyncPreview (file:///C:/Users/username/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:728) at async y.doGenerateSyncResourcePreview (file:///C:/Users/username/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:441:752) [2020-08-03 12:08:05.228] [sharedprocess] [error] TypeError: d is not iterable at Object.t.merge (file:///C:/Users/username/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:563) at y.generateSyncPreview (file:///C:/Users/username/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:728) at async y.doGenerateSyncResourcePreview (file:///C:/Users/username/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:441:752)

userDataSync

[2020-08-03 11:54:41.118] [userDataSync] [info] Auto Sync is disabled. [2020-08-03 11:54:55.192] [userDataSync] [info] Did reset the local sync state. [2020-08-03 11:54:56.895] [userDataSync] [info] Settings: Stopped synchronizing settings. [2020-08-03 12:00:00.514] [userDataSync] [info] Did reset the local sync state.

I tried the same steps on another version of Windows not insider preview and it work correctly.


Does this issue occur when all extensions are disabled?: Yes

bug candidate settings-sync verified

Most helpful comment

@sandy081 The sync work when turn off "Keyboard Shortcuts" option, maybe this help?

All 21 comments

Can you please let me know how does your settings file look like?

@sandy081 it's juest an empty json
{ }

Can you please open the synced activity view using the command Settings Sync: Show Synced Data and let me know the content of latest settings in the cloud?

same issue on MacOS VSCode insider version:

my version info:

Version: 1.48.0-insider
Commit: cfbd1999769f4f08dce29629fb92fdc0fac53829
Date: 2020-08-06T05:40:40.871Z (4 hrs ago)
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.6.0

log:

[2020-08-06 18:15:02.006] [userDataSync] [info] Using settings sync service https://vscode-sync.trafficmanager.net/
[2020-08-06 18:15:02.006] [userDataSync] [info] Auto Sync is enabled.
[2020-08-06 18:15:02.006] [userDataSync] [info] Auto Sync: Suspended until auth token is available.
[2020-08-06 18:15:35.215] [userDataSync] [info] Auto Sync: Started
[2020-08-06 18:15:35.215] [userDataSync] [info] Auto Sync: Triggered by Interval
[2020-08-06 18:15:37.354] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:15:38.007] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:15:38.007] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:15:38.011] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:15:39.655] [userDataSync] [info] GlobalState: Updated remote ui state
[2020-08-06 18:15:39.670] [userDataSync] [info] GlobalState: Updated last synchronized ui state
[2020-08-06 18:15:39.735] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:15:39.736] [userDataSync] [info] Sync done. Took 2434ms
[2020-08-06 18:15:39.736] [userDataSync] [info] Auto Sync: Triggered by Activity
[2020-08-06 18:15:39.919] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:15:40.629] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:15:40.629] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:15:40.631] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:15:40.637] [userDataSync] [info] GlobalState: No changes found during synchronizing ui state.
[2020-08-06 18:15:40.685] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:15:40.686] [userDataSync] [info] Sync done. Took 778ms
[2020-08-06 18:15:53.627] [userDataSync] [info] Auto Sync: Triggered by Activity
[2020-08-06 18:15:54.650] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:15:55.292] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:15:55.292] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:15:55.294] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:15:56.946] [userDataSync] [info] GlobalState: Updated remote ui state
[2020-08-06 18:15:56.956] [userDataSync] [info] GlobalState: Updated last synchronized ui state
[2020-08-06 18:15:56.998] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:15:56.998] [userDataSync] [info] Sync done. Took 2372ms
[2020-08-06 18:15:56.999] [userDataSync] [info] Auto Sync: Triggered by Activity
[2020-08-06 18:15:57.151] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:15:58.138] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:15:58.138] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:15:58.141] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:15:58.146] [userDataSync] [info] GlobalState: No changes found during synchronizing ui state.
[2020-08-06 18:15:58.183] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:15:58.184] [userDataSync] [info] Sync done. Took 1050ms
[2020-08-06 18:16:51.968] [userDataSync] [info] Auto Sync: Triggered by Activity
[2020-08-06 18:16:52.147] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:16:52.818] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:16:52.818] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:16:52.820] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:16:52.825] [userDataSync] [info] GlobalState: No changes found during synchronizing ui state.
[2020-08-06 18:16:52.873] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:16:52.873] [userDataSync] [info] Sync done. Took 749ms
[2020-08-06 18:17:02.347] [userDataSync] [info] Auto Sync: Triggered by Activity
[2020-08-06 18:17:02.715] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:17:03.471] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:17:03.471] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:17:03.473] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:17:05.267] [userDataSync] [info] GlobalState: Updated remote ui state
[2020-08-06 18:17:05.278] [userDataSync] [info] GlobalState: Updated last synchronized ui state
[2020-08-06 18:17:05.326] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:17:05.326] [userDataSync] [info] Sync done. Took 2630ms
[2020-08-06 18:20:55.956] [userDataSync] [info] Auto Sync: Triggered by Activity
[2020-08-06 18:22:37.784] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:22:38.509] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:22:38.510] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:22:38.512] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:22:40.463] [userDataSync] [info] GlobalState: Updated remote ui state
[2020-08-06 18:22:40.476] [userDataSync] [info] GlobalState: Updated last synchronized ui state
[2020-08-06 18:22:40.522] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:22:40.522] [userDataSync] [info] Sync done. Took 2769ms
[2020-08-06 18:22:40.522] [userDataSync] [info] Auto Sync: Triggered by Activity
[2020-08-06 18:22:40.641] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:22:41.298] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:22:41.298] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:22:41.300] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:22:41.304] [userDataSync] [info] GlobalState: No changes found during synchronizing ui state.
[2020-08-06 18:22:41.342] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:22:41.342] [userDataSync] [info] Sync done. Took 716ms
[2020-08-06 18:22:41.342] [userDataSync] [info] Auto Sync: Triggered by Activity
[2020-08-06 18:22:41.460] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:22:42.144] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:22:42.144] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:22:42.146] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:22:42.151] [userDataSync] [info] GlobalState: No changes found during synchronizing ui state.
[2020-08-06 18:22:42.191] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:22:42.192] [userDataSync] [info] Sync done. Took 745ms
[2020-08-06 18:22:42.192] [userDataSync] [info] Auto Sync: Triggered by Interval
[2020-08-06 18:22:42.315] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:22:42.975] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:22:42.975] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:22:42.977] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:22:42.981] [userDataSync] [info] GlobalState: No changes found during synchronizing ui state.
[2020-08-06 18:22:43.020] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:22:43.021] [userDataSync] [info] Sync done. Took 730ms
[2020-08-06 18:22:43.021] [userDataSync] [info] Auto Sync: Triggered by Activity
[2020-08-06 18:22:43.133] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:22:43.782] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:22:43.782] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:22:43.784] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:22:43.789] [userDataSync] [info] GlobalState: No changes found during synchronizing ui state.
[2020-08-06 18:22:43.822] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:22:43.823] [userDataSync] [info] Sync done. Took 703ms
[2020-08-06 18:23:34.070] [userDataSync] [info] Auto Sync: Triggered by Activity
[2020-08-06 18:23:34.238] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:23:35.044] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:23:35.044] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:23:35.046] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:23:35.051] [userDataSync] [info] GlobalState: No changes found during synchronizing ui state.
[2020-08-06 18:23:35.101] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:23:35.102] [userDataSync] [info] Sync done. Took 894ms
[2020-08-06 18:25:19.279] [userDataSync] [info] Auto Sync: Triggered by Activity
[2020-08-06 18:25:19.470] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:25:20.136] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:25:20.136] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:25:20.138] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:25:20.144] [userDataSync] [info] GlobalState: No changes found during synchronizing ui state.
[2020-08-06 18:25:20.181] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:25:20.181] [userDataSync] [info] Sync done. Took 729ms
[2020-08-06 18:25:22.050] [userDataSync] [info] Auto Sync: Stopped
[2020-08-06 18:25:27.129] [userDataSync] [info] Using settings sync service https://vscode-sync.trafficmanager.net/
[2020-08-06 18:25:27.129] [userDataSync] [info] Auto Sync is enabled.
[2020-08-06 18:25:27.129] [userDataSync] [info] Auto Sync: Suspended until auth token is available.
[2020-08-06 18:25:27.146] [userDataSync] [info] Auto Sync: Started
[2020-08-06 18:25:27.146] [userDataSync] [info] Auto Sync: Triggered by Interval
[2020-08-06 18:25:28.422] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:25:29.121] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:25:29.121] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:25:29.124] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:25:31.372] [userDataSync] [info] GlobalState: Updated remote ui state
[2020-08-06 18:25:31.385] [userDataSync] [info] GlobalState: Updated last synchronized ui state
[2020-08-06 18:25:31.451] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:25:31.451] [userDataSync] [info] Sync done. Took 3073ms
[2020-08-06 18:25:31.452] [userDataSync] [info] Auto Sync: Triggered by Activity
[2020-08-06 18:25:31.587] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-08-06 18:25:32.296] [userDataSync] [error] TypeError: d is not iterable
    at Object.t.merge (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:419:703)
    at y.generateSyncPreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:466:725)
    at async y.doGenerateSyncResourcePreview (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:442:532)
[2020-08-06 18:25:32.297] [userDataSync] [error] keybindings: d is not iterable
[2020-08-06 18:25:32.299] [userDataSync] [info] Snippets: No changes found during synchronizing snippets.
[2020-08-06 18:25:32.304] [userDataSync] [info] GlobalState: No changes found during synchronizing ui state.
[2020-08-06 18:25:32.343] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-08-06 18:25:32.344] [userDataSync] [info] Sync done. Took 772ms

and the steps to reproduce:

  1. install the vscode insider
  2. open and login via github

Some of the problem settings that appear in the logs:

  • settings.json
{
    // # Vim
    // ## Basic configs
    "vim.foldfix": true,
    "vim.history": 100,
    "vim.textwidth": 88,
    "vim.incsearch": true,
    "vim.useSystemClipboard": true,
    "vim.useCtrlKeys": true,
    "vim.hlsearch": true,
    "vim.leader": "<space>",
    "vim.handleKeys": {
        "<C-a>": false,
        "<C-f>": true
    },
    "vim.changeWordIncludesWhitespace": true,
    "vim.neovimPath": "/usr/bin/nvim",
    "vim.autoSwitchInputMethod.enable": true,
    // ## Keybindings
    "vim.normalModeKeyBindingsNonRecursive": [
        // [ basic ]
        // [ un-map ]
        {
            "before": [
                "s"
            ],
            "commands": []
        },
        // [ jump ] goto scope
        {
            "before": [
                "g",
                "d"
            ],
            "commands": [
                "editor.action.goToTypeDefinition"
            ]
        },
        {
            "before": [
                "g",
                "r"
            ],
            "commands": [
                "editor.action.goToReferences"
            ]
        },
        {
            "before": [
                "g",
                "i"
            ],
            "commands": [
                "editor.action.goToImplementation"
            ]
        },
        {
            "before": [
                "g",
                "]"
            ],
            "commands": [
                "editor.action.marker.next"
            ]
        },
        {
            "before": [
                "g",
                "["
            ],
            "commands": [
                "editor.action.marker.prev"
            ]
        },
        {
            "before": [
                "g",
                "u",
                "d"
            ],
            "commands": [
                "editor.action.revealDefinition"
            ]
        },
        {
            "before": [
                "g",
                "u",
                "s"
            ],
            "commands": [
                "editor.action.revealDeclaration"
            ]
        },
        // [ show ] hover, doc, preview window
        {
            "before": [
                "K"
            ],
            "commands": [
                "editor.action.showHover"
            ]
        },
        {
            "before": [
                "<leader>",
                "k"
            ],
            "commands": [
                "editor.action.triggerParameterHints"
            ]
        },
        {
            "before": [
                "s",
                "t",
                "d"
            ],
            "commands": [
                "editor.action.peekTypeDefinition"
            ]
        },
        {
            "before": [
                "s",
                "s"
            ],
            "commands": [
                "editor.action.peekDeclaration"
            ]
        },
        {
            "before": [
                "s",
                "d"
            ],
            "commands": [
                "editor.action.peekDefinition"
            ]
        },
        {
            "before": [
                "s",
                "i"
            ],
            "commands": [
                "editor.action.peekImplementation"
            ]
        },
        {
            "before": [
                "<leader>",
                "Z"
            ],
            "commands": [
                "extension.dash.customSyntax"
            ]
        },
        {
            "before": [
                "<leader>",
                "z"
            ],
            "commands": [
                "extension.dash.specific"
            ]
        },
        // [ modify ] rename, refactor, fix and format
        {
            "before": [
                "g",
                "q"
            ],
            "commands": [
                "editor.action.autoFix"
            ]
        },
        {
            "before": [
                "<leader>",
                "r",
                "n"
            ],
            "commands": [
                "editor.action.rename"
            ]
        },
        {
            "before": [
                "<leader>",
                "r",
                "f"
            ],
            "commands": [
                "editor.action.refactor"
            ]
        },
        {
            "before": [
                "<leader>",
                "f"
            ],
            "commands": [
                "editor.action.formatDocument",
            ]
        },
        // [ ext or plugins ] customize keybinds
        {
            "before": [
                "<leader>",
                "m"
            ],
            "commands": [
                "bookmarks.toggle"
            ]
        },
        {
            "before": [
                "<leader>",
                "b"
            ],
            "commands": [
                "bookmarks.list"
            ]
        },
    ],
    "vim.visualModeKeyBindingsNonRecursive": [
        {
            "before": [
                ">"
            ],
            "commands": [
                "editor.action.indentLines"
            ]
        },
        {
            "before": [
                "<"
            ],
            "commands": [
                "editor.action.outdentLines"
            ]
        },
        {
            "before": [
                "up"
            ],
            "commands": [
                "editor.action.moveLinesUpAction"
            ]
        },
        {
            "before": [
                "down"
            ],
            "commands": [
                "editor.action.moveLinesDownAction"
            ]
        }
    ],
    // ## Plugins
    // ### vim-commentary https://github.com/tpope/vim-commentary
    // ### vim-easymotion https://github.com/easymotion/vim-easymotion
    "vim.easymotion": true,
    "vim.easymotionMarkerFontFamily": "JetBrains Mono",
    // ### vim-sneak https://github.com/justinmk/vim-sneak
    "vim.sneak": false,
    "vim.sneakUseIgnorecaseAndSmartcase": true,
    // ### vim-surround https://github.com/tpope/vim-surround
    "vim.surround": true,
    // ---
    "workbench.iconTheme": "vscode-icons",
    "window.titleBarStyle": "native",
    "editor.fontFamily": "'JetBrains Mono', 'monospace', monospace, 'Droid Sans Fallback'",
    "files.autoSave": "onFocusChange",
    "files.autoSaveDelay": 666,
    "editor.wordWrap": "on",
    "editor.wordWrapColumn": 88,
    "editor.minimap.enabled": false,
    "window.menuBarVisibility": "toggle",
    "keyboard.dispatch": "keyCode",
    "editor.renderWhitespace": "none",
    "editor.smoothScrolling": true,
    "editor.cursorBlinking": "phase",
    "telemetry.enableTelemetry": false,
    "telemetry.enableCrashReporter": false,
    "workbench.settings.enableNaturalLanguageSearch": false,
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
    "workbench.colorTheme": "Darcula",
    "editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-",
    "editor.quickSuggestions": {
        "strings": true,
    },
    "sync.gist": "03ed2bd8b98b685a0525a53d3fc6e7e4",
    "workbench.activityBar.visible": true,
    "search.followSymlinks": false,
    "git.ignoreLegacyWarning": true,
    "vim.experimentalOptimizations": true,
    "files.trimTrailingWhitespace": true,
    "workbench.enableExperiments": false,
    "editor.fontLigatures": true,
    "extensions.autoCheckUpdates": false,
    "extensions.autoUpdate": false,
    "terminal.external.linuxExec": "konsole",
    "browser-preview.startUrl": "about:blank",
    "emmet.showSuggestionsAsSnippets": true,
    "eslint.packageManager": "yarn",
    "eslint.run": "onSave",
    "grunt.autoDetect": "off",
    "html.format.wrapLineLength": 88,
    "jake.autoDetect": "off",
    "jsannotations.fontWeight": "200",
    "json.maxItemsComputed": 3000,
    "leetcode.defaultLanguage": "python3",
    "npm.packageManager": "yarn",
    "php.suggest.basic": false,
    "php.validate.enable": false,
    "javascript.format.semicolons": "remove",
    "workbench.startupEditor": "newUntitledFile",
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "leetcode.endpoint": "leetcode-cn",
    "http.proxy": "http://127.0.0.1:7890",
    "leetcode.enableShortcuts": false,
    "editor.renderControlCharacters": false,
    "breadcrumbs.enabled": false,
    "vim.autoSwitchInputMethod.defaultIM": "com.apple.keylayout.ABC",
    "vim.autoSwitchInputMethod.obtainIMCmd": "/usr/local/bin/im-select",
    "vim.autoSwitchInputMethod.switchIMCmd": "/usr/local/bin/im-select {im}",
    "leetcode.showDescription": "In File Comment",
    "leetcode.workspaceFolder": "/Users/username/.leetcode",
    "hediet.vscode-drawio.local-storage": {
        ".drawio-config": {
            "language": "",
            "customFonts": [],
            "libraries": "general;uml;er;bpmn;flowchart;basic;arrows2",
            "customLibraries": [
                "L.scratchpad"
            ],
            "plugins": [],
            "recentColors": [],
            "formatWidth": "240",
            "createTarget": false,
            "pageFormat": {
                "x": 0,
                "y": 0,
                "width": 827,
                "height": 1169
            },
            "search": true,
            "showStartScreen": true,
            "gridColor": "#d0d0d0",
            "darkGridColor": "#6e6e6e",
            "autosave": true,
            "resizeImages": null,
            "openCounter": 0,
            "version": 18,
            "unit": 1,
            "isRulerOn": false,
            "ui": ""
        }
    },
    "editor.fontSize": 16,
    "editor.mouseWheelZoom": true,
    "window.zoomLevel": 0,
    "python.pythonPath": "/Users/username/.pyenv/shims/python",
    "python.languageServer": "Microsoft",
    "vsicons.dontShowNewVersionMessage": true,
    "remote.SSH.configFile": "/Users/username/.ssh/config"
}

keybindings.json is just empty file...

Seem like some of the incorrect Settings have not been synchronized. Others have been downloaded.

Hope this information is helpful~ @sandy081

@sandy081 The sync work when turn off "Keyboard Shortcuts" option, maybe this help?

turning off "Keyboard binging" worked for me.

after turning off keyboard shortcuts it works fine.

Ok then it's nothing to do with settings but with keybindings, can you please provide your keybindings (local and remote) ?

@sandy081 I got the same problem too, how can I share my keybindings?

Maybe I found it, in the keybindings.json file I only have this:

[
    {
        "key": "ctrl+1",
        "command": "workbench.action.terminal.focusAtIndex1",
        "when": "terminalFocus"
    },
    {
        "key": "ctrl+2",
        "command": "workbench.action.terminal.focusAtIndex2",
        "when": "terminalFocus"
    }
]

I found disabling the keybindings when syncing also worked.

Workaround

  • Add empty array [] to the keybindings file contents to overcome this issue

To verify:

  • Machine A: Define some keybindings
  • Machine A: Turn on Settings Sync
  • Machine B: Open Keybindings file and have following content
// Empty Keybindings
  • Machine B: Turn on Settings Sync
    Verify that Settings Sync is turned on Machine B and Keybindings file contents are replaced with that from Machine A

@sandy081 Can you clarify what the workaround is here?

turning off "Keyboard binging" worked for me.

turning off "Keyboard Shortcuts" worked for me

Turning off keyboard sync worked for me as well

@TK-Paraplex Workaround is to open your keyboard shortcuts file and add following content (empty array)

[]

@sandy081 thanks for the workaround but it doesn't seem to work in my case.

I have two machines on which I have VS Code installed.
In the machine A, which I synced first, there was an empty keyboard file // Empty
Now I'm trying to sync also machine B that has a valid keyboard file, but I always get the same error.

Maybe I have to fix the keyboard file on machine A before?

@ingro Yes, the workaround does not work in your case. You have to turn off sync and clear data in the cloud and fix the keybindings file on machine A and sync again.

Anyways, we are planning to fix this and release it as recovery, with the fix you do no need any work arounds or clearing data.

Thanks @sandy081 I think I will wait for the recovery fix :)

me too

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tyriar picture Tyriar  ·  314Comments

jsftw86 picture jsftw86  ·  361Comments

misolori picture misolori  ·  282Comments

jez9999 picture jez9999  ·  234Comments

stoffeastrom picture stoffeastrom  ·  380Comments