question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot synchronize settings (also, cannot read property Token of null)

See original GitHub issue

Visual 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:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
loboarcommented, Aug 27, 2016

I only let you know that I installed your extension in a notebook running Windows 10 and I had no problem synchronizing the settings.

0reactions
loboarcommented, Aug 26, 2016

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't download settings from public gist · Issue #487 - GitHub
Same error here. Installed fresh vscode + settings sync and got: TypeError: Cannot read property 'gists' of null at module.exports.t.
Read more >
Error : Cannot read property 'token' of null - Stack Overflow
I am heaving some trouble with getting the token for login in my Angular App / API REST Here is the components et...
Read more >
"Cannot read property '0' of null" | athensresearch Funded ...
Problem ** Can't install latest Mac update. On opening App, I'm prompted to update.. then it tries for a while and after a...
Read more >
"Cannot read property 'account' undefined" error
Go to the Settings. · Click on the Help tab. · Find the Clear cache option. · Click on Confirm after reading the...
Read more >
Error handling with sync—ArcGIS REST APIs
Nulls and unique values. Within the underlying geodatabase, a field property can be set so that null values are not allowed. Indexes can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found