Skip to content

TypeError: Cannot read property 'emitNode' of undefined in 'Object.getStartsOnNewLine' during 'signatureHelp' #32864

@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: 3.5.3
VSCode version: 1.37.0
Command requested: signatureHelp
Hitting sessions: 355
Five line hash: fb17c24edcf02bc3f301efc3153a794b
Stack:

    at getStartsOnNewLine (tsserver.js:64102:29)
    at shouldWriteSeparatingLineTerminator (tsserver.js:87446:27)
    at emitNodeList (tsserver.js:87231:29)
    at emitList (tsserver.js:87128:13)
    at writeList (tsserver.js:84571:13)
    at <anonymous> (tsserver.js:108011:29)
    at mapToDisplayParts (tsserver.js:97547:13)
    at itemInfoForParameters (tsserver.js:108008:41)
    at getSignatureHelpItem (tsserver.js:107974:95)
    at <anonymous> (tsserver.js:107947:79)
    at unknown (suppressed.js)
    at createSignatureHelpItems (tsserver.js:107947:36)
    at <anonymous> (tsserver.js:107539:23)
    at runWithCancellationToken (tsserver.js:31649:28)
    at getSignatureHelpItems (tsserver.js:107537:32)
    at getSignatureHelpItems (tsserver.js:122266:37)
    at Session.getSignatureHelpItems (tsserver.js:131224:62)
    at _a.<computed> (tsserver.js:130124:61)
    at <anonymous> (tsserver.js:131671:88)
    at Session.executeWithRequestId (tsserver.js:131662:28)
    at Session.executeCommand (tsserver.js:131671:33)
    at Session.onMessage (tsserver.js:131693:35)
    at <anonymous> (tsserver.js:132984:27)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issueSource: TelemetryThe issue relates to the telemetry in editors

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions