Skip to content

Error: Debug Failure. False expression. in 'Object.getImportCompletionAction' during 'completionEntryDetails' #32853

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
typescript-bot opened this issue Aug 13, 2019 · 16 comments
Labels
Bug A bug in TypeScript Source: Telemetry The issue relates to the telemetry in editors
Milestone

Comments

@typescript-bot
Copy link
Collaborator

typescript-bot commented Aug 13, 2019

This issue comes from crash dumps in telemetry. We've tried to de-duplicate issues on a best-effort basis, comparing the sequence of methods called and the command requested while ignoring line numbers.
TypeScript version prefix: 3.5.3
VSCode version: 1.36.1
Command requested: completionEntryDetails
Hitting sessions: 935
Five line hash: c97ea9793e8d0655c904b5472ca4a0ed
Stack:

    at getImportCompletionAction (tsserver.js:115308:22)
    at getCompletionEntryCodeActionsAndSourceDisplay (tsserver.js:99854:33)
    at getCompletionEntryDetails (tsserver.js:99818:30)
    at getCompletionEntryDetails (tsserver.js:122116:35)
    at <anonymous> (tsserver.js:131183:57)
    at mapDefined (tsserver.js:670:30)
    at Session.getCompletionEntryDetails (tsserver.js:131181:33)
    at _a.<computed> (tsserver.js:130112:61)
    at <anonymous> (tsserver.js:131671:88)
    at Session.executeWithRequestId (tsserver.js:131662:28)
    at Session.executeCommand (tsserver.js:131671:33)
    at Session.onMessage (tsserver.js:131693:35)
    at <anonymous> (tsserver.js:132984:27)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 3.7.2
VSCode version: 1.40.0
Command requested: completionEntryDetails
Hitting sessions: 360
Five line hash: 5fe0651b6c6014d69363c98e8ac36139
Stack:

Error: Debug Failure. False expression: Some exportInfo should match the specified moduleSymbol
    at Object.getImportCompletionAction (tsserver.js:123437:22)
    at getCompletionEntryCodeActionsAndSourceDisplay (tsserver.js:106472:33)
    at Object.getCompletionEntryDetails (tsserver.js:106436:30)
    at Object.getCompletionEntryDetails (tsserver.js:130743:35)
    at unknown (tsserver.js:140385:57)
    at Object.mapDefined (tsserver.js:565:30)
    at IOSession.Session.getCompletionEntryDetails (tsserver.js:140383:33)
    at Session.handlers.ts.createMapFromTemplate._a.<computed> (tsserver.js:139344:61)
    at unknown (tsserver.js:140870:88)
    at IOSession.Session.executeWithRequestId (tsserver.js:140861:28)
    at IOSession.Session.executeCommand (tsserver.js:140870:33)
    at IOSession.Session.onMessage (tsserver.js:140893:35)
    at Interface.<anonymous> (tsserver.js:142208:27)
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()

@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 3.7.3
VSCode version: 1.41.0-insider
Command requested: completionEntryDetails
Hitting sessions: 275
Five line hash: 5fe0651b6c6014d69363c98e8ac36139
Stack:

Error: Debug Failure. False expression: Some exportInfo should match the specified moduleSymbol
    at Object.getImportCompletionAction (tsserver.js:123471:22)
    at getCompletionEntryCodeActionsAndSourceDisplay (tsserver.js:106506:33)
    at Object.getCompletionEntryDetails (tsserver.js:106470:30)
    at Object.getCompletionEntryDetails (tsserver.js:130777:35)
    at suppressed_frame()
    at suppressed_frame()
    at unknown (tsserver.js:140426:57)
    at Object.mapDefined (tsserver.js:565:30)
    at IOSession.Session.getCompletionEntryDetails (tsserver.js:140424:33)
    at Session.handlers.ts.createMapFromTemplate._a.<computed> (tsserver.js:139385:61)
    at unknown (tsserver.js:140911:88)
    at IOSession.Session.executeWithRequestId (tsserver.js:140902:28)
    at IOSession.Session.executeCommand (tsserver.js:140911:33)
    at IOSession.Session.onMessage (tsserver.js:140934:35)
    at Interface.<anonymous> (tsserver.js:142249:27)
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()

@DanielRosenwasser
Copy link
Member

Embarrassing repro

Info 19060[22:14:39.583] request:
    {"seq":3404,"type":"request","command":"completionEntryDetails","arguments":{"file":"c:/Users/Daniel/Personal/frm-render/src/parseForm.ts","line":27,"offset":37,"entryNames":[{"name":"fstat","source":"fs"}]}}
Info 19061[22:14:39.589] getCompletionData: Get current token: 0
Info 19062[22:14:39.590] getCompletionData: Is inside comment: 0
Info 19063[22:14:39.590] getCompletionData: Get previous token 1: 0
Info 19064[22:14:39.590] getCompletionData: Get previous token 2: 0
Info 19065[22:14:39.590] getCompletionsAtPosition: isCompletionListBlocker: 0
Info 19066[22:14:39.595] getSymbolsFromOtherSourceFileExports: Using cached list
Info 19067[22:14:39.600] getCompletionData: Semantic work: 10
Err 19068 [22:14:39.636] Exception on executing command {"seq":3404,"type":"request","command":"completionEntryDetails","arguments":{"file":"c:/Users/Daniel/Personal/frm-render/src/parseForm.ts","line":27,"offset":37,"entryNames":[{"name":"fstat","source":"fs"}]}}:

    Debug Failure. False expression: Some exportInfo should match the specified moduleSymbol

    Error: Debug Failure. False expression: Some exportInfo should match the specified moduleSymbol
        at Object.getImportCompletionAction (C:\Users\Daniel\TypeScript\built\local\tsserver.js:124244:22)
        at getCompletionEntryCodeActionsAndSourceDisplay (C:\Users\Daniel\TypeScript\built\local\tsserver.js:107217:33)
        at Object.getCompletionEntryDetails (C:\Users\Daniel\TypeScript\built\local\tsserver.js:107181:30)
        at Object.getCompletionEntryDetails (C:\Users\Daniel\TypeScript\built\local\tsserver.js:131547:35)
        at C:\Users\Daniel\TypeScript\built\local\tsserver.js:141489:57
        at Object.mapDefined (C:\Users\Daniel\TypeScript\built\local\tsserver.js:546:30)
        at IOSession.Session.getCompletionEntryDetails (C:\Users\Daniel\TypeScript\built\local\tsserver.js:141487:33)
        at Session.handlers.ts.createMapFromTemplate._a.<computed> (C:\Users\Daniel\TypeScript\built\local\tsserver.js:140448:61)
        at C:\Users\Daniel\TypeScript\built\local\tsserver.js:141974:88
        at IOSession.Session.executeWithRequestId (C:\Users\Daniel\TypeScript\built\local\tsserver.js:141965:28)
        at IOSession.Session.executeCommand (C:\Users\Daniel\TypeScript\built\local\tsserver.js:141974:33)
        at IOSession.Session.onMessage (C:\Users\Daniel\TypeScript\built\local\tsserver.js:141997:35)
        at Interface.<anonymous> (C:\Users\Daniel\TypeScript\built\local\tsserver.js:143312: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)

File text of c:/Users/Daniel/Personal/frm-render/src/parseForm.ts:
    import { ANTLRInputStream, CommonTokenStream } from "antlr4ts";
    import {AbstractParseTreeVisitor } from "antlr4ts/tree/AbstractParseTreeVisitor";
    import { VisualBasic6Lexer } from "./parser/VisualBasic6Lexer";
    import { VisualBasic6Parser, ControlPropertiesContext } from "./parser/VisualBasic6Parser";
    import { VisualBasic6Visitor } from "./parser/VisualBasic6Visitor";
    
    type ParsedType = any;
    class MaiVisitor extends AbstractParseTreeVisitor<ParsedType> implements VisualBasic6Visitor<ParsedType> {
        protected defaultResult() {
            return 100;
        }
    
        visitControlProperties(ctx: ControlPropertiesContext) {
            const controlType = ctx.cp_ControlType().complexType();
            if (controlType.ambiguousIdentifier(0).text === "VB") {
                console.log(controlType.ambiguousIdentifier(1).text);
            }
        }
    }
    
    function Form(props: { text: string }) {
        // Todo - try not to create too many of these?
        const inputStream = new ANTLRInputStream(props.text)
        const lexer = new VisualBasic6Lexer(inputStream);
        const tokenStream = new CommonTokenStream(lexer);
        const parser = new VisualBasic6Parser(tokenStream);
        const tree = parser.startRule(fs.);
        
    }

@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 3.7.4
VSCode version: 1.41.1
Command requested: completionEntryDetails
Hitting sessions: 168
Five line hash: 5fe0651b6c6014d69363c98e8ac36139
Stack:

Error: Debug Failure. False expression: Some exportInfo should match the specified moduleSymbol
    at Object.getImportCompletionAction (tsserver.js:123479:22)
    at getCompletionEntryCodeActionsAndSourceDisplay (tsserver.js:106514:33)
    at Object.getCompletionEntryDetails (tsserver.js:106478:30)
    at Object.getCompletionEntryDetails (tsserver.js:130785:35)
    at unknown (tsserver.js:140447:57)
    at Object.mapDefined (tsserver.js:565:30)
    at IOSession.Session.getCompletionEntryDetails (tsserver.js:140445:33)
    at Session.handlers.ts.createMapFromTemplate._a.<computed> (tsserver.js:139406:61)
    at unknown (tsserver.js:140932:88)
    at IOSession.Session.executeWithRequestId (tsserver.js:140923:28)
    at IOSession.Session.executeCommand (tsserver.js:140932:33)
    at IOSession.Session.onMessage (tsserver.js:140955:35)
    at Interface.<anonymous> (tsserver.js:142270:27)
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()

@andrewbranch
Copy link
Member

@DanielRosenwasser do you know what version of @types/node you had installed during that repro? I can’t reproduce currently.

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Jan 15, 2020

@types/node@^13.1.2 (maybe @types/node@^13.1.1)

@andrewbranch
Copy link
Member

Are you able to reproduce consistently, or was this a one-off log grab?

@DanielRosenwasser
Copy link
Member

One-off log grab, so maybe we just need to wait for more info. ☹

@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 3.7.5
VSCode version: 1.41.0
Command requested: completionEntryDetails
Hitting sessions: 305
Five line hash: 5fe0651b6c6014d69363c98e8ac36139
Stack:

Error: Debug Failure. False expression: Some exportInfo should match the specified moduleSymbol
    at Object.getImportCompletionAction (tsserver.js:123507:22)
    at getCompletionEntryCodeActionsAndSourceDisplay (tsserver.js:106542:33)
    at Object.getCompletionEntryDetails (tsserver.js:106506:30)
    at Object.getCompletionEntryDetails (tsserver.js:130813:35)
    at unknown (tsserver.js:140475:57)
    at Object.mapDefined (tsserver.js:565:30)
    at IOSession.Session.getCompletionEntryDetails (tsserver.js:140473:33)
    at Session.handlers.ts.createMapFromTemplate._a.<computed> (tsserver.js:139434:61)
    at unknown (tsserver.js:140960:88)
    at IOSession.Session.executeWithRequestId (tsserver.js:140951:28)
    at IOSession.Session.executeCommand (tsserver.js:140960:33)
    at IOSession.Session.onMessage (tsserver.js:140983:35)
    at Interface.<anonymous> (tsserver.js:142298:27)
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()
    at suppressed_frame()

@typescript-bot
Copy link
Collaborator Author

Revised stack format and updated hash.

@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Sep 11, 2020
@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 4.7.2
VSCode version: 1.67.2
Command requested: completionEntryDetails
Hitting sessions: 125
Five line hash: c97ea9793e8d0655c904b5472ca4a0ed
Stack:

    at getImportCompletionAction (tsserver.js:152419:32)
    at getCompletionEntryCodeActionsAndSourceDisplay (tsserver.js:132552:33)
    at getCompletionEntryDetails (tsserver.js:132491:30)
    at getCompletionEntryDetails (tsserver.js:164582:35)
    at <anonymous> (tsserver.js:176424:57)
    at mapDefined (tsserver.js:605:30)
    at Session.getCompletionEntryDetails (tsserver.js:176422:33)
    at _a.<computed> (tsserver.js:175061:61)
    at <anonymous> (tsserver.js:177109:88)
    at Session.executeWithRequestId (tsserver.js:177100:28)
    at Session.executeCommand (tsserver.js:177109:33)
    at Session.onMessage (tsserver.js:177135:35)
    at <anonymous> (tsserver.js:179770:31)

@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 4.7.3
VSCode version: 1.68.0-insider
Command requested: completionEntryDetails
Hitting sessions: 5198
Five line hash: c97ea9793e8d0655c904b5472ca4a0ed
Stack:

    at getImportCompletionAction (tsserver.js:152482:32)
    at getCompletionEntryCodeActionsAndSourceDisplay (tsserver.js:132615:33)
    at getCompletionEntryDetails (tsserver.js:132554:30)
    at getCompletionEntryDetails (tsserver.js:164645:35)
    at <anonymous> (tsserver.js:176487:57)
    at mapDefined (tsserver.js:605:30)
    at Session.getCompletionEntryDetails (tsserver.js:176485:33)
    at _a.<computed> (tsserver.js:175124:61)
    at <anonymous> (tsserver.js:177172:88)
    at Session.executeWithRequestId (tsserver.js:177163:28)
    at Session.executeCommand (tsserver.js:177172:33)
    at Session.onMessage (tsserver.js:177198:35)
    at <anonymous> (tsserver.js:179833:31)

@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 4.7.4
VSCode version: 1.68.1
Command requested: completionEntryDetails
Hitting sessions: 183
Five line hash: c97ea9793e8d0655c904b5472ca4a0ed
Stack:

    at getImportCompletionAction (tsserver.js:152495:32)
    at getCompletionEntryCodeActionsAndSourceDisplay (tsserver.js:132615:33)
    at getCompletionEntryDetails (tsserver.js:132554:30)
    at getCompletionEntryDetails (tsserver.js:164668:35)
    at <anonymous> (tsserver.js:176510:57)
    at mapDefined (tsserver.js:605:30)
    at Session.getCompletionEntryDetails (tsserver.js:176508:33)
    at _a.<computed> (tsserver.js:175147:61)
    at <anonymous> (tsserver.js:177195:88)
    at Session.executeWithRequestId (tsserver.js:177186:28)
    at Session.executeCommand (tsserver.js:177195:33)
    at Session.onMessage (tsserver.js:177221:35)
    at <anonymous> (tsserver.js:179856:31)

@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 4.9.3
VSCode version: 1.74.0-insider
Command requested: completionEntryDetails
Hitting sessions: 115
Five line hash: c97ea9793e8d0655c904b5472ca4a0ed
Stack:

    at getImportCompletionAction (tsserver.js:156482:22)
    at getCompletionEntryCodeActionsAndSourceDisplay (tsserver.js:136306:33)
    at getCompletionEntryDetails (tsserver.js:136245:30)
    at getCompletionEntryDetails (tsserver.js:169135:35)
    at <anonymous> (tsserver.js:181326:57)
    at mapDefined (tsserver.js:621:30)
    at Session.getCompletionEntryDetails (tsserver.js:181324:33)
    at _a.<computed> (tsserver.js:179961:61)
    at <anonymous> (tsserver.js:182013:96)
    at Session.executeWithRequestId (tsserver.js:182004:28)
    at Session.executeCommand (tsserver.js:182013:41)
    at Session.onMessage (tsserver.js:182041:35)
    at <anonymous> (tsserver.js:186197:31)

@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 4.9.4
VSCode version: 1.75.0-insider
Command requested: completionEntryDetails
Hitting sessions: 128
Five line hash: c97ea9793e8d0655c904b5472ca4a0ed
Stack:

    at getImportCompletionAction (tsserver.js:156493:22)
    at getCompletionEntryCodeActionsAndSourceDisplay (tsserver.js:136317:33)
    at getCompletionEntryDetails (tsserver.js:136256:30)
    at getCompletionEntryDetails (tsserver.js:169146:35)
    at <anonymous> (tsserver.js:181337:57)
    at mapDefined (tsserver.js:621:30)
    at Session.getCompletionEntryDetails (tsserver.js:181335:33)
    at _a.<computed> (tsserver.js:179972:61)
    at <anonymous> (tsserver.js:182024:96)
    at Session.executeWithRequestId (tsserver.js:182015:28)
    at Session.executeCommand (tsserver.js:182024:41)
    at Session.onMessage (tsserver.js:182052:35)
    at <anonymous> (tsserver.js:186208:31)

@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 4.9.5
VSCode version: 1.75.0
Command requested: completionEntryDetails
Hitting sessions: 13198
Five line hash: c97ea9793e8d0655c904b5472ca4a0ed
Stack:

    at getImportCompletionAction (tsserver.js:156503:22)
    at getCompletionEntryCodeActionsAndSourceDisplay (tsserver.js:136327:33)
    at getCompletionEntryDetails (tsserver.js:136266:30)
    at getCompletionEntryDetails (tsserver.js:169156:35)
    at <anonymous> (tsserver.js:181347:57)
    at mapDefined (tsserver.js:621:30)
    at Session.getCompletionEntryDetails (tsserver.js:181345:33)
    at _a.<computed> (tsserver.js:179982:61)
    at <anonymous> (tsserver.js:182034:96)
    at Session.executeWithRequestId (tsserver.js:182025:28)
    at Session.executeCommand (tsserver.js:182034:41)
    at Session.onMessage (tsserver.js:182062:35)
    at <anonymous> (tsserver.js:186218:31)

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

4 participants