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 'findRightmostChildNodeWithTokens' during 'quickinfo' #46946

Closed
typescript-bot opened this issue Nov 29, 2021 · 2 comments · Fixed by #47500
Closed

Error in 'findRightmostChildNodeWithTokens' during 'quickinfo' #46946

typescript-bot opened this issue Nov 29, 2021 · 2 comments · Fixed by #47500
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue 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.2
VSCode version: 1.63.0-insider
Command requested: quickinfo
Hitting sessions: 252
Five line hash: f56d3f7ffcdccb71556bd2cea00d6c77
Stack:

    at findRightmostChildNodeWithTokens (tsserver.js:123979:26)
    at find (tsserver.js:123953:29)
    at findPrecedingToken (tsserver.js:123903:22)
    at nodeContainsPosition (tsserver.js:123838:37)
    at <anonymous> (tsserver.js:123795:21)
    at binarySearchKey (tsserver.js:1200:21)
    at _loop_1 (tsserver.js:123770:24)
    at getTokenAtPositionWorker (tsserver.js:123820:27)
    at getTouchingToken (tsserver.js:123755:16)
    at getTouchingPropertyName (tsserver.js:123747:16)
    at getQuickInfoAtPosition (tsserver.js:160056:27)
    at Session.getQuickInfoWorker (tsserver.js:171406:62)
    at _a.<computed> (tsserver.js:170300:61)
    at <anonymous> (tsserver.js:172158:88)
    at Session.executeWithRequestId (tsserver.js:172149:28)
    at Session.executeCommand (tsserver.js:172158:33)
    at Session.onMessage (tsserver.js:172184:35)
    at <anonymous> (tsserver.js:174789: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 Nov 29, 2021
@typescript-bot
Copy link
Collaborator Author

This issue reproduced in the following context:
TypeScript version prefix: 4.5.4
VSCode version: 1.63.2
Command requested: quickinfo
Hitting sessions: 10920
Five line hash: f56d3f7ffcdccb71556bd2cea00d6c77
Stack:

    at findRightmostChildNodeWithTokens (tsserver.js:123998:26)
    at find (tsserver.js:123972:29)
    at findPrecedingToken (tsserver.js:123922:22)
    at nodeContainsPosition (tsserver.js:123857:37)
    at <anonymous> (tsserver.js:123814:21)
    at binarySearchKey (tsserver.js:1200:21)
    at _loop_1 (tsserver.js:123789:24)
    at getTokenAtPositionWorker (tsserver.js:123839:27)
    at getTouchingToken (tsserver.js:123774:16)
    at getTouchingPropertyName (tsserver.js:123766:16)
    at getQuickInfoAtPosition (tsserver.js:160091:27)
    at Session.getQuickInfoWorker (tsserver.js:171441:62)
    at _a.<computed> (tsserver.js:170335:61)
    at <anonymous> (tsserver.js:172193:88)
    at Session.executeWithRequestId (tsserver.js:172184:28)
    at Session.executeCommand (tsserver.js:172193:33)
    at Session.onMessage (tsserver.js:172219:35)
    at <anonymous> (tsserver.js:174824: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)

@DanielRosenwasser
Copy link
Member

Likely to be #47446.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue Source: Telemetry The issue relates to the telemetry in editors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants