Skip to content

Error: Debug Failure. Invalid cast. The supplied value [object Object] did not pass the test 'isPropertyAccessExpression'. in 'Object.cast' during 'documentHighlights' #36713

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.7.5
VSCode version: 1.42.0-insider
Command requested: documentHighlights
Hitting sessions: 815
Five line hash: 8b388687de54db0a20a3bd51528fda09
Stack:

    at cast (tsserver.js:1349:25)
    at getSpecialPropertyExport (tsserver.js:109296:77)
    at getExport (tsserver.js:109269:32)
    at getImportOrExportSymbol (tsserver.js:109228:53)
    at getImportOrExportReferences (tsserver.js:110669:56)
    at getReferencesAtLocation (tsserver.js:110599:17)
    at getReferencesInContainer (tsserver.js:110543:21)
    at getReferencesInContainerOrFiles (tsserver.js:110102:21)
    at getReferencedSymbolsForSymbol (tsserver.js:110093:21)
    at getReferencedSymbolsForNode (tsserver.js:109896:34)
    at getReferenceEntriesForNode (tsserver.js:109623:58)
    at getSemanticDocumentHighlights (tsserver.js:108313:57)
    at getDocumentHighlights (tsserver.js:108301:20)
    at getDocumentHighlights (tsserver.js:130904:42)
    at Session.getDocumentHighlights (tsserver.js:140110:71)
    at _a.<computed> (tsserver.js:139532:61)
    at <anonymous> (tsserver.js:140960:88)
    at Session.executeWithRequestId (tsserver.js:140951:28)
    at Session.executeCommand (tsserver.js:140960:33)
    at Session.onMessage (tsserver.js:140983:35)
    at <anonymous> (tsserver.js:142298: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 TypeScriptSource: 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