Closed jrieken closed 1 year ago
From the log, it seems the extensions manifest file has invalid content
c%3A/Users/jrieken/.vscode-insiders/extensions/extensions.json
To diagnose, check the shared process logs from the current or previous sessions and see if there is any information related to this file.
Please check the file.
Please follow all these steps exactly in the order.
I faced the same problem. After updating to the latest insider build all of my extensions were gone. With the default and other settings profiles. In the shared output channel i see the following message:
2022-12-20 15:28:13.865 [error] Error: Invalid extensions content in vscode-userdata:/home/jdeuchert/.vscode-insiders/extensions/extensions.json at Object.factory (vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:92424)
Renaming or deleting the file did work and all extensions were restored correctly.
I was also not able to login for the settings sync but this is probably related to the whole extensions not working.
@JacobDeuchert The extensions.json
file content you provided has %
at the end. Was that copy/paste error or does the file has this character?
It does contain the %
at the end if i print it with cat
but when i open it with nvim or vscode i don't see the glyph. Maybe it's just some encoding thing in alacritty. When catting the newly created extensions.json i see the %
again but it's working so i guess it is not the error.
Here the fulll logs from the shared process from yesterday when i first saw the error message in the logs:
Edit: Apparently the %
is a feature in zsh to indicate that the output of a programm did not end with a trailing newline. So it is not part of the extensions.json.
As a negative consequence when using settings sync all extensions will be removed across sync'd devices. Insiders is frozen 🧊
@jrieken I can confirm that Settings Sync will not sync extensions if there is an error parsing extensions manifest. Can you please let me know if you have taken any action after seeing this error? For eg., how could you fix this error so that Settings Sync starts syncing extensions on this machine? Have you deleted extensions.json
file only?
The fix contains following:
.init-default-profile-extensions
extensions.json
file does not exist. So recovery step will be just deleting extensions.json
file when content gets corrupted.@sandy081 what's the best way to verify this?
To verify:
extensions.json
file
Recover Steps
Please follow all these steps exactly in the order.