TypeScript Template info added by @mjbvz
TypeScript Version: 3.7.20191013
Search Terms
original report below
Issue Type: Bug
Basically I recently started using VS Code from a week now. I am not sure why am I getting this error message. Looking at github Issues section, it confuses me more as there were different solutions provided or some reporters didn't provide more information and the issue was closed.
If more informatin is required, you have to guide me with step by step guide on how I can retrieve the information required to be able to resolve this issue.
Please help.
VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:35:15.005Z)
OS version: Windows_NT x64 10.0.17134
System Info
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (4 x 2496)|
|GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|15.89GB (5.75GB free)|
|Process Argv||
|Screen Reader|no|
|VM|67%|
Extensions: none
Are you opening a folder on a network drive? Do intellisense and other javascript/typescript features work when you see this notification?
Yes, I am opening files from network drive.
I am not sure what is intellisense. But I do open javascript files to edit from network drive. If you guide me on how to check with this intellisense then I can check and get back to you.
Yes we've had some issues with network drives in the past.
Can you please try collecting the TS Server log:
"typescript.tsserver.log": "verbose",TypeScript: Open TS Server log commandtsserver.log Look through that log file for errors or stack traces. If you can share the log, I can also take a look to see if anything stands out
鈿狅笍Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this
Ok, following your lead.
Regarding providing you the log file, yes I can't post it in public, please provide alternate ways to send you the log file. Thanks.
I have got the error log. Please let me know how would you like to get it.
Just for time being, I am skipping the Info bits from the log, pasting error bits to at least give you some indication.
Err 146 [12:39:25.787] Exception on executing command unknown:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17866:110)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17699:26)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17520:23)
at ProjectService.loadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131789:33)
at ProjectService.reloadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131916:22)
at ConfiguredProject.updateGraph (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130304:45)
at updateProjectIfDirty (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130666:45)
at c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130887:25
at Timeout.ThrottledOperations.run [as _onTimeout] (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:128185:17)
at ontimeout (timers.js:427:13)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Err 150 [12:39:27.150] Exception on executing command unknown:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17866:110)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17699:26)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17520:23)
at ProjectService.loadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131789:33)
at ProjectService.reloadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131916:22)
at ConfiguredProject.updateGraph (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130304:45)
at updateProjectIfDirty (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130666:45)
at c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130887:25
at Timeout.ThrottledOperations.run [as _onTimeout] (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:128185:17)
at ontimeout (timers.js:427:13)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Err 208 [12:39:29.859] Exception on executing command unknown:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17866:110)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17699:26)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17520:23)
at ProjectService.loadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131789:33)
at ProjectService.reloadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131916:22)
at ConfiguredProject.updateGraph (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130304:45)
at updateProjectIfDirty (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130666:45)
at c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130887:25
at Timeout.ThrottledOperations.run [as _onTimeout] (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:128185:17)
at ontimeout (timers.js:427:13)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Err 212 [12:39:30.271] Exception on executing command unknown:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17866:110)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17699:26)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17520:23)
at ProjectService.loadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131789:33)
at ProjectService.reloadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131916:22)
at ConfiguredProject.updateGraph (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130304:45)
at updateProjectIfDirty (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130666:45)
at c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130887:25
at Timeout.ThrottledOperations.run [as _onTimeout] (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:128185:17)
at ontimeout (timers.js:427:13)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Err 279 [12:39:33.55] Exception on executing command unknown:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17866:110)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17699:26)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17520:23)
at ProjectService.loadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131789:33)
at ProjectService.reloadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131916:22)
at ConfiguredProject.updateGraph (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130304:45)
at updateProjectIfDirty (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130666:45)
at c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130887:25
at Timeout.ThrottledOperations.run [as _onTimeout] (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:128185:17)
at ontimeout (timers.js:427:13)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Err 283 [12:39:33.470] Exception on executing command unknown:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17866:110)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17699:26)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17520:23)
at ProjectService.loadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131789:33)
at ProjectService.reloadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131916:22)
at ConfiguredProject.updateGraph (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130304:45)
at updateProjectIfDirty (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130666:45)
at c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130887:25
at Timeout.ThrottledOperations.run [as _onTimeout] (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:128185:17)
at ontimeout (timers.js:427:13)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
*
*
* and numerous times more till the end
*
*
Err 56604 [13:34:40.858] Exception on executing command unknown:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17866:110)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17699:26)
at Object.parseJsonText (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:17520:23)
at ProjectService.loadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131789:33)
at ProjectService.reloadConfiguredProject (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131916:22)
at ConfiguredProject.updateGraph (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130304:45)
at updateProjectIfDirty (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130666:45)
at c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130887:25
at Timeout.ThrottledOperations.run [as _onTimeout] (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:128185:17)
at ontimeout (timers.js:427:13)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Thanks for checking this. Those errors do look like they could be causing this behavior.
Can you please try upgrading your workspace to use the nightly version of typescript by installing this extension Does this fix the issue for you?
Also, how is the network drive configured? Is it a mount? A unc path?
@mjbvz
Sorry for the delay in response due to weekend.
I am using network drive with UNC path. Its not mounted drive. It is OneDrive for Business with internal domain url.
I have installed the extension today and enabled it for the workspace. I have then restarted the VS Code. None of the TypeScript commands were available until I load any .js file. That is when it loads the extension and starts giving me that error message in the status area.
So first I started loading .js file from my C drive and there were no errors in the status bar.
Then I tried loading .js file from network drive and the error comes back. Below are the error blocks.
Err 235 [12:52:36.761] Exception on executing command unknown:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18386:110)
at Object.parseJsonText (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18216:26)
at Object.parseJsonText (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18039:23)
at ProjectService.loadConfiguredProject (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:137056:33)
at ProjectService.reloadConfiguredProject (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:137188:22)
at ConfiguredProject.updateGraph (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:135552:45)
at updateProjectIfDirty (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:135920:45)
at C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:136141:25
at Timeout.ThrottledOperations.run [as _onTimeout] (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:133189:17)
at ontimeout (timers.js:427:13)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Err 431 [12:52:49.982] Exception on executing command unknown:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18386:110)
at Object.parseJsonText (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18216:26)
at Object.parseJsonText (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18039:23)
at ProjectService.loadConfiguredProject (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:137056:33)
at ProjectService.reloadConfiguredProject (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:137188:22)
at ConfiguredProject.updateGraph (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:135552:45)
at updateProjectIfDirty (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:135920:45)
at C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:136141:25
at Timeout.ThrottledOperations.run [as _onTimeout] (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:133189:17)
at ontimeout (timers.js:427:13)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Err 493 [12:52:53.161] Exception on executing command unknown:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18386:110)
at Object.parseJsonText (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18216:26)
at Object.parseJsonText (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18039:23)
at ProjectService.loadConfiguredProject (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:137056:33)
at ProjectService.reloadConfiguredProject (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:137188:22)
at ConfiguredProject.updateGraph (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:135552:45)
at updateProjectIfDirty (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:135920:45)
at C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:136141:25
at Timeout.ThrottledOperations.run [as _onTimeout] (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:133189:17)
at ontimeout (timers.js:427:13)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Err 569 [12:52:56.254] Exception on executing command unknown:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18386:110)
at Object.parseJsonText (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18216:26)
at Object.parseJsonText (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18039:23)
at ProjectService.loadConfiguredProject (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:137056:33)
at ProjectService.reloadConfiguredProject (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:137188:22)
at ConfiguredProject.updateGraph (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:135552:45)
at updateProjectIfDirty (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:135920:45)
at C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:136141:25
at Timeout.ThrottledOperations.run [as _onTimeout] (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:133189:17)
at ontimeout (timers.js:427:13)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Err 623 [12:52:59.120] Exception on executing command unknown:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18386:110)
at Object.parseJsonText (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18216:26)
at Object.parseJsonText (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:18039:23)
at ProjectService.loadConfiguredProject (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:137056:33)
at ProjectService.reloadConfiguredProject (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:137188:22)
at ConfiguredProject.updateGraph (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:135552:45)
at updateProjectIfDirty (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:135920:45)
at C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:136141:25
at Timeout.ThrottledOperations.run [as _onTimeout] (C:\Users\xxx\.vscode\extensions\ms-vscode.vscode-typescript-next-3.7.20191013\node_modules\typescript\lib\tsserver.js:133189:17)
at ontimeout (timers.js:427:13)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Just another update, I tried to map the drive with mount option as well and it still does same thing. So network drive type doesn't matter I guess, it is happening regardless.
@PL47ER Thanks for checking. When you tested using the mounted drive, did it produce those same error messages?
Also, where those the first set of errors in the log or were them some errors before them? If possible, please share the first error that is printed
@mjbvz Sorry to take long for reply but I already unmounted the drive and so unable to provide the log. Would you like me to test it again and provide the logs ?
Looking into this, it looks like we make the assumption that accessing the JSON text of a tsconfig will always succeed.
When the file is on a network drive, perhaps that isn't a safe assumption.
I'm struggling to reproduce this (at least on a Mac) - I've set up onedrive, and tried running both a TS project and a JS project with tsserver logs but I'm getting nothing abnormal.
So I've got a few questions:
tsconfig.json or jsconfig.json?@orta I think you may need to use a windows network drive (specifically opening an unc path). Try opening a local folder using a unc path like so: https://stackoverflow.com/a/2790936/306149
Thanks @mjbvz - I tried to get a repro today via:
\\microsoft-my.sharepoint... path to open the projectAnd that still wouldn't reproduce, the TS tooling loaded up for a Ts project and I tested on a JS project separately too

Any ideas on what I could be missing @PL47ER or @mjbvz ?
Thanks for checking @orta. I can't repo this on TS 3.7.5 either.
@PL47ER Are you still seeing this?
I'm going to call this as working with 3.7.5
The issue appear also in 2019 ... now end of 2020 it isn't fixed on 1.50.0, macOS Catalina
Holy moly ...
same here. Any solution?
Most helpful comment
Thanks for checking this. Those errors do look like they could be causing this behavior.
Can you please try upgrading your workspace to use the nightly version of typescript by installing this extension Does this fix the issue for you?
Also, how is the network drive configured? Is it a mount? A unc path?