Skip to content

getJSDocTags ... Debug Failure. False expression. #25935

Closed

Description

I get this exception when trying to migrate an existing JS app to TS.

/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:63860
                throw e;
                ^

Error: Debug Failure. False expression.
    at getJSDocTags (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:10302:22)
    at getFirstJSDocTag (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:10309:24)
    at Object.getJSDocType (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:10286:19)
    at getContextualSignature (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:33934:32)
    at checkFunctionExpressionOrObjectLiteralMethod (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:36773:43)
    at checkExpressionWorker (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:37696:28)
    at checkExpression (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:37629:42)
    at checkBinaryLikeExpression (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:37246:29)
    at checkBinaryExpression (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:37238:20)
    at checkExpressionWorker (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:37717:28)

.. I imagine I have malformed JSDoc tags that I need to resolve but I can't find out which one is causing the problem. I went through and looked at the last .js file from my app it's printing and removed the JSDoc and that didn't resolve the problem.

It would be nice if TSC didn't choke but even just better error handling so I can fix this myself would be nice.

TypeScript Version: 2.9.2

Search Terms:

getJSDocTags " Debug Failure. False expression."

Code
I'm not sure

Expected behavior:

Don't generate this error but at least show me where the problem is happening.

Actual behavior:

Playground Link:

Related Issues:

Activity

  1. ghost added
    Needs More Info
    on Jul 25, 2018
  2. j-oliveras commented on Jul 25, 2018

    @j-oliveras
    Contributor

    Duplicate of #25067?

  3. InputNeuron commented on Jul 25, 2018

    @InputNeuron
    Author

    Fixed on 3.0.0-rc!

  4. ghost removed
    Needs More Info
    on Jul 25, 2018
  5. ghost added
    Duplicate
    on Jul 25, 2018
  6. typescript-bot commented on Aug 2, 2018

    @typescript-bot
    Contributor

    Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

  7. mcblum commented on Aug 14, 2018

    @mcblum

    Andy (Andrewkraft) (@Andy-MS) just seeing this in our project as well, but we're stuck at 2.7.2 due to the deps of @angular/cli. Any idea if there's a way to work around this?

  8. mcblum commented on Aug 14, 2018

    @mcblum

    Andy (Andrewkraft) (@Andy-MS) thanks for the reply. so these issues appear to be related to dependencies of the project. I've created a Pastebin. If you have any ideas, it would be much appreciated!

    https://paste.laravel.io/f617665b-bfd9-44fd-96ba-b296cb8b3d5e

    Edit: also, these errors are being thrown with TS 3.0.1.

  9. mcblum commented on Aug 14, 2018

    @mcblum

    Andy (Andrewkraft) (@Andy-MS) interesting. I ran ng --version and it shows 3.0.1. When you say avoid compiling, what exactly does that mean? At the moment we're using the standard Angular CLI build process - to be honest, I'm not sure what it's doing behind the curtain.

  10. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions