Skip to content

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

@burtonator

Description

@burtonator

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions