Skip to content

TypeError: Cannot read property 'kind' of undefined in 'Object.isUnionTypeNode' during 'getCodeFixes' #33719

Closed
@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.6.3
VSCode version: 1.38.1
Command requested: getCodeFixes
Hitting sessions: 113
Five line hash: 8b86a8f231babfb0816588a5e3bcb425
Stack:

    at isUnionTypeNode (tsserver.js:14063:21)
    at addUndefinedType (tsserver.js:120758:28)
    at <anonymous> (tsserver.js:120752:92)
    at ChangeTracker.with (tsserver.js:114831:17)
    at getActionForAddMissingUndefinedType (tsserver.js:120752:60)
    at getCodeActions (tsserver.js:120707:21)
    at <anonymous> (tsserver.js:115852:121)
    at flatMap (tsserver.js:583:25)
    at getFixes (tsserver.js:115852:23)
    at <anonymous> (tsserver.js:125866:35)
    at flatMap (tsserver.js:583:25)
    at getCodeFixesAtPosition (tsserver.js:125864:23)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at Session.getCodeFixes (tsserver.js:135063:64)
    at _a.<computed> (tsserver.js:133850:61)
    at <anonymous> (tsserver.js:135256:88)
    at Session.executeWithRequestId (tsserver.js:135247:28)
    at Session.executeCommand (tsserver.js:135256:33)
    at Session.onMessage (tsserver.js:135279:35)
    at <anonymous> (tsserver.js:136594: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

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged 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