Skip to content

Error in 'addSyntheticNodes' during 'getOutliningSpans' #47884

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 · 3 comments
Closed

Error in 'addSyntheticNodes' during 'getOutliningSpans' #47884

typescript-bot opened this issue Feb 14, 2022 · 3 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.2
Command requested: getOutliningSpans
Hitting sessions: 914
Five line hash: 03a772ae3c3419914bf1246abf5abf53
Stack:

    at addSyntheticNodes (tsserver.js:158913:30)
    at createSyntaxList (tsserver.js:158929:13)
    at processNodes (tsserver.js:158892:27)
    at visitNodes (tsserver.js:29694:24)
    at forEachChild (tsserver.js:29940:24)
    at NodeObject.forEachChild (tsserver.js:158867:23)
    at createChildren (tsserver.js:158901:14)
    at NodeObject.getChildren (tsserver.js:158844:56)
    at findChildOfKind (tsserver.js:123408:26)
    at tryGetFunctionOpenToken (tsserver.js:137913:23)
    at functionSpan (tsserver.js:137890:29)
    at getOutliningSpanForNode (tsserver.js:137760:32)
    at visitNonImportNode (tsserver.js:137642:28)
    at visitNode (tsserver.js:29689:24)
    at forEachChild (tsserver.js:29819:21)
    at NodeObject.forEachChild (tsserver.js:158867:23)
    at visitNonImportNode (tsserver.js:137662:23)
    at visitNodes (tsserver.js:29698:30)
    at forEachChild (tsserver.js:30015:21)
    at NodeObject.forEachChild (tsserver.js:158867:23)
    at visitNonImportNode (tsserver.js:137662:23)
    at addNodeOutliningSpans (tsserver.js:137610:21)
    at collectElements (tsserver.js:137597:13)
    at getOutliningSpans (tsserver.js:160337:50)
    at Session.getOutliningSpans (tsserver.js:171388:45)
    at _a.<computed> (tsserver.js:170343: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: getOutliningSpans
Hitting sessions: 957
Five line hash: 03a772ae3c3419914bf1246abf5abf53
Stack:

    at addSyntheticNodes (tsserver.js:160634:30)
    at createSyntaxList (tsserver.js:160650:13)
    at processNodes (tsserver.js:160613:27)
    at visitNodes (tsserver.js:29854:24)
    at forEachChild (tsserver.js:30100:24)
    at NodeObject.forEachChild (tsserver.js:160588:23)
    at createChildren (tsserver.js:160622:14)
    at NodeObject.getChildren (tsserver.js:160565:56)
    at findChildOfKind (tsserver.js:124456:26)
    at tryGetFunctionOpenToken (tsserver.js:139235:23)
    at functionSpan (tsserver.js:139212:29)
    at getOutliningSpanForNode (tsserver.js:139082:32)
    at visitNonImportNode (tsserver.js:138964:28)
    at visitNode (tsserver.js:29849:24)
    at forEachChild (tsserver.js:29979:21)
    at NodeObject.forEachChild (tsserver.js:160588:23)
    at visitNonImportNode (tsserver.js:138984:23)
    at visitNodes (tsserver.js:29858:30)
    at forEachChild (tsserver.js:30175:21)
    at NodeObject.forEachChild (tsserver.js:160588:23)
    at visitNonImportNode (tsserver.js:138984:23)
    at addNodeOutliningSpans (tsserver.js:138932:21)
    at collectElements (tsserver.js:138919:13)
    at getOutliningSpans (tsserver.js:162107:50)
    at unknown (suppressed.js:159:26)
    at Session.getOutliningSpans (tsserver.js:173237:45)
    at _a.<computed> (tsserver.js:172189: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)

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Apr 3, 2022

This is likely #47537

@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: 393
Five line hash: 03a772ae3c3419914bf1246abf5abf53
Stack:

    at addSyntheticNodes (tsserver.js:160659:30)
    at createSyntaxList (tsserver.js:160675:13)
    at processNodes (tsserver.js:160638:27)
    at visitNodes (tsserver.js:29854:24)
    at forEachChild (tsserver.js:30100:24)
    at NodeObject.forEachChild (tsserver.js:160613:23)
    at createChildren (tsserver.js:160647:14)
    at NodeObject.getChildren (tsserver.js:160590:56)
    at _loop_1 (tsserver.js:124838:36)
    at getTokenAtPositionWorker (tsserver.js:124889:27)
    at getTokenAtPosition (tsserver.js:124829:16)
    at getInfo (tsserver.js:155615:27)
    at getCodeActions (tsserver.js:155601:28)
    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 unknown (suppressed.js:178:34)
    at unknown (suppressed.js:79:25)
    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

3 participants