Skip to content

Debug Failure. False expression: Expected position undefined to be a number. #37084

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
sheetalkamat opened this issue Feb 27, 2020 · 0 comments · Fixed by #37545
Closed

Debug Failure. False expression: Expected position undefined to be a number. #37084

sheetalkamat opened this issue Feb 27, 2020 · 0 comments · Fixed by #37545
Assignees
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue

Comments

@sheetalkamat
Copy link
Member

TypeScript Version: 3.7.x-dev.201xxxxx as well as master

Search Terms:

Code
Open vscode in vscode sources
Open file vscode/src/vs/editor/contrib/codeAction/codeActionUi.ts

Expected behavior:
Reports errors correctly
Actual behavior:
found assert hit when getting errors

Info 2324 [11:45:23.674] request:
    {"seq":20,"type":"request","command":"geterr","arguments":{"delay":0,"files":["c:/github/vscode/src/vs/editor/contrib/codeAction/codeActionUi.ts"]}}
Perf 2325 [11:45:23.675] 20::geterr: async elapsed time (in milliseconds) 0.6946
Info 2326 [11:45:23.676] event:
    {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"c:/github/vscode/src/vs/editor/contrib/codeAction/codeActionUi.ts","diagnostics":[]}}
Err 2327  [11:45:23.679] Exception on executing command semanticDiag:

    Debug Failure. False expression: Expected position undefined to be a number.

    Error: Debug Failure. False expression: Expected position undefined to be a number.
        at failIfInvalidPosition (c:\Typescript\built\local\tsserver.js:139735:22)
        at ScriptInfo.positionToLineOffset (c:\Typescript\built\local\tsserver.js:139712:17)
        at formatDiag (c:\Typescript\built\local\tsserver.js:144692:35)
        at c:\Typescript\built\local\tsserver.js:145651:100
        at Array.map (<anonymous>)
        at IOSession.Session.sendDiagnosticsEvent (c:\Typescript\built\local\tsserver.js:145651:71)
        at IOSession.Session.semanticCheck (c:\Typescript\built\local\tsserver.js:145641:22)
        at c:\Typescript\built\local\tsserver.js:145696:31
        at MultistepOperation.executeAction (c:\Typescript\built\local\tsserver.js:144803:25)
        at c:\Typescript\built\local\tsserver.js:144784:100
        at IOSession.Session.executeWithRequestId (c:\Typescript\built\local\tsserver.js:146847:28)
        at Object.executeWithRequestId (c:\Typescript\built\local\tsserver.js:145436:87)
        at Immediate._onImmediate (c:\Typescript\built\local\tsserver.js:144784:41)
        at processImmediate (internal/timers.js:439:21)
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.

2 participants