microsoft / TypeScript

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

[ServerErrors][JavaScript] 5.7.0-dev.20240825 vs 5.5.4 #59751

Closed typescript-bot closed 2 months ago

typescript-bot commented 2 months ago

The following errors were reported by 5.7.0-dev.20240825 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 292 of 300 visited repos | Outcome | Count | |---------|-------| | Detected interesting changes | 8 | | Detected no interesting changes | 284 | | Git clone failed | 1 | | Unknown failure | 7 |

Investigation Status

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

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

Last few requests

```json {"seq":20713,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/examples/next/visual-tests/angular/demo/src/data-grid/renderers/progressBar.ts"}} {"seq":20714,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/examples/next/visual-tests/angular/demo/src/data-grid/renderers/progressBar.ts"}} {"seq":20715,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/next/visual-tests/angular/demo/src/data-grid/renderers/progressBar.ts","line":9,"offset":46}} {"seq":20716,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/next/visual-tests/angular/demo/src/data-grid/renderers/progressBar.ts","line":28,"offset":3}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/handsontable/handsontable --recurse-submodules git -C "./handsontable" reset --hard eaf150eca86444ce744b840e8c098e6934f8187e downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163439/artifacts?artifactName=RepoResults6&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults6.zip "$downloadUrl" unzip -p RepoResults6.zip RepoResults6/handsontable.handsontable.replay.txt > handsontable.handsontable.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 ./handsontable ./handsontable.handsontable.replay.txt ```
typescript-bot commented 2 months ago
New server no longer reports this error: Error: Debug Failure. Expected 1 < 1. ``` Req #2411 - 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

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":13640,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx","line":2,"offset":4}} {"seq":13641,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx","line":11,"offset":9}} {"seq":13642,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx","line":19,"offset":59,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":13643,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx","line":19,"offset":59,"entryNames":["Accordion"]}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/swagger-api/swagger-ui --recurse-submodules git -C "./swagger-ui" reset --hard 8e6824cb452ae4b268f45f5203575194217c6653 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163439/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 months ago
New server no longer reports this error: Error: Debug Failure. ``` Req #6123 - completionInfo at getThisContainer (/typescript-5.5.4/lib/typescript.js:17920:20) at tryGetThisTypeAt (/typescript-5.5.4/lib/typescript.js:74993:73) at Object.tryGetThisTypeAt (/typescript-5.5.4/lib/typescript.js:50308:22) at getGlobalCompletions (/typescript-5.5.4/lib/typescript.js:164932:36) at tryGetGlobalSymbols (/typescript-5.5.4/lib/typescript.js:164877:397) at getCompletionData (/typescript-5.5.4/lib/typescript.js:164626:10) at Object.getCompletionsAtPosition (/typescript-5.5.4/lib/typescript.js:162588:26) at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.4/lib/typescript.js:149186:35) at IOSession.getCompletions (/typescript-5.5.4/lib/typescript.js:190693:54) at completionInfo (/typescript-5.5.4/lib/typescript.js:189072:43) at /typescript-5.5.4/lib/typescript.js:191491:69 at IOSession.executeWithRequestId (/typescript-5.5.4/lib/typescript.js:191483:14) at IOSession.executeCommand (/typescript-5.5.4/lib/typescript.js:191491:29) at IOSession.onMessage (/typescript-5.5.4/lib/typescript.js:191533:51) at Interface. (/typescript-5.5.4/lib/tsserver.js:499:14) ```

Affected repos

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

Last few requests

```json {"seq":10764,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}},"skipDestructiveCodeActions":false}} {"seq":10765,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}} {"seq":10766,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}} {"seq":10767,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/aosabook/500lines --recurse-submodules git -C "./500lines" reset --hard fba689d101eb5600f5c8f4d7fd79912498e950e2 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163439/artifacts?artifactName=RepoResults3&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults3.zip "$downloadUrl" unzip -p RepoResults3.zip RepoResults3/aosabook.500lines.replay.txt > aosabook.500lines.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./500lines ./aosabook.500lines.replay.txt ```
typescript-bot commented 2 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":22166,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":14381,"offset":11}} {"seq":22167,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":14382,"offset":1,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":22168,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":14382,"offset":1,"entryNames":["$"]}} {"seq":22169,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":14422,"offset":7,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}} ```

Repro steps

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

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

Req #1796 - references
    at addSyntheticNodes (/typescript-5.7.0-dev.20240825/lib/typescript.js:149066:15)
    at createSyntaxList (/typescript-5.7.0-dev.20240825/lib/typescript.js:149081:5)
    at processNodes (/typescript-5.7.0-dev.20240825/lib/typescript.js:149046:19)
    at visitNodes (/typescript-5.7.0-dev.20240825/lib/typescript.js:31868:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:32020:12)
    at forEachChild (/typescript-5.7.0-dev.20240825/lib/typescript.js:32384:35)
    at NodeObject.forEachChild (/typescript-5.7.0-dev.20240825/lib/typescript.js:149026:12)
    at createChildren (/typescript-5.7.0-dev.20240825/lib/typescript.js:149051:8)
    at NodeObject.getChildren (/typescript-5.7.0-dev.20240825/lib/typescript.js:149005:83)
    at getTokenAtPositionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:137335:32)
    at getTouchingToken (/typescript-5.7.0-dev.20240825/lib/typescript.js:137308:10)
    at getTouchingPropertyName (/typescript-5.7.0-dev.20240825/lib/typescript.js:137305:10)
    at getReferencesAtLocation (/typescript-5.7.0-dev.20240825/lib/typescript.js:170384:31)
    at getReferencesInContainer (/typescript-5.7.0-dev.20240825/lib/typescript.js:170377:7)
    at getReferencesInSourceFile (/typescript-5.7.0-dev.20240825/lib/typescript.js:170370:12)
    at searchForName (/typescript-5.7.0-dev.20240825/lib/typescript.js:170184:7)
    at getReferencesInContainerOrFiles (/typescript-5.7.0-dev.20240825/lib/typescript.js:169985:9)
    at getReferencedSymbolsForSymbol (/typescript-5.7.0-dev.20240825/lib/typescript.js:169967:7)
    at Object.getReferencedSymbolsForNode (/typescript-5.7.0-dev.20240825/lib/typescript.js:169717:24)
    at Object.findReferencedSymbols (/typescript-5.7.0-dev.20240825/lib/typescript.js:169302:34)
    at Object.findReferences (/typescript-5.7.0-dev.20240825/lib/typescript.js:150434:41)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:189929:43
    at searchPosition (/typescript-5.7.0-dev.20240825/lib/typescript.js:190071:28)
    at getPerProjectReferences (/typescript-5.7.0-dev.20240825/lib/typescript.js:190050:32)
    at getReferencesWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:189921:29)
    at IOSession.getReferences (/typescript-5.7.0-dev.20240825/lib/typescript.js:191905:24)
    at references (/typescript-5.7.0-dev.20240825/lib/typescript.js:190354:43)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:192924:15
    at IOSession.executeWithRequestId (/typescript-5.7.0-dev.20240825/lib/typescript.js:192913:14)
    at IOSession.executeCommand (/typescript-5.7.0-dev.20240825/lib/typescript.js:192922:29)
    at IOSession.onMessage (/typescript-5.7.0-dev.20240825/lib/typescript.js:192970:68)
    at Interface.<anonymous> (/typescript-5.7.0-dev.20240825/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":1793,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":7337,"includeExternalModuleExports":true,"triggerKind":1}} {"seq":1794,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":8420}} {"seq":1795,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":8992}} {"seq":1796,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":9089}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/HeyPuter/puter --recurse-submodules git -C "./puter" reset --hard cd2eb656a1ab8ab01bb5ad350622154692618be7 # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./puter" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./puter/src/gui/src" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./puter/src/gui/src/lib/jquery-ui-1.13.2" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./puter/mods/mods_available/kdmod" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./puter/experiments/x86emu/www" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163439/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 2 months ago

RangeError: Maximum call stack size exceeded

Req #23713 - completionInfo
    at getFirstJSDocTag (/typescript-5.7.0-dev.20240825/lib/typescript.js:15165:26)
    at getJSDocReturnTag (/typescript-5.7.0-dev.20240825/lib/typescript.js:15104:10)
    at getJSDocReturnType (/typescript-5.7.0-dev.20240825/lib/typescript.js:15127:21)
    at getEffectiveReturnTypeNode (/typescript-5.7.0-dev.20240825/lib/typescript.js:20259:141)
    at createReturnFromSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:135854:28)
    at Object.serializeReturnTypeForSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:135533:16)
    at serializeReturnTypeForSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:56422:32)
    at signatureToSignatureDeclarationHelper (/typescript-5.7.0-dev.20240825/lib/typescript.js:55519:30)
    at createTypeNodesFromResolvedType (/typescript-5.7.0-dev.20240825/lib/typescript.js:55218:29)
    at createTypeNodeFromObjectType (/typescript-5.7.0-dev.20240825/lib/typescript.js:55030:25)
    at visitAndTransformType (/typescript-5.7.0-dev.20240825/lib/typescript.js:54953:24)
    at createAnonymousTypeNode (/typescript-5.7.0-dev.20240825/lib/typescript.js:54893:20)
    at typeToTypeNodeWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:54686:16)
    at typeToTypeNodeHelper (/typescript-5.7.0-dev.20240825/lib/typescript.js:54467:24)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:54291:165
    at withContext2 (/typescript-5.7.0-dev.20240825/lib/typescript.js:54446:29)
    at Object.typeToTypeNode (/typescript-5.7.0-dev.20240825/lib/typescript.js:54291:86)
    at typeToString (/typescript-5.7.0-dev.20240825/lib/typescript.js:54236:34)
    at reportNonexistentProperty (/typescript-5.7.0-dev.20240825/lib/typescript.js:78371:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.7.0-dev.20240825/lib/typescript.js:78199:11)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:77980:94)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83892:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkNonNullExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:77901:29)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:77980:162)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83892:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkExpressionWithContextualType (/typescript-5.7.0-dev.20240825/lib/typescript.js:83405:18)
    at getSignatureApplicabilityError (/typescript-5.7.0-dev.20240825/lib/typescript.js:79146:25)
    at chooseOverload (/typescript-5.7.0-dev.20240825/lib/typescript.js:79683:13)
    at resolveCall (/typescript-5.7.0-dev.20240825/lib/typescript.js:79530:16)
    at resolveCallExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:79967:12)
    at resolveSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:80360:16)
    at getResolvedSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:80386:18)
    at checkCallExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:80497:23)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83902:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkExpressionCached (/typescript-5.7.0-dev.20240825/lib/typescript.js:83429:28)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:81833:20
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17674:16)
    at visitNodes (/typescript-5.7.0-dev.20240825/lib/typescript.js:31871:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240825/lib/typescript.js:32341:10)
    at forEachChild (/typescript-5.7.0-dev.20240825/lib/typescript.js:32384:35)
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17690:16)
    at forEachReturnStatement (/typescript-5.7.0-dev.20240825/lib/typescript.js:17670:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.7.0-dev.20240825/lib/typescript.js:81814:5)
    at getReturnTypeFromBody (/typescript-5.7.0-dev.20240825/lib/typescript.js:81642:21)
    at getReturnTypeOfSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:62953:426)
    at serializeReturnTypeForSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:56419:26)
    at signatureToSignatureDeclarationHelper (/typescript-5.7.0-dev.20240825/lib/typescript.js:55519:30)
    at addPropertyToElementList (/typescript-5.7.0-dev.20240825/lib/typescript.js:55344:37)
    at createTypeNodesFromResolvedType (/typescript-5.7.0-dev.20240825/lib/typescript.js:55255:11)
    at createTypeNodeFromObjectType (/typescript-5.7.0-dev.20240825/lib/typescript.js:55030:25)
    at visitAndTransformType (/typescript-5.7.0-dev.20240825/lib/typescript.js:54953:24)
    at createAnonymousTypeNode (/typescript-5.7.0-dev.20240825/lib/typescript.js:54893:20)
    at typeToTypeNodeWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:54686:16)
    at typeToTypeNodeHelper (/typescript-5.7.0-dev.20240825/lib/typescript.js:54467:24)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:54291:165
    at withContext2 (/typescript-5.7.0-dev.20240825/lib/typescript.js:54446:29)
    at Object.typeToTypeNode (/typescript-5.7.0-dev.20240825/lib/typescript.js:54291:86)
    at typeToString (/typescript-5.7.0-dev.20240825/lib/typescript.js:54236:34)
    at reportNonexistentProperty (/typescript-5.7.0-dev.20240825/lib/typescript.js:78371:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.7.0-dev.20240825/lib/typescript.js:78199:11)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:77980:94)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83892:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkNonNullExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:77901:29)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:77980:162)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83892:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkExpressionWithContextualType (/typescript-5.7.0-dev.20240825/lib/typescript.js:83405:18)
    at getSignatureApplicabilityError (/typescript-5.7.0-dev.20240825/lib/typescript.js:79146:25)
    at chooseOverload (/typescript-5.7.0-dev.20240825/lib/typescript.js:79683:13)
    at resolveCall (/typescript-5.7.0-dev.20240825/lib/typescript.js:79530:16)
    at resolveCallExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:79967:12)
    at resolveSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:80360:16)
    at getResolvedSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:80386:18)
    at checkCallExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:80497:23)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83902:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkExpressionCached (/typescript-5.7.0-dev.20240825/lib/typescript.js:83429:28)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:81833:20
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17674:16)
    at visitNodes (/typescript-5.7.0-dev.20240825/lib/typescript.js:31871:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240825/lib/typescript.js:32341:10)
    at forEachChild (/typescript-5.7.0-dev.20240825/lib/typescript.js:32384:35)
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17690:16)
    at forEachReturnStatement (/typescript-5.7.0-dev.20240825/lib/typescript.js:17670:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.7.0-dev.20240825/lib/typescript.js:81814:5)
    at getReturnTypeFromBody (/typescript-5.7.0-dev.20240825/lib/typescript.js:81642:21)
    at getReturnTypeOfSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:62953:426)
    at serializeReturnTypeForSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:56419:26)
    at signatureToSignatureDeclarationHelper (/typescript-5.7.0-dev.20240825/lib/typescript.js:55519:30)
    at addPropertyToElementList (/typescript-5.7.0-dev.20240825/lib/typescript.js:55344:37)
    at createTypeNodesFromResolvedType (/typescript-5.7.0-dev.20240825/lib/typescript.js:55255:11)
    at createTypeNodeFromObjectType (/typescript-5.7.0-dev.20240825/lib/typescript.js:55030:25)
    at visitAndTransformType (/typescript-5.7.0-dev.20240825/lib/typescript.js:54953:24)
    at createAnonymousTypeNode (/typescript-5.7.0-dev.20240825/lib/typescript.js:54893:20)
    at typeToTypeNodeWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:54686:16)
    at typeToTypeNodeHelper (/typescript-5.7.0-dev.20240825/lib/typescript.js:54467:24)

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":23710,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":316059,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":23711,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":316059,"entryNames":["_"]}} {"seq":23712,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":316205}} {"seq":23713,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":317154,"includeExternalModuleExports":true,"triggerKind":1}} ```

Repro steps

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

RangeError: Maximum call stack size exceeded

Req #16819 - completionEntryDetails
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83846:33)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at maybeCheckExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:82775:28)
    at BinaryExpressionStateMachine.onLeft (/typescript-5.7.0-dev.20240825/lib/typescript.js:82709:16)
    at Array.left (/typescript-5.7.0-dev.20240825/lib/typescript.js:31542:30)
    at trampoline (/typescript-5.7.0-dev.20240825/lib/typescript.js:31646:42)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:82667:22
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83936:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkTruthinessExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:86540:34)
    at checkConditionalExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83353:18)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83938:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkExpressionCached (/typescript-5.7.0-dev.20240825/lib/typescript.js:83429:28)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:81833:20
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17674:16)
    at visitNodes (/typescript-5.7.0-dev.20240825/lib/typescript.js:31871:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240825/lib/typescript.js:32341:10)
    at forEachChild (/typescript-5.7.0-dev.20240825/lib/typescript.js:32384:35)
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17690:16)
    at forEachReturnStatement (/typescript-5.7.0-dev.20240825/lib/typescript.js:17670:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.7.0-dev.20240825/lib/typescript.js:81814:5)
    at getReturnTypeFromBody (/typescript-5.7.0-dev.20240825/lib/typescript.js:81642:21)
    at getReturnTypeOfSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:62953:426)
    at checkCallExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:80522:24)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83902:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkExpressionCached (/typescript-5.7.0-dev.20240825/lib/typescript.js:83429:28)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:81833:20
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17674:16)
    at visitNodes (/typescript-5.7.0-dev.20240825/lib/typescript.js:31871:22)
    at forEachChildInCaseClause (/typescript-5.7.0-dev.20240825/lib/typescript.js:32128:51)
    at forEachChild (/typescript-5.7.0-dev.20240825/lib/typescript.js:32384:35)
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17690:16)
    at visitNodes (/typescript-5.7.0-dev.20240825/lib/typescript.js:31871:22)
    at forEachChildInCaseBlock (/typescript-5.7.0-dev.20240825/lib/typescript.js:32125:12)
    at forEachChild (/typescript-5.7.0-dev.20240825/lib/typescript.js:32384:35)
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17690:16)
    at visitNode2 (/typescript-5.7.0-dev.20240825/lib/typescript.js:31863:18)
    at forEachChildInSwitchStatement (/typescript-5.7.0-dev.20240825/lib/typescript.js:32122:51)
    at forEachChild (/typescript-5.7.0-dev.20240825/lib/typescript.js:32384:35)
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17690:16)
    at visitNodes (/typescript-5.7.0-dev.20240825/lib/typescript.js:31871:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240825/lib/typescript.js:32341:10)
    at forEachChild (/typescript-5.7.0-dev.20240825/lib/typescript.js:32384:35)
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17690:16)
    at forEachReturnStatement (/typescript-5.7.0-dev.20240825/lib/typescript.js:17670:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.7.0-dev.20240825/lib/typescript.js:81814:5)
    at getReturnTypeFromBody (/typescript-5.7.0-dev.20240825/lib/typescript.js:81642:21)
    at getReturnTypeOfSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:62953:426)
    at checkCallExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:80522:24)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83902:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkExpressionWithContextualType (/typescript-5.7.0-dev.20240825/lib/typescript.js:83405:18)
    at getSignatureApplicabilityError (/typescript-5.7.0-dev.20240825/lib/typescript.js:79146:25)
    at chooseOverload (/typescript-5.7.0-dev.20240825/lib/typescript.js:79683:13)
    at resolveCall (/typescript-5.7.0-dev.20240825/lib/typescript.js:79530:16)
    at resolveCallExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:79967:12)
    at resolveSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:80360:16)
    at getResolvedSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:80386:18)
    at checkCallExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:80497:23)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83902:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at maybeCheckExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:82775:28)
    at BinaryExpressionStateMachine.onRight (/typescript-5.7.0-dev.20240825/lib/typescript.js:82739:16)
    at Array.right (/typescript-5.7.0-dev.20240825/lib/typescript.js:31562:30)
    at trampoline (/typescript-5.7.0-dev.20240825/lib/typescript.js:31646:42)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:82667:22
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83936:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkExpressionCached (/typescript-5.7.0-dev.20240825/lib/typescript.js:83429:28)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:81833:20
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17674:16)
    at visitNodes (/typescript-5.7.0-dev.20240825/lib/typescript.js:31871:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240825/lib/typescript.js:32341:10)
    at forEachChild (/typescript-5.7.0-dev.20240825/lib/typescript.js:32384:35)
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17690:16)
    at forEachReturnStatement (/typescript-5.7.0-dev.20240825/lib/typescript.js:17670:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.7.0-dev.20240825/lib/typescript.js:81814:5)
    at getReturnTypeFromBody (/typescript-5.7.0-dev.20240825/lib/typescript.js:81642:21)
    at getReturnTypeOfSignature (/typescript-5.7.0-dev.20240825/lib/typescript.js:62953:426)
    at checkCallExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:80522:24)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83902:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at maybeCheckExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:82775:28)
    at BinaryExpressionStateMachine.onLeft (/typescript-5.7.0-dev.20240825/lib/typescript.js:82709:16)
    at Array.left (/typescript-5.7.0-dev.20240825/lib/typescript.js:31542:30)
    at trampoline (/typescript-5.7.0-dev.20240825/lib/typescript.js:31646:42)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:82667:22
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83936:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkTruthinessExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:86540:34)
    at checkConditionalExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83353:18)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:83938:16)
    at checkExpression (/typescript-5.7.0-dev.20240825/lib/typescript.js:83802:32)
    at checkExpressionCached (/typescript-5.7.0-dev.20240825/lib/typescript.js:83429:28)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:81833:20
    at traverse (/typescript-5.7.0-dev.20240825/lib/typescript.js:17674:16)
    at visitNodes (/typescript-5.7.0-dev.20240825/lib/typescript.js:31871:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240825/lib/typescript.js:32341:10)

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":16816,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":48806,"offset":18,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":16817,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":48806,"offset":18,"entryNames":["_"]}} {"seq":16818,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":48831,"offset":38,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":16819,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":48831,"offset":38,"entryNames":["__commonJS"]}} ```

Repro steps

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

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

Req #407 - updateOpen
    at isDocumentRegistryEntry (/typescript-5.7.0-dev.20240825/lib/typescript.js:141018:18)
    at getDocumentRegistryEntry (/typescript-5.7.0-dev.20240825/lib/typescript.js:141094:19)
    at Object.releaseDocumentWithKey (/typescript-5.7.0-dev.20240825/lib/typescript.js:141189:19)
    at releaseOldSourceFile (/typescript-5.7.0-dev.20240825/lib/typescript.js:150030:24)
    at Object.onReleaseOldSourceFile (/typescript-5.7.0-dev.20240825/lib/typescript.js:150034:7)
    at createProgram (/typescript-5.7.0-dev.20240825/lib/typescript.js:125125:14)
    at synchronizeHostDataWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:149990:15)
    at synchronizeHostData (/typescript-5.7.0-dev.20240825/lib/typescript.js:149886:7)
    at Object.getProgram (/typescript-5.7.0-dev.20240825/lib/typescript.js:150067:5)
    at InferredProject2.updateGraphWorker (/typescript-5.7.0-dev.20240825/lib/typescript.js:184569:41)
    at InferredProject2.updateGraph (/typescript-5.7.0-dev.20240825/lib/typescript.js:184405:32)
    at updateProjectIfDirty (/typescript-5.7.0-dev.20240825/lib/typescript.js:186182:36)
    at _ProjectService.assignProjectToOpenedScriptInfo (/typescript-5.7.0-dev.20240825/lib/typescript.js:188654:29)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:189059:25
    at _ProjectService.applyChangesInOpenFiles (/typescript-5.7.0-dev.20240825/lib/typescript.js:189057:56)
    at updateOpen (/typescript-5.7.0-dev.20240825/lib/typescript.js:190256:29)
    at /typescript-5.7.0-dev.20240825/lib/typescript.js:192924:15
    at IOSession.executeWithRequestId (/typescript-5.7.0-dev.20240825/lib/typescript.js:192913:14)
    at IOSession.executeCommand (/typescript-5.7.0-dev.20240825/lib/typescript.js:192922:29)
    at IOSession.onMessage (/typescript-5.7.0-dev.20240825/lib/typescript.js:192970:68)
    at Interface.<anonymous> (/typescript-5.7.0-dev.20240825/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":404,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/tools/fetch-docs-links.js","line":59,"offset":4,"entryNames":["@abstract"]}} {"seq":405,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/tools/fetch-docs-links.js","line":63,"offset":67}} {"seq":406,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/Makefile.js"],"openFiles":[]}} {"seq":407,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/tools/config-rule.js","projectRootPath":"@PROJECT_ROOT@"}]}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/eslint/eslint --recurse-submodules git -C "./eslint" reset --hard 8781e6f063e56438dc22346504ff637df3f84daf # 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/163439/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 ```