Skip to content

getCodeFixes — Cannot read property 'length' of undefined #29358

@mjbvz

Description

@mjbvz

TypeScript Version: 3.3.0-dev.20190101

In the VS Code error telemetry, we're seeing this error hit a few times:

Error processing request. Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
    at createTransformedStatement (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:110504:61)
    at transformPromiseCall (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:110496:24)
    at transformExpression (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:110420:24)
    at transformExpression (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:110417:24)
    at transformThen (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:110485:20)
    at transformExpression (/Applications/Visual Studio Code - Insiders.app/Contents/Resources

No repo steps currently.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputDomain: LS: Quick FixesEditor-provided fixes, often called code actions.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions