Skip to content

Assert getImportCompletionAction #27880

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 13, 2018 · 5 comments · Fixed by #32531
Closed

Assert getImportCompletionAction #27880

amcasey opened this issue Oct 13, 2018 · 5 comments · Fixed by #32531
Assignees
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue Source: Telemetry The issue relates to the telemetry in editors

Comments

@amcasey
Copy link
Member

amcasey commented Oct 13, 2018

From 3.1.3 (completionEntryDetails)

Error: Debug Failure. False expression.
    at Object.getImportCompletionAction (tsserver.js:107970:22)
    at getCompletionEntryCodeActionsAndSourceDisplay (tsserver.js:94059:33)
    at Object.getCompletionEntryDetails (tsserver.js:94009:30)
    at Object.getCompletionEntryDetails (tsserver.js:114823:35)
    at tsserver.js:122634:57
    at Object.mapDefined (tsserver.js:578:30)
    at IOSession.Session.getCompletionEntryDetails (tsserver.js:122632:33)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:121674: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 assigned ghost Oct 13, 2018
@amcasey amcasey added Bug A bug in TypeScript Source: Telemetry The issue relates to the telemetry in editors labels Oct 13, 2018
@amcasey
Copy link
Member Author

amcasey commented Oct 13, 2018

Possibly part of #27640

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Oct 24, 2018

If it is, then it's a duplicate of #27338.

@ghost
Copy link

ghost commented Nov 2, 2018

I don't think this is a duplicate of #27640 or #27338. Those failed in completions.ts, this is failing in getImportCompletionAction in importFixes.ts at Debug.assert(exportInfos.some(info => info.moduleSymbol === moduleSymbol));.

@sheetalkamat
Copy link
Member

@amcasey Does this still repro?

@amcasey
Copy link
Member Author

amcasey commented Mar 28, 2019

@sheetalkamat ~22 hits in the last 3 days from 3.3.3 and 3.3.4000 (from VS - I didn't check VS Code).

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

Successfully merging a pull request may close this issue.

4 participants