vscode: Unable to open editor: Unexpected token JSON at position x.
- VSCode Version: 1.47.0
- OS Version: mac os Catalina
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
after update and restart, for every file i click on i get this error. (with file name instead of ???, but with SAME position number) It happens only in one project. when i go to source control and click a file there, the file gets opened with his changes. if i click the same file in explorer I’ll get the error. i get the error trying to open vscode settings file from command palette too.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (10 by maintainers)
Commits related to this issue
- memento - add error logging for #102251 — committed to microsoft/vscode by bpasero 4 years ago
- fix #102251 — committed to microsoft/vscode by bpasero 4 years ago
- fix #102251 (#105340) — committed to microsoft/vscode by bpasero 4 years ago
For users: If my analysis is right, the following should work around the problem:
mv ~/.config/Code/User/workspaceStorage ~/.config/Code/User/workspaceStorage.oldmv ~/Library/Application\ Support/Code/User/workspaceStorage ~/Library/Application\ Support/Code/User/workspaceStorage.oldrename %APPDATA%\Code\User\workspaceStorage %APPDATA%\Code\User\workspaceStorage.old