Title: tsc crash with `Error: start < 0` in a specific config · Issue #58600 · microsoft/TypeScript · GitHub
Open Graph Title: tsc crash with `Error: start < 0` in a specific config · Issue #58600 · microsoft/TypeScript
X Title: tsc crash with `Error: start < 0` in a specific config · Issue #58600 · microsoft/TypeScript
Description: 🔎 Search Terms crash createTextSpan 🕗 Version & Regression Information This is a crash ⏯ Playground Link No response 💻 Code https://github.com/yume-chan/ts-crash This is a minimal repro with only 15 lines across 3 files. 🙁 Actual behavio...
Open Graph Description: 🔎 Search Terms crash createTextSpan 🕗 Version & Regression Information This is a crash ⏯ Playground Link No response 💻 Code https://github.com/yume-chan/ts-crash This is a minimal repro with only 1...
X Description: 🔎 Search Terms crash createTextSpan 🕗 Version & Regression Information This is a crash ⏯ Playground Link No response 💻 Code https://github.com/yume-chan/ts-crash This is a minimal repro with on...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/58600
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tsc crash with `Error: start \u003c 0` in a specific config","articleBody":"### 🔎 Search Terms\n\ncrash createTextSpan\n\n### 🕗 Version \u0026 Regression Information\n\n- This is a crash\n\n### ⏯ Playground Link\n\n_No response_\n\n### 💻 Code\n\nhttps://github.com/yume-chan/ts-crash\r\n\r\nThis is a minimal repro with only 15 lines across 3 files.\n\n### 🙁 Actual behavior\n\n```sh\r\npnpm i\r\nnpx tsc\r\n```\r\n\r\nOutput:\r\n\r\n```\r\n# npx tsc\r\n/root/ts-crash/node_modules/.pnpm/typescript@5.5.0-dev.20240520/node_modules/typescript/lib/tsc.js:11034\r\n throw new Error(\"start \u003c 0\");\r\n ^\r\n\r\nError: start \u003c 0\r\n at createTextSpan (/root/ts-crash/node_modules/.pnpm/typescript@5.5.0-dev.20240520/node_modules/typescript/lib/tsc.js:11034:11)\r\n at createTextSpanFromBounds (/root/ts-crash/node_modules/.pnpm/typescript@5.5.0-dev.20240520/node_modules/typescript/lib/tsc.js:11042:10)\r\n at getErrorSpanForNode (/root/ts-crash/node_modules/.pnpm/typescript@5.5.0-dev.20240520/node_modules/typescript/lib/tsc.js:13589:10)\r\n at createDiagnosticForNodeFromMessageChain (/root/ts-crash/node_modules/.pnpm/typescript@5.5.0-dev.20240520/node_modules/typescript/lib/tsc.js:13419:16)\r\n at resolveExternalModule (/root/ts-crash/node_modules/.pnpm/typescript@5.5.0-dev.20240520/node_modules/typescript/lib/tsc.js:48013:31)\r\n at resolveExternalModuleNameWorker (/root/ts-crash/node_modules/.pnpm/typescript@5.5.0-dev.20240520/node_modules/typescript/lib/tsc.js:47907:61)\r\n at resolveExternalModuleName (/root/ts-crash/node_modules/.pnpm/typescript@5.5.0-dev.20240520/node_modules/typescript/lib/tsc.js:47904:12)\r\n at getSymbolAtLocation (/root/ts-crash/node_modules/.pnpm/typescript@5.5.0-dev.20240520/node_modules/typescript/lib/tsc.js:84201:18)\r\n at Object.getSymbolAtLocation (/root/ts-crash/node_modules/.pnpm/typescript@5.5.0-dev.20240520/node_modules/typescript/lib/tsc.js:45191:21)\r\n at getReferencedFilesFromImportLiteral (/root/ts-crash/node_modules/.pnpm/typescript@5.5.0-dev.20240520/node_modules/typescript/lib/tsc.js:121837:28)\r\n\r\nNode.js v21.6.2\r\n```\n\n### 🙂 Expected behavior\n\nNo crash.\n\n### Additional information about the issue\n\nReproducible in both 5.4.5 and 5.5.0-dev.20240520","author":{"url":"https://github.com/yume-chan","@type":"Person","name":"yume-chan"},"datePublished":"2024-05-21T05:39:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/58600/TypeScript/issues/58600"}
| 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:0523c9fe-e27c-e6e3-bb3a-407d7dbbd28e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8ED0:1B49E0:38A41E:4FBD63:6A620340 |
| html-safe-nonce | 4917e06d8c29826da95e793dfef63da415560045922f7511b03d708d3b935121 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUQwOjFCNDlFMDozOEE0MUU6NEZCRDYzOjZBNjIwMzQwIiwidmlzaXRvcl9pZCI6IjExNDgzNzc3ODc0NzQ3NzI4MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 532eb00c6b318dafc9c87189cce0f558cbe8ae4b7dbe0a3a20603538eca33f8b |
| hovercard-subject-tag | issue:2307344626 |
| 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/58600/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf1a3a50b3eff1048ebc51efd5d7e52c31c2efc848ea1a6a2e29ebb6696eee7e/microsoft/TypeScript/issues/58600 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf1a3a50b3eff1048ebc51efd5d7e52c31c2efc848ea1a6a2e29ebb6696eee7e/microsoft/TypeScript/issues/58600 |
| og:image:alt | 🔎 Search Terms crash createTextSpan 🕗 Version & Regression Information This is a crash ⏯ Playground Link No response 💻 Code https://github.com/yume-chan/ts-crash This is a minimal repro with only 1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yume-chan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92eeba52656842b5eb8a3f62fd6465e80107329999099c7144d43d7476b38ad0 |
| 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 | 14dbe1e269fc16133b0b2bbc058e3a259cd85df4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width