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.20241215 vs 5.7.2 #60768

Open
typescript-bot opened this issue Dec 15, 2024 · 5 comments
Open

[ServerErrors][JavaScript] 5.8.0-dev.20241215 vs 5.7.2 #60768

typescript-bot opened this issue Dec 15, 2024 · 5 comments

Comments

@typescript-bot
Copy link
Collaborator

The following errors were reported by 5.8.0-dev.20241215 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 5
Detected no interesting changes 284
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 #1239 - references
    at isRelatedTo (/typescript-5.7.2/lib/typescript.js:68487:25)
    at checkTypeRelatedTo (/typescript-5.7.2/lib/typescript.js:68201:20)
    at isTypeRelatedTo (/typescript-5.7.2/lib/typescript.js:68134:14)
    at isTypeAssignableTo (/typescript-5.7.2/lib/typescript.js:67260:12)
    at isTypeAssignableToKind (/typescript-5.7.2/lib/typescript.js:82750:47)
    at allTypesAssignableToKind (/typescript-5.7.2/lib/typescript.js:82753:133)
    at getPromisedTypeOfPromise (/typescript-5.7.2/lib/typescript.js:85448:9)
    at reportNonexistentProperty (/typescript-5.7.2/lib/typescript.js:78666:28)
    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)
    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

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":3808,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/packages/less/test/browser/less/plugin/plugin.js"}}
{"seq":3809,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/packages/less/test/browser/less/plugin/plugin.js"}}
{"seq":3810,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/packages/less/test/browser/less/plugin/plugin.js"}}
{"seq":3811,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"@PROJECT_ROOT@/packages/less/test/browser/less/plugin/plugin.js","textChanges":[{"newText":" //comment","start":{"line":1,"offset":1},"end":{"line":1,"offset":1}}]}],"closedFiles":[],"openFiles":[]}}

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/164392/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

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":22179,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":13641,"offset":11,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":22180,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":13641,"offset":11,"entryNames":["AI"]}}
{"seq":22181,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":13646,"offset":124}}
{"seq":22182,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":13646,"offset":124,"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/164392/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 #395 - updateOpen
    at isDocumentRegistryEntry (/typescript-5.8.0-dev.20241215/lib/typescript.js:142978:18)
    at getDocumentRegistryEntry (/typescript-5.8.0-dev.20241215/lib/typescript.js:143054:19)
    at Object.releaseDocumentWithKey (/typescript-5.8.0-dev.20241215/lib/typescript.js:143149:19)
    at releaseOldSourceFile (/typescript-5.8.0-dev.20241215/lib/typescript.js:152005:24)
    at Object.onReleaseOldSourceFile (/typescript-5.8.0-dev.20241215/lib/typescript.js:152009:7)
    at createProgram (/typescript-5.8.0-dev.20241215/lib/typescript.js:126266:14)
    at synchronizeHostDataWorker (/typescript-5.8.0-dev.20241215/lib/typescript.js:151965:15)
    at synchronizeHostData (/typescript-5.8.0-dev.20241215/lib/typescript.js:151860:7)
    at Object.getProgram (/typescript-5.8.0-dev.20241215/lib/typescript.js:152042:5)
    at InferredProject2.updateGraphWorker (/typescript-5.8.0-dev.20241215/lib/typescript.js:187057:41)
    at InferredProject2.updateGraph (/typescript-5.8.0-dev.20241215/lib/typescript.js:186892:32)
    at updateProjectIfDirty (/typescript-5.8.0-dev.20241215/lib/typescript.js:188720:36)
    at _ProjectService.assignProjectToOpenedScriptInfo (/typescript-5.8.0-dev.20241215/lib/typescript.js:191282:29)
    at /typescript-5.8.0-dev.20241215/lib/typescript.js:191822:27
    at _ProjectService.applyChangesInOpenFiles (/typescript-5.8.0-dev.20241215/lib/typescript.js:191819:56)
    at updateOpen (/typescript-5.8.0-dev.20241215/lib/typescript.js:193051:29)
    at /typescript-5.8.0-dev.20241215/lib/typescript.js:195771:15
    at IOSession.executeWithRequestId (/typescript-5.8.0-dev.20241215/lib/typescript.js:195760:14)
    at IOSession.executeCommand (/typescript-5.8.0-dev.20241215/lib/typescript.js:195769:29)
    at IOSession.onMessage (/typescript-5.8.0-dev.20241215/lib/typescript.js:195817:68)
    at Interface.<anonymous> (/typescript-5.8.0-dev.20241215/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":392,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/tools/fetch-docs-links.js","line":83,"offset":11,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":393,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/tools/fetch-docs-links.js","line":108,"offset":6}}
{"seq":394,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/Makefile.js"],"openFiles":[]}}
{"seq":395,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/tools/config-rule.js","projectRootPath":"@PROJECT_ROOT@"}]}}

Repro steps

#!/bin/bash

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

@typescript-bot
Copy link
Collaborator Author

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

Req #2895 - references
    at addSyntheticNodes (/typescript-5.8.0-dev.20241215/lib/typescript.js:151032:15)
    at createSyntaxList (/typescript-5.8.0-dev.20241215/lib/typescript.js:151047:5)
    at processNodes (/typescript-5.8.0-dev.20241215/lib/typescript.js:151012:19)
    at visitNodes (/typescript-5.8.0-dev.20241215/lib/typescript.js:32157:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.8.0-dev.20241215/lib/typescript.js:32309:12)
    at forEachChild (/typescript-5.8.0-dev.20241215/lib/typescript.js:32673:35)
    at NodeObject.forEachChild (/typescript-5.8.0-dev.20241215/lib/typescript.js:150992:12)
    at createChildren (/typescript-5.8.0-dev.20241215/lib/typescript.js:151017:8)
    at NodeObject.getChildren (/typescript-5.8.0-dev.20241215/lib/typescript.js:150971:83)
    at getTokenAtPositionWorker (/typescript-5.8.0-dev.20241215/lib/typescript.js:139255:32)
    at getTouchingToken (/typescript-5.8.0-dev.20241215/lib/typescript.js:139228:10)
    at getTouchingPropertyName (/typescript-5.8.0-dev.20241215/lib/typescript.js:139225:10)
    at /typescript-5.8.0-dev.20241215/lib/typescript.js:172614:33
    at mapDefined (/typescript-5.8.0-dev.20241215/lib/typescript.js:2600:22)
    at getPossibleSymbolReferenceNodes (/typescript-5.8.0-dev.20241215/lib/typescript.js:172613:12)
    at /typescript-5.8.0-dev.20241215/lib/typescript.js:173140:25
    at flatMap (/typescript-5.8.0-dev.20241215/lib/typescript.js:2530:17)
    at getReferencesForStringLiteral (/typescript-5.8.0-dev.20241215/lib/typescript.js:173138:24)
    at Object.getReferencedSymbolsForNode (/typescript-5.8.0-dev.20241215/lib/typescript.js:172018:16)
    at Object.findReferencedSymbols (/typescript-5.8.0-dev.20241215/lib/typescript.js:171622:34)
    at Object.findReferences (/typescript-5.8.0-dev.20241215/lib/typescript.js:152439:41)
    at /typescript-5.8.0-dev.20241215/lib/typescript.js:192719:43
    at searchPosition (/typescript-5.8.0-dev.20241215/lib/typescript.js:192860:28)
    at getPerProjectReferences (/typescript-5.8.0-dev.20241215/lib/typescript.js:192839:32)
    at getReferencesWorker (/typescript-5.8.0-dev.20241215/lib/typescript.js:192706:29)
    at IOSession.getReferences (/typescript-5.8.0-dev.20241215/lib/typescript.js:194740:24)
    at references (/typescript-5.8.0-dev.20241215/lib/typescript.js:193149:43)
    at /typescript-5.8.0-dev.20241215/lib/typescript.js:195771:15
    at IOSession.executeWithRequestId (/typescript-5.8.0-dev.20241215/lib/typescript.js:195760:14)
    at IOSession.executeCommand (/typescript-5.8.0-dev.20241215/lib/typescript.js:195769:29)
    at IOSession.onMessage (/typescript-5.8.0-dev.20241215/lib/typescript.js:195817:68)
    at Interface.<anonymous> (/typescript-5.8.0-dev.20241215/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":2892,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/web/dist/apps/labelstudio/main.js","line":2,"offset":1073303,"entryNames":["a"]}}
{"seq":2893,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/dist/apps/labelstudio/main.js","line":2,"offset":1074844}}
{"seq":2894,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/web/dist/apps/labelstudio/main.js","line":2,"offset":1076100,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}}
{"seq":2895,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/web/dist/apps/labelstudio/main.js","line":2,"offset":1076967}}

Repro steps

#!/bin/bash

git clone https://github.com/HumanSignal/label-studio --recurse-submodules
git -C "./label-studio" reset --hard a47984fc32ee0b349ab09922b58e33ab49faf2e0
# 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/164392/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

Error: Debug Failure. False expression.

Req #2622 - completionInfo
    at getPos2 (/typescript-5.8.0-dev.20241215/lib/typescript.js:177991:9)
    at assignPositionsToNodeArray (/typescript-5.8.0-dev.20241215/lib/typescript.js:178906:33)
    at visitEachChildOfParameterDeclaration (/typescript-5.8.0-dev.20241215/lib/typescript.js:94377:7)
    at visitEachChild (/typescript-5.8.0-dev.20241215/lib/typescript.js:94348:33)
    at assignPositionsToNode (/typescript-5.8.0-dev.20241215/lib/typescript.js:178894:19)
    at visitArrayWorker (/typescript-5.8.0-dev.20241215/lib/typescript.js:94162:49)
    at visitNodes2 (/typescript-5.8.0-dev.20241215/lib/typescript.js:94133:19)
    at assignPositionsToNodeArray (/typescript-5.8.0-dev.20241215/lib/typescript.js:178900:19)
    at visitEachChildOfFunctionTypeNode (/typescript-5.8.0-dev.20241215/lib/typescript.js:94515:7)
    at visitEachChild (/typescript-5.8.0-dev.20241215/lib/typescript.js:94348:33)
    at assignPositionsToNode (/typescript-5.8.0-dev.20241215/lib/typescript.js:178894:19)
    at visitNode (/typescript-5.8.0-dev.20241215/lib/typescript.js:94100:19)
    at visitEachChildOfParameterDeclaration (/typescript-5.8.0-dev.20241215/lib/typescript.js:94381:7)
    at visitEachChild (/typescript-5.8.0-dev.20241215/lib/typescript.js:94348:33)
    at assignPositionsToNode (/typescript-5.8.0-dev.20241215/lib/typescript.js:178894:19)
    at visitArrayWorker (/typescript-5.8.0-dev.20241215/lib/typescript.js:94162:49)
    at visitNodes2 (/typescript-5.8.0-dev.20241215/lib/typescript.js:94133:19)
    at assignPositionsToNodeArray (/typescript-5.8.0-dev.20241215/lib/typescript.js:178900:19)
    at visitParameterList (/typescript-5.8.0-dev.20241215/lib/typescript.js:94198:15)
    at visitEachChildOfMethodDeclaration (/typescript-5.8.0-dev.20241215/lib/typescript.js:94431:7)
    at visitEachChild (/typescript-5.8.0-dev.20241215/lib/typescript.js:94348:33)
    at Object.assignPositionsToNode (/typescript-5.8.0-dev.20241215/lib/typescript.js:178894:19)
    at /typescript-5.8.0-dev.20241215/lib/typescript.js:167329:50
    at flatMap (/typescript-5.8.0-dev.20241215/lib/typescript.js:2530:17)
    at Object.printAndFormatSnippetList (/typescript-5.8.0-dev.20241215/lib/typescript.js:167328:21)
    at getEntryForMemberCompletion (/typescript-5.8.0-dev.20241215/lib/typescript.js:167079:28)
    at createCompletionEntry (/typescript-5.8.0-dev.20241215/lib/typescript.js:166859:35)
    at getCompletionEntriesFromSymbols (/typescript-5.8.0-dev.20241215/lib/typescript.js:167502:19)
    at completionInfoFromData (/typescript-5.8.0-dev.20241215/lib/typescript.js:166492:23)
    at Object.getCompletionsAtPosition (/typescript-5.8.0-dev.20241215/lib/typescript.js:166025:24)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.8.0-dev.20241215/lib/typescript.js:152240:35)
    at IOSession.getCompletions (/typescript-5.8.0-dev.20241215/lib/typescript.js:194994:54)
    at completionInfo (/typescript-5.8.0-dev.20241215/lib/typescript.js:193268:43)
    at /typescript-5.8.0-dev.20241215/lib/typescript.js:195771:15
    at IOSession.executeWithRequestId (/typescript-5.8.0-dev.20241215/lib/typescript.js:195760:14)
    at IOSession.executeCommand (/typescript-5.8.0-dev.20241215/lib/typescript.js:195769:29)
    at IOSession.onMessage (/typescript-5.8.0-dev.20241215/lib/typescript.js:195817:68)
    at Interface.<anonymous> (/typescript-5.8.0-dev.20241215/lib/_tsserver.js:495:14)

Affected repos

decaporg/decap-cms Raw error text: RepoResults7/decaporg.decap-cms.rawError.txt in the artifact folder
Replay commands: RepoResults7/decaporg.decap-cms.replay.txt in the artifact folder

Last few requests

{"seq":2619,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/decap-cms-backend-github/src/GraphQLAPI.ts","line":307,"offset":26}}
{"seq":2620,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/decap-cms-backend-github/src/GraphQLAPI.ts","line":319,"offset":43,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":2621,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/decap-cms-backend-github/src/GraphQLAPI.ts","line":319,"offset":43,"entryNames":["API"]}}
{"seq":2622,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/decap-cms-backend-github/src/GraphQLAPI.ts","line":399,"offset":4,"includeExternalModuleExports":false,"triggerKind":1}}

Repro steps

#!/bin/bash

git clone https://github.com/decaporg/decap-cms --recurse-submodules
git -C "./decap-cms" reset --hard 022dbe523d07bb8bc74970460cc82b259fde4041
npm --prefix "./decap-cms" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/164392/artifacts?artifactName=RepoResults7&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults7.zip "$downloadUrl"
unzip -p RepoResults7.zip RepoResults7/decaporg.decap-cms.replay.txt > decaporg.decap-cms.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 ./decap-cms ./decaporg.decap-cms.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