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. #39237

Open
Katzml opened this issue Jun 24, 2020 · 2 comments
Open

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

Katzml opened this issue Jun 24, 2020 · 2 comments
Assignees
Labels
Bug A bug in TypeScript Needs More Info The issue still hasn't been fully clarified Rescheduled This issue was previously scheduled to an earlier milestone

Comments

@Katzml
Copy link

Katzml commented Jun 24, 2020

TypeScript Version: 3.9.4
Steps to reproduce crash

  1. Create a node project with TypeScript and Jest
  2. Create the tsconfig.json
  3. Create the jest.config.js with this configuration:
module.exports = {
   roots: ['<rootDir>/src'],
   transform: {
     '^.+\\.tsx?$': 'ts-jest',
   },
   testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
   moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
 }

TS Server Error Stack

Error: Debug Failure. False expression.
    at ProjectService.applyChangesInOpenFiles (c:\Users\Ktzml\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146885:34)
    at Session.handlers.ts.createMapFromTemplate._a.<computed> (c:\Users\Ktzml\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:147763:46)
    at c:\Users\Ktzml\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149526:88
    at IOSession.Session.executeWithRequestId (c:\Users\Ktzml\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149517:28)
    at IOSession.Session.executeCommand (c:\Users\Ktzml\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149526:33)
    at IOSession.Session.onMessage (c:\Users\Ktzml\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149550:35)
    at Interface.<anonymous> (c:\Users\Ktzml\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:150866: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 mjbvz transferred this issue from microsoft/vscode Jun 24, 2020
@mjbvz
Copy link
Contributor

mjbvz commented Jun 26, 2020

Same error stack as #38933

@mjbvz mjbvz removed their assignment Jun 26, 2020
@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Jun 30, 2020
@RyanCavanaugh RyanCavanaugh added this to the Typescript 4.0.1 milestone Jun 30, 2020
@sheetalkamat
Copy link
Member

@Katzml can you please let me know how you are creating project with typescript and jest. Exact steps to follow would be helpful.
Thanks

@sheetalkamat sheetalkamat added the Needs More Info The issue still hasn't been fully clarified label Jul 7, 2020
@sheetalkamat sheetalkamat assigned Katzml and unassigned sheetalkamat Jul 10, 2020
@RyanCavanaugh RyanCavanaugh added the Rescheduled This issue was previously scheduled to an earlier milestone label Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Needs More Info The issue still hasn't been fully clarified Rescheduled This issue was previously scheduled to an earlier milestone
Projects
None yet
Development

No branches or pull requests

5 participants