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

Debug failure on auto-import completion entry details #46332

Closed
DanielRosenwasser opened this issue Oct 12, 2021 · 0 comments · Fixed by #46437
Closed

Debug failure on auto-import completion entry details #46332

DanielRosenwasser opened this issue Oct 12, 2021 · 0 comments · Fixed by #46437
Assignees
Labels
Bug A bug in TypeScript Domain: Auto-import Domain: Completion Lists The issue relates to showing completion lists in an editor Fix Available A PR has been opened for this issue

Comments

@DanielRosenwasser
Copy link
Member

Version: 4.5.0-dev.20211012

pnpm install -D typescript@next vue@next

src/tsconfig.json

{
    "compilerOptions": {
        "strict": true,
        "module": "esnext",
        "moduleResolution": "node"
    }
}

src/index.ts

import Vue from "vue";

function Counter() {
    ref/*$*/
}

Request completions and wait for details:

[Trace  - 23:00:06.572] <semantic> Response received: completionEntryDetails (21). Request took 2 ms. Success: false . Message: Error processing request. Debug Failure. False expression: Some exportInfo should match the specified moduleSymbol
Error: Debug Failure. False expression: Some exportInfo should match the specified moduleSymbol
    at getImportFixForSymbol (USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:147915:22)
    at Object.getImportCompletionAction (USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:147907:45)
    at getCompletionEntryCodeActionsAndSourceDisplay (USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:128667:33)
    at Object.getCompletionEntryDetails (USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:128624:30)
    at Proxy.getCompletionEntryDetails (USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:159547:35)
    at USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:171038:57
    at Object.mapDefined (USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:616:30)
    at IOSession.Session.getCompletionEntryDetails (USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:171036:33)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:169861:61)
    at USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:171656:88
    at IOSession.Session.executeWithRequestId (USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:171647:28)
    at IOSession.Session.executeCommand (USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:171656:33)
    at IOSession.Session.onMessage (USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:171682:35)
    at Interface.<anonymous> (USER_ROOT\hackathon\vue-proj\node_modules\.pnpm\typescript@4.5.0-dev.20211012\node_modules\typescript\lib\tsserver.js:174287:31)
    at Interface.emit (events.js:315:20)
    at Interface._onLine (readline.js:337:10)
    at Interface._normalWrite (readline.js:482:12)
    at Socket.ondata (readline.js:194:10)
    at Socket.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at Socket.Readable.push (internal/streams/readable.js:223:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Auto-import Domain: Completion Lists The issue relates to showing completion lists in an editor Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants