Title: Assert in getCodeActionForParameters when typing incomplete function call · Issue #20523 · microsoft/TypeScript · GitHub
Open Graph Title: Assert in getCodeActionForParameters when typing incomplete function call · Issue #20523 · microsoft/TypeScript
X Title: Assert in getCodeActionForParameters when typing incomplete function call · Issue #20523 · microsoft/TypeScript
Description: Code (noImplicitAny on): function f(x) { } f( Stack: Error: Debug Failure. False expression. at Object.zipWith (src\compiler\core.ts:218:15) at getCodeActionForParameters (src\services\codefixes\inferFromUsage.ts:130:47) at Object.getAct...
Open Graph Description: Code (noImplicitAny on): function f(x) { } f( Stack: Error: Debug Failure. False expression. at Object.zipWith (src\compiler\core.ts:218:15) at getCodeActionForParameters (src\services\codefixes\in...
X Description: Code (noImplicitAny on): function f(x) { } f( Stack: Error: Debug Failure. False expression. at Object.zipWith (src\compiler\core.ts:218:15) at getCodeActionForParameters (src\services\codefixes\in...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/20523
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Assert in getCodeActionForParameters when typing incomplete function call","articleBody":"Code (noImplicitAny on):\r\n```ts\r\nfunction f(x) { }\r\nf(\r\n```\r\n\r\nStack:\r\n```ts\r\n Error: Debug Failure. False expression.\r\n at Object.zipWith (src\\compiler\\core.ts:218:15)\r\n at getCodeActionForParameters (src\\services\\codefixes\\inferFromUsage.ts:130:47)\r\n at Object.getActionsForAddExplicitTypeAnnotation [as getCodeActions] (src\\services\\codefixes\\inferFromUsage.ts:67:24)\r\n at src\\services\\codeFixProvider.ts:40:35\r\n at Object.forEach (src\\compiler\\core.ts:174:32)\r\n at Object.getFixes (src\\services\\codeFixProvider.ts:39:13)\r\n at src\\services\\services.ts:1893:32\r\n at Object.flatMap (src\\compiler\\core.ts:463:27)\r\n at Object.getCodeFixesAtPosition (src\\services\\services.ts:1891:20)\r\n at Object.proxy.(anonymous function) [as getCodeFixesAtPosition] (src\\harness\\fourslash.ts:397:66)\r\n at src\\harness\\fourslash.ts:2499:45\r\n at Object.flatMap (src\\compiler\\core.ts:463:27)\r\n at TestState.getCodeFixActions (src\\harness\\fourslash.ts:2494:23)\r\n at TestState.verifyCodeFix (src\\harness\\fourslash.ts:2448:34)\r\n at VerifyNegatable.codeFix (src\\harness\\fourslash.ts:3906:24)\r\n at eval (eval at runCode (src\\harness\\fourslash.ts:3231:23), \u003canonymous>:7:8)\r\n at runCode (src\\harness\\fourslash.ts:3232:13)\r\n at runFourSlashTestContent (src\\harness\\fourslash.ts:3214:9)\r\n at Object.runFourSlashTest (src\\harness\\fourslash.ts:3199:9)\r\n```","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2017-12-06T23:58:45Z","url":"https://github.com/microsoft/TypeScript/issues/20523"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2a419245-fd0e-761d-a3f1-ef7ed8570335 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9256:2E124E:2C2356D:3862D97:6B01BCF1 |
| html-safe-nonce | 0de2d4dc62c513763bcefc49232e3ed7a8d307d576e6593b30660e5130272ef0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjU2OjJFMTI0RToyQzIzNTZEOjM4NjJEOTc6NkIwMUJDRjEiLCJ2aXNpdG9yX2lkIjoiMzQzMzkyNTYwMzA1MTU1MTk4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fdf61c31be46e0e5cf8bc283dd26301cca2cdcd1bbbdc3717449ecc65f9d641d |
| hovercard-subject-tag | issue:279950799 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/20523/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9a73273ae64f4369b3a3585aa6c96dfa1a3652485c738355e22051f678b4a9ac/microsoft/TypeScript/issues/20523 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9a73273ae64f4369b3a3585aa6c96dfa1a3652485c738355e22051f678b4a9ac/microsoft/TypeScript/issues/20523 |
| og:image:alt | Code (noImplicitAny on): function f(x) { } f( Stack: Error: Debug Failure. False expression. at Object.zipWith (src\compiler\core.ts:218:15) at getCodeActionForParameters (src\services\codefixes\in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RyanCavanaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width