Skip to content

Error in 'getPos' during 'getCodeFixes' #47887

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 Feb 14, 2022 · 2 comments
Closed

Error in 'getPos' during 'getCodeFixes' #47887

typescript-bot opened this issue Feb 14, 2022 · 2 comments
Labels
Bug A bug in TypeScript Source: Telemetry The issue relates to the telemetry in editors

Comments

@typescript-bot
Copy link
Collaborator

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)
@typescript-bot typescript-bot added Bug A bug in TypeScript Source: Telemetry The issue relates to the telemetry in editors labels Feb 14, 2022
@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 4.6.2
VSCode version: 1.65.1
Command requested: getCodeFixes
Hitting sessions: 876
Five line hash: 0cccbfe2179c1a94ce7802676a78a80e
Stack:

    at getPos (tsserver.js:145491:22)
    at assignPositionsToNodeArray (tsserver.js:146457:46)
    at visitEachChild (tsserver.js:87927:117)
    at assignPositionsToNode (tsserver.js:146443:30)
    at getNonformattedText (tsserver.js:146427:56)
    at getFormattedTextOfNode (tsserver.js:146398:26)
    at format (tsserver.js:146385:52)
    at computeNewText (tsserver.js:146388:23)
    at <anonymous> (tsserver.js:146352:39)
    at mapDefined (tsserver.js:605:30)
    at <anonymous> (tsserver.js:146350:42)
    at mapDefined (tsserver.js:605:30)
    at getTextChangesFromChanges (tsserver.js:146336:27)
    at ChangeTracker.getChanges (tsserver.js:146275:45)
    at ChangeTracker.with (tsserver.js:145695:32)
    at getCodeActions (tsserver.js:147868:64)
    at <anonymous> (tsserver.js:146939:77)
    at flatMap (tsserver.js:508:25)
    at getFixes (tsserver.js:146939:23)
    at <anonymous> (tsserver.js:162166:35)
    at flatMap (tsserver.js:508:25)
    at getCodeFixesAtPosition (tsserver.js:162164:23)
    at Session.getCodeFixes (tsserver.js:173731:64)
    at _a.<computed> (tsserver.js:172364:61)
    at <anonymous> (tsserver.js:174044:88)
    at Session.executeWithRequestId (tsserver.js:174035:28)
    at Session.executeCommand (tsserver.js:174044:33)
    at Session.onMessage (tsserver.js:174070:35)
    at <anonymous> (tsserver.js:176705:31)
    at unknown (suppressed.js:315:20)
    at unknown (suppressed.js:903:12)
    at unknown (suppressed.js:81:21)

@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 4.6.3
VSCode version: 1.66.0
Command requested: getCodeFixes
Hitting sessions: 391
Five line hash: 0cccbfe2179c1a94ce7802676a78a80e
Stack:

    at getPos (tsserver.js:145516:22)
    at assignPositionsToNodeArray (tsserver.js:146482:46)
    at visitEachChild (tsserver.js:87917:117)
    at assignPositionsToNode (tsserver.js:146468:30)
    at getNonformattedText (tsserver.js:146452:56)
    at getFormattedTextOfNode (tsserver.js:146423:26)
    at format (tsserver.js:146410:52)
    at computeNewText (tsserver.js:146413:23)
    at <anonymous> (tsserver.js:146377:39)
    at mapDefined (tsserver.js:605:30)
    at <anonymous> (tsserver.js:146375:42)
    at mapDefined (tsserver.js:605:30)
    at getTextChangesFromChanges (tsserver.js:146361:27)
    at ChangeTracker.getChanges (tsserver.js:146300:45)
    at ChangeTracker.with (tsserver.js:145720:32)
    at getCodeActions (tsserver.js:147893:64)
    at <anonymous> (tsserver.js:146964:77)
    at flatMap (tsserver.js:508:25)
    at getFixes (tsserver.js:146964:23)
    at <anonymous> (tsserver.js:162191:35)
    at flatMap (tsserver.js:508:25)
    at getCodeFixesAtPosition (tsserver.js:162189:23)
    at Session.getCodeFixes (tsserver.js:173756:64)
    at _a.<computed> (tsserver.js:172389:61)
    at <anonymous> (tsserver.js:174069:88)
    at Session.executeWithRequestId (tsserver.js:174060:28)
    at Session.executeCommand (tsserver.js:174069:33)
    at Session.onMessage (tsserver.js:174095:35)
    at <anonymous> (tsserver.js:176730: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

2 participants