microsoft / TypeScript

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

[ServerErrors][JavaScript] 5.6.0-dev.20240714 vs 5.5.3 #59273

Closed typescript-bot closed 4 months ago

typescript-bot commented 4 months ago

The following errors were reported by 5.6.0-dev.20240714 vs 5.5.3 Pipeline that generated this bug Logs for the pipeline run File that generated the pipeline

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

Successfully analyzed 291 of 300 visited repos | Outcome | Count | |---------|-------| | Detected interesting changes | 13 | | Detected no interesting changes | 278 | | Unknown failure | 9 |

Investigation Status

Repo Errors Outcome
typescript-bot commented 4 months ago
New server no longer reports this error: Error: Debug Failure. Expected 1 < 1. ``` Req #3856 - completionInfo at getArgumentOrParameterListInfo (/typescript-5.5.3/lib/typescript.js:172747:11) at getImmediatelyContainingArgumentInfo (/typescript-5.5.3/lib/typescript.js:172764:18) at Object.getArgumentInfoForCompletions (/typescript-5.5.3/lib/typescript.js:172738:16) at getContextualType (/typescript-5.5.3/lib/typescript.js:164300:48) at getCompletionData (/typescript-5.5.3/lib/typescript.js:164538:43) at Object.getCompletionsAtPosition (/typescript-5.5.3/lib/typescript.js:162495:26) at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.3/lib/typescript.js:149101:35) at IOSession.getCompletions (/typescript-5.5.3/lib/typescript.js:190599:54) at completionInfo (/typescript-5.5.3/lib/typescript.js:188978:43) at /typescript-5.5.3/lib/typescript.js:191397:69 at IOSession.executeWithRequestId (/typescript-5.5.3/lib/typescript.js:191389:14) at IOSession.executeCommand (/typescript-5.5.3/lib/typescript.js:191397:29) at IOSession.onMessage (/typescript-5.5.3/lib/typescript.js:191439:51) at Interface. (/typescript-5.5.3/lib/tsserver.js:499:14) ```

Affected repos

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

Last few requests

```json {"seq":10480,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/support/jsdoc/theme/static/scripts/prettify/lang-css.js","line":1,"offset":297}} {"seq":10481,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/support/jsdoc/theme/static/scripts/prettify/lang-css.js","line":1,"offset":297,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":10482,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/support/jsdoc/theme/static/scripts/prettify/lang-css.js","line":1,"offset":304,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":10483,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/support/jsdoc/theme/static/scripts/prettify/lang-css.js","line":2,"offset":241}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/caolan/async --recurse-submodules git -C "./async" reset --hard d2ba70a250d229f31afd1eface3a501e7d215332 npm --prefix "./async" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults3&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults3.zip "$downloadUrl" unzip -p RepoResults3.zip RepoResults3/caolan.async.replay.txt > caolan.async.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 ./async ./caolan.async.replay.txt ```
typescript-bot commented 4 months ago
New server no longer reports this error: Error: Debug Failure. False expression. ``` Req #3040 - references at getSourceFileLikeForImportDeclaration (/typescript-5.5.3/lib/typescript.js:167635:9) at handleDirectImports (/typescript-5.5.3/lib/typescript.js:167198:31) at getImportersForExport (/typescript-5.5.3/lib/typescript.js:167133:3) at State.importTracker (/typescript-5.5.3/lib/typescript.js:167112:46) at State.getImportSearches (/typescript-5.5.3/lib/typescript.js:168525:19) at searchForImportsOfExport (/typescript-5.5.3/lib/typescript.js:168569:71) at getImportOrExportReferences (/typescript-5.5.3/lib/typescript.js:168960:7) at getReferencesAtLocation (/typescript-5.5.3/lib/typescript.js:168887:5) at getReferencesInContainer (/typescript-5.5.3/lib/typescript.js:168833:7) at getReferencesInSourceFile (/typescript-5.5.3/lib/typescript.js:168826:12) at searchForImportedSymbol (/typescript-5.5.3/lib/typescript.js:168635:7) at getImportOrExportReferences (/typescript-5.5.3/lib/typescript.js:168957:9) at getReferencesAtLocation (/typescript-5.5.3/lib/typescript.js:168887:5) at getReferencesInContainer (/typescript-5.5.3/lib/typescript.js:168833:7) at getReferencesInContainerOrFiles (/typescript-5.5.3/lib/typescript.js:168430:7) at getReferencedSymbolsForSymbol (/typescript-5.5.3/lib/typescript.js:168423:7) at Object.getReferencedSymbolsForNode (/typescript-5.5.3/lib/typescript.js:168173:24) at Object.findReferencedSymbols (/typescript-5.5.3/lib/typescript.js:167758:34) at Object.findReferences (/typescript-5.5.3/lib/typescript.js:149270:41) at /typescript-5.5.3/lib/typescript.js:188440:43 at searchPosition (/typescript-5.5.3/lib/typescript.js:188582:28) at getPerProjectReferences (/typescript-5.5.3/lib/typescript.js:188561:32) at getReferencesWorker (/typescript-5.5.3/lib/typescript.js:188432:29) at IOSession.getReferences (/typescript-5.5.3/lib/typescript.js:190354:24) at references (/typescript-5.5.3/lib/typescript.js:188859:43) at /typescript-5.5.3/lib/typescript.js:191397:69 at IOSession.executeWithRequestId (/typescript-5.5.3/lib/typescript.js:191389:14) at IOSession.executeCommand (/typescript-5.5.3/lib/typescript.js:191397:29) at IOSession.onMessage (/typescript-5.5.3/lib/typescript.js:191439:51) at Interface. (/typescript-5.5.3/lib/tsserver.js:499:14) ```

Affected repos

videojs/video.js Raw error text: RepoResults2/videojs.video.js.rawError.txt in the artifact folder
Replay commands: RepoResults2/videojs.video.js.replay.txt in the artifact folder

Last few requests

```json {"seq":17537,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/docs/legacy-docs/api/assets/create-doc-files.js","line":28,"offset":482}} {"seq":17538,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/docs/legacy-docs/api/assets/create-doc-files.js","line":28,"offset":860,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":17539,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/docs/legacy-docs/api/assets/create-doc-files.js","line":62,"offset":44,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":17540,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/docs/legacy-docs/api/assets/create-doc-files.js","line":64,"offset":28,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/videojs/video.js --recurse-submodules git -C "./video.js" reset --hard 0a836e1006e2e935fa0b2c961bb35dc4ed13b067 npm --prefix "./video.js" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults2.zip "$downloadUrl" unzip -p RepoResults2.zip RepoResults2/videojs.video.js.replay.txt > videojs.video.js.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 ./video.js ./videojs.video.js.replay.txt ```
typescript-bot commented 4 months ago

Error: Debug Failure. Did not expect ObjectLiteralExpression to have an Identifier in its trivia

Req #1831 - completionInfo
    at addSyntheticNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:148201:15)
    at createSyntaxList (/typescript-5.6.0-dev.20240714/lib/typescript.js:148216:5)
    at processNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:148181:19)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31650:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:31802:12)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:148161:12)
    at createChildren (/typescript-5.6.0-dev.20240714/lib/typescript.js:148186:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240714/lib/typescript.js:148140:83)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136623:24)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at find2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:136659:18)
    at findPrecedingToken (/typescript-5.6.0-dev.20240714/lib/typescript.js:136616:18)
    at getRelevantTokens (/typescript-5.6.0-dev.20240714/lib/typescript.js:166010:25)
    at Object.getCompletionsAtPosition (/typescript-5.6.0-dev.20240714/lib/typescript.js:162772:29)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.6.0-dev.20240714/lib/typescript.js:149400:35)
    at IOSession.getCompletions (/typescript-5.6.0-dev.20240714/lib/typescript.js:190855:54)
    at completionInfo (/typescript-5.6.0-dev.20240714/lib/typescript.js:189178:43)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:191659:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240714/lib/typescript.js:191648:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240714/lib/typescript.js:191657:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240714/lib/typescript.js:191705:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240714/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":1828,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":7209}} {"seq":1829,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":7291}} {"seq":1830,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":7989,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":1831,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":9437,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/HeyPuter/puter --recurse-submodules git -C "./puter" reset --hard b52c31133e2a8f854c5768995a2115031dd96b15 # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./puter" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./puter/src/gui/src" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./puter/src/gui/src/lib/jquery-ui-1.13.2" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./puter/mods/mods_available/kdmod" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./puter/experiments/x86emu/www" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults5&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults5.zip "$downloadUrl" unzip -p RepoResults5.zip RepoResults5/HeyPuter.puter.replay.txt > HeyPuter.puter.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 ./puter ./HeyPuter.puter.replay.txt ```
typescript-bot commented 4 months ago

Server exited prematurely with code unknown and signal SIGABRT

Server exited prematurely with code unknown and signal SIGABRT

Affected repos

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

Last few requests

```json {"seq":22382,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":13610,"offset":147}} {"seq":22383,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":13610,"offset":147}} {"seq":22384,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":13610,"offset":152}} {"seq":22385,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":13628,"offset":24,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/tastejs/todomvc --recurse-submodules git -C "./todomvc" reset --hard 29908f1ab19f6bb7c8ef4dcefb453f7ccc6ca291 # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./todomvc" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/tooling" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/tests" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/tasks" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/web-components" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/vue" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/typescript-react" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/typescript-backbone" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/typescript-angular" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/svelte" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/riotjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/reagent" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/react-redux" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/react" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/ractive" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/preact" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/polymer" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/mithril" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/lit" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/lavaca_require" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/knockoutjs_require" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/knockoutjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/knockback" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/jsblocks" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/js_of_ocaml" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/jquery" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/javascript-es6" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/javascript-es5" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/gwt" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/exoskeleton" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/enyo_backbone" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q pnpm --dir "./todomvc/examples/emberjs/todomvc" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent npm --prefix "./todomvc/examples/elm" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/duel" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/dojo" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/dijon" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/cujo" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/closure" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/canjs_require" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/canjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/binding-scala" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/backbone_require" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/backbone_marionette" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/backbone" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/aurelia" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/angularjs_require" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/angularjs_require/test" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/angular-dart" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/examples/angular" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/bower_components/webcomponentsjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./todomvc/bower_components/bootstrap" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults3&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults3.zip "$downloadUrl" unzip -p RepoResults3.zip RepoResults3/tastejs.todomvc.replay.txt > tastejs.todomvc.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 ./todomvc ./tastejs.todomvc.replay.txt ```
typescript-bot commented 4 months ago

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

Req #3239 - completionInfo
    at needsNameFromDeclaration (/typescript-5.6.0-dev.20240714/lib/typescript.js:138254:19)
    at getNameForExportedSymbol (/typescript-5.6.0-dev.20240714/lib/typescript.js:138248:7)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:161542:20)
    at visitNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:92462:19)
    at visitEachChildOfPropertySignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:92760:7)
    at visitEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:92710:33)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:161548:12)
    at visitArrayWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:92524:49)
    at visitNodes2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:92495:19)
    at visitEachChildOfTypeLiteralNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:92900:7)
    at visitEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:92710:33)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:161548:12)
    at visitArrayWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:92524:49)
    at visitNodes2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:92495:19)
    at visitEachChildOfIntersectionTypeNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:92936:7)
    at visitEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:92710:33)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:161548:12)
    at visitNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:92462:19)
    at visitEachChildOfParameterDeclaration (/typescript-5.6.0-dev.20240714/lib/typescript.js:92743:7)
    at visitEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:92710:33)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:161548:12)
    at visitArrayWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:92524:49)
    at visitNodes2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:92495:19)
    at visitEachChildOfFunctionTypeNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:92877:7)
    at visitEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:92710:33)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:161548:12)
    at visitNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:92462:19)
    at visitEachChildOfParenthesizedType (/typescript-5.6.0-dev.20240714/lib/typescript.js:92983:26)
    at visitEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:92710:33)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:161548:12)
    at visitNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:92462:19)
    at visitEachChildOfArrayTypeNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:92906:26)
    at visitEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:92710:33)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:161548:12)
    at visitArrayWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:92524:49)
    at visitNodes2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:92495:19)
    at visitEachChildOfUnionTypeNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:92930:7)
    at visitEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:92710:33)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:161548:12)
    at visitNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:92462:19)
    at visitEachChildOfPropertySignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:92760:7)
    at visitEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:92710:33)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:161548:12)
    at visitArrayWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:92524:49)
    at visitNodes2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:92495:19)
    at visitEachChildOfTypeLiteralNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:92900:7)
    at visitEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:92710:33)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:161548:12)
    at visitNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:92462:19)
    at tryGetAutoImportableReferenceFromTypeNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:161535:20)
    at Object.addNewNodeForMemberSymbol (/typescript-5.6.0-dev.20240714/lib/typescript.js:160979:37)
    at getEntryForMemberCompletion (/typescript-5.6.0-dev.20240714/lib/typescript.js:163772:22)
    at createCompletionEntry (/typescript-5.6.0-dev.20240714/lib/typescript.js:163620:35)
    at getCompletionEntriesFromSymbols (/typescript-5.6.0-dev.20240714/lib/typescript.js:164246:19)
    at completionInfoFromData (/typescript-5.6.0-dev.20240714/lib/typescript.js:163272:23)
    at Object.getCompletionsAtPosition (/typescript-5.6.0-dev.20240714/lib/typescript.js:162818:24)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.6.0-dev.20240714/lib/typescript.js:149400:35)
    at IOSession.getCompletions (/typescript-5.6.0-dev.20240714/lib/typescript.js:190855:54)
    at completionInfo (/typescript-5.6.0-dev.20240714/lib/typescript.js:189178:43)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:191659:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240714/lib/typescript.js:191648:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240714/lib/typescript.js:191657:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240714/lib/typescript.js:191705:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240714/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":3236,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/dist/types/photoswipe.d.ts","line":359,"offset":8}} {"seq":3237,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/dist/types/photoswipe.d.ts","line":359,"offset":8}} {"seq":3238,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/dist/types/photoswipe.d.ts","line":360,"offset":8}} {"seq":3239,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/dist/types/photoswipe.d.ts","line":362,"offset":86,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/dimsemenov/PhotoSwipe --recurse-submodules git -C "./PhotoSwipe" reset --hard fd85184b450f451bc4aa2697f6d0a79304d13473 # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./PhotoSwipe" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./PhotoSwipe/demo-docs-website" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults4&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults4.zip "$downloadUrl" unzip -p RepoResults4.zip RepoResults4/dimsemenov.PhotoSwipe.replay.txt > dimsemenov.PhotoSwipe.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 ./PhotoSwipe ./dimsemenov.PhotoSwipe.replay.txt ```
typescript-bot commented 4 months ago

Error: Debug Failure. Did not expect ObjectLiteralExpression to have an Identifier in its trivia

Req #646 - references
    at addSyntheticNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:148201:15)
    at createSyntaxList (/typescript-5.6.0-dev.20240714/lib/typescript.js:148216:5)
    at processNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:148181:19)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31650:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:31802:12)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:148161:12)
    at createChildren (/typescript-5.6.0-dev.20240714/lib/typescript.js:148186:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240714/lib/typescript.js:148140:83)
    at getTokenAtPositionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:136522:32)
    at getTouchingToken (/typescript-5.6.0-dev.20240714/lib/typescript.js:136495:10)
    at getTouchingPropertyName (/typescript-5.6.0-dev.20240714/lib/typescript.js:136492:10)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240714/lib/typescript.js:169186:31)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240714/lib/typescript.js:169179:7)
    at getReferencesInSourceFile (/typescript-5.6.0-dev.20240714/lib/typescript.js:169172:12)
    at searchForName (/typescript-5.6.0-dev.20240714/lib/typescript.js:168986:7)
    at getReferencesInContainerOrFiles (/typescript-5.6.0-dev.20240714/lib/typescript.js:168787:9)
    at getReferencedSymbolsForSymbol (/typescript-5.6.0-dev.20240714/lib/typescript.js:168769:7)
    at Object.getReferencedSymbolsForNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:168519:24)
    at Object.findReferencedSymbols (/typescript-5.6.0-dev.20240714/lib/typescript.js:168104:34)
    at Object.findReferences (/typescript-5.6.0-dev.20240714/lib/typescript.js:149569:41)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:188634:43
    at searchPosition (/typescript-5.6.0-dev.20240714/lib/typescript.js:188776:28)
    at getPerProjectReferences (/typescript-5.6.0-dev.20240714/lib/typescript.js:188755:32)
    at getReferencesWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:188626:29)
    at IOSession.getReferences (/typescript-5.6.0-dev.20240714/lib/typescript.js:190610:24)
    at references (/typescript-5.6.0-dev.20240714/lib/typescript.js:189059:43)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:191659:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240714/lib/typescript.js:191648:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240714/lib/typescript.js:191657:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240714/lib/typescript.js:191705:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240714/lib/tsserver.js:501:14)

Affected repos

HumanSignal/label-studio Raw error text: RepoResults7/HumanSignal.label-studio.rawError.txt in the artifact folder
Replay commands: RepoResults7/HumanSignal.label-studio.replay.txt in the artifact folder

Last few requests

```json {"seq":643,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/datamanager/main.js","line":2,"offset":127309}} {"seq":644,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/datamanager/main.js","line":2,"offset":127457}} {"seq":645,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/datamanager/main.js","line":2,"offset":127930}} {"seq":646,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/datamanager/main.js","line":2,"offset":127930}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/HumanSignal/label-studio --recurse-submodules git -C "./label-studio" reset --hard 674816c1d9486e44f61ad1e543a172cd0b757167 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults7&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults7.zip "$downloadUrl" unzip -p RepoResults7.zip RepoResults7/HumanSignal.label-studio.replay.txt > HumanSignal.label-studio.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 ./label-studio ./HumanSignal.label-studio.replay.txt ```
typescript-bot commented 4 months ago

Error: Debug Failure.

Req #5971 - completionInfo
    at getThisContainer (/typescript-5.6.0-dev.20240714/lib/typescript.js:17765:20)
    at tryGetThisTypeAt (/typescript-5.6.0-dev.20240714/lib/typescript.js:74928:73)
    at Object.tryGetThisTypeAt (/typescript-5.6.0-dev.20240714/lib/typescript.js:50211:22)
    at getGlobalCompletions (/typescript-5.6.0-dev.20240714/lib/typescript.js:165169:36)
    at tryGetGlobalSymbols (/typescript-5.6.0-dev.20240714/lib/typescript.js:165114:397)
    at getCompletionData (/typescript-5.6.0-dev.20240714/lib/typescript.js:164863:10)
    at Object.getCompletionsAtPosition (/typescript-5.6.0-dev.20240714/lib/typescript.js:162800:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.6.0-dev.20240714/lib/typescript.js:149400:35)
    at IOSession.getCompletions (/typescript-5.6.0-dev.20240714/lib/typescript.js:190855:54)
    at completionInfo (/typescript-5.6.0-dev.20240714/lib/typescript.js:189178:43)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:191659:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240714/lib/typescript.js:191648:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240714/lib/typescript.js:191657:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240714/lib/typescript.js:191705:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240714/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":5968,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/angular/angular.js","line":21022,"offset":4,"entryNames":["@abstract"]}} {"seq":5969,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/angular/angular.js","line":21034,"offset":66,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":5970,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/angular/angular.js","line":21040,"offset":7}} {"seq":5971,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/angular/angular.js","line":21040,"offset":74,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/JacksonTian/fks --recurse-submodules git -C "./fks" reset --hard 54722627d64b3b8918f4f4cf73752d3675dae99e # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./fks" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./fks/fks_chart/bower_components/marked" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./fks/fks_chart/bower_components/angular-marked" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./fks/fks_chart/bower_components/angular" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults7&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults7.zip "$downloadUrl" unzip -p RepoResults7.zip RepoResults7/JacksonTian.fks.replay.txt > JacksonTian.fks.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 ./fks ./JacksonTian.fks.replay.txt ```
typescript-bot commented 4 months ago

Error: Debug Failure.

Req #6006 - completionInfo
    at getThisContainer (/typescript-5.6.0-dev.20240714/lib/typescript.js:17765:20)
    at tryGetThisTypeAt (/typescript-5.6.0-dev.20240714/lib/typescript.js:74928:73)
    at Object.tryGetThisTypeAt (/typescript-5.6.0-dev.20240714/lib/typescript.js:50211:22)
    at getGlobalCompletions (/typescript-5.6.0-dev.20240714/lib/typescript.js:165169:36)
    at tryGetGlobalSymbols (/typescript-5.6.0-dev.20240714/lib/typescript.js:165114:397)
    at getCompletionData (/typescript-5.6.0-dev.20240714/lib/typescript.js:164863:10)
    at Object.getCompletionsAtPosition (/typescript-5.6.0-dev.20240714/lib/typescript.js:162800:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.6.0-dev.20240714/lib/typescript.js:149400:35)
    at IOSession.getCompletions (/typescript-5.6.0-dev.20240714/lib/typescript.js:190855:54)
    at completionInfo (/typescript-5.6.0-dev.20240714/lib/typescript.js:189178:43)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:191659:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240714/lib/typescript.js:191648:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240714/lib/typescript.js:191657:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240714/lib/typescript.js:191705:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240714/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":6003,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/spreadsheet/code/lib/angular.js","line":24227,"offset":7}} {"seq":6004,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/spreadsheet/code/lib/angular.js","line":24227,"offset":7,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":6005,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/spreadsheet/code/lib/angular.js","line":24227,"offset":7,"entryNames":["@abstract"]}} {"seq":6006,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/spreadsheet/code/lib/angular.js","line":24235,"offset":20,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/aosabook/500lines --recurse-submodules git -C "./500lines" reset --hard fba689d101eb5600f5c8f4d7fd79912498e950e2 npm --prefix "./500lines/spreadsheet/code" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults3&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults3.zip "$downloadUrl" unzip -p RepoResults3.zip RepoResults3/aosabook.500lines.replay.txt > aosabook.500lines.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 ./500lines ./aosabook.500lines.replay.txt ```
typescript-bot commented 4 months ago

Verbose Debug Information: {"pos":74020,"end":77774} and {"pos":74020,"end":77774}

Req #205 - organizeImports
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:175177:15
    at mapDefined (/typescript-5.6.0-dev.20240714/lib/typescript.js:2572:22)
    at Object.getTextChangesFromChanges (/typescript-5.6.0-dev.20240714/lib/typescript.js:175173:12)
    at _ChangeTracker.getChanges (/typescript-5.6.0-dev.20240714/lib/typescript.js:175070:35)
    at Object.organizeImports (/typescript-5.6.0-dev.20240714/lib/typescript.js:171833:24)
    at Object.organizeImports2 [as organizeImports] (/typescript-5.6.0-dev.20240714/lib/typescript.js:149740:39)
    at IOSession.organizeImports (/typescript-5.6.0-dev.20240714/lib/typescript.js:191293:50)
    at organizeImports (/typescript-5.6.0-dev.20240714/lib/typescript.js:189429:43)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:191659:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240714/lib/typescript.js:191648:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240714/lib/typescript.js:191657:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240714/lib/typescript.js:191705:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240714/lib/tsserver.js:501:14)

Affected repos

parcel-bundler/parcel Raw error text: RepoResults2/parcel-bundler.parcel.rawError.txt in the artifact folder
Replay commands: RepoResults2/parcel-bundler.parcel.replay.txt in the artifact folder

Last few requests

```json {"seq":202,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/core/cache/index.d.ts","line":1,"offset":30,"entryNames":["babel-plugin-transform-runtime"]}} {"seq":203,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/packages/dev/babel-preset/index.js"],"openFiles":[]}} {"seq":204,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/flow-typed/npm/@swc/core_v1.x.x.js","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":205,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/flow-typed/npm/@swc/core_v1.x.x.js"}},"skipDestructiveCodeActions":true}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/parcel-bundler/parcel --recurse-submodules git -C "./parcel" reset --hard 372ad346b822e1f2277f566835d1b4e23cd856f4 yarn --cwd "./parcel" install --ignore-engines --ignore-scripts --silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults2.zip "$downloadUrl" unzip -p RepoResults2.zip RepoResults2/parcel-bundler.parcel.replay.txt > parcel-bundler.parcel.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 ./parcel ./parcel-bundler.parcel.replay.txt ```
typescript-bot commented 4 months ago

Error: Debug Failure. False expression.

Req #1538 - references
    at Object.resetTokenState (/typescript-5.6.0-dev.20240714/lib/typescript.js:14396:11)
    at addSyntheticNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:148192:11)
    at createSyntaxList (/typescript-5.6.0-dev.20240714/lib/typescript.js:148220:3)
    at processNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:148181:19)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31650:14)
    at forEachChildInFunctionType (/typescript-5.6.0-dev.20240714/lib/typescript.js:31719:111)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:148161:12)
    at createChildren (/typescript-5.6.0-dev.20240714/lib/typescript.js:148186:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240714/lib/typescript.js:148140:83)
    at getTokenAtPositionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:136522:32)
    at getTouchingToken (/typescript-5.6.0-dev.20240714/lib/typescript.js:136495:10)
    at getTouchingPropertyName (/typescript-5.6.0-dev.20240714/lib/typescript.js:136492:10)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240714/lib/typescript.js:169186:31)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240714/lib/typescript.js:169179:7)
    at getReferencesInSourceFile (/typescript-5.6.0-dev.20240714/lib/typescript.js:169172:12)
    at searchForImportsOfExport (/typescript-5.6.0-dev.20240714/lib/typescript.js:168923:7)
    at getImportOrExportReferences (/typescript-5.6.0-dev.20240714/lib/typescript.js:169306:7)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240714/lib/typescript.js:169233:5)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240714/lib/typescript.js:169179:7)
    at getReferencesInSourceFile (/typescript-5.6.0-dev.20240714/lib/typescript.js:169172:12)
    at searchForImportedSymbol (/typescript-5.6.0-dev.20240714/lib/typescript.js:168981:7)
    at getImportOrExportReferences (/typescript-5.6.0-dev.20240714/lib/typescript.js:169303:9)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240714/lib/typescript.js:169233:5)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240714/lib/typescript.js:169179:7)
    at getReferencesInContainerOrFiles (/typescript-5.6.0-dev.20240714/lib/typescript.js:168776:7)
    at getReferencedSymbolsForSymbol (/typescript-5.6.0-dev.20240714/lib/typescript.js:168769:7)
    at Object.getReferencedSymbolsForNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:168519:24)
    at Object.findReferencedSymbols (/typescript-5.6.0-dev.20240714/lib/typescript.js:168104:34)
    at Object.findReferences (/typescript-5.6.0-dev.20240714/lib/typescript.js:149569:41)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:188634:43
    at searchPosition (/typescript-5.6.0-dev.20240714/lib/typescript.js:188776:28)
    at getPerProjectReferences (/typescript-5.6.0-dev.20240714/lib/typescript.js:188755:32)
    at getReferencesWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:188626:29)
    at IOSession.getReferences (/typescript-5.6.0-dev.20240714/lib/typescript.js:190610:24)
    at references (/typescript-5.6.0-dev.20240714/lib/typescript.js:189059:43)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:191659:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240714/lib/typescript.js:191648:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240714/lib/typescript.js:191657:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240714/lib/typescript.js:191705:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240714/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":1535,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/@vue/cli-service/__tests__/serve.spec.js","line":5,"offset":36,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":1536,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/@vue/cli-service/__tests__/serve.spec.js","line":5,"offset":36,"entryNames":["ConfigTransform"]}} {"seq":1537,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/@vue/cli-service/__tests__/serve.spec.js","line":6,"offset":25}} {"seq":1538,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/@vue/cli-service/__tests__/serve.spec.js","line":6,"offset":25}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/vuejs/vue-cli --recurse-submodules git -C "./vue-cli" reset --hard f0f254e4bc81ed322eeb9f7de346e987e845068e yarn --cwd "./vue-cli" install --ignore-engines --ignore-scripts --silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults3&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults3.zip "$downloadUrl" unzip -p RepoResults3.zip RepoResults3/vuejs.vue-cli.replay.txt > vuejs.vue-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 ./vue-cli ./vuejs.vue-cli.replay.txt ```
typescript-bot commented 4 months ago

RangeError: Maximum call stack size exceeded

Req #23935 - completionInfo
    at getRelationKey (/typescript-5.6.0-dev.20240714/lib/typescript.js:70019:26)
    at recursiveTypeRelatedTo (/typescript-5.6.0-dev.20240714/lib/typescript.js:68366:18)
    at isRelatedTo (/typescript-5.6.0-dev.20240714/lib/typescript.js:67879:122)
    at checkTypeRelatedTo (/typescript-5.6.0-dev.20240714/lib/typescript.js:67502:20)
    at isTypeRelatedTo (/typescript-5.6.0-dev.20240714/lib/typescript.js:67435:14)
    at isTypeAssignableTo (/typescript-5.6.0-dev.20240714/lib/typescript.js:66556:12)
    at isTypeAssignableToKind (/typescript-5.6.0-dev.20240714/lib/typescript.js:81843:433)
    at allTypesAssignableToKind (/typescript-5.6.0-dev.20240714/lib/typescript.js:81846:133)
    at getPromisedTypeOfPromise (/typescript-5.6.0-dev.20240714/lib/typescript.js:84394:9)
    at reportNonexistentProperty (/typescript-5.6.0-dev.20240714/lib/typescript.js:77833:28)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.6.0-dev.20240714/lib/typescript.js:77667:11)
    at checkPropertyAccessExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:77448:94)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83214:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkNonNullExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:77369:29)
    at checkIndexedAccess (/typescript-5.6.0-dev.20240714/lib/typescript.js:78107:128)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83218:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240714/lib/typescript.js:82784:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240714/lib/typescript.js:78614:25)
    at chooseOverload (/typescript-5.6.0-dev.20240714/lib/typescript.js:79151:13)
    at resolveCall (/typescript-5.6.0-dev.20240714/lib/typescript.js:78998:16)
    at resolveCallExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:79435:12)
    at resolveSignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:79828:16)
    at getResolvedSignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:79854:18)
    at checkCallExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:79965:23)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83224:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240714/lib/typescript.js:82808:28)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:81283:20
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17574:16)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31653:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240714/lib/typescript.js:32123:10)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17590:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240714/lib/typescript.js:17570:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240714/lib/typescript.js:81264:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240714/lib/typescript.js:81077:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:62542:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:79990:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83224:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240714/lib/typescript.js:82784:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240714/lib/typescript.js:78614:25)
    at chooseOverload (/typescript-5.6.0-dev.20240714/lib/typescript.js:79151:13)
    at resolveCall (/typescript-5.6.0-dev.20240714/lib/typescript.js:78998:16)
    at resolveCallExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:79435:12)
    at resolveSignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:79828:16)
    at getResolvedSignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:79854:18)
    at checkCallExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:79965:23)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83224:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkConditionalExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:82735:19)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83260:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkConditionalExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:82734:19)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83260:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240714/lib/typescript.js:82808:28)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:81283:20
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17574:16)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31653:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240714/lib/typescript.js:32123:10)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17590:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240714/lib/typescript.js:17570:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240714/lib/typescript.js:81264:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240714/lib/typescript.js:81077:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:62542:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:79990:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83224:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240714/lib/typescript.js:82784:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240714/lib/typescript.js:78614:25)
    at chooseOverload (/typescript-5.6.0-dev.20240714/lib/typescript.js:79151:13)
    at resolveCall (/typescript-5.6.0-dev.20240714/lib/typescript.js:78998:16)
    at resolveCallExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:79435:12)
    at resolveSignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:79828:16)
    at getResolvedSignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:79854:18)
    at checkCallExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:79965:23)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83224:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240714/lib/typescript.js:82808:28)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:81283:20
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17574:16)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31653:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240714/lib/typescript.js:32123:10)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17590:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240714/lib/typescript.js:17570:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240714/lib/typescript.js:81264:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240714/lib/typescript.js:81077:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:62542:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:79990:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83224:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240714/lib/typescript.js:82784:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240714/lib/typescript.js:78614:25)
    at chooseOverload (/typescript-5.6.0-dev.20240714/lib/typescript.js:79151:13)
    at resolveCall (/typescript-5.6.0-dev.20240714/lib/typescript.js:78998:16)

Affected repos

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

Last few requests

```json {"seq":23932,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":313935,"entryNames":["_"]}} {"seq":23933,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":314232}} {"seq":23934,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":315037}} {"seq":23935,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":315171,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/GoogleChrome/lighthouse --recurse-submodules git -C "./lighthouse" reset --hard a21fde7f0e997802d6bd574edf156bb04649ecf9 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults4&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults4.zip "$downloadUrl" unzip -p RepoResults4.zip RepoResults4/GoogleChrome.lighthouse.replay.txt > GoogleChrome.lighthouse.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 ./lighthouse ./GoogleChrome.lighthouse.replay.txt ```
typescript-bot commented 4 months ago

Error: Debug Failure. False expression.

Req #2029 - organizeImports
    at Object.resetTokenState (/typescript-5.6.0-dev.20240714/lib/typescript.js:14396:11)
    at addSyntheticNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:148192:11)
    at createSyntaxList (/typescript-5.6.0-dev.20240714/lib/typescript.js:148220:3)
    at processNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:148181:19)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31650:14)
    at forEachChildInFunctionType (/typescript-5.6.0-dev.20240714/lib/typescript.js:31719:111)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:148161:12)
    at createChildren (/typescript-5.6.0-dev.20240714/lib/typescript.js:148186:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240714/lib/typescript.js:148140:83)
    at NodeObject.getLastToken (/typescript-5.6.0-dev.20240714/lib/typescript.js:148153:27)
    at NodeObject.getLastToken (/typescript-5.6.0-dev.20240714/lib/typescript.js:148158:61)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:137923:30)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31653:22)
    at forEachChildInTypeLiteral (/typescript-5.6.0-dev.20240714/lib/typescript.js:31760:12)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:137937:12)
    at visitNode2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:31645:18)
    at forEachChildInTypeAliasDeclaration (/typescript-5.6.0-dev.20240714/lib/typescript.js:31936:144)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at visit (/typescript-5.6.0-dev.20240714/lib/typescript.js:137937:12)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31653:22)
    at forEachChildInSourceFile (/typescript-5.6.0-dev.20240714/lib/typescript.js:31866:12)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at probablyUsesSemicolons (/typescript-5.6.0-dev.20240714/lib/typescript.js:137914:3)
    at getFormatCodeSettingsForWriting (/typescript-5.6.0-dev.20240714/lib/typescript.js:138342:122)
    at getFormattedTextOfNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:175228:27)
    at format (/typescript-5.6.0-dev.20240714/lib/typescript.js:175220:27)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:175221:106
    at computeNewText (/typescript-5.6.0-dev.20240714/lib/typescript.js:175221:82)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:175182:25
    at mapDefined (/typescript-5.6.0-dev.20240714/lib/typescript.js:2572:22)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:175179:28
    at mapDefined (/typescript-5.6.0-dev.20240714/lib/typescript.js:2572:22)
    at Object.getTextChangesFromChanges (/typescript-5.6.0-dev.20240714/lib/typescript.js:175173:12)
    at _ChangeTracker.getChanges (/typescript-5.6.0-dev.20240714/lib/typescript.js:175070:35)
    at Object.organizeImports (/typescript-5.6.0-dev.20240714/lib/typescript.js:171833:24)
    at Object.organizeImports2 [as organizeImports] (/typescript-5.6.0-dev.20240714/lib/typescript.js:149740:39)
    at IOSession.organizeImports (/typescript-5.6.0-dev.20240714/lib/typescript.js:191293:50)
    at organizeImports (/typescript-5.6.0-dev.20240714/lib/typescript.js:189429:43)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:191659:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240714/lib/typescript.js:191648:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240714/lib/typescript.js:191657:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240714/lib/typescript.js:191705:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240714/lib/tsserver.js:501:14)

Affected repos

decaporg/decap-cms Raw error text: RepoResults7/decaporg.decap-cms.rawError.txt in the artifact folder
Replay commands: RepoResults7/decaporg.decap-cms.replay.txt in the artifact folder

Last few requests

```json {"seq":2026,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/decap-cms-lib-util/src/backendUtil.ts","line":110,"offset":24,"entryNames":["APIError"]}} {"seq":2027,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/packages/decap-cms-lib-util/src/index.ts"],"openFiles":[]}} {"seq":2028,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/packages/decap-cms-lib-util/src/asyncLock.ts","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":2029,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/packages/decap-cms-lib-util/src/asyncLock.ts"}},"skipDestructiveCodeActions":true}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/decaporg/decap-cms --recurse-submodules git -C "./decap-cms" reset --hard 61795688ea9549af6d4dbab472b9aa83d9b11ec9 npm --prefix "./decap-cms" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults7&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults7.zip "$downloadUrl" unzip -p RepoResults7.zip RepoResults7/decaporg.decap-cms.replay.txt > decaporg.decap-cms.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 ./decap-cms ./decaporg.decap-cms.replay.txt ```
typescript-bot commented 4 months ago

RangeError: Maximum call stack size exceeded

Req #17124 - definitionAndBoundSpan
    at getResolvedSymbol (/typescript-5.6.0-dev.20240714/lib/typescript.js:71937:29)
    at isMatchingReference (/typescript-5.6.0-dev.20240714/lib/typescript.js:72008:123)
    at isOrContainsMatchingReference (/typescript-5.6.0-dev.20240714/lib/typescript.js:72190:12)
    at hasMatchingArgument (/typescript-5.6.0-dev.20240714/lib/typescript.js:72195:13)
    at narrowTypeByCallExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:73889:11)
    at narrowType (/typescript-5.6.0-dev.20240714/lib/typescript.js:73961:18)
    at narrowType (/typescript-5.6.0-dev.20240714/lib/typescript.js:73969:20)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240714/lib/typescript.js:73167:28)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:73000:18)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240714/lib/typescript.js:73160:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:73000:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240714/lib/typescript.js:73208:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:73008:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240714/lib/typescript.js:73160:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240714/lib/typescript.js:73000:18)
    at getFlowTypeOfReference (/typescript-5.6.0-dev.20240714/lib/typescript.js:72951:45)
    at checkIdentifier (/typescript-5.6.0-dev.20240714/lib/typescript.js:74705:134)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83180:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkNonNullExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:77369:29)
    at checkPropertyAccessExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:77448:162)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83214:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at maybeCheckExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:82223:28)
    at BinaryExpressionStateMachine.onLeft (/typescript-5.6.0-dev.20240714/lib/typescript.js:82159:16)
    at Array.left (/typescript-5.6.0-dev.20240714/lib/typescript.js:31324:30)
    at trampoline (/typescript-5.6.0-dev.20240714/lib/typescript.js:31428:42)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:82117:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83258:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkTruthinessExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:85815:34)
    at checkConditionalExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:82732:18)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83260:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240714/lib/typescript.js:82808:28)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:81283:20
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17574:16)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31653:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240714/lib/typescript.js:32123:10)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17590:16)
    at visitNode2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:31645:18)
    at forEachChildInIfStatement (/typescript-5.6.0-dev.20240714/lib/typescript.js:31878:51)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17590:16)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31653:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240714/lib/typescript.js:32123:10)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17590:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240714/lib/typescript.js:17570:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240714/lib/typescript.js:81264:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240714/lib/typescript.js:81077:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:62542:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:79990:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83224:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240714/lib/typescript.js:82808:28)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:81283:20
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17574:16)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31653:22)
    at forEachChildInCaseClause (/typescript-5.6.0-dev.20240714/lib/typescript.js:31910:51)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17590:16)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31653:22)
    at forEachChildInCaseBlock (/typescript-5.6.0-dev.20240714/lib/typescript.js:31907:12)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17590:16)
    at visitNode2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:31645:18)
    at forEachChildInSwitchStatement (/typescript-5.6.0-dev.20240714/lib/typescript.js:31904:51)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17590:16)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31653:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240714/lib/typescript.js:32123:10)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17590:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240714/lib/typescript.js:17570:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240714/lib/typescript.js:81264:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240714/lib/typescript.js:81077:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:62542:426)
    at getReturnTypeOfSingleNonGenericCallSignature (/typescript-5.6.0-dev.20240714/lib/typescript.js:83054:14)
    at getQuickTypeOfExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83105:94)
    at checkDeclarationInitializer (/typescript-5.6.0-dev.20240714/lib/typescript.js:82830:18)
    at getTypeForVariableLikeDeclaration (/typescript-5.6.0-dev.20240714/lib/typescript.js:58902:66)
    at getWidenedTypeForVariableLikeDeclaration (/typescript-5.6.0-dev.20240714/lib/typescript.js:59349:48)
    at getTypeOfVariableOrParameterOrPropertyWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:59497:14)
    at getTypeOfVariableOrParameterOrProperty (/typescript-5.6.0-dev.20240714/lib/typescript.js:59430:20)
    at getTypeOfSymbol (/typescript-5.6.0-dev.20240714/lib/typescript.js:59759:14)
    at getNarrowedTypeOfSymbol (/typescript-5.6.0-dev.20240714/lib/typescript.js:74522:18)
    at checkIdentifier (/typescript-5.6.0-dev.20240714/lib/typescript.js:74661:16)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240714/lib/typescript.js:83180:16)
    at checkExpression (/typescript-5.6.0-dev.20240714/lib/typescript.js:83134:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240714/lib/typescript.js:82808:28)
    at /typescript-5.6.0-dev.20240714/lib/typescript.js:81283:20
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17574:16)
    at visitNodes (/typescript-5.6.0-dev.20240714/lib/typescript.js:31653:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240714/lib/typescript.js:32123:10)
    at forEachChild (/typescript-5.6.0-dev.20240714/lib/typescript.js:32166:35)
    at traverse (/typescript-5.6.0-dev.20240714/lib/typescript.js:17590:16)
    at visitNode2 (/typescript-5.6.0-dev.20240714/lib/typescript.js:31645:18)
    at forEachChildInIfStatement (/typescript-5.6.0-dev.20240714/lib/typescript.js:31878:51)

Affected repos

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

Last few requests

```json {"seq":17121,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":51564,"offset":17}} {"seq":17122,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":51572,"offset":55,"includeExternalModuleExports":true,"triggerKind":1}} {"seq":17123,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":51572,"offset":55,"entryNames":["__commonJS"]}} {"seq":17124,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":51621,"offset":27}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/microsoft/monaco-editor --recurse-submodules git -C "./monaco-editor" reset --hard 5eb2aba338fd21ad97a9857a7e7307a8aea47cec # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./monaco-editor" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q yarn --cwd "./monaco-editor/website" install --ignore-engines --ignore-scripts --silent npm --prefix "./monaco-editor/webpack-plugin" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/test/smoke/parcel" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/electron-esm-webpack" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/electron-amd-nodeIntegration" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/electron-amd" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-webpack-typescript-react" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-webpack-typescript" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-webpack-small" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-webpack-monaco-plugin" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-webpack" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-vite-react" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-parcel" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-esbuild" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162727/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults2.zip "$downloadUrl" unzip -p RepoResults2.zip RepoResults2/microsoft.monaco-editor.replay.txt > microsoft.monaco-editor.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 ./monaco-editor ./microsoft.monaco-editor.replay.txt ```