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.

Sync : Unable to read syncLocalSettings.json. Make sure its Valid JSON.

See original GitHub issue

🐛 Describe the bug
When installing for the first time, I get this error.

[Extension Host] Error: TypeError: d.map is not a function	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:74235)	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:71805	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:71910)	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:70656)	at process._tickCallback (internal/process/next_tick.js:68:7)
t.log @ console.ts:137
notificationsAlerts.ts:40 

🌴 Visual Studio Code Version :

Version: 1.39.2
Commit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390
Date: 2019-10-16T11:15:47.793Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Darwin x64 19.0.0

🌴 Code Settings Sync Version : 3.4.3 🌴 Standard or Insiders : standard 🌴 Portable or Installed : installed 🌴 OSS or Official Build : OSS 🌴 Operating System : Mac Catalina 🌴 Occurs On: Install 🌴 Proxy Enabled: No 🌴 Gist Id: Not created

📰 To Reproduce Steps to reproduce the behavior: Install - Login with github close github tab, focus VScode Skip this page (http://shanalikhan.github.io/2017/02/19/Option-to-ignore-settings-folders-code-settings-sync.html) gets opened twice.

💪 Expected behavior A working extension 😦

📺 Console Error Log

console.ts:137 [Extension Host] Error: TypeError: d.map is not a function	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:74235)	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:71805	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:71910)	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:70656)	at process._tickCallback (internal/process/next_tick.js:68:7)
t.log @ console.ts:137
notificationsAlerts.ts:40 Sync: Error Logged In Console (Help menu > Toggle Developer Tools).
onDidNotificationChange @ notificationsAlerts.ts:40
console.ts:137 [Extension Host] TypeError: Cannot read property 'trim' of null	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:8401)	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:5423	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:5528)	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:4274)
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
notificationsAlerts.ts:40 Sync : Unable to read syncLocalSettings.json. Make sure its Valid JSON.
onDidNotificationChange @ notificationsAlerts.ts:40
_register.model.onDidNotificationChange.e @ notificationsAlerts.ts:26
fire @ event.ts:580
addNotification @ notifications.ts:156
notify @ notificationService.ts:100
r @ mainThreadMessageService.ts:83
_showMessage @ mainThreadMessageService.ts:44
$showMessage @ mainThreadMessageService.ts:38
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:137 [Extension Host] TypeError: Cannot read property 'trim' of null	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:8401)	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:5423	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:5528)	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:4274)
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
notificationsAlerts.ts:40 Sync : Unable to read syncLocalSettings.json. Make sure its Valid JSON.
onDidNotificationChange @ notificationsAlerts.ts:40
_register.model.onDidNotificationChange.e @ notificationsAlerts.ts:26
fire @ event.ts:580
addNotification @ notifications.ts:156
notify @ notificationService.ts:100
r @ mainThreadMessageService.ts:83
_showMessage @ mainThreadMessageService.ts:44
$showMessage @ mainThreadMessageService.ts:38
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:137 [Extension Host] rejected promise not handled within 1 second: TypeError: Cannot read property 'githubEnterpriseUrl' of null
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:137 [Extension Host] stack trace: TypeError: Cannot read property 'githubEnterpriseUrl' of null	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:72339)	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:71805	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:71910)	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:70656)
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
mainThreadExtensionService.ts:65 [[object Object]]Cannot read property 'githubEnterpriseUrl' of null
$onExtensionRuntimeError @ mainThreadExtensionService.ts:65
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
mainThreadExtensionService.ts:66 TypeError: Cannot read property 'githubEnterpriseUrl' of null
	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560)
	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560
	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560)
	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:66
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:137 [Extension Host] rejected promise not handled within 1 second: TypeError: Cannot read property 'githubEnterpriseUrl' of null
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:137 [Extension Host] stack trace: TypeError: Cannot read property 'githubEnterpriseUrl' of null	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552:37750)	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552:30499	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552:30604)	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552:29350)
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
mainThreadExtensionService.ts:65 [[object Object]]Cannot read property 'githubEnterpriseUrl' of null
$onExtensionRuntimeError @ mainThreadExtensionService.ts:65
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
mainThreadExtensionService.ts:66 TypeError: Cannot read property 'githubEnterpriseUrl' of null
	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552)
	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552
	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552)
	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:66
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
ipc.cp.ts:236 IPC "File Watcher (chokidar)" crashed with exit code null and signal SIGABRT
child.on @ ipc.cp.ts:236
emit @ events.js:182
ChildProcess._handle.onexit @ internal/child_process.js:240
log.ts:196   ERR Error: [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
log.ts:196   ERR [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
console.ts:137 [Extension Host] TypeError: Cannot read property 'trim' of null	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:8401)	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:5423	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:5528)	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:4274)
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
notificationsAlerts.ts:40 Sync : Unable to read syncLocalSettings.json. Make sure its Valid JSON.
onDidNotificationChange @ notificationsAlerts.ts:40
_register.model.onDidNotificationChange.e @ notificationsAlerts.ts:26
fire @ event.ts:580
addNotification @ notifications.ts:156
notify @ notificationService.ts:100
r @ mainThreadMessageService.ts:83
_showMessage @ mainThreadMessageService.ts:44
$showMessage @ mainThreadMessageService.ts:38
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:137 [Extension Host] TypeError: Cannot read property 'trim' of null	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:8401)	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:5423	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:5528)	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:4274)
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
notificationsAlerts.ts:40 Sync : Unable to read syncLocalSettings.json. Make sure its Valid JSON.
onDidNotificationChange @ notificationsAlerts.ts:40
_register.model.onDidNotificationChange.e @ notificationsAlerts.ts:26
fire @ event.ts:580
addNotification @ notifications.ts:156
notify @ notificationService.ts:100
r @ mainThreadMessageService.ts:83
_showMessage @ mainThreadMessageService.ts:44
$showMessage @ mainThreadMessageService.ts:38
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:137 [Extension Host] rejected promise not handled within 1 second: TypeError: Cannot read property 'githubEnterpriseUrl' of null
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:137 [Extension Host] stack trace: TypeError: Cannot read property 'githubEnterpriseUrl' of null	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:72339)	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:71805	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:71910)	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:70656)
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
mainThreadExtensionService.ts:65 [[object Object]]Cannot read property 'githubEnterpriseUrl' of null
$onExtensionRuntimeError @ mainThreadExtensionService.ts:65
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
mainThreadExtensionService.ts:66 TypeError: Cannot read property 'githubEnterpriseUrl' of null
	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560)
	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560
	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560)
	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:66
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:137 [Extension Host] rejected promise not handled within 1 second: TypeError: Cannot read property 'githubEnterpriseUrl' of null
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
console.ts:137 [Extension Host] stack trace: TypeError: Cannot read property 'githubEnterpriseUrl' of null	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552:37750)	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552:30499	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552:30604)	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552:29350)
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
mainThreadExtensionService.ts:65 [[object Object]]Cannot read property 'githubEnterpriseUrl' of null
$onExtensionRuntimeError @ mainThreadExtensionService.ts:65
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
_protocol.onMessage.e @ rpcProtocol.ts:101
fire @ event.ts:580
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
_socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:592
fire @ event.ts:580
acceptChunk @ ipc.net.ts:239
_register._socket.onData.e @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
mainThreadExtensionService.ts:66 TypeError: Cannot read property 'githubEnterpriseUrl' of null
	at e.<anonymous> (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552)
	at /Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552
	at Object.next (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552)
	at a (/Users/davidgarber/.vscode-oss/extensions/shan.code-settings-sync-3.4.3/out/extension.js:552)

📺 Additional context

{
    "ignoreUploadFiles": [
        "state.*",
        "syncLocalSettings.json",
        ".DS_Store",
        "sync.lock",
        "projects.json",
        "projects_cache_vscode.json",
        "projects_cache_git.json",
        "projects_cache_svn.json",
        "gpm_projects.json",
        "gpm-recentItems.json"
    ],
    "ignoreUploadFolders": [
        "workspaceStorage"
    ],
    "ignoreExtensions": [],
    "gistDescription": "Visual Studio Code Settings Sync Gist",
    "version": 343,
    "token": null,
    "downloadPublicGist": false,
    "supportedFileExtensions": [
        "json",
        "code-snippets"
    ],
    "openTokenLink": true,
    "disableUpdateMessage": false,
    "lastUpload": null,
    "lastDownload": null,
    "githubEnterpriseUrl": null,
    "askGistDescription": false,
    "customFiles": {},
    "hostName": null,
    "universalKeybindings": false,
    "autoUploadDelay": 20
}

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
dgarberjcommented, Oct 29, 2019

I fixed it by manually entering my GH token in VSCodium/User/syncLocalSettings.json, then forcing an upload via SHIFT + ALT+ U.

results: (newly created gist)

CODE SETTINGS SYNC UPLOAD SUMMARY
Version: 3.4.3
--------------------
GitHub Token: 3bc8**********
GitHub Gist: ***
GitHub Gist Type: Secret

Restarting Visual Studio Code may be required to apply color and file icon theme.
--------------------
Files Uploaded:
  extensions.json > extensions.json
  settings.json > settings.json

Extensions Ignored:
  No extensions ignored.

Extensions Removed:
  No extensions removed.

Extensions Added:
  Bookmarks v10.5.0
  code-settings-sync v3.4.3
  dotenv v1.0.1
  EditorConfig v0.14.2
  npm-intellisense v1.3.0
  path-intellisense v1.4.2
  prettier-vscode v2.3.0
  vscode-eslint v1.9.1
  vscode-leetcode v0.15.7
  vscode-markdownlint v0.31.2
  vscodeintellicode v1.2.0
--------------------
Done.
2reactions
mrcrowlcommented, Jan 19, 2020

Just ran into the same issue. The cause was invalid JSON (a trailing comma) in my settings.json file.

Once I fixed the JSON, I then had to use the “Sync: Reset Extension Settings” command to get it working again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to read syncLocalSettings.json. Make sure its Valid ...
Describe the bug When I start VSCode I get error in dev console: Sync : Unable to read syncLocalSettings.json. Make sure its Valid...
Read more >
Unable to read syncLocalSettings.json. Make sure its Valid ...
Settings Sync:Unable to read syncLocalSettings.json. Make sure its Valid JSON. win10首次安装vscode 的配置同步插件 Settings Sync.
Read more >
Settings Sync in Visual Studio Code
Synchronize your user settings across all your Visual Studio Code instances. ... of your JSON files, named with a timestamp of when the...
Read more >
Settings Sync in Visual Studio Code - IT's BUILT IN NOW!
You no longer have to download the Settings Sync extension in Visual Studio Code. Settings Sync is now built in to VS Code, ......
Read more >
vscode 安装Setting Sync后,登录成功回调失败的解决办法
Settings Sync:Unable to read syncLocalSettings.json. Make sure its Valid JSON. 则关闭vscode,打开路径. C:\User\【你的登录名】\AppData\Roaming\ ...
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