microsoft / TypeScript

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

[ServerErrors][JavaScript] 5.6.0-dev.20240818 vs 5.5.4 #59677

Closed typescript-bot closed 3 weeks ago

typescript-bot commented 4 weeks ago

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

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

Successfully analyzed 293 of 300 visited repos | Outcome | Count | |---------|-------| | Detected interesting changes | 7 | | Detected no interesting changes | 286 | | Unknown failure | 7 |

Investigation Status

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

Affected repos

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

Last few requests

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

Repro steps

```bash #!/bin/bash git clone https://github.com/framework7io/framework7 --recurse-submodules git -C "./framework7" reset --hard de92ec27eccd99153a0cca5cf559a1c50f6eb835 # Install packages (exact steps are below, but it might be easier to follow the repo readme) npm --prefix "./framework7" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./framework7/packages/vue" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./framework7/packages/svelte" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./framework7/packages/react" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./framework7/packages/core" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./framework7/build/vue" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./framework7/build/svelte" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./framework7/build/react" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q npm --prefix "./framework7/build/core" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163341/artifacts?artifactName=RepoResults7&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults7.zip "$downloadUrl" unzip -p RepoResults7.zip RepoResults7/framework7io.framework7.replay.txt > framework7io.framework7.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./framework7 ./framework7io.framework7.replay.txt ```
typescript-bot commented 4 weeks ago
New server no longer reports this error: Error: Debug Failure. Expected 2 < 2. ``` Req #2434 - 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

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

Last few requests

```json {"seq":2855,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/test/browser/basic.js"}},"skipDestructiveCodeActions":true}} {"seq":2856,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/test/browser/basic.js"}} {"seq":2857,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/test/browser/basic.js"}} {"seq":2858,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/test/browser/basic.js"}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/webtorrent/webtorrent --recurse-submodules git -C "./webtorrent" reset --hard 1416d681052fe758d0b30b6ba8e0e56a447b0a93 downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163341/artifacts?artifactName=RepoResults3&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults3.zip "$downloadUrl" unzip -p RepoResults3.zip RepoResults3/webtorrent.webtorrent.replay.txt > webtorrent.webtorrent.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 ./webtorrent ./webtorrent.webtorrent.replay.txt ```
typescript-bot commented 4 weeks ago
New server no longer reports this error: Error: Debug Failure. ``` Req #6032 - 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":10542,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":10543,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}},"skipDestructiveCodeActions":true}} {"seq":10544,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}} {"seq":10545,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/aosabook/500lines --recurse-submodules git -C "./500lines" reset --hard fba689d101eb5600f5c8f4d7fd79912498e950e2 npm --prefix "./500lines/spreadsheet/code" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163341/artifacts?artifactName=RepoResults3&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults3.zip "$downloadUrl" unzip -p RepoResults3.zip RepoResults3/aosabook.500lines.replay.txt > aosabook.500lines.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./500lines ./aosabook.500lines.replay.txt ```
typescript-bot commented 4 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":22398,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16189,"offset":97}} {"seq":22399,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16189,"offset":102}} {"seq":22400,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16189,"offset":102}} {"seq":22401,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16189,"offset":102,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

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

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

Req #1838 - definitionAndBoundSpan
    at addSyntheticNodes (/typescript-5.6.0-dev.20240818/lib/typescript.js:148949:15)
    at createSyntaxList (/typescript-5.6.0-dev.20240818/lib/typescript.js:148964:5)
    at processNodes (/typescript-5.6.0-dev.20240818/lib/typescript.js:148929:19)
    at visitNodes (/typescript-5.6.0-dev.20240818/lib/typescript.js:31790:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.6.0-dev.20240818/lib/typescript.js:31942:12)
    at forEachChild (/typescript-5.6.0-dev.20240818/lib/typescript.js:32306:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240818/lib/typescript.js:148909:12)
    at createChildren (/typescript-5.6.0-dev.20240818/lib/typescript.js:148934:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240818/lib/typescript.js:148888:83)
    at getTokenAtPositionWorker (/typescript-5.6.0-dev.20240818/lib/typescript.js:137232:32)
    at getTouchingToken (/typescript-5.6.0-dev.20240818/lib/typescript.js:137205:10)
    at getTouchingPropertyName (/typescript-5.6.0-dev.20240818/lib/typescript.js:137202:10)
    at getDefinitionAtPosition (/typescript-5.6.0-dev.20240818/lib/typescript.js:170810:16)
    at Object.getDefinitionAndBoundSpan (/typescript-5.6.0-dev.20240818/lib/typescript.js:171124:23)
    at Object.getDefinitionAndBoundSpan2 [as getDefinitionAndBoundSpan] (/typescript-5.6.0-dev.20240818/lib/typescript.js:150267:38)
    at IOSession.getDefinitionAndBoundSpan (/typescript-5.6.0-dev.20240818/lib/typescript.js:191105:73)
    at definitionAndBoundSpan (/typescript-5.6.0-dev.20240818/lib/typescript.js:190031:43)
    at /typescript-5.6.0-dev.20240818/lib/typescript.js:192638:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240818/lib/typescript.js:192627:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240818/lib/typescript.js:192636:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240818/lib/typescript.js:192684:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240818/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":1835,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":6846,"includeExternalModuleExports":true,"triggerKind":1}} {"seq":1836,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":8367}} {"seq":1837,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":9006}} {"seq":1838,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":9792}} ```

Repro steps

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

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

Req #368 - updateOpen
    at isDocumentRegistryEntry (/typescript-5.6.0-dev.20240818/lib/typescript.js:140901:18)
    at getDocumentRegistryEntry (/typescript-5.6.0-dev.20240818/lib/typescript.js:140977:19)
    at Object.releaseDocumentWithKey (/typescript-5.6.0-dev.20240818/lib/typescript.js:141072:19)
    at releaseOldSourceFile (/typescript-5.6.0-dev.20240818/lib/typescript.js:149913:24)
    at Object.onReleaseOldSourceFile (/typescript-5.6.0-dev.20240818/lib/typescript.js:149917:7)
    at createProgram (/typescript-5.6.0-dev.20240818/lib/typescript.js:124972:14)
    at synchronizeHostDataWorker (/typescript-5.6.0-dev.20240818/lib/typescript.js:149873:15)
    at synchronizeHostData (/typescript-5.6.0-dev.20240818/lib/typescript.js:149769:7)
    at Object.getProgram (/typescript-5.6.0-dev.20240818/lib/typescript.js:149950:5)
    at InferredProject2.updateGraphWorker (/typescript-5.6.0-dev.20240818/lib/typescript.js:184288:41)
    at InferredProject2.updateGraph (/typescript-5.6.0-dev.20240818/lib/typescript.js:184124:32)
    at updateProjectIfDirty (/typescript-5.6.0-dev.20240818/lib/typescript.js:185901:36)
    at _ProjectService.assignProjectToOpenedScriptInfo (/typescript-5.6.0-dev.20240818/lib/typescript.js:188373:29)
    at /typescript-5.6.0-dev.20240818/lib/typescript.js:188773:25
    at _ProjectService.applyChangesInOpenFiles (/typescript-5.6.0-dev.20240818/lib/typescript.js:188771:56)
    at updateOpen (/typescript-5.6.0-dev.20240818/lib/typescript.js:189970:29)
    at /typescript-5.6.0-dev.20240818/lib/typescript.js:192638:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240818/lib/typescript.js:192627:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240818/lib/typescript.js:192636:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240818/lib/typescript.js:192684:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240818/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":365,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/tools/eslint-fuzzer.js","line":193,"offset":46}} {"seq":366,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/tools/eslint-fuzzer.js","line":202,"offset":1}} {"seq":367,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/Makefile.js"],"openFiles":[]}} {"seq":368,"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 f981d054ed935ef9844b6f76d4ce90ebb345b66f # 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/163341/artifacts?artifactName=RepoResults4&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults4.zip "$downloadUrl" unzip -p RepoResults4.zip RepoResults4/eslint.eslint.replay.txt > eslint.eslint.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./eslint ./eslint.eslint.replay.txt ```
typescript-bot commented 4 weeks ago

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

Req #463 - references
    at addSyntheticNodes (/typescript-5.6.0-dev.20240818/lib/typescript.js:148949:15)
    at createSyntaxList (/typescript-5.6.0-dev.20240818/lib/typescript.js:148964:5)
    at processNodes (/typescript-5.6.0-dev.20240818/lib/typescript.js:148929:19)
    at visitNodes (/typescript-5.6.0-dev.20240818/lib/typescript.js:31790:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.6.0-dev.20240818/lib/typescript.js:31942:12)
    at forEachChild (/typescript-5.6.0-dev.20240818/lib/typescript.js:32306:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240818/lib/typescript.js:148909:12)
    at createChildren (/typescript-5.6.0-dev.20240818/lib/typescript.js:148934:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240818/lib/typescript.js:148888:83)
    at getTokenAtPositionWorker (/typescript-5.6.0-dev.20240818/lib/typescript.js:137232:32)
    at getTouchingToken (/typescript-5.6.0-dev.20240818/lib/typescript.js:137205:10)
    at getTouchingPropertyName (/typescript-5.6.0-dev.20240818/lib/typescript.js:137202:10)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240818/lib/typescript.js:170113:31)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240818/lib/typescript.js:170106:7)
    at getReferencesInSourceFile (/typescript-5.6.0-dev.20240818/lib/typescript.js:170099:12)
    at searchForName (/typescript-5.6.0-dev.20240818/lib/typescript.js:169913:7)
    at getReferencesInContainerOrFiles (/typescript-5.6.0-dev.20240818/lib/typescript.js:169714:9)
    at getReferencedSymbolsForSymbol (/typescript-5.6.0-dev.20240818/lib/typescript.js:169696:7)
    at Object.getReferencedSymbolsForNode (/typescript-5.6.0-dev.20240818/lib/typescript.js:169446:24)
    at Object.findReferencedSymbols (/typescript-5.6.0-dev.20240818/lib/typescript.js:169031:34)
    at Object.findReferences (/typescript-5.6.0-dev.20240818/lib/typescript.js:150317:41)
    at /typescript-5.6.0-dev.20240818/lib/typescript.js:189643:43
    at searchPosition (/typescript-5.6.0-dev.20240818/lib/typescript.js:189785:28)
    at getPerProjectReferences (/typescript-5.6.0-dev.20240818/lib/typescript.js:189764:32)
    at getReferencesWorker (/typescript-5.6.0-dev.20240818/lib/typescript.js:189635:29)
    at IOSession.getReferences (/typescript-5.6.0-dev.20240818/lib/typescript.js:191619:24)
    at references (/typescript-5.6.0-dev.20240818/lib/typescript.js:190068:43)
    at /typescript-5.6.0-dev.20240818/lib/typescript.js:192638:15
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240818/lib/typescript.js:192627:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240818/lib/typescript.js:192636:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240818/lib/typescript.js:192684:68)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240818/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

```json {"seq":460,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/editor/main.js","line":2,"offset":34120,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":461,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/editor/main.js","line":2,"offset":34120,"entryNames":["a"]}} {"seq":462,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/editor/main.js","line":2,"offset":34719}} {"seq":463,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/editor/main.js","line":2,"offset":35496}} ```

Repro steps

```bash #!/bin/bash git clone https://github.com/HumanSignal/label-studio --recurse-submodules git -C "./label-studio" reset --hard 34d8d4a2034fae74e41011775ac6d647740a1db9 # Install packages (exact steps are below, but it might be easier to follow the repo readme) yarn --cwd "./label-studio/web" install --ignore-engines --ignore-scripts --silent yarn --cwd "./label-studio/web/tools/version" install --ignore-engines --ignore-scripts --silent npm --prefix "./label-studio/web/libs/frontend-test/src/bin/assets" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q yarn --cwd "./label-studio/web/libs/editor/tests/e2e" install --ignore-engines --ignore-scripts --silent yarn --cwd "./label-studio/docs" install --ignore-engines --ignore-scripts --silent downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163341/artifacts?artifactName=RepoResults7&api-version=7.0" | jq -r ".resource.downloadUrl") wget -O RepoResults7.zip "$downloadUrl" unzip -p RepoResults7.zip RepoResults7/HumanSignal.label-studio.replay.txt > HumanSignal.label-studio.replay.txt npm install --no-save @typescript/server-replay ``` To run the repro: ```bash # `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc. npx tsreplay ./label-studio ./HumanSignal.label-studio.replay.txt ```