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.

Settings sync: cannot read property 'token' of undefined

See original GitHub issue
  • code-server version: v1.32.0-245
  • OS Version: Ubuntu 16.04
  • Extension: settings sync

Description

After I installed settings sync, I tried to set it up like normal with my GitHub token using the “Sync: Update / Upload Settings” command (shift-alt-u). I get

Sync : Error Logged In Console (Help menu > Toggle Developer Tools).

Looking at the console shows

[Extension Host] TypeError: Cannot read property 'token' of undefined	at d.<anonymous> (/cluster/nhunt/.local/share/code-server/extensions/shan.code-settings-sync-3.2.7/out/extension.js:7:47337)	at Generator.next (<anonymous>)	at s (/cluster/nhunt/.local/share/code-server/extensions/shan.code-settings-sync-3.2.7/out/extension.js:7:43848)	at <anonymous> (at Function.LogException (/cluster/nhunt/.local/share/code-server/extensions/shan.code-settings-sync-3.2.7/out/extension.js:7:44292))

It seemed like some others have gotten settings sync to work - was there any different setup for code-server than for normal VS Code?

Steps to Reproduce

  1. Install the settings sync extension
  2. Run the update / upload settings command.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
neighthancommented, Mar 14, 2019

Perhaps it should also be using the ~/.local/share/code-server/User folder instead?

0reactions
foresthoffmancommented, May 1, 2019

@neighthan The same functionality can be provided by Coder’s sshcode CLI: https://github.com/cdr/sshcode, therefore i’m closing this.

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot read property 'token' of undefined #685 - GitHub
I have tried to reinstall or set a git but not work. image. Visual Studio Code Version : Code Settings Sync Version :...
Read more >
TypeError: Cannot read property 'token' of undefined
I am facing this error : TypeError: Cannot read property 'token' of undefined - Here's a link! to my github page.
Read more >
Node.js Express: JWT example | Token Based Authentication ...
TypeError : Cannot read property 'sync' of undefined at Object. (D:\Personal\NodeJS\node-js-jwt-auth\server.js:23:14) at Module.
Read more >
Cannot read property 'timeStarted' of undefined - Bugs - Drone
Hello, I tried to connect Drone:2.0.1 to GITEA and everything worked fine. I then connected the same instance to GITHUB (changed git ...
Read more >
Solve a synchronization error - Ledger Support
During a synchronization error, Ledger Live cannot be used to manage ... Go to Settings in Ledger Live by clicking on the gear...
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