Skip to content

Assert failure tryReuseStructureFromOldProgram #27873

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
amcasey opened this issue Oct 12, 2018 · 3 comments
Closed

Assert failure tryReuseStructureFromOldProgram #27873

amcasey opened this issue Oct 12, 2018 · 3 comments
Assignees
Labels
Bug A bug in TypeScript Source: Telemetry The issue relates to the telemetry in editors

Comments

@amcasey
Copy link
Member

amcasey commented Oct 12, 2018

From 3.1.3:

Error processing request. Debug Failure. False expression.
Error: Debug Failure. False expression.
    at tryReuseStructureFromOldProgram (tsserver.js:84813:22)
    at Object.createProgram (tsserver.js:84506:34)
    at synchronizeHostData (tsserver.js:114685:26)
    at Object.getProgram (tsserver.js:114768:13)
    at InferredProject.Project.updateGraphWorker (tsserver.js:118814:53)
    at InferredProject.Project.updateGraph (tsserver.js:118762:42)
    at Object.updateProjectIfDirty (tsserver.js:119449:45)
    at InferredProject.Project.getLanguageService (tsserver.js:118459:28)
    at IOSession.Session.getCompletions (tsserver.js:122608:43)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:121665:61)
    at tsserver.js:123086:88
    at IOSession.Session.executeWithRequestId (tsserver.js:123077:28)
    at IOSession.Session.executeCommand (tsserver.js:123086:33)
    at IOSession.Session.onMessage (tsserver.js:123106:35)
    at Interface.<anonymous> (tsserver.js:124369:27)
    at emitOne (events.js:116:13)
    at Interface.emit (events.js:211:7)
    at Interface._onLine (readline.js:282:10)
    at Interface._normalWrite (readline.js:424:12)
    at Socket.ondata (readline.js:141:10)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)
@amcasey amcasey added Bug A bug in TypeScript Source: Telemetry The issue relates to the telemetry in editors labels Oct 12, 2018
@amcasey
Copy link
Member Author

amcasey commented Oct 12, 2018

Command was completionInfo.

@amcasey
Copy link
Member Author

amcasey commented Oct 13, 2018

Probably #27471

@sheetalkamat
Copy link
Member

This is duplicate of #20795 as in confirmed that this is possible only if there was exception in the invocation of previous createProgram which resulted in us not creating new program and old program was partially used and still present as newProgram

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Source: Telemetry The issue relates to the telemetry in editors
Projects
None yet
Development

No branches or pull requests

2 participants