馃悰 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.33 ]
馃尨 Code Settings Sync Version : [ 3.2.8 ]
馃尨 Standard or Insiders : [ standard ]
馃尨 OSS or Portable : [ oss ]
馃尨 Operating System : [ Ubuntu 18.10 ]
馃尨 Occurs On: [Upload / Download]
馃尨 Proxy Enabled: [ No ]
馃尨 Gist Id: [ ID_HERE ]
馃摪 To Reproduce
Steps to reproduce the behavior:
馃挭 Expected behavior
馃摵 Console Error Log
No errors in the log
@arnohovhannisyan can you look into this ?
@cspwizard can you post the following things:
User folder. You can remove the token in that file before posting.Sure!
settings .json
{
"ignoreUploadFiles": [
"projects.json",
"projects_cache_vscode.json",
"projects_cache_git.json",
"projects_cache_svn.json",
"gpm_projects.json",
"gpm-recentItems.json",
"state.vscdb",
"state.vscdb.backup",
"syncLocalSettings.json",
".DS_Store",
"sync.lock"
],
"ignoreUploadFolders": [
"workspaceStorage"
],
"ignoreExtensions": [],
"gistDescription": "Visual Studio Code Settings Sync Gist",
"version": 328,
"token": "#",
"downloadPublicGist": false,
"supportedFileExtensions": [
"json",
"code-snippets"
],
"openTokenLink": true,
"disableUpdateMessage": false,
"lastUpload": "2019-04-10T11:15:21.222Z",
"lastDownload": "2019-04-09T19:39:03.266Z",
"githubEnterpriseUrl": null,
"askGistName": false,
"customFiles": {},
"hostName": null,
"replaceCodeSettings": {}
}
Part of the console log (there are some errors):
ERR EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock': Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
console.ts:134 [Extension Host] Sync: syncLocalSettings.json changed
console.ts:134 [Extension Host] Sync: state.vscdb-journal changed
console.ts:134 [Extension Host] Sync: state.vscdb changed
console.ts:134 [Extension Host] rejected promise not handled within 1 second: Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
t.log @ console.ts:134
console.ts:134 [Extension Host] stack trace: Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
t.log @ console.ts:134
log.ts:173 ERR EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock': Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
console.ts:134 [Extension Host] Sync: syncLocalSettings.json changed
console.ts:134 [Extension Host] Sync: state.vscdb-journal changed
console.ts:134 [Extension Host] Sync: state.vscdb changed
console.ts:134 [Extension Host] rejected promise not handled within 1 second: Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
t.log @ console.ts:134
console.ts:134 [Extension Host] stack trace: Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
t.log @ console.ts:134
log.ts:173 ERR EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock': Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
console.ts:134 [Extension Host] Sync: syncLocalSettings.json changed
console.ts:134 [Extension Host] Sync: state.vscdb-journal changed
console.ts:134 [Extension Host] Sync: state.vscdb changed
console.ts:134 [Extension Host] rejected promise not handled within 1 second: Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
t.log @ console.ts:134
console.ts:134 [Extension Host] stack trace: Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
t.log @ console.ts:134
log.ts:173 ERR EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock': Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
console.ts:134 [Extension Host] Sync: syncLocalSettings.json changed
console.ts:134 [Extension Host] Sync: state.vscdb changed
console.ts:134 [Extension Host] rejected promise not handled within 1 second: Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
t.log @ console.ts:134
console.ts:134 [Extension Host] stack trace: Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
t.log @ console.ts:134
log.ts:173 ERR EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock': Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
console.ts:134 [Extension Host] Sync: syncLocalSettings.json changed
console.ts:134 [Extension Host] Sync: state.vscdb changed
console.ts:134 [Extension Host] rejected promise not handled within 1 second: Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
t.log @ console.ts:134
console.ts:134 [Extension Host] stack trace: Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
t.log @ console.ts:134
log.ts:173 ERR EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock': Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
console.ts:134 [Extension Host] Sync: syncLocalSettings.json changed
console.ts:134 [Extension Host] SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at p.<anonymous> (/home/ksp/.vscode/extensions/shan.code-settings-sync-3.2.8/out/extension.js:130:94316)
at Generator.next (<anonymous>)
at s (/home/ksp/.vscode/extensions/shan.code-settings-sync-3.2.8/out/extension.js:130:91920)
t.log @ console.ts:134
notificationsAlerts.ts:40 Sync : Unable to read syncLocalSettings.json. Make sure its Valid JSON.
onDidNotificationChange @ notificationsAlerts.ts:40
console.ts:134 [Extension Host] Sync: syncLocalSettings.json changed
console.ts:134 [Extension Host] Sync: state.vscdb-journal changed
console.ts:134 [Extension Host] Sync: state.vscdb changed
console.ts:134 [Extension Host] rejected promise not handled within 1 second: Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
t.log @ console.ts:134
console.ts:134 [Extension Host] stack trace: Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
t.log @ console.ts:134
log.ts:173 ERR EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock': Error: EEXIST: file already exists, open '/home/ksp/.config/Code/User/sync.lock'
console.ts:134 [Extension Host] Sync: syncLocalSettings.json changed
Also I've several instances of VSCode running, maybe this could cause issues as well.
Thanks.
Did it happens for the first time when you report?
Since then, have you tried restarting the code to see still having problem?
edit : for multiple instance, closing all the instances and then opening them
No. the issue is there for couple days. I've restarted all the instances, and even reboot, but it still happens.
Keeps happening to me too. I'll post some more info later
@cspwizard In your user folder, is there a sync.lock file when vscode is closed?
@arnohovhannisyan no, only globalStorage/, keybindings.json, settings.json, snippets/, syncLocalSettings.json, workspaceStorage/
@cspwizard Can you try this out?
https://cdn.discordapp.com/attachments/549007146868539408/566098906031849483/code-settings-sync-3.2.8.vsix
Edit: also, please add "state.*" to ignoreUploadFiles array in syncLocalSettings.json or just reset settings
I'll check a bit later. Thanks!
@arnohovhannisyan with your vsix package it seems to work fine, thanks!
@gnomeria can you use the build created by @arnohovhannisyan and let us know if it worked for you too ?
Is anyone here able to test my new changes? I need some confirmation that it works as expected before it can be rolled out into the master branch.
Thanks!
I did, it worked for me.
Auto upload is improved.
I have released new version of Settings Sync v3.3.0 fixing this issue. Im closing this ticket let me know if u guys run into some problem
I still experience this in v3.4.3 of the plugin.
Same problem here (3.4.3)
Same problem here
Yeahp got this problem seems to be on MacOS my windows build doesn't do this.
Hi,
After installing v3.31 and resetting the extension settings, it worked again
same problem on ubuntu 20.4 latest version of VS code and latest version of the plugin.
edit: I fixed it so i'm unsubscribing from this thread. wish i remember what the problem was. i believe i had to remove some generated files and trying again worked. sorry i don't remember the details.
same problem here in Windows 10, lateste version of VS Code and latest version of the plugin
Same problem here
Same problem here
I also got this same problem when installing this extension in a new PC.
Was able to fix this by comparing the syncLocalSettings.json file between my new PC and the old PC where code-settings-sync is working. Both were running version 3.4.3.
So the difference I found was of token field being null in the new PC. So I generated a new Personal access token on Github with Gist permissions only and added that to the token field as a string value.
This fixed the issue and I was able to sync settings.
Don't know why the extension didn't automatically save the token before, as I do remember adding the token in the GUI settings editor.
Same problem here, uninstall and reinstall and relaunch vscode sometimes seems to solve this, but have no idea what is happening.