Cannot synchronize settings (also, cannot read property Token of null)
See original GitHub issueVisual Studio Code Version : 1.4 Code Sync Settings Version : 2.01 Operating System : Windows 10 Pro (64 bits)
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:98 [Extension Host] Windows_NT /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:98 [Extension Host] {“message”:“Not Found”,“documentation_url”:“https://developer.github.com/v3”}(anonymous function) @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:98 /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:98 [Extension Host] {“message”:“Not Found”,“documentation_url”:“https://developer.github.com/v3”} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:89 ERROR ! Logged In Console (Help menu > Toggle Developer Tools). Please open an issue in Github Repo using ‘Sync : Open Issue’ command.e.doShow @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:89 /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:98 [Extension Host] {“message”:“Not Found”,“documentation_url”:“https://developer.github.com/v3”}(anonymous function) @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:98 /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:98 [Extension Host] {“message”:“Not Found”,“documentation_url”:“https://developer.github.com/v3”} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:89 ERROR ! Logged In Console (Help menu > Toggle Developer Tools). Please open an issue in Github Repo using ‘Sync : Open Issue’ command.e.doShow @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:89
Other issue: cannot read property Token of null I modified extension.json. I added the sentence if (syncSetting == null) syncSetting = {}; at line 208.
function Init() {
return __awaiter(this, void 0, void 0, function* () {
// <== I added the next line to make syncSettings a valid object when it is null if (syncSetting == null) syncSetting = {}; if (syncSetting.Token == null || syncSetting.Token == “”) {
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
I only let you know that I installed your extension in a notebook running Windows 10 and I had no problem synchronizing the settings.
I recreated the token and gistid in my Ubuntu instead of using Windows 10. Then I reset the sync settings in Windows 10 and configured the new token and gistid. After that, VSCode installed all extensions which are set in Ubuntu.
So I have this extension working fine right now. Thanks for your time.
Have a nice weekend.