Skip to content

TypeError: Cannot read property 'escapedName' of undefined in symbolName during getOccurences #20786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aozgaa opened this issue Dec 19, 2017 · 2 comments
Labels
Bug A bug in TypeScript Duplicate An existing issue was already created Source: Telemetry The issue relates to the telemetry in editors

Comments

@aozgaa
Copy link
Contributor

aozgaa commented Dec 19, 2017

tsserver version: 2.6.1
hits: 37972

stack:

TypeError: Cannot read property 'escapedName' of undefined
    at symbolName (tsserver.js:67404:23)
    at getImport (tsserver.js:67344:36)
    at Object.getImportOrExportSymbol (tsserver.js:67271:68)
    at getImportOrExportReferences (tsserver.js:68097:56)
    at getReferencesAtLocation (tsserver.js:68045:17)
    at getReferencesInContainer (tsserver.js:68007:21)
    at getReferencedSymbolsForSymbol (tsserver.js:67748:25)
    at Object.getReferencedSymbolsForNode (tsserver.js:67664:24)
    at Object.getReferenceEntriesForNode (tsserver.js:67502:58)
    at getSemanticDocumentHighlights (tsserver.js:66388:57)
    at Object.getDocumentHighlights (tsserver.js:66377:20)
    at getDocumentHighlights (tsserver.js:79870:42)
    at getOccurrencesAtPositionCore (tsserver.js:79873:46)
    at Object.getOccurrencesAtPosition (tsserver.js:79859:27)
    at IOSession.Session.getOccurrences (tsserver.js:85781:64)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:85403:61)
    at tsserver.js:86669:88
    at IOSession.Session.executeWithRequestId (tsserver.js:86660:28)
    at IOSession.Session.executeCommand (tsserver.js:86669:33)
    at IOSession.Session.onMessage (tsserver.js:86689:35)
    at Interface.<anonymous> (tsserver.js:87881:27)
    at emitOne (events.js:96:13)
    at Interface.emit (events.js:191:7)
    at Interface._onLine (readline.js:241:10)
    at Interface._normalWrite (readline.js:384:12)
    at Socket.ondata (readline.js:101:10)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)
@DanielRosenwasser DanielRosenwasser added the Source: Telemetry The issue relates to the telemetry in editors label Dec 19, 2017
@mhegazy mhegazy assigned ghost Jan 20, 2018
@mhegazy mhegazy added this to the TypeScript 2.8 milestone Jan 20, 2018
@mhegazy mhegazy added the Bug A bug in TypeScript label Jan 20, 2018
@mhegazy
Copy link
Contributor

mhegazy commented Jan 20, 2018

The Source: Telemetry have limited information. we only have the call stack from the crash report. We need to either mitigate the crash, or add additional asserts to get more information in future crash reports.

@ghost
Copy link

ghost commented Mar 12, 2018

Duplicate of #21792

@ghost ghost marked this as a duplicate of #21792 Mar 12, 2018
@ghost ghost closed this as completed Mar 12, 2018
@ghost ghost added the Duplicate An existing issue was already created label Mar 12, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Duplicate An existing issue was already created Source: Telemetry The issue relates to the telemetry in editors
Projects
None yet
Development

No branches or pull requests

3 participants