Skip to content

TS Server fatal error: Cannot read property 'length' of undefined #37442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
barry-oneil opened this issue Mar 17, 2020 · 3 comments
Closed

TS Server fatal error: Cannot read property 'length' of undefined #37442

barry-oneil opened this issue Mar 17, 2020 · 3 comments
Assignees
Labels
Duplicate An existing issue was already created Needs Investigation This issue needs a team member to investigate its status.

Comments

@barry-oneil
Copy link

TypeScript Version: 3.8.3
Steps to reproduce crash
1.
2.
3.
TS Server Error Stack

TypeError: Cannot read property 'length' of undefined
    at createSourceFile (tsserver.js:19148:110)
    at Object.parseJsonText (tsserver.js:18972:26)
    at Object.parseJsonText (tsserver.js:18793:23)
    at ProjectService.loadConfiguredProject (tsserver.js:142258:33)
    at ProjectService.createAndLoadConfiguredProject (tsserver.js:142240:22)
    at ProjectService.createLoadAndUpdateConfiguredProject (tsserver.js:142245:36)
    at ProjectService.assignProjectToOpenedScriptInfo (tsserver.js:143101:44)
    at tsserver.js:143396:107
    at Object.mapDefined (tsserver.js:562:30)
    at ProjectService.applyChangesInOpenFiles (tsserver.js:143396:48)
    at Session.handlers.ts.createMapFromTemplate._a.<computed> (tsserver.js:144260:46)
    at tsserver.js:146003:88
    at IOSession.Session.executeWithRequestId (tsserver.js:145994:28)
    at IOSession.Session.executeCommand (tsserver.js:146003:33)
    at IOSession.Session.onMessage (tsserver.js:146027:35)
    at Interface.<anonymous> (tsserver.js:147342:27)
    at Interface.emit (events.js:200:13)
    at Interface._onLine (readline.js:314:10)
    at Interface._normalWrite (readline.js:459:12)
    at Socket.ondata (readline.js:170:10)
    at Socket.emit (events.js:200:13)
    at addChunk (_stream_readable.js:294:12)
    at readableAddChunk (_stream_readable.js:275:11)
    at Socket.Readable.push (_stream_readable.js:210:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
@mjbvz mjbvz transferred this issue from microsoft/vscode Mar 17, 2020
@mjbvz
Copy link
Contributor

mjbvz commented Mar 17, 2020

Looks like the same stack as #36862

@barry-oneil What operating system are you using?

@mjbvz mjbvz removed their assignment Mar 17, 2020
@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Mar 17, 2020
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 4.0 milestone Mar 17, 2020
@barry-oneil
Copy link
Author

Windows 10 Pro Insider Preview build 19582.1001

@sheetalkamat
Copy link
Member

Duplicate stack #36862

@sheetalkamat sheetalkamat added the Duplicate An existing issue was already created label Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created Needs Investigation This issue needs a team member to investigate its status.
Projects
None yet
Development

No branches or pull requests

4 participants