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

I triggered the Debug assertion Revert #54442 and add a testcase with whatever triggered this when running with --diagnostics #61438

Open
littlebutt opened this issue Mar 17, 2025 · 3 comments
Labels
Needs More Info The issue still hasn't been fully clarified

Comments

@littlebutt
Copy link

🔎 Search Terms

"54442", "diagnostics"

🕗 Version & Regression Information

  • This changed between versions before and 5.8.2
  • This changed in commit or PR e79b644
  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about issue Remove unused diagnostic 2346 #54442
  • I was unable to test this on prior versions because it is related to a previous issue.

⏯ Playground Link

No response

💻 Code

# Almost do nothing but run this command on tests/cases/compiler
tsc --diagnostics

🙁 Actual behavior

It shows

Error: Debug Failure. False expression: Revert #54442 and add a testcase with whatever triggered this

🙂 Expected behavior

compiling the project correctly

Additional information about the issue

It seems it's related to the previous issue #54442

@RyanCavanaugh RyanCavanaugh added Needs Proposal This issue needs a plan that clarifies the finer details of how it could be implemented. and removed Needs Proposal This issue needs a plan that clarifies the finer details of how it could be implemented. labels Mar 17, 2025
@RyanCavanaugh
Copy link
Member

# Almost do nothing but run this command on tests/cases/compiler
tsc --diagnostics

I'm not seeing this. Can you narrow it down a bit?

@RyanCavanaugh RyanCavanaugh added the Needs More Info The issue still hasn't been fully clarified label Mar 17, 2025
@littlebutt
Copy link
Author

The tsconfig.json is as followed

{
  "compilerOptions": {
    "target": "es2016",                            
    "module": "commonjs", 
    "outDir": "./tmp", 
    "esModuleInterop": true, 
    "forceConsistentCasingInFileNames": true, 
    "strict": true, 
    "skipLibCheck": true
  }
}

After running tsc --diagnostics or jsut tsc, it shows:

C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\lib\_tsc.js:122135
      throw e;
      ^

Error: Debug Failure. False expression: Revert #54442 and add a testcase with whatever triggered this
    at resolveCall (C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\lib\_tsc.js:75516:13)
    at resolveCallExpression (C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\lib\_tsc.js:75908:18)
    at resolveSignature (C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\lib\_tsc.js:76398:16)
    at getResolvedSignature (C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\lib\_tsc.js:76425:20)
    at checkCallExpression (C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\lib\_tsc.js:76533:23)
    at checkExpressionWorker (C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\lib\_tsc.js:79950:16)
    at checkExpression (C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\lib\_tsc.js:79849:32)
    at checkExpressionStatement (C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\lib\_tsc.js:82427:5)
    at checkSourceElementWorker (C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\lib\_tsc.js:85492:16)
    at checkSourceElement (C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\lib\_tsc.js:85344:7)

Node.js v20.15.0

I hope this can help you.

@RyanCavanaugh
Copy link
Member

We need the input code too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs More Info The issue still hasn't been fully clarified
Projects
None yet
Development

No branches or pull requests

2 participants