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

Error in 'consumeTokenAndAdvanceScanner' during 'getCodeFixes' #52504

Open
typescript-bot opened this issue Jan 30, 2023 · 0 comments
Open

Error in 'consumeTokenAndAdvanceScanner' during 'getCodeFixes' #52504

typescript-bot opened this issue Jan 30, 2023 · 0 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.9.4
VSCode version: 1.74.3
Command requested: getCodeFixes
Hitting sessions: 793
Five line hash: ad442a6e70b061c72c618624a1b8a39c
Stack:

    at consumeTokenAndAdvanceScanner (tsserver.js:150950:30)
    at processChildNode (tsserver.js:150857:25)
    at <anonymous> (tsserver.js:150803:21)
    at visitNode (tsserver.js:31215:24)
    at forEachChildInJsxExpression (tsserver.js:31811:20)
    at forEachChild (tsserver.js:31998:47)
    at processNode (tsserver.js:150802:20)
    at processChildNode (tsserver.js:150874:21)
    at processChildNodes (tsserver.js:150929:48)
    at <anonymous> (tsserver.js:150805:21)
    at visitNodes (tsserver.js:31220:24)
    at forEachChildInJsxElement (tsserver.js:31790:17)
    at forEachChild (tsserver.js:31998:47)
    at processNode (tsserver.js:150802:20)
    at processChildNode (tsserver.js:150874:21)
    at processChildNodes (tsserver.js:150929:48)
    at <anonymous> (tsserver.js:150805:21)
    at visitNodes (tsserver.js:31220:24)
    at forEachChildInJsxFragment (tsserver.js:31795:17)
    at forEachChild (tsserver.js:31998:47)
    at processNode (tsserver.js:150802:20)
    at formatSpanWorker (tsserver.js:150581:17)
    at <anonymous> (tsserver.js:150543:140)
    at getFormattingScanner (tsserver.js:149163:23)
    at formatNodeGivenIndentation (tsserver.js:150543:31)
    at getFormattedTextOfNode (tsserver.js:153036:45)
    at format (tsserver.js:153007:52)
    at computeNewText (tsserver.js:153010:23)
    at <anonymous> (tsserver.js:152974:39)
    at mapDefined (tsserver.js:621:30)
    at <anonymous> (tsserver.js:152972:42)
    at mapDefined (tsserver.js:621:30)
    at getTextChangesFromChanges (tsserver.js:152958:27)
    at ChangeTracker.getChanges (tsserver.js:152877:45)
    at ChangeTracker.with (tsserver.js:152297:32)
    at getCodeActionsToWrapJsxInFragment (tsserver.js:162505:64)
    at <anonymous> (tsserver.js:153564:77)
    at flatMap (tsserver.js:524:25)
    at getFixes (tsserver.js:153564:23)
    at <anonymous> (tsserver.js:169463:35)
    at flatMap (tsserver.js:524:25)
    at getCodeFixesAtPosition (tsserver.js:169461:23)
    at Session.getCodeFixes (tsserver.js:181711:64)
    at _a.<computed> (tsserver.js:180090: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 typescript-bot added Bug A bug in TypeScript Source: Telemetry The issue relates to the telemetry in editors labels Jan 30, 2023
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

1 participant