Title: getSpecifierForModuleSymbol failing in 5.5 rc · Issue #58819 · microsoft/TypeScript · GitHub
Open Graph Title: getSpecifierForModuleSymbol failing in 5.5 rc · Issue #58819 · microsoft/TypeScript
X Title: getSpecifierForModuleSymbol failing in 5.5 rc · Issue #58819 · microsoft/TypeScript
Description: 🔎 Search Terms getSpecifierForModuleSymbol, Debug Failure, False expression, 🕗 Version & Regression Information This is a crash This changed between versions 5.5 beta and 5.5 rc ⏯ Playground Link https://github.com/Agoric/agoric-sdk/acti...
Open Graph Description: 🔎 Search Terms getSpecifierForModuleSymbol, Debug Failure, False expression, 🕗 Version & Regression Information This is a crash This changed between versions 5.5 beta and 5.5 rc ⏯ Playground Link h...
X Description: 🔎 Search Terms getSpecifierForModuleSymbol, Debug Failure, False expression, 🕗 Version & Regression Information This is a crash This changed between versions 5.5 beta and 5.5 rc ⏯ Playground Li...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/58819
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"getSpecifierForModuleSymbol failing in 5.5 rc","articleBody":"### 🔎 Search Terms\n\ngetSpecifierForModuleSymbol, Debug Failure, False expression,\r\n\n\n### 🕗 Version \u0026 Regression Information\n\n- This is a crash\r\n- This changed between versions 5.5 beta and 5.5 rc\r\n\r\n\n\n### ⏯ Playground Link\n\nhttps://github.com/Agoric/agoric-sdk/actions/runs/9440222557/job/25999288161?pr=9476\n\n### 💻 Code\n\nMy only repro is half-way through the build of a large repo, so I don't think I can isolate it to a code snippet. \r\n\r\nhttps://github.com/Agoric/agoric-sdk/pull/9476 changed the `typescript` from,\r\n\r\n```diff\r\n- typescript@^5.5.0-beta\r\n- version \"5.5.0-dev.20240426\"\r\n- resolved \"https://registry.yarnpkg.com/typescript/-/typescript-5.5.0-dev.20240426.tgz#e9ba7d0b3cdaa54021faca61d1bc399e4766c93b\"\r\n- integrity sha512-96cu+y3DrjSNhNSgB3t3nRiesCwBVjZpbjJ6DcQoCgt0crXXPrOMmJQH/E8TZ41U4JzaULD+cB1Z2owh5HANew==\r\n+ typescript@^5.5.1-rc:\r\n+ version \"5.5.1-rc\"\r\n+ resolved \"https://registry.yarnpkg.com/typescript/-/typescript-5.5.1-rc.tgz#4be420f1ecb5e66c52a7cb11444f06f02294c977\"\r\n+ integrity sha512-7cbqBhh2QH0RaI7AD0ElJ2Ww/iRdW1w2wH/S2dv6EbdNQQlv39fx+V5VOepxLgfUvRkU5D5pxzgPuvHSAQOdpQ==\r\n```\r\n\r\n[A CI job builds each package topologically](https://github.com/Agoric/agoric-sdk/blob/e7b0cebd17f093793e93f4f236921cb4a3f595b8/.github/workflows/test-all-packages.yml#L74-L77).\r\n\r\n\n\n### 🙁 Actual behavior\n\nThe job started failing with:\r\n```\r\nError: Debug Failure. False expression.\r\n at first (/home/runner/work/agoric-sdk/agoric-sdk/node_modules/typescript/lib/tsc.js:605:9)\r\n at getSpecifierForModuleSymbol (/home/runner/work/agoric-sdk/agoric-sdk/node_modules/typescript/lib/tsc.js:50904:21)\r\n at rewriteModuleSpecifier (/home/runner/work/agoric-sdk/agoric-sdk/node_modules/typescript/lib/tsc.js:51977:22)\r\n at visitExistingNodeTreeSymbolsWorker (/home/runner/work/agoric-sdk/agoric-sdk/node_modules/typescript/lib/tsc.js:51827:58)\r\n at visitExistingNodeTreeSymbols (/home/runner/work/agoric-sdk/agoric-sdk/node_modules/typescript/lib/tsc.js:51535:24)\r\n at visitArrayWorker (/home/runner/work/agoric-sdk/agoric-sdk/node_modules/typescript/lib/tsc.js:87695:49)\r\n at visitNodes2 (/home/runner/work/agoric-sdk/agoric-sdk/node_modules/typescript/lib/tsc.js:87666:19)\r\n at tryVisitTypeReference (/home/runner/work/agoric-sdk/agoric-sdk/node_modules/typescript/lib/tsc.js:51672:33)\r\n at visitExistingNodeTreeSymbolsWorker (/home/runner/work/agoric-sdk/agoric-sdk/node_modules/typescript/lib/tsc.js:51811:26)\r\n at visitExistingNodeTreeSymbols (/home/runner/work/agoric-sdk/agoric-sdk/node_modules/typescript/lib/tsc.js:51535:24)\r\n```\r\n\r\nIn the debugger I see that it happens while looking for `escapedName: 'globalThis'` in the context of [this file](https://github.com/Agoric/agoric-sdk/blob/master/packages/inter-protocol/src/psm/psm.js).\n\n### 🙂 Expected behavior\n\nContinues to build like the beta and past releases.\n\n### Additional information about the issue\n\nOur repo makes use of [a hack](https://stackoverflow.com/a/66588974) to make types available both ambiently and by explicit imports.\r\nhttps://github.com/Agoric/agoric-sdk/blob/e7b0cebd17f093793e93f4f236921cb4a3f595b8/packages/internal/exported.d.ts#L17-L29\r\n\r\nThe motivation for this is in transitioning from ambient types to define exportable types and retain backwards compatibility with consumers expecting ambients.","author":{"url":"https://github.com/turadg","@type":"Person","name":"turadg"},"datePublished":"2024-06-10T13:50:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/58819/TypeScript/issues/58819"}
| 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:dd8b8f07-748b-f57e-642f-eb0ea7944df6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE16:113C1C:55AD61:7B037B:6A61EBBE |
| html-safe-nonce | 5b6a9601e81a822157691846424d5a5392989fa00cec70597b6eefa75e5d410a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTE2OjExM0MxQzo1NUFENjE6N0IwMzdCOjZBNjFFQkJFIiwidmlzaXRvcl9pZCI6IjI0Njk2NzQ4OTA2OTE3MzQ0NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 253515dc28a958035534466cbbcd5d46b6e44e67fc4ba789411f9c1f5621731b |
| hovercard-subject-tag | issue:2343983551 |
| 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/58819/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb3170878b118e70b0b3feb4151e9cfc00ff9b5f94e15f136f5b041506fe938b/microsoft/TypeScript/issues/58819 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb3170878b118e70b0b3feb4151e9cfc00ff9b5f94e15f136f5b041506fe938b/microsoft/TypeScript/issues/58819 |
| og:image:alt | 🔎 Search Terms getSpecifierForModuleSymbol, Debug Failure, False expression, 🕗 Version & Regression Information This is a crash This changed between versions 5.5 beta and 5.5 rc ⏯ Playground Link h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | turadg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5dd1217fff37e297563b9d318ee02bf6378c8957c6195b77786bb8896fc9c95d |
| 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 | 554667f6dda2a53c83687de64fabc457970f0f04 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width