microsoft / TypeScript

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

[ServerErrors][JavaScript] 5.7.0-dev.20240904 vs 5.5.4 #59899

Closed typescript-bot closed 1 week ago

typescript-bot commented 1 week ago

The following errors were reported by 5.7.0-dev.20240904 vs 5.5.4 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 293 of 300 visited repos | Outcome | Count | |---------|-------| | Detected interesting changes | 13 | | Detected no interesting changes | 280 | | Git clone failed | 2 | | Unknown failure | 5 |

Investigation Status

Repo Errors Outcome
typescript-bot commented 1 week ago
New server no longer reports this error: Error: Debug Failure. Expected 1 < 1. ``` Req #3845 - completionInfo at getArgumentOrParameterListInfo (/typescript-5.5.4/lib/typescript.js:172840:11) at getImmediatelyContainingArgumentInfo (/typescript-5.5.4/lib/typescript.js:172857:18) at Object.getArgumentInfoForCompletions (/typescript-5.5.4/lib/typescript.js:172831:16) at getContextualType (/typescript-5.5.4/lib/typescript.js:164393:48) at getCompletionData (/typescript-5.5.4/lib/typescript.js:164631:43) at Object.getCompletionsAtPosition (/typescript-5.5.4/lib/typescript.js:162588:26) at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.4/lib/typescript.js:149186:35) at IOSession.getCompletions (/typescript-5.5.4/lib/typescript.js:190693:54) at completionInfo (/typescript-5.5.4/lib/typescript.js:189072:43) at /typescript-5.5.4/lib/typescript.js:191491:69 at IOSession.executeWithRequestId (/typescript-5.5.4/lib/typescript.js:191483:14) at IOSession.executeCommand (/typescript-5.5.4/lib/typescript.js:191491:29) at IOSession.onMessage (/typescript-5.5.4/lib/typescript.js:191533:51) at Interface. (/typescript-5.5.4/lib/tsserver.js:499:14) ```

Affected repos

11ty/eleventy Raw error text: RepoResults8/11ty.eleventy.rawError.txt in the artifact folder
Replay commands: RepoResults8/11ty.eleventy.replay.txt in the artifact folder

Last few requests

```json {"seq":4105,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/test/stubs/cmd-help-processing/_data/test.js"}} {"seq":4106,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/test/stubs/cmd-help-processing/_data/test.js"}} {"seq":4107,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/test/stubs/cmd-help-processing/_data/test.js"}} {"seq":4108,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"@PROJECT_ROOT@/test/stubs/cmd-help-processing/_data/test.js","textChanges":[{"newText":" //comment","start":{"line":1,"offset":47},"end":{"line":1,"offset":47}}]}],"closedFiles":[],"openFiles":[]}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/11ty/eleventy --recurse-submodules git -C "./eleventy" reset --hard 3607be04dc3a15eb35307ed09b608f1f3dbe41c4 npm --prefix "./eleventy" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163527/artifacts?artifactName=RepoResults8&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults8.zip "$downloadUrl" unzip -p RepoResults8.zip RepoResults8/11ty.eleventy.replay.txt > 11ty.eleventy.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 ./eleventy ./11ty.eleventy.replay.txt ```
typescript-bot commented 1 week ago
New server no longer reports this error: Error: Debug Failure. Expected 1 < 1. ``` Req #2366 - completionInfo at getArgumentOrParameterListInfo (/typescript-5.5.4/lib/typescript.js:172840:11) at getImmediatelyContainingArgumentInfo (/typescript-5.5.4/lib/typescript.js:172857:18) at Object.getArgumentInfoForCompletions (/typescript-5.5.4/lib/typescript.js:172831:16) at getContextualType (/typescript-5.5.4/lib/typescript.js:164393:48) at getCompletionData (/typescript-5.5.4/lib/typescript.js:164631:43) at Object.getCompletionsAtPosition (/typescript-5.5.4/lib/typescript.js:162588:26) at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.4/lib/typescript.js:149186:35) at IOSession.getCompletions (/typescript-5.5.4/lib/typescript.js:190693:54) at completionInfo (/typescript-5.5.4/lib/typescript.js:189072:43) at /typescript-5.5.4/lib/typescript.js:191491:69 at IOSession.executeWithRequestId (/typescript-5.5.4/lib/typescript.js:191483:14) at IOSession.executeCommand (/typescript-5.5.4/lib/typescript.js:191491:29) at IOSession.onMessage (/typescript-5.5.4/lib/typescript.js:191533:51) at Interface. (/typescript-5.5.4/lib/tsserver.js:499:14) ```

Affected repos

OpenZeppelin/openzeppelin-contracts Raw error text: RepoResults4/OpenZeppelin.openzeppelin-contracts.rawError.txt in the artifact folder
Replay commands: RepoResults4/OpenZeppelin.openzeppelin-contracts.replay.txt in the artifact folder

Last few requests

```json {"seq":3146,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/test/token/ERC1155/extensions/ERC1155Burnable.test.js","line":3,"offset":34}} {"seq":3147,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/test/token/ERC1155/extensions/ERC1155Burnable.test.js","line":13,"offset":30}} {"seq":3148,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/test/token/ERC1155/extensions/ERC1155Burnable.test.js","line":56,"offset":60,"includeExternalModuleExports":true,"triggerKind":1}} {"seq":3149,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/test/token/ERC1155/extensions/ERC1155Burnable.test.js","line":56,"offset":60,"entryNames":["arguments"]}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/OpenZeppelin/openzeppelin-contracts --recurse-submodules git -C "./openzeppelin-contracts" reset --hard c01a0fa27fb2d1546958be5d2cbbdd3fb565e4fa # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./openzeppelin-contracts" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./openzeppelin-contracts/scripts/solhint-custom" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./openzeppelin-contracts/lib/forge-std" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./openzeppelin-contracts/lib/forge-std/lib/ds-test" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./openzeppelin-contracts/contracts" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163527/artifacts?artifactName=RepoResults4&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults4.zip "$downloadUrl" unzip -p RepoResults4.zip RepoResults4/OpenZeppelin.openzeppelin-contracts.replay.txt > OpenZeppelin.openzeppelin-contracts.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 ./openzeppelin-contracts ./OpenZeppelin.openzeppelin-contracts.replay.txt ```
typescript-bot commented 1 week ago
New server no longer reports this error: Error: Debug Failure. Expected 1 < 1. ``` Req #838 - completionInfo at getArgumentOrParameterListInfo (/typescript-5.5.4/lib/typescript.js:172840:11) at getImmediatelyContainingArgumentInfo (/typescript-5.5.4/lib/typescript.js:172857:18) at Object.getArgumentInfoForCompletions (/typescript-5.5.4/lib/typescript.js:172831:16) at getContextualType (/typescript-5.5.4/lib/typescript.js:164393:48) at getCompletionData (/typescript-5.5.4/lib/typescript.js:164631:43) at Object.getCompletionsAtPosition (/typescript-5.5.4/lib/typescript.js:162588:26) at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.4/lib/typescript.js:149186:35) at IOSession.getCompletions (/typescript-5.5.4/lib/typescript.js:190693:54) at completionInfo (/typescript-5.5.4/lib/typescript.js:189072:43) at /typescript-5.5.4/lib/typescript.js:191491:69 at IOSession.executeWithRequestId (/typescript-5.5.4/lib/typescript.js:191483:14) at IOSession.executeCommand (/typescript-5.5.4/lib/typescript.js:191491:29) at IOSession.onMessage (/typescript-5.5.4/lib/typescript.js:191533:51) at Interface. (/typescript-5.5.4/lib/tsserver.js:499:14) ```

Affected repos

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

Last few requests

```json {"seq":5531,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/ElectronJS/src/taskGrid/bootstrap/js/bootstrap.bundle.js","line":7086,"offset":10}} {"seq":5532,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/ElectronJS/src/taskGrid/bootstrap/js/bootstrap.bundle.js","line":7106,"offset":62}} {"seq":5533,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/ElectronJS/src/taskGrid/bootstrap/js/bootstrap.bundle.js","line":7129,"offset":10,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":5534,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/ElectronJS/src/taskGrid/bootstrap/js/bootstrap.bundle.js","line":7129,"offset":10,"entryNames":["_createClass"]}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/NaiboWang/EasySpider --recurse-submodules git -C "./EasySpider" reset --hard 7c4dafc00279ff1a12415c69bfa8902b9ebcfa5c # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./EasySpider/Extension/manifest_v3" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./EasySpider/ElectronJS" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163527/artifacts?artifactName=RepoResults3&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults3.zip "$downloadUrl" unzip -p RepoResults3.zip RepoResults3/NaiboWang.EasySpider.replay.txt > NaiboWang.EasySpider.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 ./EasySpider ./NaiboWang.EasySpider.replay.txt ```
typescript-bot commented 1 week ago
New server no longer reports this error: Error: Debug Failure. ``` Req #5927 - completionInfo at getThisContainer (/typescript-5.5.4/lib/typescript.js:17920:20) at tryGetThisTypeAt (/typescript-5.5.4/lib/typescript.js:74993:73) at Object.tryGetThisTypeAt (/typescript-5.5.4/lib/typescript.js:50308:22) at getGlobalCompletions (/typescript-5.5.4/lib/typescript.js:164932:36) at tryGetGlobalSymbols (/typescript-5.5.4/lib/typescript.js:164877:397) at getCompletionData (/typescript-5.5.4/lib/typescript.js:164626:10) at Object.getCompletionsAtPosition (/typescript-5.5.4/lib/typescript.js:162588:26) at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.4/lib/typescript.js:149186:35) at IOSession.getCompletions (/typescript-5.5.4/lib/typescript.js:190693:54) at completionInfo (/typescript-5.5.4/lib/typescript.js:189072:43) at /typescript-5.5.4/lib/typescript.js:191491:69 at IOSession.executeWithRequestId (/typescript-5.5.4/lib/typescript.js:191483:14) at IOSession.executeCommand (/typescript-5.5.4/lib/typescript.js:191491:29) at IOSession.onMessage (/typescript-5.5.4/lib/typescript.js:191533:51) at Interface. (/typescript-5.5.4/lib/tsserver.js:499: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":7632,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/jquery/src/ajax/var/nonce.js"}} {"seq":7633,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/jquery/src/ajax/var/nonce.js"}} {"seq":7634,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/jquery/src/ajax/var/nonce.js"}} {"seq":7635,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"@PROJECT_ROOT@/fks_chart/bower_components/jquery/src/ajax/var/nonce.js","textChanges":[{"newText":" //comment","start":{"line":1,"offset":9},"end":{"line":1,"offset":9}}]}],"closedFiles":[],"openFiles":[]}} ```

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/163527/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 1 week ago
New server no longer reports this error: Error: Debug Failure. ``` Req #6087 - completionInfo at getThisContainer (/typescript-5.5.4/lib/typescript.js:17920:20) at tryGetThisTypeAt (/typescript-5.5.4/lib/typescript.js:74993:73) at Object.tryGetThisTypeAt (/typescript-5.5.4/lib/typescript.js:50308:22) at getGlobalCompletions (/typescript-5.5.4/lib/typescript.js:164932:36) at tryGetGlobalSymbols (/typescript-5.5.4/lib/typescript.js:164877:397) at getCompletionData (/typescript-5.5.4/lib/typescript.js:164626:10) at Object.getCompletionsAtPosition (/typescript-5.5.4/lib/typescript.js:162588:26) at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.4/lib/typescript.js:149186:35) at IOSession.getCompletions (/typescript-5.5.4/lib/typescript.js:190693:54) at completionInfo (/typescript-5.5.4/lib/typescript.js:189072:43) at /typescript-5.5.4/lib/typescript.js:191491:69 at IOSession.executeWithRequestId (/typescript-5.5.4/lib/typescript.js:191483:14) at IOSession.executeCommand (/typescript-5.5.4/lib/typescript.js:191491:29) at IOSession.onMessage (/typescript-5.5.4/lib/typescript.js:191533:51) at Interface. (/typescript-5.5.4/lib/tsserver.js:499: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":10707,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":10708,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}} {"seq":10709,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}} {"seq":10710,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}} ```

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/163527/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 1 week ago
New server no longer reports this error: Error: Debug Failure. Expected 5 < 5. ``` Req #13835 - completionInfo at getArgumentOrParameterListInfo (/typescript-5.5.4/lib/typescript.js:172840:11) at getImmediatelyContainingArgumentInfo (/typescript-5.5.4/lib/typescript.js:172857:18) at Object.getArgumentInfoForCompletions (/typescript-5.5.4/lib/typescript.js:172831:16) at getContextualType (/typescript-5.5.4/lib/typescript.js:164393:48) at getCompletionData (/typescript-5.5.4/lib/typescript.js:164631:43) at Object.getCompletionsAtPosition (/typescript-5.5.4/lib/typescript.js:162588:26) at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.4/lib/typescript.js:149186:35) at IOSession.getCompletions (/typescript-5.5.4/lib/typescript.js:190693:54) at completionInfo (/typescript-5.5.4/lib/typescript.js:189072:43) at /typescript-5.5.4/lib/typescript.js:191491:69 at IOSession.executeWithRequestId (/typescript-5.5.4/lib/typescript.js:191483:14) at IOSession.executeCommand (/typescript-5.5.4/lib/typescript.js:191491:29) at IOSession.onMessage (/typescript-5.5.4/lib/typescript.js:191533:51) at Interface. (/typescript-5.5.4/lib/tsserver.js:499:14) ```

Affected repos

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

Last few requests

```json {"seq":62256,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/main/webapp/math/es5/input/mml/extensions/mml3.js","line":1,"offset":27753}} {"seq":62257,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/main/webapp/math/es5/input/mml/extensions/mml3.js","line":1,"offset":27753,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":62258,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/main/webapp/math/es5/input/mml/extensions/mml3.js","line":1,"offset":28218}} {"seq":62259,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/main/webapp/math/es5/input/mml/extensions/mml3.js","line":1,"offset":28404}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/jgraph/drawio --recurse-submodules git -C "./drawio" reset --hard 78930d797dabf8238e3569ce110d02361ff4a973 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163527/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults2.zip "$downloadUrl" unzip -p RepoResults2.zip RepoResults2/jgraph.drawio.replay.txt > jgraph.drawio.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 ./drawio ./jgraph.drawio.replay.txt ```
typescript-bot commented 1 week 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":22429,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16513,"offset":1,"entryNames":["$"]}} {"seq":22430,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16544,"offset":43,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":22431,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16544,"offset":43,"entryNames":["__delete__"]}} {"seq":22432,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16556,"offset":2,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/tastejs/todomvc --recurse-submodules git -C "./todomvc" reset --hard 643cab2e0d5154130077df6356e53871f3b0fa84 # 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/163527/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 1 week ago

Error: Debug Failure. False expression.

Req #5038 - completionInfo
    at Object.addImportFromExportedSymbol (/typescript-5.7.0-dev.20240904/lib/typescript.js:155742:13)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:162917:38
    at importSymbols (/typescript-5.7.0-dev.20240904/lib/typescript.js:162917:11)
    at Object.addNewNodeForMemberSymbol (/typescript-5.7.0-dev.20240904/lib/typescript.js:162310:11)
    at getEntryForMemberCompletion (/typescript-5.7.0-dev.20240904/lib/typescript.js:165187:22)
    at createCompletionEntry (/typescript-5.7.0-dev.20240904/lib/typescript.js:165027:35)
    at getCompletionEntriesFromSymbols (/typescript-5.7.0-dev.20240904/lib/typescript.js:165670:19)
    at completionInfoFromData (/typescript-5.7.0-dev.20240904/lib/typescript.js:164660:23)
    at Object.getCompletionsAtPosition (/typescript-5.7.0-dev.20240904/lib/typescript.js:164193:24)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.7.0-dev.20240904/lib/typescript.js:150567:35)
    at IOSession.getCompletions (/typescript-5.7.0-dev.20240904/lib/typescript.js:192571:54)
    at completionInfo (/typescript-5.7.0-dev.20240904/lib/typescript.js:190894:43)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:193345:15
    at IOSession.executeWithRequestId (/typescript-5.7.0-dev.20240904/lib/typescript.js:193334:14)
    at IOSession.executeCommand (/typescript-5.7.0-dev.20240904/lib/typescript.js:193343:29)
    at IOSession.onMessage (/typescript-5.7.0-dev.20240904/lib/typescript.js:193391:68)
    at Interface.<anonymous> (/typescript-5.7.0-dev.20240904/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":5035,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/test/fixtures/apps/app-ts/app/controller/foo.ts","line":10,"offset":53,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":5036,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/test/fixtures/apps/app-ts/app/controller/foo.ts","line":29,"offset":23,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":5037,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/test/fixtures/apps/app-ts/app/controller/foo.ts","line":75,"offset":45}} {"seq":5038,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/test/fixtures/apps/app-ts/app/controller/foo.ts","line":90,"offset":4,"includeExternalModuleExports":true,"triggerKind":1}} ```

Repro steps

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

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

Req #546 - updateOpen
    at isDocumentRegistryEntry (/typescript-5.7.0-dev.20240904/lib/typescript.js:141305:18)
    at getDocumentRegistryEntry (/typescript-5.7.0-dev.20240904/lib/typescript.js:141381:19)
    at Object.releaseDocumentWithKey (/typescript-5.7.0-dev.20240904/lib/typescript.js:141476:19)
    at releaseOldSourceFile (/typescript-5.7.0-dev.20240904/lib/typescript.js:150332:24)
    at Object.onReleaseOldSourceFile (/typescript-5.7.0-dev.20240904/lib/typescript.js:150336:7)
    at createProgram (/typescript-5.7.0-dev.20240904/lib/typescript.js:125392:14)
    at synchronizeHostDataWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:150292:15)
    at synchronizeHostData (/typescript-5.7.0-dev.20240904/lib/typescript.js:150188:7)
    at Object.getProgram (/typescript-5.7.0-dev.20240904/lib/typescript.js:150369:5)
    at InferredProject2.updateGraphWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:184988:41)
    at InferredProject2.updateGraph (/typescript-5.7.0-dev.20240904/lib/typescript.js:184824:32)
    at updateProjectIfDirty (/typescript-5.7.0-dev.20240904/lib/typescript.js:186601:36)
    at _ProjectService.assignProjectToOpenedScriptInfo (/typescript-5.7.0-dev.20240904/lib/typescript.js:189073:29)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:189478:25
    at _ProjectService.applyChangesInOpenFiles (/typescript-5.7.0-dev.20240904/lib/typescript.js:189476:56)
    at updateOpen (/typescript-5.7.0-dev.20240904/lib/typescript.js:190677:29)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:193345:15
    at IOSession.executeWithRequestId (/typescript-5.7.0-dev.20240904/lib/typescript.js:193334:14)
    at IOSession.executeCommand (/typescript-5.7.0-dev.20240904/lib/typescript.js:193343:29)
    at IOSession.onMessage (/typescript-5.7.0-dev.20240904/lib/typescript.js:193391:68)
    at Interface.<anonymous> (/typescript-5.7.0-dev.20240904/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":543,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/tools/config-rule.js","line":292,"offset":4,"entryNames":["@abstract"]}} {"seq":544,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/tools/config-rule.js","line":295,"offset":44}} {"seq":545,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/Makefile.js"],"openFiles":[]}} {"seq":546,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/tools/code-sample-minimizer.js","projectRootPath":"@PROJECT_ROOT@"}]}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/eslint/eslint --recurse-submodules git -C "./eslint" reset --hard adcc50dbf1fb98c0884f841e2a627796a4490373 # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./eslint" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./eslint/packages/js" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./eslint/packages/eslint-config-eslint" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./eslint/docs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./eslint/docs/_examples/integration-tutorial-code" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./eslint/docs/_examples/custom-rule-tutorial-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/163527/artifacts?artifactName=RepoResults4&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults4.zip "$downloadUrl" unzip -p RepoResults4.zip RepoResults4/eslint.eslint.replay.txt > eslint.eslint.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 ./eslint ./eslint.eslint.replay.txt ```
typescript-bot commented 1 week ago

RangeError: Maximum call stack size exceeded

Req #10916 - completionEntryDetails
    at isMatchingReference (/typescript-5.7.0-dev.20240904/lib/typescript.js:72631:31)
    at getTypeAtFlowAssignment (/typescript-5.7.0-dev.20240904/lib/typescript.js:73688:11)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73627:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240904/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)

Affected repos

dcloudio/uni-app Raw error text: RepoResults2/dcloudio.uni-app.rawError.txt in the artifact folder
Replay commands: RepoResults2/dcloudio.uni-app.replay.txt in the artifact folder

Last few requests

```json {"seq":10913,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/uni-app-uts/lib/unicloud-utils/index.js","line":1,"offset":1137918,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":10914,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/uni-app-uts/lib/unicloud-utils/index.js","line":1,"offset":1137918,"entryNames":["_"]}} {"seq":10915,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/uni-app-uts/lib/unicloud-utils/index.js","line":1,"offset":1138436,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":10916,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/uni-app-uts/lib/unicloud-utils/index.js","line":1,"offset":1138436,"entryNames":["_"]}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/dcloudio/uni-app --recurse-submodules git -C "./uni-app" reset --hard d89c2e5f7b0367c00708bfa761a95fda893f37c5 # Install packages (exact steps are below, but it might be easier to follow the repo readme) pnpm --dir "./uni-app" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent pnpm --dir "./uni-app/packages/playground/uts/uni_modules/test-uniplugin" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163527/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults2.zip "$downloadUrl" unzip -p RepoResults2.zip RepoResults2/dcloudio.uni-app.replay.txt > dcloudio.uni-app.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 ./uni-app ./dcloudio.uni-app.replay.txt ```
typescript-bot commented 1 week ago

RangeError: Maximum call stack size exceeded

Req #16496 - completionInfo
    at markNodeAssignments (/typescript-5.7.0-dev.20240904/lib/typescript.js:74701:31)
    at visitNode2 (/typescript-5.7.0-dev.20240904/lib/typescript.js:31957:18)
    at forEachChildInVariableStatement (/typescript-5.7.0-dev.20240904/lib/typescript.js:32181:59)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at markNodeAssignments (/typescript-5.7.0-dev.20240904/lib/typescript.js:74746:5)
    at visitNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:31965:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240904/lib/typescript.js:32435:10)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at markNodeAssignments (/typescript-5.7.0-dev.20240904/lib/typescript.js:74746:5)
    at visitNode2 (/typescript-5.7.0-dev.20240904/lib/typescript.js:31957:18)
    at forEachChildInFunctionDeclaration (/typescript-5.7.0-dev.20240904/lib/typescript.js:32051:267)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at markNodeAssignments (/typescript-5.7.0-dev.20240904/lib/typescript.js:74746:5)
    at isPastLastAssignment (/typescript-5.7.0-dev.20240904/lib/typescript.js:74680:9)
    at isSymbolAssigned (/typescript-5.7.0-dev.20240904/lib/typescript.js:74665:13)
    at isConstantReference (/typescript-5.7.0-dev.20240904/lib/typescript.js:73565:94)
    at narrowType (/typescript-5.7.0-dev.20240904/lib/typescript.js:74589:120)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73806:28)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240904/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:73639:18)
    at getFlowTypeOfReference (/typescript-5.7.0-dev.20240904/lib/typescript.js:73590:45)
    at checkIdentifier (/typescript-5.7.0-dev.20240904/lib/typescript.js:75367:134)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:84051:16)
    at checkExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:83995:32)
    at checkExpressionWithContextualType (/typescript-5.7.0-dev.20240904/lib/typescript.js:83598:18)
    at getSignatureApplicabilityError (/typescript-5.7.0-dev.20240904/lib/typescript.js:79332:25)
    at chooseOverload (/typescript-5.7.0-dev.20240904/lib/typescript.js:79869:13)
    at resolveCall (/typescript-5.7.0-dev.20240904/lib/typescript.js:79716:16)
    at resolveCallExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:80153:12)
    at resolveSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:80546:16)
    at getResolvedSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:80572:18)
    at checkCallExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:80683:23)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:84096:16)
    at checkExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:83995:32)
    at checkExpressionCached (/typescript-5.7.0-dev.20240904/lib/typescript.js:83622:28)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:82019:20
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17716:16)
    at visitNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:31965:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240904/lib/typescript.js:32435:10)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at visitNode2 (/typescript-5.7.0-dev.20240904/lib/typescript.js:31957:18)
    at forEachChildInIfStatement (/typescript-5.7.0-dev.20240904/lib/typescript.js:32190:51)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at visitNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:31965:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240904/lib/typescript.js:32435:10)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at visitNode2 (/typescript-5.7.0-dev.20240904/lib/typescript.js:31957:18)
    at forEachChildInIfStatement (/typescript-5.7.0-dev.20240904/lib/typescript.js:32190:51)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at visitNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:31965:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240904/lib/typescript.js:32435:10)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at visitNode2 (/typescript-5.7.0-dev.20240904/lib/typescript.js:31957:18)
    at forEachChildInIfStatement (/typescript-5.7.0-dev.20240904/lib/typescript.js:32190:51)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at visitNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:31965:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240904/lib/typescript.js:32435:10)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at forEachReturnStatement (/typescript-5.7.0-dev.20240904/lib/typescript.js:17712:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.7.0-dev.20240904/lib/typescript.js:82000:5)
    at getReturnTypeFromBody (/typescript-5.7.0-dev.20240904/lib/typescript.js:81828:21)
    at getReturnTypeOfSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:63128:426)
    at checkCallExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:80708:24)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:84096:16)
    at checkExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:83995:32)
    at checkExpressionCached (/typescript-5.7.0-dev.20240904/lib/typescript.js:83622:28)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:82019:20
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17716:16)
    at visitNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:31965:22)
    at forEachChildInCaseClause (/typescript-5.7.0-dev.20240904/lib/typescript.js:32222:51)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at visitNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:31965:22)
    at forEachChildInCaseBlock (/typescript-5.7.0-dev.20240904/lib/typescript.js:32219:12)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at visitNode2 (/typescript-5.7.0-dev.20240904/lib/typescript.js:31957:18)
    at forEachChildInSwitchStatement (/typescript-5.7.0-dev.20240904/lib/typescript.js:32216:51)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at visitNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:31965:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240904/lib/typescript.js:32435:10)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at forEachReturnStatement (/typescript-5.7.0-dev.20240904/lib/typescript.js:17712:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.7.0-dev.20240904/lib/typescript.js:82000:5)
    at getReturnTypeFromBody (/typescript-5.7.0-dev.20240904/lib/typescript.js:81828:21)
    at getReturnTypeOfSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:63128:426)
    at getReturnTypeOfSingleNonGenericCallSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:83915:14)
    at getQuickTypeOfExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:83966:94)
    at checkDeclarationInitializer (/typescript-5.7.0-dev.20240904/lib/typescript.js:83644:18)
    at getTypeForVariableLikeDeclaration (/typescript-5.7.0-dev.20240904/lib/typescript.js:59460:66)

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":16493,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":48479,"offset":390,"entryNames":["__commonJS"]}} {"seq":16494,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":48482,"offset":7,"includeExternalModuleExports":true,"triggerKind":1}} {"seq":16495,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":48482,"offset":7,"entryNames":["__commonJS"]}} {"seq":16496,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":48535,"offset":46,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/microsoft/monaco-editor --recurse-submodules git -C "./monaco-editor" reset --hard b31d22b9ee8e8081751069dc72d397f782cf8eb5 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163527/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 ```
typescript-bot commented 1 week ago

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

Req #876 - references
    at addSyntheticNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:149365:15)
    at createSyntaxList (/typescript-5.7.0-dev.20240904/lib/typescript.js:149380:5)
    at processNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:149345:19)
    at visitNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:31962:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:32114:12)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at NodeObject.forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:149325:12)
    at createChildren (/typescript-5.7.0-dev.20240904/lib/typescript.js:149350:8)
    at NodeObject.getChildren (/typescript-5.7.0-dev.20240904/lib/typescript.js:149304:83)
    at getTokenAtPositionWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:137616:32)
    at getTouchingToken (/typescript-5.7.0-dev.20240904/lib/typescript.js:137589:10)
    at getTouchingPropertyName (/typescript-5.7.0-dev.20240904/lib/typescript.js:137586:10)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:170669:33
    at mapDefined (/typescript-5.7.0-dev.20240904/lib/typescript.js:2586:22)
    at getPossibleSymbolReferenceNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:170668:12)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:171195:25
    at flatMap (/typescript-5.7.0-dev.20240904/lib/typescript.js:2516:17)
    at getReferencesForStringLiteral (/typescript-5.7.0-dev.20240904/lib/typescript.js:171193:24)
    at Object.getReferencedSymbolsForNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:170073:16)
    at Object.findReferencedSymbols (/typescript-5.7.0-dev.20240904/lib/typescript.js:169677:34)
    at Object.findReferences (/typescript-5.7.0-dev.20240904/lib/typescript.js:150736:41)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:190350:43
    at searchPosition (/typescript-5.7.0-dev.20240904/lib/typescript.js:190492:28)
    at getPerProjectReferences (/typescript-5.7.0-dev.20240904/lib/typescript.js:190471:32)
    at getReferencesWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:190342:29)
    at IOSession.getReferences (/typescript-5.7.0-dev.20240904/lib/typescript.js:192326:24)
    at references (/typescript-5.7.0-dev.20240904/lib/typescript.js:190775:43)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:193345:15
    at IOSession.executeWithRequestId (/typescript-5.7.0-dev.20240904/lib/typescript.js:193334:14)
    at IOSession.executeCommand (/typescript-5.7.0-dev.20240904/lib/typescript.js:193343:29)
    at IOSession.onMessage (/typescript-5.7.0-dev.20240904/lib/typescript.js:193391:68)
    at Interface.<anonymous> (/typescript-5.7.0-dev.20240904/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":873,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/editor/main.js","line":2,"offset":264175,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}} {"seq":874,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/editor/main.js","line":2,"offset":266129}} {"seq":875,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/editor/main.js","line":2,"offset":266222}} {"seq":876,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/editor/main.js","line":2,"offset":267068}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/HumanSignal/label-studio --recurse-submodules git -C "./label-studio" reset --hard 038b76e6bd8da0b01309c48e5ff9423f77381da2 # Install packages (exact steps are below, but it might be easier to follow the repo readme) yarn --cwd "./label-studio/web" install --ignore-engines --ignore-scripts --silent yarn --cwd "./label-studio/web/tools/version" install --ignore-engines --ignore-scripts --silent npm --prefix "./label-studio/web/libs/frontend-test/src/bin/assets" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q yarn --cwd "./label-studio/web/libs/editor/tests/e2e" install --ignore-engines --ignore-scripts --silent yarn --cwd "./label-studio/docs" install --ignore-engines --ignore-scripts --silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163527/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 1 week ago

RangeError: Maximum call stack size exceeded

Req #23676 - completionInfo
    at declarationNameToString (/typescript-5.7.0-dev.20240904/lib/typescript.js:17292:33)
    at getNameOfSymbolAsWritten (/typescript-5.7.0-dev.20240904/lib/typescript.js:58924:16)
    at createAccessFromSymbolChain (/typescript-5.7.0-dev.20240904/lib/typescript.js:56278:25)
    at symbolToTypeNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:56255:26)
    at typeReferenceToTypeNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:55290:28)
    at typeToTypeNodeWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:54775:83)
    at typeToTypeNodeHelper (/typescript-5.7.0-dev.20240904/lib/typescript.js:54620:24)
    at expressionOrTypeToTypeNodeHelper (/typescript-5.7.0-dev.20240904/lib/typescript.js:54519:14)
    at expressionOrTypeToTypeNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:54502:22)
    at serializeReturnTypeForSignatureWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:56613:14)
    at serializeReturnTypeForSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:56590:26)
    at signatureToSignatureDeclarationHelper (/typescript-5.7.0-dev.20240904/lib/typescript.js:55684:30)
    at addPropertyToElementList (/typescript-5.7.0-dev.20240904/lib/typescript.js:55505:37)
    at createTypeNodesFromResolvedType (/typescript-5.7.0-dev.20240904/lib/typescript.js:55416:11)
    at createTypeNodeFromObjectType (/typescript-5.7.0-dev.20240904/lib/typescript.js:55183:25)
    at visitAndTransformType (/typescript-5.7.0-dev.20240904/lib/typescript.js:55106:24)
    at createAnonymousTypeNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:55046:20)
    at typeToTypeNodeWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:54839:16)
    at typeToTypeNodeHelper (/typescript-5.7.0-dev.20240904/lib/typescript.js:54620:24)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:54444:165
    at withContext2 (/typescript-5.7.0-dev.20240904/lib/typescript.js:54599:29)
    at Object.typeToTypeNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:54444:86)
    at typeToString (/typescript-5.7.0-dev.20240904/lib/typescript.js:54389:34)
    at reportNonexistentProperty (/typescript-5.7.0-dev.20240904/lib/typescript.js:78557:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.7.0-dev.20240904/lib/typescript.js:78385:11)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:78166:94)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:84085:16)
    at checkExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:83995:32)
    at checkNonNullExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:78087:29)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:78166:162)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:84085:16)
    at checkExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:83995:32)
    at checkExpressionWithContextualType (/typescript-5.7.0-dev.20240904/lib/typescript.js:83598:18)
    at getSignatureApplicabilityError (/typescript-5.7.0-dev.20240904/lib/typescript.js:79332:25)
    at chooseOverload (/typescript-5.7.0-dev.20240904/lib/typescript.js:79869:13)
    at resolveCall (/typescript-5.7.0-dev.20240904/lib/typescript.js:79716:16)
    at resolveCallExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:80153:12)
    at resolveSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:80546:16)
    at getResolvedSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:80572:18)
    at checkCallExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:80683:23)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:84096:16)
    at checkExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:83995:32)
    at checkExpressionCached (/typescript-5.7.0-dev.20240904/lib/typescript.js:83622:28)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:82019:20
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17716:16)
    at visitNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:31965:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240904/lib/typescript.js:32435:10)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at forEachReturnStatement (/typescript-5.7.0-dev.20240904/lib/typescript.js:17712:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.7.0-dev.20240904/lib/typescript.js:82000:5)
    at getReturnTypeFromBody (/typescript-5.7.0-dev.20240904/lib/typescript.js:81828:21)
    at getReturnTypeOfSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:63128:426)
    at serializeReturnTypeForSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:56584:26)
    at signatureToSignatureDeclarationHelper (/typescript-5.7.0-dev.20240904/lib/typescript.js:55684:30)
    at addPropertyToElementList (/typescript-5.7.0-dev.20240904/lib/typescript.js:55505:37)
    at createTypeNodesFromResolvedType (/typescript-5.7.0-dev.20240904/lib/typescript.js:55416:11)
    at createTypeNodeFromObjectType (/typescript-5.7.0-dev.20240904/lib/typescript.js:55183:25)
    at visitAndTransformType (/typescript-5.7.0-dev.20240904/lib/typescript.js:55106:24)
    at createAnonymousTypeNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:55046:20)
    at typeToTypeNodeWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:54839:16)
    at typeToTypeNodeHelper (/typescript-5.7.0-dev.20240904/lib/typescript.js:54620:24)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:54444:165
    at withContext2 (/typescript-5.7.0-dev.20240904/lib/typescript.js:54599:29)
    at Object.typeToTypeNode (/typescript-5.7.0-dev.20240904/lib/typescript.js:54444:86)
    at typeToString (/typescript-5.7.0-dev.20240904/lib/typescript.js:54389:34)
    at reportNonexistentProperty (/typescript-5.7.0-dev.20240904/lib/typescript.js:78557:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.7.0-dev.20240904/lib/typescript.js:78385:11)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:78166:94)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:84085:16)
    at checkExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:83995:32)
    at checkNonNullExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:78087:29)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:78166:162)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:84085:16)
    at checkExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:83995:32)
    at checkExpressionWithContextualType (/typescript-5.7.0-dev.20240904/lib/typescript.js:83598:18)
    at getSignatureApplicabilityError (/typescript-5.7.0-dev.20240904/lib/typescript.js:79332:25)
    at chooseOverload (/typescript-5.7.0-dev.20240904/lib/typescript.js:79869:13)
    at resolveCall (/typescript-5.7.0-dev.20240904/lib/typescript.js:79716:16)
    at resolveCallExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:80153:12)
    at resolveSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:80546:16)
    at getResolvedSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:80572:18)
    at checkCallExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:80683:23)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240904/lib/typescript.js:84096:16)
    at checkExpression (/typescript-5.7.0-dev.20240904/lib/typescript.js:83995:32)
    at checkExpressionCached (/typescript-5.7.0-dev.20240904/lib/typescript.js:83622:28)
    at /typescript-5.7.0-dev.20240904/lib/typescript.js:82019:20
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17716:16)
    at visitNodes (/typescript-5.7.0-dev.20240904/lib/typescript.js:31965:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240904/lib/typescript.js:32435:10)
    at forEachChild (/typescript-5.7.0-dev.20240904/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240904/lib/typescript.js:17732:16)
    at forEachReturnStatement (/typescript-5.7.0-dev.20240904/lib/typescript.js:17712:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.7.0-dev.20240904/lib/typescript.js:82000:5)
    at getReturnTypeFromBody (/typescript-5.7.0-dev.20240904/lib/typescript.js:81828:21)
    at getReturnTypeOfSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:63128:426)
    at serializeReturnTypeForSignature (/typescript-5.7.0-dev.20240904/lib/typescript.js:56584:26)
    at signatureToSignatureDeclarationHelper (/typescript-5.7.0-dev.20240904/lib/typescript.js:55684:30)
    at addPropertyToElementList (/typescript-5.7.0-dev.20240904/lib/typescript.js:55505:37)
    at createTypeNodesFromResolvedType (/typescript-5.7.0-dev.20240904/lib/typescript.js:55416:11)

Affected repos

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

Last few requests

```json {"seq":23673,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":315805}} {"seq":23674,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":316127,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":23675,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":316127,"entryNames":["_"]}} {"seq":23676,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":316432,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

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