Skip to content
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

JSDoc @enum — Debug failure: Should only get Alias here #35347

Closed
mjbvz opened this issue Nov 26, 2019 · 0 comments · Fixed by #38928
Closed

JSDoc @enum — Debug failure: Should only get Alias here #35347

mjbvz opened this issue Nov 26, 2019 · 0 comments · Fixed by #38928
Assignees
Labels
Bug A bug in TypeScript Domain: JSDoc Relates to JSDoc parsing and type generation Fix Available A PR has been opened for this issue Rescheduled This issue was previously scheduled to an earlier milestone

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Nov 26, 2019

From https://github.com/microsoft/vscode/issues/85500

TypeScript Version: 3.8.0-dev.20191125

Search Terms:

  • jsdoc
  • @enum
  • enum
  • quick info

Code
For the JS:

/**
 * @enum {string}
 */
const testString = {
    one: "1",
    two: "2"
};

export { testString };

Hover over testString in the export

Bug

TypeScript Server Error (3.8.0-dev.20191125)
Debug Failure. False expression: Should only get Alias here.
Error: Debug Failure. False expression: Should only get Alias here.
    at Object.resolveAlias [as getAliasedSymbol] (tsserver.js:35043:22)
    at getSymbolDisplayPartsDocumentationAndSymbolKind (tsserver.js:116236:54)
    at Object.getSymbolDisplayPartsDocumentationAndSymbolKind (tsserver.js:116244:48)
    at tsserver.js:131018:41
    at Object.runWithCancellationToken (tsserver.js:33400:28)
    at Object.getQuickInfoAtPosition (tsserver.js:131017:34)
    at IOSession.Session.getQuickInfoWorker (tsserver.js:140506:62)
    at Session.handlers.ts.createMapFromTemplate._a.<computed> (tsserver.js:139541:61)
    at tsserver.js:141124:88
    at IOSession.Session.executeWithRequestId (tsserver.js:141115:28)
    at IOSession.Session.executeCommand (tsserver.js:141124:33)
    at IOSession.Session.onMessage (tsserver.js:141147:35)
    at Interface.<anonymous> (tsserver.js:142462:27)
    at Interface.emit (events.js:200:13)
    at Interface._onLine (readline.js:314:10)
    at Interface._normalWrite (readline.js:459:12)
    at Socket.ondata (readline.js:170:10)
    at Socket.emit (events.js:200:13)
    at addChunk (_stream_readable.js:294:12)
    at readableAddChunk (_stream_readable.js:275:11)
    at Socket.Readable.push (_stream_readable.js:210:10)
@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Domain: JSDoc Relates to JSDoc parsing and type generation labels Jan 8, 2020
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 3.9.0 milestone Jan 8, 2020
@RyanCavanaugh RyanCavanaugh added the Rescheduled This issue was previously scheduled to an earlier milestone label May 20, 2020
elibarzilay added a commit to elibarzilay/TypeScript that referenced this issue Jun 4, 2020
@elibarzilay elibarzilay added the Fix Available A PR has been opened for this issue label Jun 4, 2020
elibarzilay added a commit that referenced this issue Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: JSDoc Relates to JSDoc parsing and type generation Fix Available A PR has been opened for this issue Rescheduled This issue was previously scheduled to an earlier milestone
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants