microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
101.05k stars 12.49k forks source link

[ServerErrors][TypeScript] 5.5.0-dev.20240603 #58769

Closed typescript-bot closed 5 months ago

typescript-bot commented 5 months ago

The following errors were reported by 5.5.0-dev.20240603 Pipeline that generated this bug Logs for the pipeline run File that generated the pipeline

This run considered 100 popular TS repos from GH (after skipping the top 0).

Successfully analyzed 95 of 100 visited repos | Outcome | Count | |---------|-------| | Detected interesting changes | 17 | | Detected no interesting changes | 78 | | Git clone failed | 2 | | Language service disabled in new TS | 1 | | Unknown failure | 2 |

Investigation Status

Repo Errors Outcome
typescript-bot commented 5 months ago

Server exited prematurely with code unknown and signal SIGABRT

Server exited prematurely with code unknown and signal SIGABRT

Affected repos

calcom/cal.com Raw error text: RepoResults7/calcom.cal.com.rawError.txt in the artifact folder
Replay commands: RepoResults7/calcom.cal.com.replay.txt in the artifact folder

Last few requests

```json {"seq":849,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/core/getBusyTimes.ts","line":222,"offset":39}} {"seq":850,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/core/getBusyTimes.ts","line":231,"offset":24}} {"seq":851,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/packages/features/MainLayout.tsx"],"openFiles":[]}} {"seq":852,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/packages/app-store/trpc-routers.ts","projectRootPath":"@PROJECT_ROOT@"}]}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/calcom/cal.com --recurse-submodules git -C "./cal.com" reset --hard 56e59ab3e13a841124e4735ba972c10e109563b5 yarn --cwd "./cal.com" install --no-immutable --mode=skip-build downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults7&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults7.zip "$downloadUrl" unzip -p RepoResults7.zip RepoResults7/calcom.cal.com.replay.txt > calcom.cal.com.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./cal.com ./calcom.cal.com.replay.txt ```
typescript-bot commented 5 months ago

Server exited prematurely with code unknown and signal SIGABRT

Server exited prematurely with code unknown and signal SIGABRT

Affected repos

babel/babel Raw error text: RepoResults3/babel.babel.rawError.txt in the artifact folder
Replay commands: RepoResults3/babel.babel.replay.txt in the artifact folder

Last few requests

```json {"seq":810,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/babel-traverse/src/path/context.ts","line":226,"offset":10}} {"seq":811,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/babel-traverse/src/path/context.ts","line":226,"offset":10,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":812,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/babel-traverse/src/path/context.ts","line":226,"offset":53,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":813,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/babel-traverse/src/path/context.ts","line":227,"offset":26}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/babel/babel --recurse-submodules git -C "./babel" reset --hard db4b9cfa48281863c222a8ea439e9389eba72b55 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults3&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults3.zip "$downloadUrl" unzip -p RepoResults3.zip RepoResults3/babel.babel.replay.txt > babel.babel.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./babel ./babel.babel.replay.txt ```
typescript-bot commented 5 months ago

RangeError: Maximum call stack size exceeded

Req #6204 - completionInfo
    at isDeprecatedDeclaration2 (/typescript-5.5.0-dev.20240603/lib/typescript.js:51026:36)
    at every (/typescript-5.5.0-dev.20240603/lib/typescript.js:2465:12)
    at isDeprecatedSymbol (/typescript-5.5.0-dev.20240603/lib/typescript.js:51024:125)
    at checkIdentifierCalculateNodeCheckFlags (/typescript-5.5.0-dev.20240603/lib/typescript.js:74589:9)
    at checkIdentifier (/typescript-5.5.0-dev.20240603/lib/typescript.js:74628:5)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83159:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at resolveCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79358:20)
    at resolveSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:79807:16)
    at getResolvedSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:79833:18)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79944:23)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkExpressionCached (/typescript-5.5.0-dev.20240603/lib/typescript.js:82787:28)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:81262:20
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17722:16)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInBlock (/typescript-5.5.0-dev.20240603/lib/typescript.js:32206:10)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at forEachReturnStatement (/typescript-5.5.0-dev.20240603/lib/typescript.js:17718:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.5.0-dev.20240603/lib/typescript.js:81243:5)
    at getReturnTypeFromBody (/typescript-5.5.0-dev.20240603/lib/typescript.js:81056:21)
    at getReturnTypeOfSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:62543:426)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79969:24)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkExpressionWithContextualType (/typescript-5.5.0-dev.20240603/lib/typescript.js:82763:18)
    at getSignatureApplicabilityError (/typescript-5.5.0-dev.20240603/lib/typescript.js:78593:25)
    at chooseOverload (/typescript-5.5.0-dev.20240603/lib/typescript.js:79130:13)
    at resolveCall (/typescript-5.5.0-dev.20240603/lib/typescript.js:78977:16)
    at resolveCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79414:12)
    at resolveSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:79807:16)
    at getResolvedSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:79833:18)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79944:23)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at maybeCheckExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:82202:28)
    at BinaryExpressionStateMachine.onRight (/typescript-5.5.0-dev.20240603/lib/typescript.js:82166:16)
    at Array.right (/typescript-5.5.0-dev.20240603/lib/typescript.js:31423:30)
    at trampoline (/typescript-5.5.0-dev.20240603/lib/typescript.js:31507:42)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:82096:22
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83237:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkExpressionCached (/typescript-5.5.0-dev.20240603/lib/typescript.js:82787:28)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:81262:20
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17722:16)
    at visitNode2 (/typescript-5.5.0-dev.20240603/lib/typescript.js:31728:18)
    at forEachChildInIfStatement (/typescript-5.5.0-dev.20240603/lib/typescript.js:31961:51)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInBlock (/typescript-5.5.0-dev.20240603/lib/typescript.js:32206:10)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at visitNode2 (/typescript-5.5.0-dev.20240603/lib/typescript.js:31728:18)
    at forEachChildInIfStatement (/typescript-5.5.0-dev.20240603/lib/typescript.js:31961:51)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInBlock (/typescript-5.5.0-dev.20240603/lib/typescript.js:32206:10)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at forEachReturnStatement (/typescript-5.5.0-dev.20240603/lib/typescript.js:17718:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.5.0-dev.20240603/lib/typescript.js:81243:5)
    at getReturnTypeFromBody (/typescript-5.5.0-dev.20240603/lib/typescript.js:81056:21)
    at getReturnTypeOfSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:62543:426)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79969:24)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkConditionalExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:82713:19)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83239:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkExpressionCached (/typescript-5.5.0-dev.20240603/lib/typescript.js:82787:28)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:81262:20
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17722:16)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInBlock (/typescript-5.5.0-dev.20240603/lib/typescript.js:32206:10)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at forEachReturnStatement (/typescript-5.5.0-dev.20240603/lib/typescript.js:17718:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.5.0-dev.20240603/lib/typescript.js:81243:5)
    at getReturnTypeFromBody (/typescript-5.5.0-dev.20240603/lib/typescript.js:81056:21)
    at getReturnTypeOfSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:62543:426)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79969:24)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkConditionalExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:82713:19)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83239:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkConditionalExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:82714:19)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83239:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkConditionalExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:82714:19)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83239:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkConditionalExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:82714:19)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83239:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkConditionalExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:82714:19)

Affected repos

langgenius/dify Raw error text: RepoResults5/langgenius.dify.rawError.txt in the artifact folder
Replay commands: RepoResults5/langgenius.dify.replay.txt in the artifact folder

Last few requests

```json {"seq":6201,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/web/public/vs/language/typescript/tsWorker.js","line":274,"offset":237173,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":6202,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/web/public/vs/language/typescript/tsWorker.js","line":274,"offset":238466,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":6203,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/web/public/vs/language/typescript/tsWorker.js","line":274,"offset":238466,"entryNames":["_"]}} {"seq":6204,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/web/public/vs/language/typescript/tsWorker.js","line":274,"offset":239120,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/langgenius/dify --recurse-submodules git -C "./dify" reset --hard fb6843815c48d53384b359fcade599fe87027a62 # Install packages (exact steps are below, but it might be easier to follow the repo readme) yarn --cwd "./dify/web" install --ignore-engines --ignore-scripts --silent npm --prefix "./dify/sdks/nodejs-client" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults5&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults5.zip "$downloadUrl" unzip -p RepoResults5.zip RepoResults5/langgenius.dify.replay.txt > langgenius.dify.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./dify ./langgenius.dify.replay.txt ```
typescript-bot commented 5 months ago

TypeError: Cannot read properties of undefined (reading 'flags')

Req #7788 - completionInfo
    at getMembersOfSymbol (/typescript-5.5.0-dev.20240603/lib/typescript.js:60513:19)
    at getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:65539:11)
    at getTypeFromTypeNodeWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:65916:16)
    at getTypeFromTypeNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:65842:41)
    at map (/typescript-5.5.0-dev.20240603/lib/typescript.js:2590:19)
    at typeArgumentsFromTypeReferenceNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:63292:12)
    at getTypeFromClassOrInterfaceReference (/typescript-5.5.0-dev.20240603/lib/typescript.js:62957:92)
    at getTypeReferenceType (/typescript-5.5.0-dev.20240603/lib/typescript.js:63087:14)
    at getTypeFromTypeReference (/typescript-5.5.0-dev.20240603/lib/typescript.js:63279:18)
    at getTypeFromTypeNodeWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:65880:16)
    at getTypeFromTypeNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:65842:41)
    at getTypeParametersForTypeReferenceOrImport (/typescript-5.5.0-dev.20240603/lib/typescript.js:83841:18)
    at getTypeArgumentConstraint (/typescript-5.5.0-dev.20240603/lib/typescript.js:83887:28)
    at Object.getTypeArgumentConstraint (/typescript-5.5.0-dev.20240603/lib/typescript.js:50301:22)
    at getConstraintOfTypeArgumentProperty (/typescript-5.5.0-dev.20240603/lib/typescript.js:166012:20)
    at getConstraintOfTypeArgumentProperty (/typescript-5.5.0-dev.20240603/lib/typescript.js:166014:13)
    at getConstraintOfTypeArgumentProperty (/typescript-5.5.0-dev.20240603/lib/typescript.js:166014:13)
    at tryGetObjectTypeLiteralInTypeArgumentCompletionSymbols (/typescript-5.5.0-dev.20240603/lib/typescript.js:165188:35)
    at tryGetGlobalSymbols (/typescript-5.5.0-dev.20240603/lib/typescript.js:164848:20)
    at getCompletionData (/typescript-5.5.0-dev.20240603/lib/typescript.js:164597:10)
    at Object.getCompletionsAtPosition (/typescript-5.5.0-dev.20240603/lib/typescript.js:162553:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.0-dev.20240603/lib/typescript.js:149155:35)
    at IOSession.getCompletions (/typescript-5.5.0-dev.20240603/lib/typescript.js:190680:54)
    at completionInfo (/typescript-5.5.0-dev.20240603/lib/typescript.js:189059:43)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:191478:69
    at IOSession.executeWithRequestId (/typescript-5.5.0-dev.20240603/lib/typescript.js:191470:14)
    at IOSession.executeCommand (/typescript-5.5.0-dev.20240603/lib/typescript.js:191478:29)
    at IOSession.onMessage (/typescript-5.5.0-dev.20240603/lib/typescript.js:191520:51)
    at Interface.<anonymous> (/typescript-5.5.0-dev.20240603/lib/tsserver.js:499:14)

Affected repos

DIYgod/RSSHub Raw error text: RepoResults6/DIYgod.RSSHub.rawError.txt in the artifact folder
Replay commands: RepoResults6/DIYgod.RSSHub.replay.txt in the artifact folder

Last few requests

```json {"seq":7785,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/lib/routes/huggingface/blog-zh.ts","line":34,"offset":9}} {"seq":7786,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/lib/routes/huggingface/blog-zh.ts","line":34,"offset":9,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":7787,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/lib/routes/huggingface/blog-zh.ts","line":34,"offset":9,"entryNames":["@abstract"]}} {"seq":7788,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/lib/routes/huggingface/blog-zh.ts","line":34,"offset":66,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/DIYgod/RSSHub --recurse-submodules git -C "./RSSHub" reset --hard 4cf8b284f2e7ce7f7d439fc1467ab799e30be29a pnpm --dir "./RSSHub" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults6&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults6.zip "$downloadUrl" unzip -p RepoResults6.zip RepoResults6/DIYgod.RSSHub.replay.txt > DIYgod.RSSHub.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./RSSHub ./DIYgod.RSSHub.replay.txt ```
typescript-bot commented 5 months ago

RangeError: Maximum call stack size exceeded

Req #6778 - completionInfo
    at forEachType (/typescript-5.5.0-dev.20240603/lib/typescript.js:72508:72)
    at getSiblingsOfContext (/typescript-5.5.0-dev.20240603/lib/typescript.js:70526:13)
    at getPropertiesOfContext (/typescript-5.5.0-dev.20240603/lib/typescript.js:70539:23)
    at getWidenedTypeOfObjectLiteral (/typescript-5.5.0-dev.20240603/lib/typescript.js:70580:26)
    at getWidenedTypeWithContext (/typescript-5.5.0-dev.20240603/lib/typescript.js:70606:18)
    at getWidenedProperty (/typescript-5.5.0-dev.20240603/lib/typescript.js:70561:21)
    at getWidenedTypeOfObjectLiteral (/typescript-5.5.0-dev.20240603/lib/typescript.js:70577:37)
    at getWidenedTypeWithContext (/typescript-5.5.0-dev.20240603/lib/typescript.js:70606:18)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:70615:94
    at sameMap (/typescript-5.5.0-dev.20240603/lib/typescript.js:2604:22)
    at getWidenedTypeWithContext (/typescript-5.5.0-dev.20240603/lib/typescript.js:70615:30)
    at getWidenedType (/typescript-5.5.0-dev.20240603/lib/typescript.js:70591:12)
    at getReturnTypeFromBody (/typescript-5.5.0-dev.20240603/lib/typescript.js:81095:36)
    at getReturnTypeOfSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:62543:426)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79969:24)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:78133:9
    at forEach (/typescript-5.5.0-dev.20240603/lib/typescript.js:2392:22)
    at resolveUntypedCall (/typescript-5.5.0-dev.20240603/lib/typescript.js:78132:7)
    at resolveCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79384:14)
    at resolveSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:79807:16)
    at getResolvedSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:79833:18)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79944:23)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at getTypeOfExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83054:18)
    at getAssignedTypeOfBinaryExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:72372:103)
    at getAssignedType (/typescript-5.5.0-dev.20240603/lib/typescript.js:72397:16)
    at getInitialOrAssignedType (/typescript-5.5.0-dev.20240603/lib/typescript.js:73026:120)
    at getTypeAtFlowAssignment (/typescript-5.5.0-dev.20240603/lib/typescript.js:73044:54)
    at getTypeAtFlowNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:72971:18)
    at getFlowTypeOfReference (/typescript-5.5.0-dev.20240603/lib/typescript.js:72934:45)
    at checkIdentifier (/typescript-5.5.0-dev.20240603/lib/typescript.js:74684:134)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83159:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkExpressionWithContextualType (/typescript-5.5.0-dev.20240603/lib/typescript.js:82763:18)
    at getSignatureApplicabilityError (/typescript-5.5.0-dev.20240603/lib/typescript.js:78593:25)
    at chooseOverload (/typescript-5.5.0-dev.20240603/lib/typescript.js:79130:13)
    at resolveCall (/typescript-5.5.0-dev.20240603/lib/typescript.js:78977:16)
    at resolveCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79414:12)
    at resolveSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:79807:16)
    at getResolvedSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:79833:18)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79944:23)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkExpressionCached (/typescript-5.5.0-dev.20240603/lib/typescript.js:82787:28)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:81262:20
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17722:16)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInBlock (/typescript-5.5.0-dev.20240603/lib/typescript.js:32206:10)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at visitNode2 (/typescript-5.5.0-dev.20240603/lib/typescript.js:31728:18)
    at forEachChildInIfStatement (/typescript-5.5.0-dev.20240603/lib/typescript.js:31961:51)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInBlock (/typescript-5.5.0-dev.20240603/lib/typescript.js:32206:10)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at forEachReturnStatement (/typescript-5.5.0-dev.20240603/lib/typescript.js:17718:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.5.0-dev.20240603/lib/typescript.js:81243:5)
    at getReturnTypeFromBody (/typescript-5.5.0-dev.20240603/lib/typescript.js:81056:21)
    at getReturnTypeOfSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:62543:426)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79969:24)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkConditionalExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:82714:19)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83239:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at getTypeOfExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83054:18)
    at getAssignedTypeOfBinaryExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:72372:103)
    at getAssignedType (/typescript-5.5.0-dev.20240603/lib/typescript.js:72397:16)
    at getInitialOrAssignedType (/typescript-5.5.0-dev.20240603/lib/typescript.js:73026:120)
    at getTypeAtFlowAssignment (/typescript-5.5.0-dev.20240603/lib/typescript.js:73044:54)
    at getTypeAtFlowNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:72971:18)
    at getTypeAtFlowLoopLabel (/typescript-5.5.0-dev.20240603/lib/typescript.js:73248:44)
    at getTypeAtFlowNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:72991:81)
    at getTypeAtFlowCondition (/typescript-5.5.0-dev.20240603/lib/typescript.js:73143:24)
    at getTypeAtFlowNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:72983:18)
    at getFlowTypeOfReference (/typescript-5.5.0-dev.20240603/lib/typescript.js:72934:45)
    at checkIdentifier (/typescript-5.5.0-dev.20240603/lib/typescript.js:74684:134)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83159:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkExpressionCached (/typescript-5.5.0-dev.20240603/lib/typescript.js:82787:28)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:81262:20
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17722:16)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInBlock (/typescript-5.5.0-dev.20240603/lib/typescript.js:32206:10)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at forEachReturnStatement (/typescript-5.5.0-dev.20240603/lib/typescript.js:17718:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.5.0-dev.20240603/lib/typescript.js:81243:5)
    at getReturnTypeFromBody (/typescript-5.5.0-dev.20240603/lib/typescript.js:81056:21)
    at getReturnTypeOfSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:62543:426)
    at getReturnTypeOfSingleNonGenericCallSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:83033:14)
    at getQuickTypeOfExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83084:94)
    at getTypeOfExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83043:23)
    at getAssignedTypeOfBinaryExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:72372:103)

Affected repos

mobxjs/mobx Raw error text: RepoResults8/mobxjs.mobx.rawError.txt in the artifact folder
Replay commands: RepoResults8/mobxjs.mobx.replay.txt in the artifact folder

Last few requests

```json {"seq":6775,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/docs/assets/getting-started-assets/javascripts/JSXTransformer.js","line":7777,"offset":90,"entryNames":["_dereq_"]}} {"seq":6776,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/docs/assets/getting-started-assets/javascripts/JSXTransformer.js","line":7782,"offset":39,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":6777,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/docs/assets/getting-started-assets/javascripts/JSXTransformer.js","line":7983,"offset":28}} {"seq":6778,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/docs/assets/getting-started-assets/javascripts/JSXTransformer.js","line":8083,"offset":1,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/mobxjs/mobx --recurse-submodules git -C "./mobx" reset --hard 44a5fe07fb95c2ba24d8df19f18b57ee92abb1a9 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults8&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults8.zip "$downloadUrl" unzip -p RepoResults8.zip RepoResults8/mobxjs.mobx.replay.txt > mobxjs.mobx.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./mobx ./mobxjs.mobx.replay.txt ```
typescript-bot commented 5 months ago

TypeError: Cannot read properties of undefined (reading 'kind')

Req #1992 - references
    at visitExistingNodeTreeSymbolsWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:56609:25)
    at visitExistingNodeTreeSymbols (/typescript-5.5.0-dev.20240603/lib/typescript.js:56304:24)
    at visitNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:92377:19)
    at visitEachChildOfMethodSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:92693:26)
    at visitEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:92625:33)
    at visitEachChild2 (/typescript-5.5.0-dev.20240603/lib/typescript.js:56676:18)
    at visitExistingNodeTreeSymbolsWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:56673:16)
    at visitExistingNodeTreeSymbols (/typescript-5.5.0-dev.20240603/lib/typescript.js:56304:24)
    at visitArrayWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:92439:49)
    at visitNodes2 (/typescript-5.5.0-dev.20240603/lib/typescript.js:92410:19)
    at visitNodesWithoutCopyingPositions (/typescript-5.5.0-dev.20240603/lib/typescript.js:56685:24)
    at visitEachChildOfTypeLiteralNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:92815:7)
    at visitEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:92625:33)
    at visitEachChild2 (/typescript-5.5.0-dev.20240603/lib/typescript.js:56676:18)
    at visitExistingNodeTreeSymbolsWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:56630:27)
    at visitExistingNodeTreeSymbols (/typescript-5.5.0-dev.20240603/lib/typescript.js:56304:24)
    at visitNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:92377:19)
    at tryReuseExistingTypeNodeHelper (/typescript-5.5.0-dev.20240603/lib/typescript.js:56294:27)
    at tryReuseExistingNonParameterTypeNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:54120:24)
    at tryReuseExistingTypeNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:54098:22)
    at serializeTypeForDeclaration (/typescript-5.5.0-dev.20240603/lib/typescript.js:56061:61)
    at symbolToParameterDeclaration (/typescript-5.5.0-dev.20240603/lib/typescript.js:55450:33)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:55186:216
    at signatureToSignatureDeclarationHelper (/typescript-5.5.0-dev.20240603/lib/typescript.js:55186:197)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:54034:163
    at withContext2 (/typescript-5.5.0-dev.20240603/lib/typescript.js:54170:29)
    at Object.signatureToSignatureDeclaration (/typescript-5.5.0-dev.20240603/lib/typescript.js:54034:99)
    at signatureToStringWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:53959:31)
    at signatureToString (/typescript-5.5.0-dev.20240603/lib/typescript.js:53951:21)
    at Object.writeSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:50098:14)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:137444:17
    at mapToDisplayParts (/typescript-5.5.0-dev.20240603/lib/typescript.js:137425:5)
    at signatureToDisplayParts (/typescript-5.5.0-dev.20240603/lib/typescript.js:137443:10)
    at addSignatureDisplayParts (/typescript-5.5.0-dev.20240603/lib/typescript.js:174039:28)
    at getSymbolDisplayPartsDocumentationAndSymbolKindWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:173662:13)
    at Object.getSymbolDisplayPartsDocumentationAndSymbolKind (/typescript-5.5.0-dev.20240603/lib/typescript.js:174065:10)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:149209:162
    at Object.runWithCancellationToken (/typescript-5.5.0-dev.20240603/lib/typescript.js:50327:16)
    at Object.getQuickInfoAtPosition (/typescript-5.5.0-dev.20240603/lib/typescript.js:149209:75)
    at IOSession.getReferences (/typescript-5.5.0-dev.20240603/lib/typescript.js:190446:58)
    at references (/typescript-5.5.0-dev.20240603/lib/typescript.js:188940:43)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:191478:69
    at IOSession.executeWithRequestId (/typescript-5.5.0-dev.20240603/lib/typescript.js:191470:14)
    at IOSession.executeCommand (/typescript-5.5.0-dev.20240603/lib/typescript.js:191478:29)
    at IOSession.onMessage (/typescript-5.5.0-dev.20240603/lib/typescript.js:191520:51)
    at Interface.<anonymous> (/typescript-5.5.0-dev.20240603/lib/tsserver.js:499:14)

Affected repos

apache/echarts Raw error text: RepoResults2/apache.echarts.rawError.txt in the artifact folder
Replay commands: RepoResults2/apache.echarts.replay.txt in the artifact folder

Last few requests

```json {"seq":1989,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/dist/echarts.simple.js","line":15803,"offset":12}} {"seq":1990,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/dist/echarts.simple.js","line":15886,"offset":46,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":1991,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/dist/echarts.simple.js","line":15886,"offset":46,"entryNames":["__extends"]}} {"seq":1992,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/dist/echarts.simple.js","line":15964,"offset":23}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/apache/echarts --recurse-submodules git -C "./echarts" reset --hard a4db0d4f7f87e73ac20a322ee586f9ac5e8618ba # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./echarts" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./echarts/theme" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./echarts/test" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./echarts/test/runTest" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./echarts/ssr/client/dist" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./echarts/i18n" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./echarts/dist" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./echarts/build" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults2.zip "$downloadUrl" unzip -p RepoResults2.zip RepoResults2/apache.echarts.replay.txt > apache.echarts.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./echarts ./apache.echarts.replay.txt ```
typescript-bot commented 5 months ago

Error: Debug Failure. False expression.

Req #5254 - organizeImports
    at Object.resetTokenState (/typescript-5.5.0-dev.20240603/lib/typescript.js:14607:11)
    at addSyntheticNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:148054:11)
    at createSyntaxList (/typescript-5.5.0-dev.20240603/lib/typescript.js:148082:3)
    at processNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:148043:19)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31733:14)
    at forEachChildInMappedType (/typescript-5.5.0-dev.20240603/lib/typescript.js:31871:208)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at NodeObject.forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:148023:12)
    at createChildren (/typescript-5.5.0-dev.20240603/lib/typescript.js:148048:8)
    at NodeObject.getChildren (/typescript-5.5.0-dev.20240603/lib/typescript.js:148002:59)
    at getTokenAtPositionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:136380:32)
    at getTouchingToken (/typescript-5.5.0-dev.20240603/lib/typescript.js:136353:10)
    at getTouchingPropertyName (/typescript-5.5.0-dev.20240603/lib/typescript.js:136350:10)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:168827:33
    at mapDefined (/typescript-5.5.0-dev.20240603/lib/typescript.js:2704:22)
    at getPossibleSymbolReferenceNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:168826:12)
    at eachSymbolReferenceInFile (/typescript-5.5.0-dev.20240603/lib/typescript.js:168773:25)
    at Object.isSymbolReferencedInFile (/typescript-5.5.0-dev.20240603/lib/typescript.js:168767:12)
    at isDeclarationUsed (/typescript-5.5.0-dev.20240603/lib/typescript.js:171745:221)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:171720:66
    at removeUnusedImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:171720:52)
    at processImportsOfSameModuleSpecifier (/typescript-5.5.0-dev.20240603/lib/typescript.js:171608:39)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:171576:175
    at flatMap (/typescript-5.5.0-dev.20240603/lib/typescript.js:2634:17)
    at organizeDeclsWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:171576:28)
    at organizeImportsWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:171613:5)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:171555:57
    at Object.organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:171555:28)
    at Object.organizeImports2 [as organizeImports] (/typescript-5.5.0-dev.20240603/lib/typescript.js:149495:39)
    at IOSession.organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:191127:50)
    at organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:189312:43)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:191478:69
    at IOSession.executeWithRequestId (/typescript-5.5.0-dev.20240603/lib/typescript.js:191470:14)
    at IOSession.executeCommand (/typescript-5.5.0-dev.20240603/lib/typescript.js:191478:29)
    at IOSession.onMessage (/typescript-5.5.0-dev.20240603/lib/typescript.js:191520:51)
    at Interface.<anonymous> (/typescript-5.5.0-dev.20240603/lib/tsserver.js:499:14)

Affected repos

pnpm/pnpm Raw error text: RepoResults7/pnpm.pnpm.rawError.txt in the artifact folder
Replay commands: RepoResults7/pnpm.pnpm.replay.txt in the artifact folder

Last few requests

```json {"seq":5251,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/reviewing/dependencies-hierarchy/src/index.ts"],"openFiles":[]}} {"seq":5252,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/reviewing/dependencies-hierarchy/src/buildDependenciesHierarchy.ts","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":5253,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/reviewing/dependencies-hierarchy/src/buildDependenciesHierarchy.ts"}},"skipDestructiveCodeActions":true}} {"seq":5254,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/reviewing/dependencies-hierarchy/src/buildDependenciesHierarchy.ts"}},"skipDestructiveCodeActions":false}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/pnpm/pnpm --recurse-submodules git -C "./pnpm" reset --hard b3a2f9c95a381422068d2e81e1708c0bd739e5a4 # Install packages (exact steps are below, but it might be easier to follow the repo readme) pnpm --dir "./pnpm" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/workspace/spec-parser" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/workspace/sort-packages" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/workspace/resolve-workspace-range" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/workspace/read-manifest" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/workspace/pkgs-graph" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/workspace/find-workspace-dir" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/workspace/find-packages" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/workspace/filter-workspace-packages" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/worker" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/text/comments-parser" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/store/store-path" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/store/store-controller-types" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/store/store-connection-manager" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/store/server" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/store/plugin-commands-store-inspecting" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/store/plugin-commands-store" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/store/plugin-commands-server" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/store/package-store" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/store/create-cafs-store" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/store/cafs-types" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/store/cafs" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/reviewing/plugin-commands-outdated" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/reviewing/plugin-commands-listing" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/reviewing/plugin-commands-licenses" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/reviewing/outdated" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/reviewing/list" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/reviewing/list/example" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/reviewing/license-scanner" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/reviewing/dependencies-hierarchy" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/reviewing/dependencies-hierarchy/example" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/resolving/tarball-resolver" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/resolving/resolver-base" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/resolving/npm-resolver" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/resolving/local-resolver" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/resolving/local-resolver/example-package" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/resolving/git-resolver" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/resolving/default-resolver" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/releasing/plugin-commands-publishing" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/releasing/plugin-commands-deploy" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pnpm" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pnpm/dev" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pnpm/artifacts/win-x64" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pnpm/artifacts/macos-x64" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pnpm/artifacts/macos-arm64" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pnpm/artifacts/linux-x64" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pnpm/artifacts/linux-arm64" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pnpm/artifacts/exe" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manifest/write-project-manifest" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manifest/read-project-manifest" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manifest/read-package-json" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manifest/manifest-utils" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manifest/exportable-manifest" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/resolve-dependencies" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/remove-bins" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/real-hoist" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/read-projects-context" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/plugin-commands-installation" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/package-requester" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/package-bins" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/modules-yaml" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/modules-cleaner" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/link-bins" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/hoist" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/headless" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/get-context" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/direct-dep-linker" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/core" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/pkg-manager/client" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/patching/plugin-commands-patching" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/patching/apply-patch" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/which-version-is-pinned" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/types" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/render-peer-issues" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/plugin-commands-setup" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/plugin-commands-init" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/plugin-commands-doctor" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/parse-wanted-dependency" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/make-dedicated-lockfile" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/git-utils" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/error" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/dependency-path" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/crypto.base32-hash" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/core-loggers" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/constants" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/packages/calc-dep-state" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/network/fetching-types" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/network/fetch" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/network/auth-header" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/modules-mounter/daemon" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/lockfile/prune-lockfile" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/lockfile/preferred-versions" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/lockfile/plugin-commands-audit" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/lockfile/merge-lockfile-changes" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/lockfile/lockfile-walker" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/lockfile/lockfile-utils" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/lockfile/lockfile-types" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/lockfile/lockfile-to-pnp" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/lockfile/lockfile-file" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/lockfile/filter-lockfile" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/lockfile/detect-dep-types" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/lockfile/audit" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/hooks/types" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/hooks/read-package-hook" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/hooks/pnpmfile" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fs/symlink-dependency" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fs/read-modules-dir" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fs/packlist" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fs/is-empty-dir-or-nothing" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fs/indexed-pkg-importer" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fs/hard-link-dir" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fs/graceful-fs" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fs/find-packages" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fetching/tarball-fetcher" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fetching/pick-fetcher" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fetching/git-fetcher" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fetching/fetcher-base" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/fetching/directory-fetcher" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/exec/run-npm" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/exec/prepare-package" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/exec/plugin-commands-script-runners" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/exec/plugin-commands-rebuild" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/exec/pkg-requires-build" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/exec/lifecycle" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/exec/build-modules" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/env/plugin-commands-env" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/env/node.resolver" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/env/node.fetcher" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/deps/graph-sequencer" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/deps/graph-builder" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/dedupe/types" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/dedupe/issues-renderer" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/dedupe/check" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/crypto/object-hasher" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/config/plugin-commands-config" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/config/pick-registry-for-package" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/config/parse-overrides" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/config/package-is-installable" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/config/normalize-registries" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/config/matcher" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/config/config" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/completion/plugin-commands-completion" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/cli/parse-cli-args" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/cli/default-reporter" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/cli/common-cli-options-help" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/cli/command" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/cli/cli-utils" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/cli/cli-meta" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/__utils__/tsconfig" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/__utils__/test-ipc-server" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/__utils__/scripts" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/__utils__/prepare" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/__utils__/get-release-text" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/__utils__/eslint-config" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/__utils__/build-artifacts" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/__utils__/assert-store" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/__utils__/assert-project" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./pnpm/__typings__" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults7&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults7.zip "$downloadUrl" unzip -p RepoResults7.zip RepoResults7/pnpm.pnpm.replay.txt > pnpm.pnpm.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./pnpm ./pnpm.pnpm.replay.txt ```
typescript-bot commented 5 months ago

Error: Debug Failure. False expression.

Req #3019 - organizeImports
    at Object.resetTokenState (/typescript-5.5.0-dev.20240603/lib/typescript.js:14607:11)
    at addSyntheticNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:148054:11)
    at createSyntaxList (/typescript-5.5.0-dev.20240603/lib/typescript.js:148082:3)
    at processNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:148043:19)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31733:14)
    at forEachChildInMappedType (/typescript-5.5.0-dev.20240603/lib/typescript.js:31871:208)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at NodeObject.forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:148023:12)
    at createChildren (/typescript-5.5.0-dev.20240603/lib/typescript.js:148048:8)
    at NodeObject.getChildren (/typescript-5.5.0-dev.20240603/lib/typescript.js:148002:59)
    at getTokenAtPositionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:136380:32)
    at getTouchingToken (/typescript-5.5.0-dev.20240603/lib/typescript.js:136353:10)
    at getTouchingPropertyName (/typescript-5.5.0-dev.20240603/lib/typescript.js:136350:10)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:168827:33
    at mapDefined (/typescript-5.5.0-dev.20240603/lib/typescript.js:2704:22)
    at getPossibleSymbolReferenceNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:168826:12)
    at eachSymbolReferenceInFile (/typescript-5.5.0-dev.20240603/lib/typescript.js:168773:25)
    at Object.isSymbolReferencedInFile (/typescript-5.5.0-dev.20240603/lib/typescript.js:168767:12)
    at isDeclarationUsed (/typescript-5.5.0-dev.20240603/lib/typescript.js:171745:221)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:171720:66
    at removeUnusedImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:171720:52)
    at processImportsOfSameModuleSpecifier (/typescript-5.5.0-dev.20240603/lib/typescript.js:171608:39)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:171576:175
    at flatMap (/typescript-5.5.0-dev.20240603/lib/typescript.js:2634:17)
    at organizeDeclsWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:171576:28)
    at organizeImportsWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:171613:5)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:171555:57
    at Object.organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:171555:28)
    at Object.organizeImports2 [as organizeImports] (/typescript-5.5.0-dev.20240603/lib/typescript.js:149495:39)
    at IOSession.organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:191127:50)
    at organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:189312:43)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:191478:69
    at IOSession.executeWithRequestId (/typescript-5.5.0-dev.20240603/lib/typescript.js:191470:14)
    at IOSession.executeCommand (/typescript-5.5.0-dev.20240603/lib/typescript.js:191478:29)
    at IOSession.onMessage (/typescript-5.5.0-dev.20240603/lib/typescript.js:191520:51)
    at Interface.<anonymous> (/typescript-5.5.0-dev.20240603/lib/tsserver.js:499:14)

Affected repos

tldraw/tldraw Raw error text: RepoResults5/tldraw.tldraw.rawError.txt in the artifact folder
Replay commands: RepoResults5/tldraw.tldraw.replay.txt in the artifact folder

Last few requests

```json {"seq":3016,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/tlschema/src/shapes/TLArrowShape.ts","line":112,"offset":24}} {"seq":3017,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/packages/tlschema/src/shapes/TLEmbedShape.ts"],"openFiles":[]}} {"seq":3018,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/packages/tlschema/src/records/TLShape.ts","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":3019,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/packages/tlschema/src/records/TLShape.ts"}},"skipDestructiveCodeActions":false}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/tldraw/tldraw --recurse-submodules git -C "./tldraw" reset --hard 19d051c188381e54d7f8a1fd90a2ccd247419909 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults5&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults5.zip "$downloadUrl" unzip -p RepoResults5.zip RepoResults5/tldraw.tldraw.replay.txt > tldraw.tldraw.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./tldraw ./tldraw.tldraw.replay.txt ```
typescript-bot commented 5 months ago

Error: Debug Failure.

Req #2281 - completionInfo
    at Object.addImportFromExportedSymbol (/typescript-5.5.0-dev.20240603/lib/typescript.js:154231:13)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:161316:38
    at importSymbols (/typescript-5.5.0-dev.20240603/lib/typescript.js:161316:11)
    at Object.addNewNodeForMemberSymbol (/typescript-5.5.0-dev.20240603/lib/typescript.js:160763:11)
    at getEntryForMemberCompletion (/typescript-5.5.0-dev.20240603/lib/typescript.js:163504:22)
    at createCompletionEntry (/typescript-5.5.0-dev.20240603/lib/typescript.js:163376:35)
    at getCompletionEntriesFromSymbols (/typescript-5.5.0-dev.20240603/lib/typescript.js:163980:19)
    at completionInfoFromData (/typescript-5.5.0-dev.20240603/lib/typescript.js:163027:23)
    at Object.getCompletionsAtPosition (/typescript-5.5.0-dev.20240603/lib/typescript.js:162571:24)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.0-dev.20240603/lib/typescript.js:149155:35)
    at IOSession.getCompletions (/typescript-5.5.0-dev.20240603/lib/typescript.js:190680:54)
    at completionInfo (/typescript-5.5.0-dev.20240603/lib/typescript.js:189059:43)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:191478:69
    at IOSession.executeWithRequestId (/typescript-5.5.0-dev.20240603/lib/typescript.js:191470:14)
    at IOSession.executeCommand (/typescript-5.5.0-dev.20240603/lib/typescript.js:191478:29)
    at IOSession.onMessage (/typescript-5.5.0-dev.20240603/lib/typescript.js:191520:51)
    at Interface.<anonymous> (/typescript-5.5.0-dev.20240603/lib/tsserver.js:499:14)

Affected repos

Eugeny/tabby Raw error text: RepoResults2/Eugeny.tabby.rawError.txt in the artifact folder
Replay commands: RepoResults2/Eugeny.tabby.replay.txt in the artifact folder

Last few requests

```json {"seq":2278,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/tabby-terminal/src/middleware/utf8Splitter.ts"}} {"seq":2279,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/tabby-terminal/src/middleware/utf8Splitter.ts"}} {"seq":2280,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/tabby-terminal/src/middleware/utf8Splitter.ts"}} {"seq":2281,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/tabby-terminal/src/middleware/utf8Splitter.ts","line":9,"offset":1,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/Eugeny/tabby --recurse-submodules git -C "./tabby" reset --hard c681902929330b58dd1c3d19ec16e76ecf028390 # Install packages (exact steps are below, but it might be easier to follow the repo readme) yarn --cwd "./tabby" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/web" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-web-demo" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-web" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-terminal" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-telnet" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-ssh" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-settings" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-serial" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-plugin-manager" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-local" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-linkifier" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-electron" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-core" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/tabby-community-color-schemes" install --ignore-engines --ignore-scripts --silent yarn --cwd "./tabby/app" install --ignore-engines --ignore-scripts --silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults2.zip "$downloadUrl" unzip -p RepoResults2.zip RepoResults2/Eugeny.tabby.replay.txt > Eugeny.tabby.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./tabby ./Eugeny.tabby.replay.txt ```
typescript-bot commented 5 months ago

Error: Debug Failure. Expected 1 < 1.

Req #23996 - completionInfo
    at getArgumentOrParameterListInfo (/typescript-5.5.0-dev.20240603/lib/typescript.js:172826:11)
    at getImmediatelyContainingArgumentInfo (/typescript-5.5.0-dev.20240603/lib/typescript.js:172843:18)
    at Object.getArgumentInfoForCompletions (/typescript-5.5.0-dev.20240603/lib/typescript.js:172817:16)
    at getContextualType (/typescript-5.5.0-dev.20240603/lib/typescript.js:164364:48)
    at getCompletionData (/typescript-5.5.0-dev.20240603/lib/typescript.js:164602:43)
    at Object.getCompletionsAtPosition (/typescript-5.5.0-dev.20240603/lib/typescript.js:162553:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.0-dev.20240603/lib/typescript.js:149155:35)
    at IOSession.getCompletions (/typescript-5.5.0-dev.20240603/lib/typescript.js:190680:54)
    at completionInfo (/typescript-5.5.0-dev.20240603/lib/typescript.js:189059:43)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:191478:69
    at IOSession.executeWithRequestId (/typescript-5.5.0-dev.20240603/lib/typescript.js:191470:14)
    at IOSession.executeCommand (/typescript-5.5.0-dev.20240603/lib/typescript.js:191478:29)
    at IOSession.onMessage (/typescript-5.5.0-dev.20240603/lib/typescript.js:191520:51)
    at Interface.<anonymous> (/typescript-5.5.0-dev.20240603/lib/tsserver.js:499:14)

Affected repos

nocodb/nocodb Raw error text: RepoResults3/nocodb.nocodb.rawError.txt in the artifact folder
Replay commands: RepoResults3/nocodb.nocodb.replay.txt in the artifact folder

Last few requests

```json {"seq":23993,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/nocodb/src/db/sql-client/lib/KnexClient.ts","line":1173,"offset":6,"entryNames":["@abstract"]}} {"seq":23994,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/nocodb/src/db/sql-client/lib/KnexClient.ts","line":1174,"offset":6}} {"seq":23995,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/nocodb/src/db/sql-client/lib/KnexClient.ts","line":1175,"offset":6}} {"seq":23996,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/nocodb/src/db/sql-client/lib/KnexClient.ts","line":1215,"offset":55,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/nocodb/nocodb --recurse-submodules git -C "./nocodb" reset --hard ba5a16381b9c8e3c0383636f96332ac2165a59b5 # Install packages (exact steps are below, but it might be easier to follow the repo readme) pnpm --dir "./nocodb" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./nocodb/scripts/pkg-executable" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./nocodb/packages/noco-docs" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./nocodb/packages/nc-plugin" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./nocodb/packages/nc-lib-gui" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./nocodb/packages/nc-cli" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults3&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults3.zip "$downloadUrl" unzip -p RepoResults3.zip RepoResults3/nocodb.nocodb.replay.txt > nocodb.nocodb.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./nocodb ./nocodb.nocodb.replay.txt ```
typescript-bot commented 5 months ago

Error: Debug Failure. Expected 1 < 1.

Req #1366 - completionInfo
    at getArgumentOrParameterListInfo (/typescript-5.5.0-dev.20240603/lib/typescript.js:172826:11)
    at getImmediatelyContainingArgumentInfo (/typescript-5.5.0-dev.20240603/lib/typescript.js:172843:18)
    at Object.getArgumentInfoForCompletions (/typescript-5.5.0-dev.20240603/lib/typescript.js:172817:16)
    at getContextualType (/typescript-5.5.0-dev.20240603/lib/typescript.js:164364:48)
    at getCompletionData (/typescript-5.5.0-dev.20240603/lib/typescript.js:164602:43)
    at Object.getCompletionsAtPosition (/typescript-5.5.0-dev.20240603/lib/typescript.js:162553:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.0-dev.20240603/lib/typescript.js:149155:35)
    at IOSession.getCompletions (/typescript-5.5.0-dev.20240603/lib/typescript.js:190680:54)
    at completionInfo (/typescript-5.5.0-dev.20240603/lib/typescript.js:189059:43)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:191478:69
    at IOSession.executeWithRequestId (/typescript-5.5.0-dev.20240603/lib/typescript.js:191470:14)
    at IOSession.executeCommand (/typescript-5.5.0-dev.20240603/lib/typescript.js:191478:29)
    at IOSession.onMessage (/typescript-5.5.0-dev.20240603/lib/typescript.js:191520:51)
    at Interface.<anonymous> (/typescript-5.5.0-dev.20240603/lib/tsserver.js:499:14)

Affected repos

microsoft/playwright Raw error text: RepoResults2/microsoft.playwright.rawError.txt in the artifact folder
Replay commands: RepoResults2/microsoft.playwright.replay.txt in the artifact folder

Last few requests

```json {"seq":1363,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/utils/build/build.js","line":69,"offset":4,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":1364,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/utils/build/build.js","line":69,"offset":4,"entryNames":["@abstract"]}} {"seq":1365,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/utils/build/build.js","line":70,"offset":4}} {"seq":1366,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/utils/build/build.js","line":73,"offset":26,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/microsoft/playwright --recurse-submodules git -C "./playwright" reset --hard c912621d1026d1b473af4f9242e8078f2ee303d4 # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./playwright" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/utils/flakiness-dashboard" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/utils/eslint-plugin-internal-playwright" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/tests/playwright-test/stable-test-runner" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/tests/installation/playwright-test-plugin" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/tests/electron" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/tests/components/ct-vue2-cli" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/tests/components/ct-vue-vite" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/tests/components/ct-vue-cli" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/tests/components/ct-svelte-vite" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/tests/components/ct-svelte" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/tests/components/ct-solid" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/tests/components/ct-react17" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/tests/components/ct-react-vite" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/examples/todomvc" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/examples/svgomg" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/examples/mock-filesystem" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/examples/mock-battery" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./playwright/examples/github-api" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults2.zip "$downloadUrl" unzip -p RepoResults2.zip RepoResults2/microsoft.playwright.replay.txt > microsoft.playwright.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./playwright ./microsoft.playwright.replay.txt ```
typescript-bot commented 5 months ago

Error: Debug Failure. False expression.

Req #2561 - organizeImports
    at Object.resetTokenState (/typescript-5.5.0-dev.20240603/lib/typescript.js:14607:11)
    at addSyntheticNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:148054:11)
    at createSyntaxList (/typescript-5.5.0-dev.20240603/lib/typescript.js:148082:3)
    at processNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:148043:19)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31733:14)
    at forEachChildInFunctionType (/typescript-5.5.0-dev.20240603/lib/typescript.js:31802:111)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at NodeObject.forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:148023:12)
    at createChildren (/typescript-5.5.0-dev.20240603/lib/typescript.js:148048:8)
    at NodeObject.getChildren (/typescript-5.5.0-dev.20240603/lib/typescript.js:148002:59)
    at getTokenAtPositionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:136380:32)
    at getTouchingToken (/typescript-5.5.0-dev.20240603/lib/typescript.js:136353:10)
    at getTouchingPropertyName (/typescript-5.5.0-dev.20240603/lib/typescript.js:136350:10)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:168827:33
    at mapDefined (/typescript-5.5.0-dev.20240603/lib/typescript.js:2704:22)
    at getPossibleSymbolReferenceNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:168826:12)
    at eachSymbolReferenceInFile (/typescript-5.5.0-dev.20240603/lib/typescript.js:168773:25)
    at Object.isSymbolReferencedInFile (/typescript-5.5.0-dev.20240603/lib/typescript.js:168767:12)
    at isDeclarationUsed (/typescript-5.5.0-dev.20240603/lib/typescript.js:171745:221)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:171720:66
    at removeUnusedImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:171720:52)
    at processImportsOfSameModuleSpecifier (/typescript-5.5.0-dev.20240603/lib/typescript.js:171608:39)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:171576:175
    at flatMap (/typescript-5.5.0-dev.20240603/lib/typescript.js:2634:17)
    at organizeDeclsWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:171576:28)
    at organizeImportsWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:171613:5)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:171555:57
    at Object.organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:171555:28)
    at Object.organizeImports2 [as organizeImports] (/typescript-5.5.0-dev.20240603/lib/typescript.js:149495:39)
    at IOSession.organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:191127:50)
    at organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:189312:43)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:191478:69
    at IOSession.executeWithRequestId (/typescript-5.5.0-dev.20240603/lib/typescript.js:191470:14)
    at IOSession.executeCommand (/typescript-5.5.0-dev.20240603/lib/typescript.js:191478:29)
    at IOSession.onMessage (/typescript-5.5.0-dev.20240603/lib/typescript.js:191520:51)
    at Interface.<anonymous> (/typescript-5.5.0-dev.20240603/lib/tsserver.js:499:14)

Affected repos

spacedriveapp/spacedrive Raw error text: RepoResults7/spacedriveapp.spacedrive.rawError.txt in the artifact folder
Replay commands: RepoResults7/spacedriveapp.spacedrive.replay.txt in the artifact folder

Last few requests

```json {"seq":2558,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/packages/client/src/solid/react.tsx"],"openFiles":[]}} {"seq":2559,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/packages/client/src/solid/context.tsx","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":2560,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/packages/client/src/solid/context.tsx"}},"skipDestructiveCodeActions":true}} {"seq":2561,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/packages/client/src/solid/context.tsx"}},"skipDestructiveCodeActions":false}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/spacedriveapp/spacedrive --recurse-submodules git -C "./spacedrive" reset --hard 03ede58530a5c3832fb05ba1d18c3481fc47cb50 # Install packages (exact steps are below, but it might be easier to follow the repo readme) pnpm --dir "./spacedrive" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./spacedrive/crates/sync/example/web" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults7&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults7.zip "$downloadUrl" unzip -p RepoResults7.zip RepoResults7/spacedriveapp.spacedrive.replay.txt > spacedriveapp.spacedrive.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./spacedrive ./spacedriveapp.spacedrive.replay.txt ```
typescript-bot commented 5 months ago

Error: Debug Failure. False expression.

Req #18788 - organizeImports
    at Object.resetTokenState (/typescript-5.5.0-dev.20240603/lib/typescript.js:14607:11)
    at addSyntheticNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:148054:11)
    at createSyntaxList (/typescript-5.5.0-dev.20240603/lib/typescript.js:148082:3)
    at processNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:148043:19)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31733:14)
    at forEachChildInFunctionType (/typescript-5.5.0-dev.20240603/lib/typescript.js:31802:111)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at NodeObject.forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:148023:12)
    at createChildren (/typescript-5.5.0-dev.20240603/lib/typescript.js:148048:8)
    at NodeObject.getChildren (/typescript-5.5.0-dev.20240603/lib/typescript.js:148002:59)
    at getTokenAtPositionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:136380:32)
    at getTouchingToken (/typescript-5.5.0-dev.20240603/lib/typescript.js:136353:10)
    at getTouchingPropertyName (/typescript-5.5.0-dev.20240603/lib/typescript.js:136350:10)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:168827:33
    at mapDefined (/typescript-5.5.0-dev.20240603/lib/typescript.js:2704:22)
    at getPossibleSymbolReferenceNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:168826:12)
    at eachSymbolReferenceInFile (/typescript-5.5.0-dev.20240603/lib/typescript.js:168773:25)
    at Object.isSymbolReferencedInFile (/typescript-5.5.0-dev.20240603/lib/typescript.js:168767:12)
    at isDeclarationUsed (/typescript-5.5.0-dev.20240603/lib/typescript.js:171745:221)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:171720:66
    at removeUnusedImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:171720:52)
    at processImportsOfSameModuleSpecifier (/typescript-5.5.0-dev.20240603/lib/typescript.js:171608:39)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:171576:175
    at flatMap (/typescript-5.5.0-dev.20240603/lib/typescript.js:2634:17)
    at organizeDeclsWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:171576:28)
    at organizeImportsWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:171613:5)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:171555:57
    at Object.organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:171555:28)
    at Object.organizeImports2 [as organizeImports] (/typescript-5.5.0-dev.20240603/lib/typescript.js:149495:39)
    at IOSession.organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:191127:50)
    at organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:189312:43)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:191478:69
    at IOSession.executeWithRequestId (/typescript-5.5.0-dev.20240603/lib/typescript.js:191470:14)
    at IOSession.executeCommand (/typescript-5.5.0-dev.20240603/lib/typescript.js:191478:29)
    at IOSession.onMessage (/typescript-5.5.0-dev.20240603/lib/typescript.js:191520:51)
    at Interface.<anonymous> (/typescript-5.5.0-dev.20240603/lib/tsserver.js:499:14)

Affected repos

vercel/hyper Raw error text: RepoResults4/vercel.hyper.rawError.txt in the artifact folder
Replay commands: RepoResults4/vercel.hyper.replay.txt in the artifact folder

Last few requests

```json {"seq":18785,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/lib/actions/term-groups.ts","line":159,"offset":18,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}} {"seq":18786,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/lib/components/new-tab.tsx"],"openFiles":[]}} {"seq":18787,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/lib/actions/sessions.ts","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":18788,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/lib/actions/sessions.ts"}},"skipDestructiveCodeActions":false}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/vercel/hyper --recurse-submodules git -C "./hyper" reset --hard 2a7bb18259d975f27b30b502af1be7576f6f5656 # Install packages (exact steps are below, but it might be easier to follow the repo readme) yarn --cwd "./hyper" install --ignore-engines --ignore-scripts --silent yarn --cwd "./hyper/app" install --ignore-engines --ignore-scripts --silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults4&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults4.zip "$downloadUrl" unzip -p RepoResults4.zip RepoResults4/vercel.hyper.replay.txt > vercel.hyper.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./hyper ./vercel.hyper.replay.txt ```
typescript-bot commented 5 months ago

RangeError: Maximum call stack size exceeded

Req #16292 - references
    at getJSDocParameterTags (/typescript-5.5.0-dev.20240603/lib/typescript.js:15108:31)
    at isJSDocOptionalParameter (/typescript-5.5.0-dev.20240603/lib/typescript.js:22968:67)
    at isOptionalDeclaration (/typescript-5.5.0-dev.20240603/lib/typescript.js:22976:45)
    at getTypeOfParameter (/typescript-5.5.0-dev.20240603/lib/typescript.js:80427:56)
    at tryGetTypeAtPosition (/typescript-5.5.0-dev.20240603/lib/typescript.js:80515:14)
    at getTypeAtPosition (/typescript-5.5.0-dev.20240603/lib/typescript.js:80510:12)
    at getSignatureApplicabilityError (/typescript-5.5.0-dev.20240603/lib/typescript.js:78592:27)
    at chooseOverload (/typescript-5.5.0-dev.20240603/lib/typescript.js:79130:13)
    at resolveCall (/typescript-5.5.0-dev.20240603/lib/typescript.js:78977:16)
    at resolveCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79414:12)
    at resolveSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:79807:16)
    at getResolvedSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:79833:18)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79944:23)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at maybeCheckExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:82202:28)
    at BinaryExpressionStateMachine.onLeft (/typescript-5.5.0-dev.20240603/lib/typescript.js:82138:16)
    at Array.left (/typescript-5.5.0-dev.20240603/lib/typescript.js:31403:30)
    at trampoline (/typescript-5.5.0-dev.20240603/lib/typescript.js:31507:42)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:82096:22
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83237:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkExpressionCached (/typescript-5.5.0-dev.20240603/lib/typescript.js:82787:28)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:81262:20
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17722:16)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInBlock (/typescript-5.5.0-dev.20240603/lib/typescript.js:32206:10)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at forEachReturnStatement (/typescript-5.5.0-dev.20240603/lib/typescript.js:17718:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.5.0-dev.20240603/lib/typescript.js:81243:5)
    at getReturnTypeFromBody (/typescript-5.5.0-dev.20240603/lib/typescript.js:81056:21)
    at getReturnTypeOfSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:62543:426)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79969:24)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at maybeCheckExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:82202:28)
    at BinaryExpressionStateMachine.onRight (/typescript-5.5.0-dev.20240603/lib/typescript.js:82166:16)
    at Array.right (/typescript-5.5.0-dev.20240603/lib/typescript.js:31423:30)
    at trampoline (/typescript-5.5.0-dev.20240603/lib/typescript.js:31507:42)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:82096:22
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83237:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkParenthesizedExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83145:12)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83207:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkPrefixUnaryExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:81715:25)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83233:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkPrefixUnaryExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:81715:25)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83233:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkExpressionCached (/typescript-5.5.0-dev.20240603/lib/typescript.js:82787:28)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:81262:20
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17722:16)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInBlock (/typescript-5.5.0-dev.20240603/lib/typescript.js:32206:10)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at forEachReturnStatement (/typescript-5.5.0-dev.20240603/lib/typescript.js:17718:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.5.0-dev.20240603/lib/typescript.js:81243:5)
    at getReturnTypeFromBody (/typescript-5.5.0-dev.20240603/lib/typescript.js:81056:21)
    at getReturnTypeOfSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:62543:426)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79969:24)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at maybeCheckExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:82202:28)
    at BinaryExpressionStateMachine.onRight (/typescript-5.5.0-dev.20240603/lib/typescript.js:82166:16)
    at Array.right (/typescript-5.5.0-dev.20240603/lib/typescript.js:31423:30)
    at trampoline (/typescript-5.5.0-dev.20240603/lib/typescript.js:31507:42)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:82096:22
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83237:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkParenthesizedExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83145:12)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83207:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkPrefixUnaryExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:81715:25)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83233:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkPrefixUnaryExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:81715:25)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83233:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkExpressionCached (/typescript-5.5.0-dev.20240603/lib/typescript.js:82787:28)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:81262:20
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17722:16)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInBlock (/typescript-5.5.0-dev.20240603/lib/typescript.js:32206:10)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at traverse (/typescript-5.5.0-dev.20240603/lib/typescript.js:17738:16)
    at forEachReturnStatement (/typescript-5.5.0-dev.20240603/lib/typescript.js:17718:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.5.0-dev.20240603/lib/typescript.js:81243:5)
    at getReturnTypeFromBody (/typescript-5.5.0-dev.20240603/lib/typescript.js:81056:21)
    at getReturnTypeOfSignature (/typescript-5.5.0-dev.20240603/lib/typescript.js:62543:426)
    at checkCallExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:79969:24)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83203:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)
    at checkTruthinessExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:85794:34)
    at checkConditionalExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:82711:18)
    at checkExpressionWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:83239:16)
    at checkExpression (/typescript-5.5.0-dev.20240603/lib/typescript.js:83113:32)

Affected repos

angular/angular-cli Raw error text: RepoResults8/angular.angular-cli.rawError.txt in the artifact folder
Replay commands: RepoResults8/angular.angular-cli.replay.txt in the artifact folder

Last few requests

```json {"seq":16289,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js","line":10340,"offset":113,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":16290,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js","line":10347,"offset":47}} {"seq":16291,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js","line":10349,"offset":252,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":16292,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js","line":10350,"offset":3}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/angular/angular-cli --recurse-submodules git -C "./angular-cli" reset --hard 2e9fe6a22aabf84b846b244b8861dbb39ff73005 # Install packages (exact steps are below, but it might be easier to follow the repo readme) yarn --cwd "./angular-cli" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/schematics/update/packages/update-peer-dependencies-angular-5-2" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/schematics/update/packages/update-peer-dependencies-angular-5" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/schematics/update/packages/update-peer-dependencies-2" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/schematics/update/packages/update-peer-dependencies-1" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/schematics/update/packages/update-package-group-2" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/schematics/update/packages/update-package-group-1" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/schematics/update/packages/update-migrations-external" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/schematics/update/packages/update-migrations" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/schematics/update/packages/update-base" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/legacy-cli/e2e/ng-snapshot" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/legacy-cli/e2e/assets/schematic-boolean-option-negated" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/legacy-cli/e2e/assets/schematic-allow-scripts" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/legacy-cli/e2e/assets/nested-schematic-main" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/legacy-cli/e2e/assets/nested-schematic-dependency" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/legacy-cli/e2e/assets/add-collection-peer-good" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/legacy-cli/e2e/assets/add-collection-peer-bad" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/legacy-cli/e2e/assets/add-collection" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/legacy-cli/e2e/assets/18-ssr-project-webpack" install --ignore-engines --ignore-scripts --silent yarn --cwd "./angular-cli/tests/legacy-cli/e2e/assets/15.0-project" install --ignore-engines --ignore-scripts --silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults8&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults8.zip "$downloadUrl" unzip -p RepoResults8.zip RepoResults8/angular.angular-cli.replay.txt > angular.angular-cli.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./angular-cli ./angular.angular-cli.replay.txt ```
typescript-bot commented 5 months ago

Error: start < 0

Req #740 - references
    at createTextSpan (/typescript-5.5.0-dev.20240603/lib/typescript.js:14737:11)
    at createTextSpanFromBounds (/typescript-5.5.0-dev.20240603/lib/typescript.js:14745:10)
    at getErrorSpanForNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:17552:10)
    at createDiagnosticForNodeFromMessageChain (/typescript-5.5.0-dev.20240603/lib/typescript.js:17362:16)
    at resolveExternalModule (/typescript-5.5.0-dev.20240603/lib/typescript.js:52895:31)
    at resolveExternalModuleNameWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:52789:61)
    at resolveExternalModuleName (/typescript-5.5.0-dev.20240603/lib/typescript.js:52786:12)
    at getSymbolAtLocation (/typescript-5.5.0-dev.20240603/lib/typescript.js:89361:18)
    at Object.getSymbolAtLocation (/typescript-5.5.0-dev.20240603/lib/typescript.js:50052:21)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:167490:36
    at forEachImport (/typescript-5.5.0-dev.20240603/lib/typescript.js:167525:7)
    at findModuleReferences (/typescript-5.5.0-dev.20240603/lib/typescript.js:167489:5)
    at getReferencedSymbolsForModule (/typescript-5.5.0-dev.20240603/lib/typescript.js:168373:35)
    at getReferencedSymbolsForModuleIfDeclaredBySourceFile (/typescript-5.5.0-dev.20240603/lib/typescript.js:168315:30)
    at Object.getReferencedSymbolsForNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:168246:30)
    at Object.findReferencedSymbols (/typescript-5.5.0-dev.20240603/lib/typescript.js:167837:34)
    at Object.findReferences (/typescript-5.5.0-dev.20240603/lib/typescript.js:149324:41)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:188521:43
    at searchPosition (/typescript-5.5.0-dev.20240603/lib/typescript.js:188663:28)
    at getPerProjectReferences (/typescript-5.5.0-dev.20240603/lib/typescript.js:188642:32)
    at getReferencesWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:188513:29)
    at IOSession.getReferences (/typescript-5.5.0-dev.20240603/lib/typescript.js:190435:24)
    at references (/typescript-5.5.0-dev.20240603/lib/typescript.js:188940:43)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:191478:69
    at IOSession.executeWithRequestId (/typescript-5.5.0-dev.20240603/lib/typescript.js:191470:14)
    at IOSession.executeCommand (/typescript-5.5.0-dev.20240603/lib/typescript.js:191478:29)
    at IOSession.onMessage (/typescript-5.5.0-dev.20240603/lib/typescript.js:191520:51)
    at Interface.<anonymous> (/typescript-5.5.0-dev.20240603/lib/tsserver.js:499:14)

Affected repos

statelyai/xstate Raw error text: RepoResults8/statelyai.xstate.rawError.txt in the artifact folder
Replay commands: RepoResults8/statelyai.xstate.replay.txt in the artifact folder

Last few requests

```json {"seq":737,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/packages/xstate-vue/test/useSelector.test.ts"}} {"seq":738,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/packages/xstate-vue/test/useSelector.test.ts"}} {"seq":739,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/xstate-vue/test/useSelector.test.ts","line":1,"offset":36}} {"seq":740,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/xstate-vue/test/useSelector.test.ts","line":1,"offset":36}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/statelyai/xstate --recurse-submodules git -C "./xstate" reset --hard e79d480c0183ad00ce0d5902f58a77526a08925e # Install packages (exact steps are below, but it might be easier to follow the repo readme) yarn --cwd "./xstate" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/templates/vue-ts" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/templates/vanilla-ts" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/templates/svelte-ts" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/templates/react-ts" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-send-cloudevent" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-reusing-functions" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-purchase-order-deadline" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-provision-orders" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-parallel" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-new-patient-onboarding" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-monitor-patient" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-monitor-job" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-media-scanner" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-math-problem" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-hello" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-greeting" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-finalize-college-app" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-filling-water" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-event-greeting" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-event-based-service" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-event-based" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-credit-check" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-check-inbox" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-car-vitals" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-car-auction-bids" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-book-lending" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-async-subflow" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-async-function" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-applicant-request" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/workflow-accumulate-room-readings" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/trivia-game-example" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/toggle" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/todomvc-react" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/timer" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/tiles" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/tic-tac-toe-react" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/store-counter-react" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/stopwatch" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/snake-react" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/persisted-donut-maker" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/mongodb-persisted-state" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/mongodb-credit-check-api" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/friends-list-react" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/fetch" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/express-workflow" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/counter" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/7guis-temperature-react" install --ignore-engines --ignore-scripts --silent npm --prefix "./xstate/examples/7guis-flight-booker-react" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q yarn --cwd "./xstate/examples/7guis-counter-react" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/7guis-2-temperature-vue" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/examples/7guis-1-counter-vue" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/docs" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/docs/zh/sandboxes/todomvc" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/docs/sandboxes/todomvc" install --ignore-engines --ignore-scripts --silent yarn --cwd "./xstate/docs/fr/sandboxes/todomvc" install --ignore-engines --ignore-scripts --silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults8&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults8.zip "$downloadUrl" unzip -p RepoResults8.zip RepoResults8/statelyai.xstate.replay.txt > statelyai.xstate.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./xstate ./statelyai.xstate.replay.txt ```
typescript-bot commented 5 months ago

Error: start < 0

Req #7603 - references
    at createTextSpan (/typescript-5.5.0-dev.20240603/lib/typescript.js:14737:11)
    at createTextSpanFromBounds (/typescript-5.5.0-dev.20240603/lib/typescript.js:14745:10)
    at getErrorSpanForNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:17552:10)
    at createDiagnosticForNodeFromMessageChain (/typescript-5.5.0-dev.20240603/lib/typescript.js:17362:16)
    at resolveExternalModule (/typescript-5.5.0-dev.20240603/lib/typescript.js:52895:31)
    at resolveExternalModuleNameWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:52789:61)
    at resolveExternalModuleName (/typescript-5.5.0-dev.20240603/lib/typescript.js:52786:12)
    at getSymbolAtLocation (/typescript-5.5.0-dev.20240603/lib/typescript.js:89361:18)
    at Object.getSymbolAtLocation (/typescript-5.5.0-dev.20240603/lib/typescript.js:50052:21)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:167490:36
    at forEachImport (/typescript-5.5.0-dev.20240603/lib/typescript.js:167525:7)
    at findModuleReferences (/typescript-5.5.0-dev.20240603/lib/typescript.js:167489:5)
    at getReferencedSymbolsForModule (/typescript-5.5.0-dev.20240603/lib/typescript.js:168373:35)
    at getReferencedSymbolsForModuleIfDeclaredBySourceFile (/typescript-5.5.0-dev.20240603/lib/typescript.js:168315:30)
    at Object.getReferencedSymbolsForNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:168246:30)
    at Object.findReferencedSymbols (/typescript-5.5.0-dev.20240603/lib/typescript.js:167837:34)
    at Object.findReferences (/typescript-5.5.0-dev.20240603/lib/typescript.js:149324:41)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:188521:43
    at searchPosition (/typescript-5.5.0-dev.20240603/lib/typescript.js:188663:28)
    at getPerProjectReferences (/typescript-5.5.0-dev.20240603/lib/typescript.js:188642:32)
    at getReferencesWorker (/typescript-5.5.0-dev.20240603/lib/typescript.js:188513:29)
    at IOSession.getReferences (/typescript-5.5.0-dev.20240603/lib/typescript.js:190435:24)
    at references (/typescript-5.5.0-dev.20240603/lib/typescript.js:188940:43)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:191478:69
    at IOSession.executeWithRequestId (/typescript-5.5.0-dev.20240603/lib/typescript.js:191470:14)
    at IOSession.executeCommand (/typescript-5.5.0-dev.20240603/lib/typescript.js:191478:29)
    at IOSession.onMessage (/typescript-5.5.0-dev.20240603/lib/typescript.js:191520:51)
    at Interface.<anonymous> (/typescript-5.5.0-dev.20240603/lib/tsserver.js:499:14)

Affected repos

facebook/docusaurus Raw error text: RepoResults3/facebook.docusaurus.rawError.txt in the artifact folder
Replay commands: RepoResults3/facebook.docusaurus.replay.txt in the artifact folder

Last few requests

```json {"seq":7600,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/packages/docusaurus-plugin-vercel-analytics/src/index.ts"}} {"seq":7601,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/packages/docusaurus-plugin-vercel-analytics/src/index.ts"}} {"seq":7602,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"@PROJECT_ROOT@/packages/docusaurus-plugin-vercel-analytics/src/index.ts","textChanges":[{"newText":" //comment","start":{"line":1,"offset":4},"end":{"line":1,"offset":4}}]}],"closedFiles":[],"openFiles":[]}} {"seq":7603,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/docusaurus-plugin-vercel-analytics/src/index.ts","line":8,"offset":41}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/facebook/docusaurus --recurse-submodules git -C "./docusaurus" reset --hard 32d5ab08caab5e525ee5553807409768dfff711d # Install packages (exact steps are below, but it might be easier to follow the repo readme) yarn --cwd "./docusaurus" install --ignore-engines --ignore-scripts --silent yarn --cwd "./docusaurus/examples/classic-typescript" install --ignore-engines --ignore-scripts --silent yarn --cwd "./docusaurus/examples/classic" install --ignore-engines --ignore-scripts --silent yarn --cwd "./docusaurus/admin/scripts" install --ignore-engines --ignore-scripts --silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults3&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults3.zip "$downloadUrl" unzip -p RepoResults3.zip RepoResults3/facebook.docusaurus.replay.txt > facebook.docusaurus.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./docusaurus ./facebook.docusaurus.replay.txt ```
typescript-bot commented 5 months ago

Error: Debug Failure. False expression.

Req #4956 - organizeImports
    at Object.resetTokenState (/typescript-5.5.0-dev.20240603/lib/typescript.js:14607:11)
    at addSyntheticNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:148054:11)
    at createSyntaxList (/typescript-5.5.0-dev.20240603/lib/typescript.js:148082:3)
    at processNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:148043:19)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31733:14)
    at forEachChildInFunctionType (/typescript-5.5.0-dev.20240603/lib/typescript.js:31802:111)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at NodeObject.forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:148023:12)
    at createChildren (/typescript-5.5.0-dev.20240603/lib/typescript.js:148048:8)
    at NodeObject.getChildren (/typescript-5.5.0-dev.20240603/lib/typescript.js:148002:59)
    at NodeObject.getLastToken (/typescript-5.5.0-dev.20240603/lib/typescript.js:148015:27)
    at NodeObject.getLastToken (/typescript-5.5.0-dev.20240603/lib/typescript.js:148020:61)
    at visit (/typescript-5.5.0-dev.20240603/lib/typescript.js:137793:30)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInTypeLiteral (/typescript-5.5.0-dev.20240603/lib/typescript.js:31843:12)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at visit (/typescript-5.5.0-dev.20240603/lib/typescript.js:137807:12)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInUnionOrIntersectionType (/typescript-5.5.0-dev.20240603/lib/typescript.js:32193:10)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at visit (/typescript-5.5.0-dev.20240603/lib/typescript.js:137807:12)
    at visitNode2 (/typescript-5.5.0-dev.20240603/lib/typescript.js:31728:18)
    at forEachChildInTypeAliasDeclaration (/typescript-5.5.0-dev.20240603/lib/typescript.js:32019:144)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at visit (/typescript-5.5.0-dev.20240603/lib/typescript.js:137807:12)
    at visitNodes (/typescript-5.5.0-dev.20240603/lib/typescript.js:31736:22)
    at forEachChildInSourceFile (/typescript-5.5.0-dev.20240603/lib/typescript.js:31949:12)
    at forEachChild (/typescript-5.5.0-dev.20240603/lib/typescript.js:32249:35)
    at probablyUsesSemicolons (/typescript-5.5.0-dev.20240603/lib/typescript.js:137784:3)
    at getFormatCodeSettingsForWriting (/typescript-5.5.0-dev.20240603/lib/typescript.js:138222:122)
    at getFormattedTextOfNode (/typescript-5.5.0-dev.20240603/lib/typescript.js:174969:27)
    at format (/typescript-5.5.0-dev.20240603/lib/typescript.js:174961:27)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:174962:106
    at computeNewText (/typescript-5.5.0-dev.20240603/lib/typescript.js:174962:82)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:174923:25
    at mapDefined (/typescript-5.5.0-dev.20240603/lib/typescript.js:2704:22)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:174920:28
    at mapDefined (/typescript-5.5.0-dev.20240603/lib/typescript.js:2704:22)
    at Object.getTextChangesFromChanges (/typescript-5.5.0-dev.20240603/lib/typescript.js:174914:12)
    at _ChangeTracker.getChanges (/typescript-5.5.0-dev.20240603/lib/typescript.js:174811:35)
    at Object.organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:171568:24)
    at Object.organizeImports2 [as organizeImports] (/typescript-5.5.0-dev.20240603/lib/typescript.js:149495:39)
    at IOSession.organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:191127:50)
    at organizeImports (/typescript-5.5.0-dev.20240603/lib/typescript.js:189312:43)
    at /typescript-5.5.0-dev.20240603/lib/typescript.js:191478:69
    at IOSession.executeWithRequestId (/typescript-5.5.0-dev.20240603/lib/typescript.js:191470:14)
    at IOSession.executeCommand (/typescript-5.5.0-dev.20240603/lib/typescript.js:191478:29)
    at IOSession.onMessage (/typescript-5.5.0-dev.20240603/lib/typescript.js:191520:51)
    at Interface.<anonymous> (/typescript-5.5.0-dev.20240603/lib/tsserver.js:499:14)

Affected repos

vuejs/core Raw error text: RepoResults3/vuejs.core.rawError.txt in the artifact folder
Replay commands: RepoResults3/vuejs.core.replay.txt in the artifact folder

Last few requests

```json {"seq":4953,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/reactivity/src/effect.ts","line":329,"offset":1,"entryNames":["activeEffect"]}} {"seq":4954,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/packages/reactivity/src/reactiveEffect.ts"],"openFiles":[]}} {"seq":4955,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/packages/reactivity/src/dep.ts","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":4956,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/packages/reactivity/src/dep.ts"}},"skipDestructiveCodeActions":true}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/vuejs/core --recurse-submodules git -C "./core" reset --hard 48ccb3a5af9e5a6ba7f46b3092d698b335fb1bf5 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162069/artifacts?artifactName=RepoResults3&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults3.zip "$downloadUrl" unzip -p RepoResults3.zip RepoResults3/vuejs.core.replay.txt > vuejs.core.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./core ./vuejs.core.replay.txt ```