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

Error: Debug Failure. False expression. at Object.first #38408

Closed
minestarks opened this issue May 7, 2020 · 1 comment · Fixed by #39591
Closed

Error: Debug Failure. False expression. at Object.first #38408

minestarks opened this issue May 7, 2020 · 1 comment · Fixed by #39591
Assignees
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue

Comments

@minestarks
Copy link
Member

Repo Name: https://github.com/nylas/nylas-mail.git

Revision: e16cb1982e944ae7edb69b1abef1436dd16b442d

TypeScript Version: 4.0.0-dev.20200507

Commands:

{"response":[],"responseRequired":true}
{"command":"definition-full","arguments":{"position":7100,"file":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js"},"type":"request","seq":42}
{"response":[],"responseRequired":true}
{"command":"quickinfo-full","arguments":{"position":3,"file":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js"},"type":"request","seq":42}
{"responseRequired":true}
{"command":"quickinfo-full","arguments":{"position":7100,"file":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js"},"type":"request","seq":42}
{"response":{"kind":"var","kindModifiers":"","textSpan":{"start":7091,"length":9},"displayParts":[{"text":"var","kind":"keyword"},{"text":" ","kind":"space"},{"text":"undefined","kind":"propertyName"}],"documentation":[]},"responseRequired":true}
{"command":"references-full","arguments":{"position":3,"file":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js"},"type":"request","seq":42}
{"response":[{"definition":{"containerKind":"","containerName":"","fileName":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js","kind":"const","name":"const path: any","textSpan":{"start":6,"length":4},"displayParts":[{"text":"const","kind":"keyword"},{"text":" ","kind":"space"},{"text":"path","kind":"localName"},{"text":":","kind":"punctuation"},{"text":" ","kind":"space"},{"text":"any","kind":"keyword"}],"contextSpan":{"start":0,"length":29}},"references":[{"textSpan":{"start":6,"length":4},"fileName":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js","contextSpan":{"start":0,"length":29},"isWriteAccess":true,"isDefinition":true},{"textSpan":{"start":1322,"length":4},"fileName":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js","isWriteAccess":false,"isDefinition":false},{"textSpan":{"start":2577,"length":4},"fileName":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js","isWriteAccess":false,"isDefinition":false},{"textSpan":{"start":3981,"length":4},"fileName":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js","isWriteAccess":false,"isDefinition":false},{"textSpan":{"start":4157,"length":4},"fileName":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js","isWriteAccess":false,"isDefinition":false},{"textSpan":{"start":6012,"length":4},"fileName":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js","isWriteAccess":false,"isDefinition":false},{"textSpan":{"start":6651,"length":4},"fileName":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js","isWriteAccess":false,"isDefinition":false}]}],"responseRequired":true}
{"command":"references-full","arguments":{"position":7100,"file":"D:/local/Temp/fuzzerWorkingDir/nylas-mail/packages/client-app/build/tasks/docs-render-task.js"},"type":"request","seq":42}
(Showing last 10 of 45 commands)

Code (packages\client-app\build\tasks\docs-render-task.js):

  
  function __guard__(value, transform) {
    return (typeof value !== 'undefined' && value !== null) ? transform(value) : undefined;
//                                                                                        ^
  }
  

Hash: 501532cb5a8efbfb07926374dce5b001
Stack trace:

Error: Debug Failure. False expression.
    at Object.first (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:1173:18)
    at D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:116426:68
    at definitionToReferencedSymbolDefinitionInfo (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:116459:15)
    at D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:116348:113
    at Object.runWithCancellationToken (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:35406:28)
    at D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:116348:41
    at Object.mapDefined (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:712:30)
    at Object.findReferencedSymbols (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:116344:85)
    at Object.findReferences (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:139821:41)
    at D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:148010:68

Originally posted by @typescript-bot in https://github.com/microsoft/tsserverfuzzer/issues/225#issuecomment-625423202

@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label May 8, 2020
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 4.0 milestone May 8, 2020
@minestarks
Copy link
Member Author

Note - this hasn't reproed since 4.0.0-dev.20200508 - would be good to confirm it was actually fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants