Skip to content

Error in 'getPos' during 'getCodeFixes' #47887

Closed
@typescript-bot

Description

@typescript-bot

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: 4.5.5
VSCode version: 1.64.0
Command requested: getCodeFixes
Hitting sessions: 848
Five line hash: 0cccbfe2179c1a94ce7802676a78a80e
Stack:

    at getPos (tsserver.js:144139:22)
    at assignPositionsToNodeArray (tsserver.js:145047:46)
    at visitEachChild (tsserver.js:87329:117)
    at assignPositionsToNode (tsserver.js:145034:30)
    at getNonformattedText (tsserver.js:145018:56)
    at getFormattedTextOfNode (tsserver.js:144989:26)
    at format (tsserver.js:144970:52)
    at computeNewText (tsserver.js:144973:23)
    at <anonymous> (tsserver.js:144937:39)
    at mapDefined (tsserver.js:619:30)
    at <anonymous> (tsserver.js:144935:42)
    at mapDefined (tsserver.js:619:30)
    at getTextChangesFromChanges (tsserver.js:144921:27)
    at ChangeTracker.getChanges (tsserver.js:144889:45)
    at ChangeTracker.with (tsserver.js:144343:32)
    at getCodeActions (tsserver.js:146446:64)
    at <anonymous> (tsserver.js:145528:77)
    at flatMap (tsserver.js:522:25)
    at getFixes (tsserver.js:145528:23)
    at <anonymous> (tsserver.js:160396:35)
    at flatMap (tsserver.js:522:25)
    at getCodeFixesAtPosition (tsserver.js:160394:23)
    at Session.getCodeFixes (tsserver.js:171882:64)
    at _a.<computed> (tsserver.js:170518:61)
    at <anonymous> (tsserver.js:172195:88)
    at Session.executeWithRequestId (tsserver.js:172186:28)
    at Session.executeCommand (tsserver.js:172195:33)
    at Session.onMessage (tsserver.js:172221:35)
    at <anonymous> (tsserver.js:174826:31)
    at unknown (suppressed.js:315:20)
    at unknown (suppressed.js:337:10)
    at unknown (suppressed.js:482:12)
    at unknown (suppressed.js:194:10)
    at unknown (suppressed.js:315:20)
    at unknown (suppressed.js:309:12)
    at unknown (suppressed.js:284:9)
    at unknown (suppressed.js:223:10)
    at unknown (suppressed.js:188:23)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptSource: TelemetryThe issue relates to the telemetry in editors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions