Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ServerErrors][JavaScript] 5.8.0-dev.20241222 vs 5.7.2 #60842

Open
typescript-bot opened this issue Dec 22, 2024 · 4 comments
Open

[ServerErrors][JavaScript] 5.8.0-dev.20241222 vs 5.7.2 #60842

typescript-bot opened this issue Dec 22, 2024 · 4 comments

Comments

@typescript-bot
Copy link
Collaborator

The following errors were reported by 5.8.0-dev.20241222 vs 5.7.2
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 289 of 300 visited repos
Outcome Count
Detected interesting changes 4
Detected no interesting changes 285
Git clone failed 3
Unknown failure 8

Investigation Status

Repo Errors Outcome
@typescript-bot
Copy link
Collaborator Author

New server no longer reports this error: RangeError: Maximum call stack size exceeded
Req #1275 - references
    at getSignatureFromDeclaration (/typescript-5.7.2/lib/typescript.js:62914:39)
    at Object.serializeReturnTypeForSignature (/typescript-5.7.2/lib/typescript.js:54790:27)
    at inferReturnTypeOfSignatureSignature (/typescript-5.7.2/lib/typescript.js:136846:21)
    at createReturnFromSignature (/typescript-5.7.2/lib/typescript.js:137279:59)
    at Object.serializeReturnTypeForSignature (/typescript-5.7.2/lib/typescript.js:136697:16)
    at serializeReturnTypeForSignature (/typescript-5.7.2/lib/typescript.js:57109:49)
    at signatureToSignatureDeclarationHelper (/typescript-5.7.2/lib/typescript.js:56128:30)
    at addPropertyToElementList (/typescript-5.7.2/lib/typescript.js:55949:37)
    at createTypeNodesFromResolvedType (/typescript-5.7.2/lib/typescript.js:55860:11)
    at createTypeNodeFromObjectType (/typescript-5.7.2/lib/typescript.js:55627:25)
    at visitAndTransformType (/typescript-5.7.2/lib/typescript.js:55550:24)
    at createAnonymousTypeNode (/typescript-5.7.2/lib/typescript.js:55490:20)
    at typeToTypeNodeWorker (/typescript-5.7.2/lib/typescript.js:55283:16)
    at typeToTypeNodeHelper (/typescript-5.7.2/lib/typescript.js:55064:24)
    at /typescript-5.7.2/lib/typescript.js:54932:165
    at withContext2 (/typescript-5.7.2/lib/typescript.js:55030:29)
    at Object.typeToTypeNode (/typescript-5.7.2/lib/typescript.js:54932:86)
    at typeToString (/typescript-5.7.2/lib/typescript.js:54695:34)
    at reportNonexistentProperty (/typescript-5.7.2/lib/typescript.js:78672:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.7.2/lib/typescript.js:78500:11)
    at checkPropertyAccessExpression (/typescript-5.7.2/lib/typescript.js:78281:94)
    at checkExpressionWorker (/typescript-5.7.2/lib/typescript.js:84257:16)
    at checkExpression (/typescript-5.7.2/lib/typescript.js:84167:32)
    at checkExpressionForMutableLocation (/typescript-5.7.2/lib/typescript.js:83926:18)
    at checkPropertyAssignment (/typescript-5.7.2/lib/typescript.js:83942:12)
    at checkObjectLiteral (/typescript-5.7.2/lib/typescript.js:77383:71)
    at checkExpressionWorker (/typescript-5.7.2/lib/typescript.js:84255:16)
    at checkExpression (/typescript-5.7.2/lib/typescript.js:84167:32)
    at getTypeOfExpression (/typescript-5.7.2/lib/typescript.js:84108:18)
    at getRegularTypeOfExpression (/typescript-5.7.2/lib/typescript.js:90757:40)
    at Object.serializeTypeOfExpression (/typescript-5.7.2/lib/typescript.js:54796:53)
    at inferExpressionType (/typescript-5.7.2/lib/typescript.js:136837:21)
    at typeFromObjectLiteral (/typescript-5.7.2/lib/typescript.js:137054:30)
    at typeFromExpression (/typescript-5.7.2/lib/typescript.js:136918:16)
    at typeFromSingleReturnExpression (/typescript-5.7.2/lib/typescript.js:137311:16)
    at createReturnFromSignature (/typescript-5.7.2/lib/typescript.js:137277:20)
    at Object.serializeReturnTypeForSignature (/typescript-5.7.2/lib/typescript.js:136697:16)
    at serializeReturnTypeForSignature (/typescript-5.7.2/lib/typescript.js:57109:49)
    at signatureToSignatureDeclarationHelper (/typescript-5.7.2/lib/typescript.js:56128:30)
    at addPropertyToElementList (/typescript-5.7.2/lib/typescript.js:55949:37)
    at createTypeNodesFromResolvedType (/typescript-5.7.2/lib/typescript.js:55857:13)
    at createTypeNodeFromObjectType (/typescript-5.7.2/lib/typescript.js:55627:25)
    at visitAndTransformType (/typescript-5.7.2/lib/typescript.js:55550:24)
    at createAnonymousTypeNode (/typescript-5.7.2/lib/typescript.js:55490:20)
    at typeToTypeNodeWorker (/typescript-5.7.2/lib/typescript.js:55283:16)
    at typeToTypeNodeHelper (/typescript-5.7.2/lib/typescript.js:55064:24)
    at /typescript-5.7.2/lib/typescript.js:54932:165
    at withContext2 (/typescript-5.7.2/lib/typescript.js:55030:29)
    at Object.typeToTypeNode (/typescript-5.7.2/lib/typescript.js:54932:86)
    at typeToString (/typescript-5.7.2/lib/typescript.js:54695:34)
    at reportNonexistentProperty (/typescript-5.7.2/lib/typescript.js:78672:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.7.2/lib/typescript.js:78500:11)
    at checkPropertyAccessExpression (/typescript-5.7.2/lib/typescript.js:78281:94)
    at checkExpressionWorker (/typescript-5.7.2/lib/typescript.js:84257:16)
    at checkExpression (/typescript-5.7.2/lib/typescript.js:84167:32)
    at checkExpressionForMutableLocation (/typescript-5.7.2/lib/typescript.js:83926:18)
    at checkPropertyAssignment (/typescript-5.7.2/lib/typescript.js:83942:12)
    at checkObjectLiteral (/typescript-5.7.2/lib/typescript.js:77383:71)
    at checkExpressionWorker (/typescript-5.7.2/lib/typescript.js:84255:16)
    at checkExpression (/typescript-5.7.2/lib/typescript.js:84167:32)
    at getTypeOfExpression (/typescript-5.7.2/lib/typescript.js:84108:18)
    at getRegularTypeOfExpression (/typescript-5.7.2/lib/typescript.js:90757:40)
    at Object.serializeTypeOfExpression (/typescript-5.7.2/lib/typescript.js:54796:53)
    at inferExpressionType (/typescript-5.7.2/lib/typescript.js:136837:21)
    at typeFromObjectLiteral (/typescript-5.7.2/lib/typescript.js:137054:30)
    at typeFromExpression (/typescript-5.7.2/lib/typescript.js:136918:16)
    at typeFromSingleReturnExpression (/typescript-5.7.2/lib/typescript.js:137311:16)
    at createReturnFromSignature (/typescript-5.7.2/lib/typescript.js:137277:20)
    at Object.serializeReturnTypeForSignature (/typescript-5.7.2/lib/typescript.js:136697:16)
    at serializeReturnTypeForSignature (/typescript-5.7.2/lib/typescript.js:57109:49)
    at signatureToSignatureDeclarationHelper (/typescript-5.7.2/lib/typescript.js:56128:30)
    at addPropertyToElementList (/typescript-5.7.2/lib/typescript.js:55949:37)
    at createTypeNodesFromResolvedType (/typescript-5.7.2/lib/typescript.js:55857:13)
    at createTypeNodeFromObjectType (/typescript-5.7.2/lib/typescript.js:55627:25)
    at visitAndTransformType (/typescript-5.7.2/lib/typescript.js:55550:24)
    at createAnonymousTypeNode (/typescript-5.7.2/lib/typescript.js:55490:20)
    at typeToTypeNodeWorker (/typescript-5.7.2/lib/typescript.js:55283:16)
    at typeToTypeNodeHelper (/typescript-5.7.2/lib/typescript.js:55064:24)
    at /typescript-5.7.2/lib/typescript.js:54932:165
    at withContext2 (/typescript-5.7.2/lib/typescript.js:55030:29)
    at Object.typeToTypeNode (/typescript-5.7.2/lib/typescript.js:54932:86)
    at typeToString (/typescript-5.7.2/lib/typescript.js:54695:34)
    at reportNonexistentProperty (/typescript-5.7.2/lib/typescript.js:78672:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.7.2/lib/typescript.js:78500:11)
    at checkPropertyAccessExpression (/typescript-5.7.2/lib/typescript.js:78281:94)
    at checkExpressionWorker (/typescript-5.7.2/lib/typescript.js:84257:16)
    at checkExpression (/typescript-5.7.2/lib/typescript.js:84167:32)
    at checkExpressionForMutableLocation (/typescript-5.7.2/lib/typescript.js:83926:18)
    at checkPropertyAssignment (/typescript-5.7.2/lib/typescript.js:83942:12)
    at checkObjectLiteral (/typescript-5.7.2/lib/typescript.js:77383:71)
    at checkExpressionWorker (/typescript-5.7.2/lib/typescript.js:84255:16)
    at checkExpression (/typescript-5.7.2/lib/typescript.js:84167:32)
    at getTypeOfExpression (/typescript-5.7.2/lib/typescript.js:84108:18)
    at getRegularTypeOfExpression (/typescript-5.7.2/lib/typescript.js:90757:40)
    at Object.serializeTypeOfExpression (/typescript-5.7.2/lib/typescript.js:54796:53)
    at inferExpressionType (/typescript-5.7.2/lib/typescript.js:136837:21)
    at typeFromObjectLiteral (/typescript-5.7.2/lib/typescript.js:137054:30)
    at typeFromExpression (/typescript-5.7.2/lib/typescript.js:136918:16)
    at typeFromSingleReturnExpression (/typescript-5.7.2/lib/typescript.js:137311:16)
    at createReturnFromSignature (/typescript-5.7.2/lib/typescript.js:137277:20)

Affected repos

less/less.js Raw error text: RepoResults8/less.less.js.rawError.txt in the artifact folder
Replay commands: RepoResults8/less.less.js.replay.txt in the artifact folder

Last few requests

{"seq":3870,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/packages/less/test/browser/less/plugin/plugin.js"}}
{"seq":3871,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/packages/less/test/browser/less/plugin/plugin.js"}}
{"seq":3872,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/packages/less/test/browser/less/plugin/plugin.js"}}
{"seq":3873,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/less/test/browser/less/plugin/plugin.js","line":3,"offset":16,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}}

Repro steps

#!/bin/bash

git clone https://github.com/less/less.js --recurse-submodules
git -C "./less.js" reset --hard 145d95ee9cb0d4137899c61b399b1d8a9eb2793b
npm --prefix "./less.js" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/164450/artifacts?artifactName=RepoResults8&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults8.zip "$downloadUrl"
unzip -p RepoResults8.zip RepoResults8/less.less.js.replay.txt > less.less.js.replay.txt
npm install --no-save @typescript/server-replay

To run the repro:

# `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc.
npx tsreplay ./less.js ./less.less.js.replay.txt <PATH_TO_tsserver.js>

@typescript-bot
Copy link
Collaborator Author

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

Req #2782 - references
    at addSyntheticNodes (/typescript-5.8.0-dev.20241222/lib/typescript.js:151033:15)
    at createSyntaxList (/typescript-5.8.0-dev.20241222/lib/typescript.js:151048:5)
    at processNodes (/typescript-5.8.0-dev.20241222/lib/typescript.js:151013:19)
    at visitNodes (/typescript-5.8.0-dev.20241222/lib/typescript.js:32157:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.8.0-dev.20241222/lib/typescript.js:32309:12)
    at forEachChild (/typescript-5.8.0-dev.20241222/lib/typescript.js:32673:35)
    at NodeObject.forEachChild (/typescript-5.8.0-dev.20241222/lib/typescript.js:150993:12)
    at createChildren (/typescript-5.8.0-dev.20241222/lib/typescript.js:151018:8)
    at NodeObject.getChildren (/typescript-5.8.0-dev.20241222/lib/typescript.js:150972:83)
    at getTokenAtPositionWorker (/typescript-5.8.0-dev.20241222/lib/typescript.js:139256:32)
    at getTouchingToken (/typescript-5.8.0-dev.20241222/lib/typescript.js:139229:10)
    at getTouchingPropertyName (/typescript-5.8.0-dev.20241222/lib/typescript.js:139226:10)
    at /typescript-5.8.0-dev.20241222/lib/typescript.js:172615:33
    at mapDefined (/typescript-5.8.0-dev.20241222/lib/typescript.js:2600:22)
    at getPossibleSymbolReferenceNodes (/typescript-5.8.0-dev.20241222/lib/typescript.js:172614:12)
    at /typescript-5.8.0-dev.20241222/lib/typescript.js:173141:25
    at flatMap (/typescript-5.8.0-dev.20241222/lib/typescript.js:2530:17)
    at getReferencesForStringLiteral (/typescript-5.8.0-dev.20241222/lib/typescript.js:173139:24)
    at Object.getReferencedSymbolsForNode (/typescript-5.8.0-dev.20241222/lib/typescript.js:172019:16)
    at Object.findReferencedSymbols (/typescript-5.8.0-dev.20241222/lib/typescript.js:171623:34)
    at Object.findReferences (/typescript-5.8.0-dev.20241222/lib/typescript.js:152440:41)
    at /typescript-5.8.0-dev.20241222/lib/typescript.js:192720:43
    at searchPosition (/typescript-5.8.0-dev.20241222/lib/typescript.js:192861:28)
    at getPerProjectReferences (/typescript-5.8.0-dev.20241222/lib/typescript.js:192840:32)
    at getReferencesWorker (/typescript-5.8.0-dev.20241222/lib/typescript.js:192707:29)
    at IOSession.getReferences (/typescript-5.8.0-dev.20241222/lib/typescript.js:194741:24)
    at references (/typescript-5.8.0-dev.20241222/lib/typescript.js:193150:43)
    at /typescript-5.8.0-dev.20241222/lib/typescript.js:195772:15
    at IOSession.executeWithRequestId (/typescript-5.8.0-dev.20241222/lib/typescript.js:195761:14)
    at IOSession.executeCommand (/typescript-5.8.0-dev.20241222/lib/typescript.js:195770:29)
    at IOSession.onMessage (/typescript-5.8.0-dev.20241222/lib/typescript.js:195818:68)
    at Interface.<anonymous> (/typescript-5.8.0-dev.20241222/lib/_tsserver.js:495:14)

Affected repos

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

Last few requests

{"seq":2779,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/dist/apps/labelstudio/main.js","line":2,"offset":1076193}}
{"seq":2780,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/web/dist/apps/labelstudio/main.js","line":2,"offset":1076258,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}}
{"seq":2781,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/dist/apps/labelstudio/main.js","line":2,"offset":1076669}}
{"seq":2782,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/web/dist/apps/labelstudio/main.js","line":2,"offset":1076669}}

Repro steps

#!/bin/bash

git clone https://github.com/HumanSignal/label-studio --recurse-submodules
git -C "./label-studio" reset --hard 1ef99baf69fd49adea311e78e934f150e1b7b258
# 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/ui" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./label-studio/web/libs/frontend-test/src/bin/assets" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./label-studio/web/libs/editor" 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
npm --prefix "./label-studio/web/libs/datamanager" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
yarn --cwd "./label-studio/docs" install --ignore-engines --ignore-scripts --silent
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/164450/artifacts?artifactName=RepoResults6&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults6.zip "$downloadUrl"
unzip -p RepoResults6.zip RepoResults6/HumanSignal.label-studio.replay.txt > HumanSignal.label-studio.replay.txt
npm install --no-save @typescript/server-replay

To run the repro:

# `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc.
npx tsreplay ./label-studio ./HumanSignal.label-studio.replay.txt <PATH_TO_tsserver.js>

@typescript-bot
Copy link
Collaborator Author

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

{"seq":22037,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":15958,"offset":1,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":22038,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":15958,"offset":1,"entryNames":["$"]}}
{"seq":22039,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":15964,"offset":4,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}}
{"seq":22040,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":16001,"offset":18,"includeExternalModuleExports":false,"triggerKind":1}}

Repro steps

#!/bin/bash

git clone https://github.com/tastejs/todomvc --recurse-submodules
git -C "./todomvc" reset --hard c8aedce5f512e47991a62b37b9ee3ef38df1a4b6
# 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/164450/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:

# `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc.
npx tsreplay ./todomvc ./tastejs.todomvc.replay.txt <PATH_TO_tsserver.js>

@typescript-bot
Copy link
Collaborator Author

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

Req #440 - updateOpen
    at isDocumentRegistryEntry (/typescript-5.8.0-dev.20241222/lib/typescript.js:142979:18)
    at getDocumentRegistryEntry (/typescript-5.8.0-dev.20241222/lib/typescript.js:143055:19)
    at Object.releaseDocumentWithKey (/typescript-5.8.0-dev.20241222/lib/typescript.js:143150:19)
    at /typescript-5.8.0-dev.20241222/lib/typescript.js:152101:65
    at forEach (/typescript-5.8.0-dev.20241222/lib/typescript.js:2299:22)
    at cleanupSemanticCache (/typescript-5.8.0-dev.20241222/lib/typescript.js:152101:7)
    at Object.dispose (/typescript-5.8.0-dev.20241222/lib/typescript.js:152106:5)
    at InferredProject2.close (/typescript-5.8.0-dev.20241222/lib/typescript.js:186682:26)
    at InferredProject2.close (/typescript-5.8.0-dev.20241222/lib/typescript.js:187797:11)
    at _ProjectService.removeProject (/typescript-5.8.0-dev.20241222/lib/typescript.js:189591:13)
    at _ProjectService.cleanupProjectsAndScriptInfos (/typescript-5.8.0-dev.20241222/lib/typescript.js:191591:14)
    at _ProjectService.applyChangesInOpenFiles (/typescript-5.8.0-dev.20241222/lib/typescript.js:191832:12)
    at updateOpen (/typescript-5.8.0-dev.20241222/lib/typescript.js:193052:29)
    at /typescript-5.8.0-dev.20241222/lib/typescript.js:195772:15
    at IOSession.executeWithRequestId (/typescript-5.8.0-dev.20241222/lib/typescript.js:195761:14)
    at IOSession.executeCommand (/typescript-5.8.0-dev.20241222/lib/typescript.js:195770:29)
    at IOSession.onMessage (/typescript-5.8.0-dev.20241222/lib/typescript.js:195818:68)
    at Interface.<anonymous> (/typescript-5.8.0-dev.20241222/lib/_tsserver.js:495: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

{"seq":437,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/tools/check-rule-examples.js","line":233,"offset":48}}
{"seq":438,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/tools/check-rule-examples.js","line":234,"offset":63,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}}
{"seq":439,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/Makefile.js"],"openFiles":[]}}
{"seq":440,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/tools/check-emfile-handling.js","projectRootPath":"@PROJECT_ROOT@"}]}}

Repro steps

#!/bin/bash

git clone https://github.com/eslint/eslint --recurse-submodules
git -C "./eslint" reset --hard 613c06a2c341758739473409a2331074884ec7f8
# 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/164450/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:

# `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc.
npx tsreplay ./eslint ./eslint.eslint.replay.txt <PATH_TO_tsserver.js>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant