microsoft / TypeScript

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

[ServerErrors][JavaScript] 5.6.0-dev.20240707 vs 5.5.3 #59167

Closed typescript-bot closed 1 week ago

typescript-bot commented 2 weeks ago

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

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

Successfully analyzed 294 of 300 visited repos | Outcome | Count | |---------|-------| | Detected interesting changes | 13 | | Detected no interesting changes | 281 | | Unknown failure | 6 |

Investigation Status

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

Affected repos

swagger-api/swagger-ui Raw error text: RepoResults4/swagger-api.swagger-ui.rawError.txt in the artifact folder
Replay commands: RepoResults4/swagger-api.swagger-ui.replay.txt in the artifact folder

Last few requests

```json {"seq":13748,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/src/core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx"}} {"seq":13749,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"@PROJECT_ROOT@/src/core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx","textChanges":[{"newText":" //comment","start":{"line":1,"offset":4},"end":{"line":1,"offset":4}}]}],"closedFiles":[],"openFiles":[]}} {"seq":13750,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx","line":43,"offset":51,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":13751,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx","line":43,"offset":51,"entryNames":["Accordion"]}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/swagger-api/swagger-ui --recurse-submodules git -C "./swagger-ui" reset --hard 4696d6207efa540a3552049a97f3eb9b721aa342 # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./swagger-ui" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./swagger-ui/swagger-ui-dist-package" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162587/artifacts?artifactName=RepoResults4&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults4.zip "$downloadUrl" unzip -p RepoResults4.zip RepoResults4/swagger-api.swagger-ui.replay.txt > swagger-api.swagger-ui.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 ./swagger-ui ./swagger-api.swagger-ui.replay.txt ```
typescript-bot commented 2 weeks ago
New server no longer reports this error: Error: Debug Failure. Expected 2 < 2. ``` Req #1500 - completionInfo at getArgumentOrParameterListInfo (/typescript-5.5.3/lib/typescript.js:172747:11) at getImmediatelyContainingArgumentInfo (/typescript-5.5.3/lib/typescript.js:172764:18) at Object.getArgumentInfoForCompletions (/typescript-5.5.3/lib/typescript.js:172738:16) at getContextualType (/typescript-5.5.3/lib/typescript.js:164300:48) at getCompletionData (/typescript-5.5.3/lib/typescript.js:164538:43) at Object.getCompletionsAtPosition (/typescript-5.5.3/lib/typescript.js:162495:26) at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.3/lib/typescript.js:149101:35) at IOSession.getCompletions (/typescript-5.5.3/lib/typescript.js:190599:54) at completionInfo (/typescript-5.5.3/lib/typescript.js:188978:43) at /typescript-5.5.3/lib/typescript.js:191397:69 at IOSession.executeWithRequestId (/typescript-5.5.3/lib/typescript.js:191389:14) at IOSession.executeCommand (/typescript-5.5.3/lib/typescript.js:191397:29) at IOSession.onMessage (/typescript-5.5.3/lib/typescript.js:191439:51) at Interface. (/typescript-5.5.3/lib/tsserver.js:499:14) ```

Affected repos

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

Last few requests

```json {"seq":7678,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/test/unit/migrations/util/test/commonjs/test.js","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":7679,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/test/unit/migrations/util/test/commonjs/test.js"}} {"seq":7680,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/test/unit/migrations/util/test/commonjs/test.js"}} {"seq":7681,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/test/unit/migrations/util/test/commonjs/test.js"}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/knex/knex --recurse-submodules git -C "./knex" reset --hard 176151d8048b2a7feeb89a3d649a5580786d4f4e # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./knex" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./knex/test/unit/migrations/util/test/module" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./knex/test/unit/migrations/util/test/commonjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./knex/test/jake-util/knexfile-esm-package" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./knex/test/jake-util/knexfile-esm-module" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./knex/docs" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162587/artifacts?artifactName=RepoResults6&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults6.zip "$downloadUrl" unzip -p RepoResults6.zip RepoResults6/knex.knex.replay.txt > knex.knex.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 ./knex ./knex.knex.replay.txt ```
typescript-bot commented 2 weeks ago
New server no longer reports this error: Error: Debug Failure. Expected 2 < 2. ``` Req #25799 - completionInfo at getArgumentOrParameterListInfo (/typescript-5.5.3/lib/typescript.js:172747:11) at getImmediatelyContainingArgumentInfo (/typescript-5.5.3/lib/typescript.js:172764:18) at Object.getArgumentInfoForCompletions (/typescript-5.5.3/lib/typescript.js:172738:16) at getContextualType (/typescript-5.5.3/lib/typescript.js:164300:48) at getCompletionData (/typescript-5.5.3/lib/typescript.js:164538:43) at Object.getCompletionsAtPosition (/typescript-5.5.3/lib/typescript.js:162495:26) at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.3/lib/typescript.js:149101:35) at IOSession.getCompletions (/typescript-5.5.3/lib/typescript.js:190599:54) at completionInfo (/typescript-5.5.3/lib/typescript.js:188978:43) at /typescript-5.5.3/lib/typescript.js:191397:69 at IOSession.executeWithRequestId (/typescript-5.5.3/lib/typescript.js:191389:14) at IOSession.executeCommand (/typescript-5.5.3/lib/typescript.js:191397:29) at IOSession.onMessage (/typescript-5.5.3/lib/typescript.js:191439:51) at Interface. (/typescript-5.5.3/lib/tsserver.js:499:14) ```

Affected repos

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

Last few requests

```json {"seq":61369,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/drawio/src/main/webapp/math/es5/input/mml/extensions/mml3.js","line":1,"offset":26834,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":61370,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/drawio/src/main/webapp/math/es5/input/mml/extensions/mml3.js","line":1,"offset":27205}} {"seq":61371,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/drawio/src/main/webapp/math/es5/input/mml/extensions/mml3.js","line":1,"offset":27753}} {"seq":61372,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/drawio/src/main/webapp/math/es5/input/mml/extensions/mml3.js","line":1,"offset":27851,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/jgraph/drawio-desktop --recurse-submodules git -C "./drawio-desktop" reset --hard 7e6d2b0688c833c070752ba609374282ebe681e6 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162587/artifacts?artifactName=RepoResults1&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults1.zip "$downloadUrl" unzip -p RepoResults1.zip RepoResults1/jgraph.drawio-desktop.replay.txt > jgraph.drawio-desktop.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-desktop ./jgraph.drawio-desktop.replay.txt ```
typescript-bot commented 2 weeks 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":22620,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16646,"offset":105}} {"seq":22621,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16646,"offset":105,"includeExternalModuleExports":true,"triggerKind":1}} {"seq":22622,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16667,"offset":16}} {"seq":22623,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16667,"offset":16,"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/162587/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 2 weeks ago

Error: Debug Failure. False expression.

Req #1601 - references
    at Object.resetTokenState (/typescript-5.6.0-dev.20240707/lib/typescript.js:14395:11)
    at addSyntheticNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:148173:11)
    at createSyntaxList (/typescript-5.6.0-dev.20240707/lib/typescript.js:148201:3)
    at processNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:148162:19)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31622:14)
    at forEachChildInFunctionType (/typescript-5.6.0-dev.20240707/lib/typescript.js:31691:111)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:148142:12)
    at createChildren (/typescript-5.6.0-dev.20240707/lib/typescript.js:148167:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240707/lib/typescript.js:148121:59)
    at getTokenAtPositionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:136505:32)
    at getTouchingToken (/typescript-5.6.0-dev.20240707/lib/typescript.js:136478:10)
    at getTouchingPropertyName (/typescript-5.6.0-dev.20240707/lib/typescript.js:136475:10)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240707/lib/typescript.js:169162:31)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240707/lib/typescript.js:169155:7)
    at getReferencesInSourceFile (/typescript-5.6.0-dev.20240707/lib/typescript.js:169148:12)
    at searchForImportsOfExport (/typescript-5.6.0-dev.20240707/lib/typescript.js:168899:7)
    at getImportOrExportReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:169282:7)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240707/lib/typescript.js:169209:5)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240707/lib/typescript.js:169155:7)
    at getReferencesInSourceFile (/typescript-5.6.0-dev.20240707/lib/typescript.js:169148:12)
    at searchForImportedSymbol (/typescript-5.6.0-dev.20240707/lib/typescript.js:168957:7)
    at getImportOrExportReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:169279:9)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240707/lib/typescript.js:169209:5)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240707/lib/typescript.js:169155:7)
    at getReferencesInContainerOrFiles (/typescript-5.6.0-dev.20240707/lib/typescript.js:168752:7)
    at getReferencedSymbolsForSymbol (/typescript-5.6.0-dev.20240707/lib/typescript.js:168745:7)
    at Object.getReferencedSymbolsForNode (/typescript-5.6.0-dev.20240707/lib/typescript.js:168495:24)
    at Object.findReferencedSymbols (/typescript-5.6.0-dev.20240707/lib/typescript.js:168080:34)
    at Object.findReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:149545:41)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:188623:43
    at searchPosition (/typescript-5.6.0-dev.20240707/lib/typescript.js:188765:28)
    at getPerProjectReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:188744:32)
    at getReferencesWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:188615:29)
    at IOSession.getReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:190599:24)
    at references (/typescript-5.6.0-dev.20240707/lib/typescript.js:189048:43)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:191648:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240707/lib/typescript.js:191637:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240707/lib/typescript.js:191646:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240707/lib/typescript.js:191694:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240707/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":1598,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/packages/@vue/cli-service/__tests__/serve.spec.js"}} {"seq":1599,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/@vue/cli-service/__tests__/serve.spec.js","line":5,"offset":36}} {"seq":1600,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/@vue/cli-service/__tests__/serve.spec.js","line":6,"offset":25}} {"seq":1601,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/@vue/cli-service/__tests__/serve.spec.js","line":6,"offset":25}} ```

Repro steps

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

Error: Debug Failure. False expression.

Req #1962 - references
    at getSourceFileLikeForImportDeclaration (/typescript-5.6.0-dev.20240707/lib/typescript.js:167957:9)
    at handleDirectImports (/typescript-5.6.0-dev.20240707/lib/typescript.js:167520:31)
    at getImportersForExport (/typescript-5.6.0-dev.20240707/lib/typescript.js:167455:3)
    at State.importTracker (/typescript-5.6.0-dev.20240707/lib/typescript.js:167434:46)
    at State.getImportSearches (/typescript-5.6.0-dev.20240707/lib/typescript.js:168847:19)
    at searchForImportsOfExport (/typescript-5.6.0-dev.20240707/lib/typescript.js:168891:71)
    at getImportOrExportReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:169282:7)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240707/lib/typescript.js:169209:5)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240707/lib/typescript.js:169155:7)
    at getReferencesInSourceFile (/typescript-5.6.0-dev.20240707/lib/typescript.js:169148:12)
    at searchForImportedSymbol (/typescript-5.6.0-dev.20240707/lib/typescript.js:168957:7)
    at getImportOrExportReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:169279:9)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240707/lib/typescript.js:169209:5)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240707/lib/typescript.js:169155:7)
    at getReferencesInContainerOrFiles (/typescript-5.6.0-dev.20240707/lib/typescript.js:168752:7)
    at getReferencedSymbolsForSymbol (/typescript-5.6.0-dev.20240707/lib/typescript.js:168745:7)
    at Object.getReferencedSymbolsForNode (/typescript-5.6.0-dev.20240707/lib/typescript.js:168495:24)
    at Object.findReferencedSymbols (/typescript-5.6.0-dev.20240707/lib/typescript.js:168080:34)
    at Object.findReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:149545:41)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:188623:43
    at searchPosition (/typescript-5.6.0-dev.20240707/lib/typescript.js:188765:28)
    at getPerProjectReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:188744:32)
    at getReferencesWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:188615:29)
    at IOSession.getReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:190599:24)
    at references (/typescript-5.6.0-dev.20240707/lib/typescript.js:189048:43)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:191648:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240707/lib/typescript.js:191637:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240707/lib/typescript.js:191646:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240707/lib/typescript.js:191694:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240707/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":1959,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/js/player.js","line":242,"offset":6}} {"seq":1960,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/js/player.js","line":243,"offset":6}} {"seq":1961,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/js/player.js","line":302,"offset":4}} {"seq":1962,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/js/player.js","line":303,"offset":4}} ```

Repro steps

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

RangeError: Maximum call stack size exceeded

Req #16314 - references
    at BinaryExpressionStateMachine.onLeft (/typescript-5.6.0-dev.20240707/lib/typescript.js:82108:20)
    at Array.left (/typescript-5.6.0-dev.20240707/lib/typescript.js:31296:30)
    at trampoline (/typescript-5.6.0-dev.20240707/lib/typescript.js:31400:42)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:82068:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83209:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240707/lib/typescript.js:82759:28)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:81234:20
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17572:16)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31625:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240707/lib/typescript.js:32095:10)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240707/lib/typescript.js:17568:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240707/lib/typescript.js:81215:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240707/lib/typescript.js:81028:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:62497:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79941:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83175:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at maybeCheckExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:82174:28)
    at BinaryExpressionStateMachine.onRight (/typescript-5.6.0-dev.20240707/lib/typescript.js:82138:16)
    at Array.right (/typescript-5.6.0-dev.20240707/lib/typescript.js:31316:30)
    at trampoline (/typescript-5.6.0-dev.20240707/lib/typescript.js:31400:42)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:82068:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83209:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkTruthinessExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:85766:34)
    at checkConditionalExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:82683:18)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83211:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240707/lib/typescript.js:82759:28)
    at checkDeclarationInitializer (/typescript-5.6.0-dev.20240707/lib/typescript.js:82787:9)
    at getTypeForVariableLikeDeclaration (/typescript-5.6.0-dev.20240707/lib/typescript.js:58857:66)
    at getWidenedTypeForVariableLikeDeclaration (/typescript-5.6.0-dev.20240707/lib/typescript.js:59304:48)
    at getTypeOfVariableOrParameterOrPropertyWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:59452:14)
    at getTypeOfVariableOrParameterOrProperty (/typescript-5.6.0-dev.20240707/lib/typescript.js:59385:20)
    at getTypeOfSymbol (/typescript-5.6.0-dev.20240707/lib/typescript.js:59714:14)
    at getNarrowedTypeOfSymbol (/typescript-5.6.0-dev.20240707/lib/typescript.js:74473:18)
    at checkIdentifier (/typescript-5.6.0-dev.20240707/lib/typescript.js:74612:16)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83131:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at maybeCheckExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:82174:28)
    at BinaryExpressionStateMachine.onLeft (/typescript-5.6.0-dev.20240707/lib/typescript.js:82110:16)
    at Array.left (/typescript-5.6.0-dev.20240707/lib/typescript.js:31296:30)
    at trampoline (/typescript-5.6.0-dev.20240707/lib/typescript.js:31400:42)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:82068:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83209:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkTruthinessExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:85766:34)
    at checkConditionalExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:82683:18)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83211:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240707/lib/typescript.js:82759:28)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:81234:20
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17572:16)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31625:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240707/lib/typescript.js:32095:10)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240707/lib/typescript.js:17568:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240707/lib/typescript.js:81215:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240707/lib/typescript.js:81028:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:62497:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79941:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83175:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkConditionalExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:82685:19)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83211:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240707/lib/typescript.js:82759:28)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:81234:20
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17572:16)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31625:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240707/lib/typescript.js:32095:10)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at visitNode2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:31617:18)
    at forEachChildInIfStatement (/typescript-5.6.0-dev.20240707/lib/typescript.js:31850:51)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31625:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240707/lib/typescript.js:32095:10)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at visitNode2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:31617:18)
    at forEachChildInIfStatement (/typescript-5.6.0-dev.20240707/lib/typescript.js:31850:51)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31625:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240707/lib/typescript.js:32095:10)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240707/lib/typescript.js:17568:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240707/lib/typescript.js:81215:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240707/lib/typescript.js:81028:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:62497:426)
    at getReturnTypeOfSingleNonGenericCallSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:83005:14)
    at getQuickTypeOfExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83056:94)
    at checkDeclarationInitializer (/typescript-5.6.0-dev.20240707/lib/typescript.js:82781:18)

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":16311,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":36343,"offset":43}} {"seq":16312,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":36350,"offset":33}} {"seq":16313,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":36367,"offset":77}} {"seq":16314,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":36367,"offset":116}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/microsoft/monaco-editor --recurse-submodules git -C "./monaco-editor" reset --hard c321d0fbecb50ab8a5365fa1965476b0ae63fc87 # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./monaco-editor" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q yarn --cwd "./monaco-editor/website" install --ignore-engines --ignore-scripts --silent npm --prefix "./monaco-editor/webpack-plugin" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/test/smoke/parcel" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/electron-esm-webpack" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/electron-amd-nodeIntegration" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/electron-amd" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-webpack-typescript-react" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-webpack-typescript" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-webpack-small" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-webpack-monaco-plugin" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-webpack" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-vite-react" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-parcel" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./monaco-editor/samples/browser-esm-esbuild" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162587/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 2 weeks ago

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

Req #961 - completionInfo
    at addSyntheticNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:148182:15)
    at createSyntaxList (/typescript-5.6.0-dev.20240707/lib/typescript.js:148197:5)
    at processNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:148162:19)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31622:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:31774:12)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:148142:12)
    at createChildren (/typescript-5.6.0-dev.20240707/lib/typescript.js:148167:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240707/lib/typescript.js:148121:59)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136606:24)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at find2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:136642:18)
    at findPrecedingToken (/typescript-5.6.0-dev.20240707/lib/typescript.js:136599:18)
    at getRelevantTokens (/typescript-5.6.0-dev.20240707/lib/typescript.js:165986:25)
    at Object.getCompletionsAtPosition (/typescript-5.6.0-dev.20240707/lib/typescript.js:162748:29)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.6.0-dev.20240707/lib/typescript.js:149376:35)
    at IOSession.getCompletions (/typescript-5.6.0-dev.20240707/lib/typescript.js:190844:54)
    at completionInfo (/typescript-5.6.0-dev.20240707/lib/typescript.js:189167:43)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:191648:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240707/lib/typescript.js:191637:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240707/lib/typescript.js:191646:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240707/lib/typescript.js:191694:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240707/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":958,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/lib/html-entities.js","line":1,"offset":8711}} {"seq":959,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/lib/html-entities.js","line":1,"offset":8983,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":960,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/lib/html-entities.js","line":1,"offset":8983,"entryNames":["a"]}} {"seq":961,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/lib/html-entities.js","line":1,"offset":9723,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/HeyPuter/puter --recurse-submodules git -C "./puter" reset --hard c23e8931ab4e7f4c09f313cbc03b16ff6b4fef0a downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162587/artifacts?artifactName=RepoResults6&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults6.zip "$downloadUrl" unzip -p RepoResults6.zip RepoResults6/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 2 weeks ago

RangeError: Maximum call stack size exceeded

Req #14346 - completionInfo
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17569:20)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31625:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240707/lib/typescript.js:32095:10)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at visitNode2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:31617:18)
    at forEachChildInIfStatement (/typescript-5.6.0-dev.20240707/lib/typescript.js:31850:51)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31625:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240707/lib/typescript.js:32095:10)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240707/lib/typescript.js:17568:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240707/lib/typescript.js:81215:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240707/lib/typescript.js:81028:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:62497:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79941:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83175:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240707/lib/typescript.js:82735:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240707/lib/typescript.js:78565:25)
    at chooseOverload (/typescript-5.6.0-dev.20240707/lib/typescript.js:79102:13)
    at resolveCall (/typescript-5.6.0-dev.20240707/lib/typescript.js:78949:16)
    at resolveCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79386:12)
    at resolveSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:79779:16)
    at getResolvedSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:79805:18)
    at checkCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79916:23)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83175:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at maybeCheckExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:82174:28)
    at BinaryExpressionStateMachine.onRight (/typescript-5.6.0-dev.20240707/lib/typescript.js:82138:16)
    at Array.right (/typescript-5.6.0-dev.20240707/lib/typescript.js:31316:30)
    at trampoline (/typescript-5.6.0-dev.20240707/lib/typescript.js:31400:42)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:82068:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83209:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240707/lib/typescript.js:82759:28)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:81234:20
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17572:16)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31625:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240707/lib/typescript.js:32095:10)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240707/lib/typescript.js:17568:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240707/lib/typescript.js:81215:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240707/lib/typescript.js:81028:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:62497:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79941:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83175:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at maybeCheckExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:82174:28)
    at BinaryExpressionStateMachine.onLeft (/typescript-5.6.0-dev.20240707/lib/typescript.js:82110:16)
    at Array.left (/typescript-5.6.0-dev.20240707/lib/typescript.js:31296:30)
    at trampoline (/typescript-5.6.0-dev.20240707/lib/typescript.js:31400:42)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:82068:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83209:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkTruthinessExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:85766:34)
    at checkConditionalExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:82683:18)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83211:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240707/lib/typescript.js:82759:28)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:81234:20
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17572:16)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31625:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240707/lib/typescript.js:32095:10)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240707/lib/typescript.js:17568:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240707/lib/typescript.js:81215:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240707/lib/typescript.js:81028:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:62497:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79941:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83175:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240707/lib/typescript.js:82759:28)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:81234:20
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17572:16)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31625:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240707/lib/typescript.js:32095:10)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240707/lib/typescript.js:17568:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240707/lib/typescript.js:81215:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240707/lib/typescript.js:81028:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:62497:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79941:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83175:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at maybeCheckExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:82174:28)
    at BinaryExpressionStateMachine.onRight (/typescript-5.6.0-dev.20240707/lib/typescript.js:82138:16)
    at Array.right (/typescript-5.6.0-dev.20240707/lib/typescript.js:31316:30)
    at trampoline (/typescript-5.6.0-dev.20240707/lib/typescript.js:31400:42)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:82068:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83209:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at getTypeOfExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83026:18)
    at getAssignedTypeOfBinaryExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:72340:103)
    at getAssignedType (/typescript-5.6.0-dev.20240707/lib/typescript.js:72365:16)

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":14343,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/uni-uts-v1/lib/typescript/lib/typescript.js","line":48082,"offset":123,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":14344,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/uni-uts-v1/lib/typescript/lib/typescript.js","line":48082,"offset":123,"entryNames":["__commonJS"]}} {"seq":14345,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/uni-uts-v1/lib/typescript/lib/typescript.js","line":48121,"offset":66}} {"seq":14346,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/uni-uts-v1/lib/typescript/lib/typescript.js","line":48185,"offset":1,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/dcloudio/uni-app --recurse-submodules git -C "./uni-app" reset --hard 4ecbaa8f9e71c95f5f510157728350dd66260118 # 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/162587/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 2 weeks ago

RangeError: Maximum call stack size exceeded

Req #23763 - completionInfo
    at checkPropertyAccessExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:77398:41)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83165:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkNonNullExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:77320:29)
    at checkPropertyAccessExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:77399:162)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83165:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240707/lib/typescript.js:82735:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240707/lib/typescript.js:78565:25)
    at chooseOverload (/typescript-5.6.0-dev.20240707/lib/typescript.js:79102:13)
    at resolveCall (/typescript-5.6.0-dev.20240707/lib/typescript.js:78949:16)
    at resolveCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79386:12)
    at resolveSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:79779:16)
    at getResolvedSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:79805:18)
    at checkCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79916:23)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83175:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240707/lib/typescript.js:82759:28)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:81234:20
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17572:16)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31625:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240707/lib/typescript.js:32095:10)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240707/lib/typescript.js:17568:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240707/lib/typescript.js:81215:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240707/lib/typescript.js:81028:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:62497:426)
    at serializeReturnTypeForSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:55996:26)
    at signatureToSignatureDeclarationHelper (/typescript-5.6.0-dev.20240707/lib/typescript.js:55099:30)
    at addPropertyToElementList (/typescript-5.6.0-dev.20240707/lib/typescript.js:54924:37)
    at createTypeNodesFromResolvedType (/typescript-5.6.0-dev.20240707/lib/typescript.js:54849:11)
    at createTypeNodeFromObjectType (/typescript-5.6.0-dev.20240707/lib/typescript.js:54652:25)
    at visitAndTransformType (/typescript-5.6.0-dev.20240707/lib/typescript.js:54575:24)
    at createAnonymousTypeNode (/typescript-5.6.0-dev.20240707/lib/typescript.js:54515:20)
    at typeToTypeNodeWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:54308:16)
    at typeToTypeNodeHelper (/typescript-5.6.0-dev.20240707/lib/typescript.js:54089:24)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:53930:135
    at withContext2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:54077:29)
    at Object.typeToTypeNode (/typescript-5.6.0-dev.20240707/lib/typescript.js:53930:71)
    at typeToString (/typescript-5.6.0-dev.20240707/lib/typescript.js:53881:34)
    at reportNonexistentProperty (/typescript-5.6.0-dev.20240707/lib/typescript.js:77790:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.6.0-dev.20240707/lib/typescript.js:77618:11)
    at checkPropertyAccessExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:77399:94)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83165:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkNonNullExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:77320:29)
    at checkPropertyAccessExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:77399:162)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83165:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240707/lib/typescript.js:82735:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240707/lib/typescript.js:78565:25)
    at chooseOverload (/typescript-5.6.0-dev.20240707/lib/typescript.js:79102:13)
    at resolveCall (/typescript-5.6.0-dev.20240707/lib/typescript.js:78949:16)
    at resolveCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79386:12)
    at resolveSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:79779:16)
    at getResolvedSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:79805:18)
    at checkCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79916:23)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83175:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240707/lib/typescript.js:82759:28)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:81234:20
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17572:16)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31625:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240707/lib/typescript.js:32095:10)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at traverse (/typescript-5.6.0-dev.20240707/lib/typescript.js:17588:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240707/lib/typescript.js:17568:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240707/lib/typescript.js:81215:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240707/lib/typescript.js:81028:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:62497:426)
    at serializeReturnTypeForSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:55996:26)
    at signatureToSignatureDeclarationHelper (/typescript-5.6.0-dev.20240707/lib/typescript.js:55099:30)
    at addPropertyToElementList (/typescript-5.6.0-dev.20240707/lib/typescript.js:54924:37)
    at createTypeNodesFromResolvedType (/typescript-5.6.0-dev.20240707/lib/typescript.js:54849:11)
    at createTypeNodeFromObjectType (/typescript-5.6.0-dev.20240707/lib/typescript.js:54652:25)
    at visitAndTransformType (/typescript-5.6.0-dev.20240707/lib/typescript.js:54575:24)
    at createAnonymousTypeNode (/typescript-5.6.0-dev.20240707/lib/typescript.js:54515:20)
    at typeToTypeNodeWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:54308:16)
    at typeToTypeNodeHelper (/typescript-5.6.0-dev.20240707/lib/typescript.js:54089:24)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:53930:135
    at withContext2 (/typescript-5.6.0-dev.20240707/lib/typescript.js:54077:29)
    at Object.typeToTypeNode (/typescript-5.6.0-dev.20240707/lib/typescript.js:53930:71)
    at typeToString (/typescript-5.6.0-dev.20240707/lib/typescript.js:53881:34)
    at reportNonexistentProperty (/typescript-5.6.0-dev.20240707/lib/typescript.js:77790:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.6.0-dev.20240707/lib/typescript.js:77618:11)
    at checkPropertyAccessExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:77399:94)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83165:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkNonNullExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:77320:29)
    at checkPropertyAccessExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:77399:162)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:83165:16)
    at checkExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:83085:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240707/lib/typescript.js:82735:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240707/lib/typescript.js:78565:25)
    at chooseOverload (/typescript-5.6.0-dev.20240707/lib/typescript.js:79102:13)
    at resolveCall (/typescript-5.6.0-dev.20240707/lib/typescript.js:78949:16)
    at resolveCallExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:79386:12)
    at resolveSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:79779:16)
    at getResolvedSignature (/typescript-5.6.0-dev.20240707/lib/typescript.js:79805:18)

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":23760,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":314573,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":23761,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":314573,"entryNames":["_"]}} {"seq":23762,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":314767,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":23763,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":315754,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

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

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

Req #696 - references
    at addSyntheticNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:148182:15)
    at createSyntaxList (/typescript-5.6.0-dev.20240707/lib/typescript.js:148197:5)
    at processNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:148162:19)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31622:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.6.0-dev.20240707/lib/typescript.js:31774:12)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:148142:12)
    at createChildren (/typescript-5.6.0-dev.20240707/lib/typescript.js:148167:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240707/lib/typescript.js:148121:59)
    at getTokenAtPositionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:136505:32)
    at getTouchingToken (/typescript-5.6.0-dev.20240707/lib/typescript.js:136478:10)
    at getTouchingPropertyName (/typescript-5.6.0-dev.20240707/lib/typescript.js:136475:10)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:169070:33
    at mapDefined (/typescript-5.6.0-dev.20240707/lib/typescript.js:2571:22)
    at getPossibleSymbolReferenceNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:169069:12)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:169591:25
    at flatMap (/typescript-5.6.0-dev.20240707/lib/typescript.js:2501:17)
    at getReferencesForStringLiteral (/typescript-5.6.0-dev.20240707/lib/typescript.js:169589:24)
    at Object.getReferencedSymbolsForNode (/typescript-5.6.0-dev.20240707/lib/typescript.js:168475:16)
    at Object.findReferencedSymbols (/typescript-5.6.0-dev.20240707/lib/typescript.js:168080:34)
    at Object.findReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:149545:41)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:188623:43
    at searchPosition (/typescript-5.6.0-dev.20240707/lib/typescript.js:188765:28)
    at getPerProjectReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:188744:32)
    at getReferencesWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:188615:29)
    at IOSession.getReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:190599:24)
    at references (/typescript-5.6.0-dev.20240707/lib/typescript.js:189048:43)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:191648:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240707/lib/typescript.js:191637:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240707/lib/typescript.js:191646:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240707/lib/typescript.js:191694:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240707/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":693,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/datamanager/main.js","line":2,"offset":129773,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":694,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/datamanager/main.js","line":2,"offset":129773,"entryNames":["_"]}} {"seq":695,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/datamanager/main.js","line":2,"offset":130755}} {"seq":696,"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 3c5fffa900f65eceb7467563b56ba48986a694d5 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162587/artifacts?artifactName=RepoResults8&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults8.zip "$downloadUrl" unzip -p RepoResults8.zip RepoResults8/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 2 weeks ago

Error: Debug Failure. False expression.

Req #11454 - references
    at Object.resetTokenState (/typescript-5.6.0-dev.20240707/lib/typescript.js:14395:11)
    at addSyntheticNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:148173:11)
    at createSyntaxList (/typescript-5.6.0-dev.20240707/lib/typescript.js:148201:3)
    at processNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:148162:19)
    at visitNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:31622:14)
    at forEachChildInFunctionType (/typescript-5.6.0-dev.20240707/lib/typescript.js:31691:111)
    at forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:32138:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240707/lib/typescript.js:148142:12)
    at createChildren (/typescript-5.6.0-dev.20240707/lib/typescript.js:148167:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240707/lib/typescript.js:148121:59)
    at getTokenAtPositionWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:136505:32)
    at getTouchingToken (/typescript-5.6.0-dev.20240707/lib/typescript.js:136478:10)
    at getTouchingPropertyName (/typescript-5.6.0-dev.20240707/lib/typescript.js:136475:10)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:169070:33
    at mapDefined (/typescript-5.6.0-dev.20240707/lib/typescript.js:2571:22)
    at getPossibleSymbolReferenceNodes (/typescript-5.6.0-dev.20240707/lib/typescript.js:169069:12)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:169591:25
    at flatMap (/typescript-5.6.0-dev.20240707/lib/typescript.js:2501:17)
    at getReferencesForStringLiteral (/typescript-5.6.0-dev.20240707/lib/typescript.js:169589:24)
    at Object.getReferencedSymbolsForNode (/typescript-5.6.0-dev.20240707/lib/typescript.js:168475:16)
    at Object.findReferencedSymbols (/typescript-5.6.0-dev.20240707/lib/typescript.js:168080:34)
    at Object.findReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:149545:41)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:188623:43
    at searchPosition (/typescript-5.6.0-dev.20240707/lib/typescript.js:188765:28)
    at getPerProjectReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:188744:32)
    at getReferencesWorker (/typescript-5.6.0-dev.20240707/lib/typescript.js:188615:29)
    at IOSession.getReferences (/typescript-5.6.0-dev.20240707/lib/typescript.js:190599:24)
    at references (/typescript-5.6.0-dev.20240707/lib/typescript.js:189048:43)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:191648:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240707/lib/typescript.js:191637:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240707/lib/typescript.js:191646:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240707/lib/typescript.js:191694:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240707/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":11451,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/svelte/src/compiler/phases/3-transform/server/transform-server.js","line":676,"offset":4,"entryNames":["@abstract"]}} {"seq":11452,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/svelte/src/compiler/phases/3-transform/server/transform-server.js","line":678,"offset":4}} {"seq":11453,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/svelte/src/compiler/phases/3-transform/server/transform-server.js","line":679,"offset":4}} {"seq":11454,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/svelte/src/compiler/phases/3-transform/server/transform-server.js","line":691,"offset":54}} ```

Repro steps

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

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

Req #268 - organizeImports
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:175153:15
    at mapDefined (/typescript-5.6.0-dev.20240707/lib/typescript.js:2571:22)
    at Object.getTextChangesFromChanges (/typescript-5.6.0-dev.20240707/lib/typescript.js:175149:12)
    at _ChangeTracker.getChanges (/typescript-5.6.0-dev.20240707/lib/typescript.js:175046:35)
    at Object.organizeImports (/typescript-5.6.0-dev.20240707/lib/typescript.js:171809:24)
    at Object.organizeImports2 [as organizeImports] (/typescript-5.6.0-dev.20240707/lib/typescript.js:149716:39)
    at IOSession.organizeImports (/typescript-5.6.0-dev.20240707/lib/typescript.js:191282:50)
    at organizeImports (/typescript-5.6.0-dev.20240707/lib/typescript.js:189418:43)
    at /typescript-5.6.0-dev.20240707/lib/typescript.js:191648:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240707/lib/typescript.js:191637:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240707/lib/typescript.js:191646:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240707/lib/typescript.js:191694:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240707/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":265,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/core/core/index.d.ts","line":8,"offset":30,"entryNames":["babel-plugin-transform-runtime"]}} {"seq":266,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/packages/dev/esm-fuzzer/generateExample.js"],"openFiles":[]}} {"seq":267,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/flow-typed/npm/@swc/core_v1.x.x.js","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":268,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/flow-typed/npm/@swc/core_v1.x.x.js"}},"skipDestructiveCodeActions":false}} ```

Repro steps

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