Skip to content

TypeError: Cannot read property 'kind' of undefined in 'Object.isImportClause' during 'getCodeFixes' #33726

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.39.0-insider
Command requested: getCodeFixes
Hitting sessions: 113
Five line hash: c7b31f0235de8b834885fd9d3296b6fc
Stack:

    at isImportClause (tsserver.js:14387:21)
    at deleteDeclaration (tsserver.js:115707:32)
    at _loop_9 (tsserver.js:115268:47)
    at ChangeTracker.finishDeleteDeclarations (tsserver.js:115275:21)
    at ChangeTracker.getChanges (tsserver.js:115295:22)
    at ChangeTracker.with (tsserver.js:114832:32)
    at getCodeActions (tsserver.js:119846:69)
    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

Labels

BugA bug in TypeScriptEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Fix AvailableA PR has been opened for this issueHelp WantedYou can do thisImpact: Failed LS OperationNeeds More InfoThe issue still hasn't been fully clarifiedRescheduledThis issue was previously scheduled to an earlier milestoneSource: 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