Skip to content
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

TS Server fatal error: Debug Failure. False expression. #97142

Closed
thedomi opened this issue May 7, 2020 · 7 comments
Closed

TS Server fatal error: Debug Failure. False expression. #97142

thedomi opened this issue May 7, 2020 · 7 comments
Assignees
Labels
upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@thedomi
Copy link

thedomi commented May 7, 2020

TypeScript Version: 3.8.3
Steps to reproduce crash

  1. Happends every time I open VSCode.

TS Server Error Stack

Error: Debug Failure. False expression.
    at ProjectService.applyChangesInOpenFiles (tsserver.js:143381:34)
    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:203:13)
    at Interface._onLine (readline.js:316:10)
    at Interface._normalWrite (readline.js:461:12)
    at Socket.ondata (readline.js:172:10)
    at Socket.emit (events.js:203:13)
    at addChunk (_stream_readable.js:295:12)
    at readableAddChunk (_stream_readable.js:276:11)
    at Socket.Readable.push (_stream_readable.js:210:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
@mjbvz
Copy link
Collaborator

mjbvz commented May 7, 2020

Does this reproduce in the latest VS Code insiders build (1.46)?

@mjbvz mjbvz added the info-needed Issue requires more information from poster label May 7, 2020
@mjbvz
Copy link
Collaborator

mjbvz commented May 7, 2020

Also, duplicate of microsoft/TypeScript#38076

This should be fixed in VS Code 1.46

@mjbvz mjbvz closed this as completed May 7, 2020
@mjbvz mjbvz added upstream-issue-linked This is an upstream issue that has been reported upstream and removed info-needed Issue requires more information from poster labels May 7, 2020
@thedomi
Copy link
Author

thedomi commented May 28, 2020

Thanks @mjbvz . I've downloaded v 1.46 and the issue is still there. Do you need any other info on this issue (e.g., what's in microsoft/TypeScript#38076 (comment))?

@mjbvz
Copy link
Collaborator

mjbvz commented May 28, 2020

Yes please share the error you are seeing when using TypeScript 3.9.3+ (this is the version of TypeScript shipped in VS Code insiders)

@thedomi
Copy link
Author

thedomi commented May 29, 2020

@mjbvz, I might have found the problem.

Our project contains hundreds of .ts files (MPEG2 Transport Stream files, not TypeScript). I noticed that these were listed in the tsserver.log file (I started sanitizing the tsserver.log file as it contains code pieces from our project).

Adding the folder with the MPEG2 Transport Stream files to tsconfig.json -> exclude solved the problem.

Thank you for your help with this.

@mjbvz
Copy link
Collaborator

mjbvz commented May 29, 2020

Thank you for investigating this!

Oddly you are not the first person to hit this issue: microsoft/TypeScript#21136

I'll close this as upstream. Please upvote the upstream issue too

@github-actions github-actions bot locked and limited conversation to collaborators Jun 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

2 participants