-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDuplicateAn existing issue was already createdAn existing issue was already createdHelp WantedYou can do thisYou can do thisVS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestoneCritical issues that VS Code needs fixed in the current TypeScript milestone
Milestone
Description
TypeScript Version: 3.4.0-dev.20190220
Search Terms:
- projectLoadingStart
- projectLoadingFinish
Code
Follow instructions in microsoft/vscode#68428
Bug
After deleting the jsconfig, see this error in the server logs:
Info 433 [14:12:22.825] request:
{"seq":26,"type":"request","command":"reloadProjects","arguments":null}
Info 434 [14:12:22.826] reload projects.
Info 435 [14:12:22.826] Search path: /Users/matb/projects/san
Info 436 [14:12:22.826] For info: /Users/matb/projects/san/index.js :: Config file name: /Users/matb/projects/san/jsconfig.json
Info 437 [14:12:22.826] Reloading configured project /Users/matb/projects/san/jsconfig.json
Info 438 [14:12:22.826] event:
{"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"/Users/matb/projects/san/jsconfig.json","reason":"User requested reload projects"}}
Err 439 [14:12:22.827] Exception on executing command {"seq":26,"type":"request","command":"reloadProjects","arguments":null}:
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (/Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:17172:110)
at Object.parseJsonText (/Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:17006:26)
at Object.parseJsonText (/Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:16828:23)
at ProjectService.loadConfiguredProject (/Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:124433:33)
at ProjectService.reloadConfiguredProject (/Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:124536:22)
at /Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:124992:39
at Map.forEach (<anonymous>)
at ProjectService.reloadConfiguredProjectForFiles (/Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:124976:27)
at ProjectService.reloadProjects (/Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:124964:22)
at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:126124:46)
at /Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:127490:88
at IOSession.Session.executeWithRequestId (/Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:127481:28)
at IOSession.Session.executeCommand (/Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:127490:33)
at IOSession.Session.onMessage (/Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:127512:35)
at Interface.<anonymous> (/Users/matb/projects/san/node_modules/typescript/lib/tsserver.js:128773:27)
at Interface.emit (events.js:182:13)
at Interface._onLine (readline.js:290:10)
at Interface._normalWrite (readline.js:433:12)
at Socket.ondata (readline.js:149:10)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:279:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at Pipe.onread (net.js:636:20)
Here's the full logs: tsserver.log.zip
(note for these logs I had to create and delete the jsconfig twice. The second delete triggered the error)
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDuplicateAn existing issue was already createdAn existing issue was already createdHelp WantedYou can do thisYou can do thisVS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestoneCritical issues that VS Code needs fixed in the current TypeScript milestone