Code-settings-sync: Error: Cannot read property 'token' of undefined

Created on 18 Oct 2018  路  10Comments  路  Source: shanalikhan/code-settings-sync

馃悰 Error: Cannot read property 'token' of undefined
tips occurred when I use advanced options menu or upload menu. I have tried to reinstall or set a git but not work.

image

image

馃尨 Visual Studio Code Version :
馃尨 Code Settings Sync Version : [3.2.0]
馃尨 Standard or Insiders : [standard]
馃尨 OSS or Portable : [ _here_ ]
馃尨 Operating System : [windows 10 1803 ]
馃尨 Occurs On: [Upload / Help Configuring ]
馃尨 Proxy Enabled: [ No ]
馃尨 Gist Id: [ none ]

馃摵 Console Error Log

image

bug 馃悰 fixed

Most helpful comment

by the way , vscode is in portable mode

All 10 comments

Try reset the Settings Sync settings

Try reset the Settings Sync settings

I deleted all the Sync settings in user settings , it does not work too.
thank you

by the way , vscode is in portable mode

馃悰 Error: Cannot read property 'token' of undefined
tips occurred when I use advanced options menu or upload menu. I have tried to reinstall or set a git but not work.

image

image

馃尨 Visual Studio Code Version :
馃尨 Code Settings Sync Version : [3.2.0]
馃尨 Standard or Insiders : [standard]
馃尨 OSS or Portable : [ _here_ ]
馃尨 Operating System : [windows 10 1803 ]
馃尨 Occurs On: [Upload / Help Configuring ]
馃尨 Proxy Enabled: [ No ]
馃尨 Gist Id: [ none ]

馃摵 Console Error Log

image

浣犵殑鏄畨瑁呯増杩樻槸渚挎惡鐗堬紵

@waiaan I also use portable mode.

what is the path for

  1. Code executable
  2. User directory
  3. Extensions directory

what is the path for

  1. Code executable
  2. User directory
  3. Extensions directory

1.D:VSCode
2.D:VSCodedatauser-data
3.D:VSCodedataextensions

like this.

what is the path for

  1. Code executable
  2. User directory
  3. Extensions directory

Dear shanalikhan,

There is a bug about this issue.

``diff diff --git a/src/environmentPath.ts b/src/environmentPath.ts index 2230aab..b373ebd 100644 --- a/src/environmentPath.ts +++ b/src/environmentPath.ts @@ -79,7 +79,7 @@ export class Environment { };

 process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";

- this.PATH = process.env.APPDATA;
+ this.PATH = this.isPortable ? process.env.VSCODE_PORTABLE : process.env.APPDATA;
this.OsType = OsType.Windows;

 if (!this.PATH && !this.isPortable) {

````

I resolve it after rebuild.

@CyrilTaylor Thanks, i have pushed the changes you have asked, window os is not handled properly.
Will release new version soon.

You can look into the commit here
https://github.com/shanalikhan/code-settings-sync/commit/7f1aacec381a2a57415e0b00fef5067a272155c3#diff-09ef59e49c66636eacf529be73517d36R108

v3.2.1 released.
Please verify.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

darkvertex picture darkvertex  路  4Comments

marcevrard picture marcevrard  路  5Comments

mklement0 picture mklement0  路  5Comments

axetroy picture axetroy  路  4Comments

UTexas80 picture UTexas80  路  5Comments