Title: Extract to function crash · Issue #38815 · microsoft/TypeScript · GitHub
Open Graph Title: Extract to function crash · Issue #38815 · microsoft/TypeScript
X Title: Extract to function crash · Issue #38815 · microsoft/TypeScript
Description: TypeScript Version: 4.0.0-dev.20200526 Search Terms: RangeFacts.HasReturn Try to extract these lines to a function in createLanguageService: TypeScript/src/services/services.ts Lines 1268 to 1308 in 3bb84ef // Now create a new compiler c...
Open Graph Description: TypeScript Version: 4.0.0-dev.20200526 Search Terms: RangeFacts.HasReturn Try to extract these lines to a function in createLanguageService: TypeScript/src/services/services.ts Lines 1268 to 1308 i...
X Description: TypeScript Version: 4.0.0-dev.20200526 Search Terms: RangeFacts.HasReturn Try to extract these lines to a function in createLanguageService: TypeScript/src/services/services.ts Lines 1268 to 1308 i...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/38815
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extract to function crash","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!--\r\nPlease try to reproduce the issue with the latest published version. It may have already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n-->\r\n**TypeScript Version:** 4.0.0-dev.20200526\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** RangeFacts.HasReturn\r\n\r\nTry to extract these lines to a function in `createLanguageService`:\r\n\r\nhttps://github.com/microsoft/TypeScript/blob/3bb84ef07dd183ec907435ba3480c661bfcad0f6/src/services/services.ts#L1268-L1308\r\n\r\nError stack:\r\n\r\n```\r\nError: Debug Failure. False expression: Expected RangeFacts.HasReturn flag to be unset\r\nat extractFunctionInScope (/Users/andrew/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.0.20200526/node_modules/typescript/lib/tsserver.js:136020:30)\r\nat getFunctionExtractionAtIndex (/Users/andrew/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.0.20200526/node_modules/typescript/lib/tsserver.js:135807:24)\r\nat Object.getEditsForAction (/Users/andrew/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.0.20200526/node_modules/typescript/lib/tsserver.js:135401:28)\r\nat Object.getEditsForRefactor (/Users/andrew/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.0.20200526/node_modules/typescript/lib/tsserver.js:128047:41)\r\nat Object.getEditsForRefactor (/Users/andrew/.vscode-insiders/extensions/ms-vscod...\r\n```","author":{"url":"https://github.com/andrewbranch","@type":"Person","name":"andrewbranch"},"datePublished":"2020-05-27T23:20:00Z","url":"https://github.com/microsoft/TypeScript/issues/38815"}
| 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:1e7a2c7f-8157-6119-729d-24381a9b0e16 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8CA:928E2:9E3604:D51C05:6B00EBC5 |
| html-safe-nonce | 471f6dcb5b5ca29382f627d8736e31a08aebfee0c48e4e00a3e7035a0095beb2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOENBOjkyOEUyOjlFMzYwNDpENTFDMDU6NkIwMEVCQzUiLCJ2aXNpdG9yX2lkIjoiODczMzk2MTM5NTczOTA5Mzk1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 37117bc0ed688990425a99c3f2df309751c49a7ca8667b9ea989c7808bf08341 |
| hovercard-subject-tag | issue:626100541 |
| 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/38815/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f21cc856179642e3e2dc43bebe8b3a1fd3763ec1babba305f03d6c2d7c0b6f8/microsoft/TypeScript/issues/38815 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f21cc856179642e3e2dc43bebe8b3a1fd3763ec1babba305f03d6c2d7c0b6f8/microsoft/TypeScript/issues/38815 |
| og:image:alt | TypeScript Version: 4.0.0-dev.20200526 Search Terms: RangeFacts.HasReturn Try to extract these lines to a function in createLanguageService: TypeScript/src/services/services.ts Lines 1268 to 1308 i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andrewbranch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width