Skip to content

operationId:unknown: Unable to sync settings as there are errors/warning in settings file. #119289

@lauren-mods

Description

@lauren-mods

Issue Type: Bug

When I attempt to sync settings, I now get an error log (below).
This is the same regardless of whether I attempt to sign in with my microsoft or github accounts. This has only started hapopening very recently, and I am not sure exactly when.

I also checked my settings.json. There is an error there, but I don't see how to fix it. The error text says:

Path and filename of the git executable, e.g. C:\Program Files\Git\bin\git.exe (Windows). This can also be an array of string values containing multiple paths to look up.
Invalid escape character in string.jsonc(261)

But my path is pretty much the same:

settings.json

{
    "files.autoSave": "afterDelay",
    "atomKeymap.promptV3Features": true,
    "editor.multiCursorModifier": "ctrlCmd",
    "editor.formatOnPaste": true,
    "editor.wordWrap": "on",
    "workbench.preferredDarkColorTheme": "Solarized Dark",
    "workbench.preferredLightColorTheme": "Solarized Light",
    "workbench.colorCustomizations": {

    
    },
    "workbench.colorTheme": "Solarized Light",
    "window.autoDetectColorScheme": true,
    "window.newWindowDimensions": "inherit",
    "window.openFilesInNewWindow": "default",
    "window.openFoldersInNewWindow": "on",
    "workbench.startupEditor": "newUntitledFile",
    "editor.accessibilitySupport": "off",
    "markdown-pdf.outputDirectory": "C:\\\\Users\\\\Laura\\\\Downloads",
    "git.path": "C:\Program Files\Git\cmd\git.exe"
}

log

[2021-03-18 22:23:52.744] [settingssync] [info] Using settings sync service https://vscode-sync.trafficmanager.net/
[2021-03-18 22:23:52.744] [settingssync] [info] Auto Sync is disabled.
[2021-03-18 22:33:40.198] [settingssync] [info] Did reset the local sync state.
[2021-03-18 22:33:40.322] [settingssync] [error] LocalInvalidContent (UserDataSyncError) syncResource:settings operationId:unknown: Unable to sync settings as there are errors/warning in settings file.
    at g.validateContent (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:111616)
    at generateSyncPreview (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:106384)
    at async g.doGenerateSyncResourcePreview (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:57763)
[2021-03-18 22:34:56.975] [settingssync] [info] Did reset the local sync state.
[2021-03-18 22:34:57.701] [settingssync] [error] LocalInvalidContent (UserDataSyncError) syncResource:settings operationId:unknown: Unable to sync settings as there are errors/warning in settings file.
    at g.validateContent (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:111616)
    at g.applyResult (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:108585)
    at g.doApply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:55378)
    at async g.apply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:49433)
    at async i.apply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:162833)
    at async A.call (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:168520)
[2021-03-18 22:34:57.720] [settingssync] [info] Settings: Stopped synchronizing settings.
[2021-03-18 22:34:57.724] [settingssync] [info] Keybindings: Stopped synchronizing keybindings.
[2021-03-18 22:34:57.730] [settingssync] [info] Snippets: Stopped synchronizing snippets.
[2021-03-18 22:34:57.734] [settingssync] [info] GlobalState: Stopped synchronizing globalstate.
[2021-03-18 22:34:57.739] [settingssync] [info] Extensions: Stopped synchronizing extensions.
[2021-03-18 22:35:32.199] [settingssync] [info] Did reset the local sync state.
[2021-03-18 22:35:32.313] [settingssync] [error] LocalInvalidContent (UserDataSyncError) syncResource:settings operationId:unknown: Unable to sync settings as there are errors/warning in settings file.
    at g.validateContent (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:111616)
    at generateSyncPreview (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:106384)
    at async g.doGenerateSyncResourcePreview (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:57763)
[2021-03-18 22:36:06.201] [settingssync] [info] Did reset the local sync state.
[2021-03-18 22:36:06.282] [settingssync] [error] LocalInvalidContent (UserDataSyncError) syncResource:settings operationId:unknown: Unable to sync settings as there are errors/warning in settings file.
    at g.validateContent (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:111616)
    at generateSyncPreview (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:106384)
    at async g.doGenerateSyncResourcePreview (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:57763)
[2021-03-18 22:36:16.007] [settingssync] [info] Did reset the local sync state.
[2021-03-18 22:36:16.730] [settingssync] [error] LocalInvalidContent (UserDataSyncError) syncResource:settings operationId:unknown: Unable to sync settings as there are errors/warning in settings file.
    at g.validateContent (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:111616)
    at g.applyResult (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:108585)
    at g.doApply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:55378)
    at async g.apply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:49433)
    at async i.apply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:162833)
    at async A.call (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:168520)
[2021-03-18 22:36:16.754] [settingssync] [info] Settings: Stopped synchronizing settings.
[2021-03-18 22:36:16.755] [settingssync] [info] Keybindings: Stopped synchronizing keybindings.
[2021-03-18 22:36:16.760] [settingssync] [info] Snippets: Stopped synchronizing snippets.
[2021-03-18 22:36:16.764] [settingssync] [info] GlobalState: Stopped synchronizing globalstate.
[2021-03-18 22:36:16.770] [settingssync] [info] Extensions: Stopped synchronizing extensions.
[2021-03-18 22:39:14.753] [settingssync] [info] Did reset the local sync state.
[2021-03-18 22:39:14.814] [settingssync] [info] Keybindings: Skipped synchronizing keybindings as it is disabled.
[2021-03-18 22:39:15.137] [settingssync] [error] LocalInvalidContent (UserDataSyncError) syncResource:settings operationId:unknown: Unable to sync settings as there are errors/warning in settings file.
    at g.validateContent (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:111616)
    at g.applyResult (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:108585)
    at g.doApply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:55378)
    at async g.apply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:49433)
    at async i.apply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:162833)
    at async A.call (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:168520)
[2021-03-18 22:39:15.141] [settingssync] [info] Settings: Stopped synchronizing settings.
[2021-03-18 22:39:15.143] [settingssync] [info] Snippets: Stopped synchronizing snippets.
[2021-03-18 22:39:15.145] [settingssync] [info] GlobalState: Stopped synchronizing globalstate.
[2021-03-18 22:39:15.147] [settingssync] [info] Extensions: Stopped synchronizing extensions.
[2021-03-18 22:40:00.252] [settingssync] [info] Did reset the local sync state.
[2021-03-18 22:40:00.333] [settingssync] [info] Keybindings: Skipped synchronizing keybindings as it is disabled.
[2021-03-18 22:40:00.816] [settingssync] [error] LocalInvalidContent (UserDataSyncError) syncResource:settings operationId:unknown: Unable to sync settings as there are errors/warning in settings file.
    at g.validateContent (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:111616)
    at g.applyResult (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:108585)
    at g.doApply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:55378)
    at async g.apply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:49433)
    at async i.apply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:162833)
    at async A.call (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:168520)
[2021-03-18 22:40:00.828] [settingssync] [info] Settings: Stopped synchronizing settings.
[2021-03-18 22:40:00.832] [settingssync] [info] Snippets: Stopped synchronizing snippets.
[2021-03-18 22:40:00.836] [settingssync] [info] GlobalState: Stopped synchronizing globalstate.
[2021-03-18 22:40:00.842] [settingssync] [info] Extensions: Stopped synchronizing extensions.
[2021-03-18 22:43:34.322] [settingssync] [info] Did reset the local sync state.
[2021-03-18 22:43:34.394] [settingssync] [info] Keybindings: Skipped synchronizing keybindings as it is disabled.
[2021-03-18 22:43:34.944] [settingssync] [error] LocalInvalidContent (UserDataSyncError) syncResource:settings operationId:unknown: Unable to sync settings as there are errors/warning in settings file.
    at g.validateContent (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:111616)
    at g.applyResult (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:108585)
    at g.doApply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:55378)
    at async g.apply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:49433)
    at async i.apply (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:162833)
    at async A.call (file:///C:/Users/Anonymous/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:168520)
[2021-03-18 22:43:34.951] [settingssync] [info] Settings: Stopped synchronizing settings.
[2021-03-18 22:43:34.953] [settingssync] [info] Snippets: Stopped synchronizing snippets.
[2021-03-18 22:43:34.955] [settingssync] [info] GlobalState: Stopped synchronizing globalstate.
[2021-03-18 22:43:34.957] [settingssync] [info] Extensions: Stopped synchronizing extensions.

Any help would be appreciated, as I do not really know what I am doing beyond html! Thanks!

VS Code version: Code 1.54.3 (2b9aebd, 2021-03-15T10:55:45.459Z)
OS version: Windows_NT x64 10.0.19043

System Info
Item Value
CPUs Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (4 x 2712)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.87GB (1.66GB free)
Process Argv --crash-reporter-id 0b9abc5f-b062-431f-b45b-1a31860cbd88
Screen Reader no
VM 0%
Extensions (6)
Extension Author (truncated) Version
vscode-markdownlint Dav 0.39.0
wordcounter Lud 0.0.1
csharp ms- 1.23.9
vscode-witcherscript nic 1.0.9
html-preview-vscode tht 0.2.5
markdown-pdf yza 1.4.4
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspyt653:30270858
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30276681
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475
pythontbcf:30265426
pythonvspyt943cf:30277002
vscoresta800cf:30276762
vspre833cf:30267465
vsdfh931:30275552
vshan820:30276952

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions