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.9.0-dev.20250302 vs 5.8.2 #61328

Closed
typescript-bot opened this issue Mar 2, 2025 · 3 comments
Closed

[ServerErrors][JavaScript] 5.9.0-dev.20250302 vs 5.8.2 #61328

typescript-bot opened this issue Mar 2, 2025 · 3 comments

Comments

@typescript-bot
Copy link
Collaborator

The following errors were reported by 5.9.0-dev.20250302 vs 5.8.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 290 of 300 visited repos
Outcome Count
Detected interesting changes 3
Detected no interesting changes 287
Git clone failed 3
Unknown failure 7

Investigation Status

Repo Errors Outcome
@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":22367,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":15217,"offset":56,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":22368,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":15217,"offset":56,"entryNames":["$"]}}
{"seq":22369,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":15269,"offset":38}}
{"seq":22370,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":15274,"offset":81,"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/164899/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

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

Req #2987 - references
    at addSyntheticNodes (/typescript-5.9.0-dev.20250302/lib/typescript.js:151012:15)
    at createSyntaxList (/typescript-5.9.0-dev.20250302/lib/typescript.js:151027:5)
    at processNodes (/typescript-5.9.0-dev.20250302/lib/typescript.js:150992:19)
    at visitNodes (/typescript-5.9.0-dev.20250302/lib/typescript.js:32314:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.9.0-dev.20250302/lib/typescript.js:32466:12)
    at forEachChild (/typescript-5.9.0-dev.20250302/lib/typescript.js:32830:35)
    at NodeObject.forEachChild (/typescript-5.9.0-dev.20250302/lib/typescript.js:150972:12)
    at createChildren (/typescript-5.9.0-dev.20250302/lib/typescript.js:150997:8)
    at NodeObject.getChildren (/typescript-5.9.0-dev.20250302/lib/typescript.js:150951:83)
    at getTokenAtPositionWorker (/typescript-5.9.0-dev.20250302/lib/typescript.js:139234:32)
    at getTouchingToken (/typescript-5.9.0-dev.20250302/lib/typescript.js:139207:10)
    at getTouchingPropertyName (/typescript-5.9.0-dev.20250302/lib/typescript.js:139204:10)
    at /typescript-5.9.0-dev.20250302/lib/typescript.js:172589:33
    at mapDefined (/typescript-5.9.0-dev.20250302/lib/typescript.js:2606:22)
    at getPossibleSymbolReferenceNodes (/typescript-5.9.0-dev.20250302/lib/typescript.js:172588:12)
    at /typescript-5.9.0-dev.20250302/lib/typescript.js:173115:25
    at flatMap (/typescript-5.9.0-dev.20250302/lib/typescript.js:2536:17)
    at getReferencesForStringLiteral (/typescript-5.9.0-dev.20250302/lib/typescript.js:173113:24)
    at Object.getReferencedSymbolsForNode (/typescript-5.9.0-dev.20250302/lib/typescript.js:171993:16)
    at Object.findReferencedSymbols (/typescript-5.9.0-dev.20250302/lib/typescript.js:171597:34)
    at Object.findReferences (/typescript-5.9.0-dev.20250302/lib/typescript.js:152397:41)
    at /typescript-5.9.0-dev.20250302/lib/typescript.js:192675:43
    at searchPosition (/typescript-5.9.0-dev.20250302/lib/typescript.js:192816:28)
    at getPerProjectReferences (/typescript-5.9.0-dev.20250302/lib/typescript.js:192795:32)
    at getReferencesWorker (/typescript-5.9.0-dev.20250302/lib/typescript.js:192662:29)
    at IOSession.getReferences (/typescript-5.9.0-dev.20250302/lib/typescript.js:194696:24)
    at references (/typescript-5.9.0-dev.20250302/lib/typescript.js:193105:43)
    at /typescript-5.9.0-dev.20250302/lib/typescript.js:195725:15
    at IOSession.executeWithRequestId (/typescript-5.9.0-dev.20250302/lib/typescript.js:195714:14)
    at IOSession.executeCommand (/typescript-5.9.0-dev.20250302/lib/typescript.js:195723:29)
    at IOSession.onMessage (/typescript-5.9.0-dev.20250302/lib/typescript.js:195771:68)
    at Interface.<anonymous> (/typescript-5.9.0-dev.20250302/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":2984,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/dist/apps/labelstudio/main.js","line":2,"offset":1148117}}
{"seq":2985,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/dist/apps/labelstudio/main.js","line":2,"offset":1148119}}
{"seq":2986,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/web/dist/apps/labelstudio/main.js","line":2,"offset":1148628,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}}
{"seq":2987,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/web/dist/apps/labelstudio/main.js","line":2,"offset":1149242}}

Repro steps

#!/bin/bash

git clone https://github.com/HumanSignal/label-studio --recurse-submodules
git -C "./label-studio" reset --hard f70c34e2419b36194b69c43e3102241c6bcb5f82
# 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
npm --prefix "./label-studio/web/libs/core" 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/164899/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

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

Req #350 - updateOpen
    at isDocumentRegistryEntry (/typescript-5.9.0-dev.20250302/lib/typescript.js:142957:18)
    at getDocumentRegistryEntry (/typescript-5.9.0-dev.20250302/lib/typescript.js:143033:19)
    at Object.releaseDocumentWithKey (/typescript-5.9.0-dev.20250302/lib/typescript.js:143128:19)
    at /typescript-5.9.0-dev.20250302/lib/typescript.js:152080:65
    at forEach (/typescript-5.9.0-dev.20250302/lib/typescript.js:2305:22)
    at cleanupSemanticCache (/typescript-5.9.0-dev.20250302/lib/typescript.js:152080:7)
    at Object.dispose (/typescript-5.9.0-dev.20250302/lib/typescript.js:152085:5)
    at InferredProject2.close (/typescript-5.9.0-dev.20250302/lib/typescript.js:186637:26)
    at InferredProject2.close (/typescript-5.9.0-dev.20250302/lib/typescript.js:187752:11)
    at _ProjectService.removeProject (/typescript-5.9.0-dev.20250302/lib/typescript.js:189546:13)
    at _ProjectService.cleanupProjectsAndScriptInfos (/typescript-5.9.0-dev.20250302/lib/typescript.js:191546:14)
    at _ProjectService.applyChangesInOpenFiles (/typescript-5.9.0-dev.20250302/lib/typescript.js:191787:12)
    at updateOpen (/typescript-5.9.0-dev.20250302/lib/typescript.js:193007:29)
    at /typescript-5.9.0-dev.20250302/lib/typescript.js:195725:15
    at IOSession.executeWithRequestId (/typescript-5.9.0-dev.20250302/lib/typescript.js:195714:14)
    at IOSession.executeCommand (/typescript-5.9.0-dev.20250302/lib/typescript.js:195723:29)
    at IOSession.onMessage (/typescript-5.9.0-dev.20250302/lib/typescript.js:195771:68)
    at Interface.<anonymous> (/typescript-5.9.0-dev.20250302/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":347,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/tools/check-rule-examples.js","line":237,"offset":11,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":348,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/tools/check-rule-examples.js","line":241,"offset":6}}
{"seq":349,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/eslint.config.js"],"openFiles":[]}}
{"seq":350,"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 2f386ad203a672832c91e72c285a25bd64d48d9d
# 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/164899/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>

@RyanCavanaugh RyanCavanaugh closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2025
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

2 participants