microsoft / TypeScript

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

[ServerErrors][JavaScript] 5.6.0-dev.20240804 vs 5.5.4 #59531

Closed typescript-bot closed 3 months ago

typescript-bot commented 3 months ago

The following errors were reported by 5.6.0-dev.20240804 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 290 of 300 visited repos | Outcome | Count | |---------|-------| | Detected interesting changes | 12 | | Detected no interesting changes | 278 | | Unknown failure | 10 |

Investigation Status

Repo Errors Outcome
typescript-bot commented 3 months ago
New server no longer reports this error: Error: Debug Failure. Expected 1 < 1. ``` Req #4648 - 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

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

Last few requests

```json {"seq":31553,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/@ember/-internals/glimmer/tests/integration/components/link-to/query-params-curly-test.js","line":818,"offset":13}} {"seq":31554,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/@ember/-internals/glimmer/tests/integration/components/link-to/query-params-curly-test.js","line":818,"offset":13}} {"seq":31555,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/@ember/-internals/glimmer/tests/integration/components/link-to/query-params-curly-test.js","line":818,"offset":13,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":31556,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/@ember/-internals/glimmer/tests/integration/components/link-to/query-params-curly-test.js","line":847,"offset":46}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/emberjs/ember.js --recurse-submodules git -C "./ember.js" reset --hard 8abcd000ee1b8ad38e2a84345027931a1fe4a6a8 pnpm --dir "./ember.js" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163153/artifacts?artifactName=RepoResults5&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults5.zip "$downloadUrl" unzip -p RepoResults5.zip RepoResults5/emberjs.ember.js.replay.txt > emberjs.ember.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 ./ember.js ./emberjs.ember.js.replay.txt ```
typescript-bot commented 3 months ago
New server no longer reports this error: Error: Debug Failure. Expected 2 < 2. ``` Req #1830 - 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

songquanpeng/one-api Raw error text: RepoResults8/songquanpeng.one-api.rawError.txt in the artifact folder
Replay commands: RepoResults8/songquanpeng.one-api.replay.txt in the artifact folder

Last few requests

```json {"seq":3155,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/berry/src/layout/MainLayout/Sidebar/MenuList/NavCollapse/index.js","line":65,"offset":16}} {"seq":3156,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/web/berry/src/layout/MainLayout/Sidebar/MenuList/NavCollapse/index.js","line":107,"offset":31,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":3157,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/web/berry/src/layout/MainLayout/Sidebar/MenuList/NavCollapse/index.js","line":107,"offset":31,"entryNames":["\":-khtml-any-link\""]}} {"seq":3158,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/berry/src/layout/MainLayout/Sidebar/MenuList/NavCollapse/index.js","line":125,"offset":107}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/songquanpeng/one-api --recurse-submodules git -C "./one-api" reset --hard c936198ac8cf3c51bb839d11efea0bfd06fedc57 # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./one-api/web/default" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./one-api/web/berry" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./one-api/web/air" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163153/artifacts?artifactName=RepoResults8&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults8.zip "$downloadUrl" unzip -p RepoResults8.zip RepoResults8/songquanpeng.one-api.replay.txt > songquanpeng.one-api.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 ./one-api ./songquanpeng.one-api.replay.txt ```
typescript-bot commented 3 months ago
New server no longer reports this error: Error: Debug Failure. Expected 2 < 2. ``` Req #1571 - 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

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

Last few requests

```json {"seq":7061,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/src/core/modules/component/snabbdom/helpers/attachto.d.ts"}},"skipDestructiveCodeActions":true}} {"seq":7062,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/src/core/modules/component/snabbdom/helpers/attachto.d.ts"}} {"seq":7063,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/src/core/modules/component/snabbdom/helpers/attachto.d.ts"}} {"seq":7064,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/src/core/modules/component/snabbdom/helpers/attachto.d.ts"}} ```

Repro steps

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

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

Req #3887 - completionInfo
    at addSyntheticNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:148630:15)
    at createSyntaxList (/typescript-5.6.0-dev.20240804/lib/typescript.js:148645:5)
    at processNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:148610:19)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31766:14)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240804/lib/typescript.js:32239:10)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:148590:12)
    at createChildren (/typescript-5.6.0-dev.20240804/lib/typescript.js:148615:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240804/lib/typescript.js:148569:83)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137042:24)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at findPrecedingToken (/typescript-5.6.0-dev.20240804/lib/typescript.js:137035:18)
    at getRelevantTokens (/typescript-5.6.0-dev.20240804/lib/typescript.js:166552:25)
    at Object.getCompletionsAtPosition (/typescript-5.6.0-dev.20240804/lib/typescript.js:163258:29)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.6.0-dev.20240804/lib/typescript.js:149829:35)
    at IOSession.getCompletions (/typescript-5.6.0-dev.20240804/lib/typescript.js:191535:54)
    at completionInfo (/typescript-5.6.0-dev.20240804/lib/typescript.js:189858:43)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:192309:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240804/lib/typescript.js:192298:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240804/lib/typescript.js:192307:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240804/lib/typescript.js:192355:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240804/lib/tsserver.js:501:14)

Affected repos

prettier/prettier Raw error text: RepoResults1/prettier.prettier.rawError.txt in the artifact folder
Replay commands: RepoResults1/prettier.prettier.replay.txt in the artifact folder

Last few requests

```json {"seq":3884,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/tests/format/js/explicit-resource-management/valid-await-using-binding-non-bmp.js"}} {"seq":3885,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/tests/format/js/explicit-resource-management/valid-await-using-binding-non-bmp.js"}} {"seq":3886,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"@PROJECT_ROOT@/tests/format/js/explicit-resource-management/valid-await-using-binding-non-bmp.js","textChanges":[{"newText":" //comment","start":{"line":1,"offset":21},"end":{"line":1,"offset":21}}]}],"closedFiles":[],"openFiles":[]}} {"seq":3887,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/tests/format/js/explicit-resource-management/valid-await-using-binding-non-bmp.js","line":2,"offset":20,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/prettier/prettier --recurse-submodules git -C "./prettier" reset --hard 61c45e3fb3b676222808325236c067cf1f2c8341 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163153/artifacts?artifactName=RepoResults1&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults1.zip "$downloadUrl" unzip -p RepoResults1.zip RepoResults1/prettier.prettier.replay.txt > prettier.prettier.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 ./prettier ./prettier.prettier.replay.txt ```
typescript-bot commented 3 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":21792,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":13942,"offset":1}} {"seq":21793,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":13942,"offset":2,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":21794,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":13962,"offset":49,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":21795,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":13981,"offset":3,"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/163153/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 3 months ago

RangeError: Maximum call stack size exceeded

Req #16872 - completionEntryDetails
    at isMatchingReference (/typescript-5.6.0-dev.20240804/lib/typescript.js:72175:31)
    at getTypeAtFlowAssignment (/typescript-5.6.0-dev.20240804/lib/typescript.js:73232:11)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240804/lib/typescript.js:73171:18)
    at getFlowTypeOfReference (/typescript-5.6.0-dev.20240804/lib/typescript.js:73134:45)
    at checkIdentifier (/typescript-5.6.0-dev.20240804/lib/typescript.js:74891:134)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83489:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at checkNonNullExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:77549:29)
    at checkPropertyAccessExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:77628:162)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83523:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at maybeCheckExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:82428:28)
    at BinaryExpressionStateMachine.onLeft (/typescript-5.6.0-dev.20240804/lib/typescript.js:82362:16)
    at Array.left (/typescript-5.6.0-dev.20240804/lib/typescript.js:31440:30)
    at trampoline (/typescript-5.6.0-dev.20240804/lib/typescript.js:31544:42)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:82320:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83567:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240804/lib/typescript.js:83060:28)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:81486:20
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17654:16)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31769:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240804/lib/typescript.js:32239:10)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at visitNode2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:31761:18)
    at forEachChildInIfStatement (/typescript-5.6.0-dev.20240804/lib/typescript.js:31994:51)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31769:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240804/lib/typescript.js:32239:10)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at visitNode2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:31761:18)
    at forEachChildInIfStatement (/typescript-5.6.0-dev.20240804/lib/typescript.js:31994:51)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31769:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240804/lib/typescript.js:32239:10)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240804/lib/typescript.js:17650:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240804/lib/typescript.js:81467:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240804/lib/typescript.js:81290:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:62703:426)
    at getReturnTypeOfSingleNonGenericCallSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:83353:14)
    at getQuickTypeOfExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83404:94)
    at checkDeclarationInitializer (/typescript-5.6.0-dev.20240804/lib/typescript.js:83082:18)
    at getTypeForVariableLikeDeclaration (/typescript-5.6.0-dev.20240804/lib/typescript.js:59053:66)
    at getWidenedTypeForVariableLikeDeclaration (/typescript-5.6.0-dev.20240804/lib/typescript.js:59503:48)
    at getTypeOfVariableOrParameterOrPropertyWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:59648:14)
    at getTypeOfVariableOrParameterOrProperty (/typescript-5.6.0-dev.20240804/lib/typescript.js:59584:20)
    at getTypeOfSymbol (/typescript-5.6.0-dev.20240804/lib/typescript.js:59907:14)
    at getNarrowedTypeOfSymbol (/typescript-5.6.0-dev.20240804/lib/typescript.js:74705:18)
    at checkIdentifier (/typescript-5.6.0-dev.20240804/lib/typescript.js:74847:16)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83489:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240804/lib/typescript.js:83036:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240804/lib/typescript.js:78794:25)
    at chooseOverload (/typescript-5.6.0-dev.20240804/lib/typescript.js:79331:13)
    at resolveCall (/typescript-5.6.0-dev.20240804/lib/typescript.js:79178:16)
    at resolveCallExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:79615:12)
    at resolveSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:80008:16)
    at getResolvedSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:80034:18)
    at checkCallExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:80145:23)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83533:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240804/lib/typescript.js:83060:28)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:81486:20
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17654:16)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31769:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240804/lib/typescript.js:32239:10)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at visitNode2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:31761:18)
    at forEachChildInIfStatement (/typescript-5.6.0-dev.20240804/lib/typescript.js:31994:51)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31769:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240804/lib/typescript.js:32239:10)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at visitNode2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:31761:18)
    at forEachChildInIfStatement (/typescript-5.6.0-dev.20240804/lib/typescript.js:31994:51)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31769:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240804/lib/typescript.js:32239:10)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at visitNode2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:31761:18)
    at forEachChildInIfStatement (/typescript-5.6.0-dev.20240804/lib/typescript.js:31994:51)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31769:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240804/lib/typescript.js:32239:10)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240804/lib/typescript.js:17650:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240804/lib/typescript.js:81467:5)

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":16869,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":49661,"offset":54,"entryNames":["__commonJS"]}} {"seq":16870,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":49669,"offset":42,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":16871,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":49705,"offset":24,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":16872,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":49705,"offset":24,"entryNames":["__commonJS"]}} ```

Repro steps

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

RangeError: Maximum call stack size exceeded

Req #23792 - references
    at getEffectiveReturnTypeNode (/typescript-5.6.0-dev.20240804/lib/typescript.js:20238:36)
    at createReturnFromSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:135406:28)
    at Object.serializeReturnTypeForSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:135085:16)
    at serializeReturnTypeForSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:56190:32)
    at signatureToSignatureDeclarationHelper (/typescript-5.6.0-dev.20240804/lib/typescript.js:55287:30)
    at createTypeNodesFromResolvedType (/typescript-5.6.0-dev.20240804/lib/typescript.js:54986:29)
    at createTypeNodeFromObjectType (/typescript-5.6.0-dev.20240804/lib/typescript.js:54798:25)
    at visitAndTransformType (/typescript-5.6.0-dev.20240804/lib/typescript.js:54721:24)
    at createAnonymousTypeNode (/typescript-5.6.0-dev.20240804/lib/typescript.js:54661:20)
    at typeToTypeNodeWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:54454:16)
    at typeToTypeNodeHelper (/typescript-5.6.0-dev.20240804/lib/typescript.js:54235:24)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:54076:135
    at withContext2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:54223:29)
    at Object.typeToTypeNode (/typescript-5.6.0-dev.20240804/lib/typescript.js:54076:71)
    at typeToString (/typescript-5.6.0-dev.20240804/lib/typescript.js:54027:34)
    at reportNonexistentProperty (/typescript-5.6.0-dev.20240804/lib/typescript.js:78019:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.6.0-dev.20240804/lib/typescript.js:77847:11)
    at checkPropertyAccessExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:77628:94)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83523:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at checkNonNullExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:77549:29)
    at checkPropertyAccessExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:77628:162)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83523:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240804/lib/typescript.js:83036:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240804/lib/typescript.js:78794:25)
    at chooseOverload (/typescript-5.6.0-dev.20240804/lib/typescript.js:79331:13)
    at resolveCall (/typescript-5.6.0-dev.20240804/lib/typescript.js:79178:16)
    at resolveCallExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:79615:12)
    at resolveSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:80008:16)
    at getResolvedSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:80034:18)
    at checkCallExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:80145:23)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83533:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240804/lib/typescript.js:83060:28)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:81486:20
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17654:16)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31769:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240804/lib/typescript.js:32239:10)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240804/lib/typescript.js:17650:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240804/lib/typescript.js:81467:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240804/lib/typescript.js:81290:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:62703:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:80170:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83533:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240804/lib/typescript.js:83036:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240804/lib/typescript.js:78794:25)
    at chooseOverload (/typescript-5.6.0-dev.20240804/lib/typescript.js:79331:13)
    at resolveCall (/typescript-5.6.0-dev.20240804/lib/typescript.js:79178:16)
    at resolveCallExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:79615:12)
    at resolveSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:80008:16)
    at getResolvedSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:80034:18)
    at checkCallExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:80145:23)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83533:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at checkConditionalExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:82986:19)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83569:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240804/lib/typescript.js:83060:28)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:81486:20
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17654:16)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31769:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240804/lib/typescript.js:32239:10)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240804/lib/typescript.js:17650:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240804/lib/typescript.js:81467:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240804/lib/typescript.js:81290:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:62703:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:80170:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83533:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240804/lib/typescript.js:83036:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240804/lib/typescript.js:78794:25)
    at chooseOverload (/typescript-5.6.0-dev.20240804/lib/typescript.js:79331:13)
    at resolveCall (/typescript-5.6.0-dev.20240804/lib/typescript.js:79178:16)
    at resolveCallExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:79615:12)
    at resolveSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:80008:16)
    at getResolvedSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:80034:18)
    at checkCallExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:80145:23)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:83533:16)
    at checkExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:83433:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240804/lib/typescript.js:83060:28)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:81486:20
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17654:16)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31769:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240804/lib/typescript.js:32239:10)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at traverse (/typescript-5.6.0-dev.20240804/lib/typescript.js:17670:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240804/lib/typescript.js:17650:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240804/lib/typescript.js:81467:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240804/lib/typescript.js:81290:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:62703:426)
    at serializeReturnTypeForSignature (/typescript-5.6.0-dev.20240804/lib/typescript.js:56187:26)
    at signatureToSignatureDeclarationHelper (/typescript-5.6.0-dev.20240804/lib/typescript.js:55287:30)
    at addPropertyToElementList (/typescript-5.6.0-dev.20240804/lib/typescript.js:55112:37)
    at createTypeNodesFromResolvedType (/typescript-5.6.0-dev.20240804/lib/typescript.js:55023: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":23789,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":314672,"entryNames":["_"]}} {"seq":23790,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":314695}} {"seq":23791,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":314857}} {"seq":23792,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":314912}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/GoogleChrome/lighthouse --recurse-submodules git -C "./lighthouse" reset --hard fa8489d2c295ed4571020227602d3d07c74ca66c downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163153/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 ```
typescript-bot commented 3 months ago

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

Req #531 - updateOpen
    at isDocumentRegistryEntry (/typescript-5.6.0-dev.20240804/lib/typescript.js:140605:18)
    at getDocumentRegistryEntry (/typescript-5.6.0-dev.20240804/lib/typescript.js:140681:19)
    at Object.releaseDocumentWithKey (/typescript-5.6.0-dev.20240804/lib/typescript.js:140776:19)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:149689:65
    at forEach (/typescript-5.6.0-dev.20240804/lib/typescript.js:2280:22)
    at cleanupSemanticCache (/typescript-5.6.0-dev.20240804/lib/typescript.js:149689:7)
    at Object.dispose (/typescript-5.6.0-dev.20240804/lib/typescript.js:149694:5)
    at InferredProject2.close (/typescript-5.6.0-dev.20240804/lib/typescript.js:183547:26)
    at InferredProject2.close (/typescript-5.6.0-dev.20240804/lib/typescript.js:184664:11)
    at _ProjectService.removeProject (/typescript-5.6.0-dev.20240804/lib/typescript.js:186394:13)
    at _ProjectService.cleanupProjectsAndScriptInfos (/typescript-5.6.0-dev.20240804/lib/typescript.js:188224:14)
    at _ProjectService.applyChangesInOpenFiles (/typescript-5.6.0-dev.20240804/lib/typescript.js:188456:12)
    at updateOpen (/typescript-5.6.0-dev.20240804/lib/typescript.js:189641:29)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:192309:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240804/lib/typescript.js:192298:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240804/lib/typescript.js:192307:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240804/lib/typescript.js:192355:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240804/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":528,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/tools/config-rule.js","line":292,"offset":4,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":529,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/tools/config-rule.js","line":292,"offset":4,"entryNames":["@abstract"]}} {"seq":530,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/Makefile.js"],"openFiles":[]}} {"seq":531,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/tools/check-rule-examples.js","projectRootPath":"@PROJECT_ROOT@"}]}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/eslint/eslint --recurse-submodules git -C "./eslint" reset --hard 3a4eaf921543b1cd5d1df4ea9dec02fab396af2a # 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/163153/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 3 months ago

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

Req #1784 - completionInfo
    at addSyntheticNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:148630:15)
    at createSyntaxList (/typescript-5.6.0-dev.20240804/lib/typescript.js:148645:5)
    at processNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:148610:19)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31766:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:31918:12)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:148590:12)
    at createChildren (/typescript-5.6.0-dev.20240804/lib/typescript.js:148615:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240804/lib/typescript.js:148569:83)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137042:24)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at find2 (/typescript-5.6.0-dev.20240804/lib/typescript.js:137078:18)
    at findPrecedingToken (/typescript-5.6.0-dev.20240804/lib/typescript.js:137035:18)
    at getRelevantTokens (/typescript-5.6.0-dev.20240804/lib/typescript.js:166552:25)
    at Object.getCompletionsAtPosition (/typescript-5.6.0-dev.20240804/lib/typescript.js:163258:29)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.6.0-dev.20240804/lib/typescript.js:149829:35)
    at IOSession.getCompletions (/typescript-5.6.0-dev.20240804/lib/typescript.js:191535:54)
    at completionInfo (/typescript-5.6.0-dev.20240804/lib/typescript.js:189858:43)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:192309:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240804/lib/typescript.js:192298:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240804/lib/typescript.js:192307:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240804/lib/typescript.js:192355:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240804/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":1781,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":6580,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"\""}} {"seq":1782,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":7634}} {"seq":1783,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":8859}} {"seq":1784,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":9431,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/HeyPuter/puter --recurse-submodules git -C "./puter" reset --hard 7aece26f4b7dd3abe1721d6d75510c3b8cd47831 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163153/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 3 months ago

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

Req #676 - references
    at addSyntheticNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:148630:15)
    at createSyntaxList (/typescript-5.6.0-dev.20240804/lib/typescript.js:148645:5)
    at processNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:148610:19)
    at visitNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:31766:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.6.0-dev.20240804/lib/typescript.js:31918:12)
    at forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:32282:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240804/lib/typescript.js:148590:12)
    at createChildren (/typescript-5.6.0-dev.20240804/lib/typescript.js:148615:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240804/lib/typescript.js:148569:83)
    at getTokenAtPositionWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:136941:32)
    at getTouchingToken (/typescript-5.6.0-dev.20240804/lib/typescript.js:136914:10)
    at getTouchingPropertyName (/typescript-5.6.0-dev.20240804/lib/typescript.js:136911:10)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:169672:33
    at mapDefined (/typescript-5.6.0-dev.20240804/lib/typescript.js:2581:22)
    at getPossibleSymbolReferenceNodes (/typescript-5.6.0-dev.20240804/lib/typescript.js:169671:12)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:170193:25
    at flatMap (/typescript-5.6.0-dev.20240804/lib/typescript.js:2511:17)
    at getReferencesForStringLiteral (/typescript-5.6.0-dev.20240804/lib/typescript.js:170191:24)
    at Object.getReferencedSymbolsForNode (/typescript-5.6.0-dev.20240804/lib/typescript.js:169077:16)
    at Object.findReferencedSymbols (/typescript-5.6.0-dev.20240804/lib/typescript.js:168682:34)
    at Object.findReferences (/typescript-5.6.0-dev.20240804/lib/typescript.js:149998:41)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:189314:43
    at searchPosition (/typescript-5.6.0-dev.20240804/lib/typescript.js:189456:28)
    at getPerProjectReferences (/typescript-5.6.0-dev.20240804/lib/typescript.js:189435:32)
    at getReferencesWorker (/typescript-5.6.0-dev.20240804/lib/typescript.js:189306:29)
    at IOSession.getReferences (/typescript-5.6.0-dev.20240804/lib/typescript.js:191290:24)
    at references (/typescript-5.6.0-dev.20240804/lib/typescript.js:189739:43)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:192309:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240804/lib/typescript.js:192298:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240804/lib/typescript.js:192307:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240804/lib/typescript.js:192355:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240804/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":673,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/datamanager/main.js","line":2,"offset":130600,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":674,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/datamanager/main.js","line":2,"offset":130600,"entryNames":["_"]}} {"seq":675,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/datamanager/main.js","line":2,"offset":130755}} {"seq":676,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/datamanager/main.js","line":2,"offset":130755}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/HumanSignal/label-studio --recurse-submodules git -C "./label-studio" reset --hard 4b1d38e3d4887b845985a6d164d27c9a900fb358 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163153/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 3 months ago

Error: Debug Failure.

Req #5950 - completionInfo
    at getThisContainer (/typescript-5.6.0-dev.20240804/lib/typescript.js:17845:20)
    at tryGetThisTypeAt (/typescript-5.6.0-dev.20240804/lib/typescript.js:75114:73)
    at Object.tryGetThisTypeAt (/typescript-5.6.0-dev.20240804/lib/typescript.js:50352:22)
    at getGlobalCompletions (/typescript-5.6.0-dev.20240804/lib/typescript.js:165711:36)
    at tryGetGlobalSymbols (/typescript-5.6.0-dev.20240804/lib/typescript.js:165656:397)
    at getCompletionData (/typescript-5.6.0-dev.20240804/lib/typescript.js:165405:10)
    at Object.getCompletionsAtPosition (/typescript-5.6.0-dev.20240804/lib/typescript.js:163296:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.6.0-dev.20240804/lib/typescript.js:149829:35)
    at IOSession.getCompletions (/typescript-5.6.0-dev.20240804/lib/typescript.js:191535:54)
    at completionInfo (/typescript-5.6.0-dev.20240804/lib/typescript.js:189858:43)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:192309:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240804/lib/typescript.js:192298:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240804/lib/typescript.js:192307:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240804/lib/typescript.js:192355:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240804/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":5947,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/angular/angular.js","line":21019,"offset":39,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":5948,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/angular/angular.js","line":21022,"offset":4}} {"seq":5949,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/angular/angular.js","line":21040,"offset":7}} {"seq":5950,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/angular/angular.js","line":21040,"offset":40,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}} ```

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/163153/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 3 months ago

Error: Debug Failure.

Req #6080 - completionInfo
    at getThisContainer (/typescript-5.6.0-dev.20240804/lib/typescript.js:17845:20)
    at tryGetThisTypeAt (/typescript-5.6.0-dev.20240804/lib/typescript.js:75114:73)
    at Object.tryGetThisTypeAt (/typescript-5.6.0-dev.20240804/lib/typescript.js:50352:22)
    at getGlobalCompletions (/typescript-5.6.0-dev.20240804/lib/typescript.js:165711:36)
    at tryGetGlobalSymbols (/typescript-5.6.0-dev.20240804/lib/typescript.js:165656:397)
    at getCompletionData (/typescript-5.6.0-dev.20240804/lib/typescript.js:165405:10)
    at Object.getCompletionsAtPosition (/typescript-5.6.0-dev.20240804/lib/typescript.js:163296:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.6.0-dev.20240804/lib/typescript.js:149829:35)
    at IOSession.getCompletions (/typescript-5.6.0-dev.20240804/lib/typescript.js:191535:54)
    at completionInfo (/typescript-5.6.0-dev.20240804/lib/typescript.js:189858:43)
    at /typescript-5.6.0-dev.20240804/lib/typescript.js:192309:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240804/lib/typescript.js:192298:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240804/lib/typescript.js:192307:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240804/lib/typescript.js:192355:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240804/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":6077,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/spreadsheet/code/lib/angular.js","line":24386,"offset":9,"entryNames":["@abstract"]}} {"seq":6078,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/spreadsheet/code/lib/angular.js","line":24392,"offset":7}} {"seq":6079,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/spreadsheet/code/lib/angular.js","line":24394,"offset":10,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":6080,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/spreadsheet/code/lib/angular.js","line":24417,"offset":32,"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/163153/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 ```