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.6.0-dev.20240623 #58979

Closed
typescript-bot opened this issue Jun 23, 2024 · 10 comments
Closed

[ServerErrors][JavaScript] 5.6.0-dev.20240623 #58979

typescript-bot opened this issue Jun 23, 2024 · 10 comments

Comments

@typescript-bot
Copy link
Collaborator

The following errors were reported by 5.6.0-dev.20240623
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 294 of 300 visited repos
Outcome Count
Detected interesting changes 10
Detected no interesting changes 284
Unknown failure 6

Investigation Status

Repo Errors Outcome
@typescript-bot
Copy link
Collaborator Author

Error: Debug Failure. Expected 1 < 1.
Req #12241 - completionInfo
    at getArgumentOrParameterListInfo (/typescript-5.5.2/lib/typescript.js:172747:11)
    at getImmediatelyContainingArgumentInfo (/typescript-5.5.2/lib/typescript.js:172764:18)
    at Object.getArgumentInfoForCompletions (/typescript-5.5.2/lib/typescript.js:172738:16)
    at getContextualType (/typescript-5.5.2/lib/typescript.js:164300:48)
    at getCompletionData (/typescript-5.5.2/lib/typescript.js:164538:43)
    at Object.getCompletionsAtPosition (/typescript-5.5.2/lib/typescript.js:162495:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.2/lib/typescript.js:149101:35)
    at IOSession.getCompletions (/typescript-5.5.2/lib/typescript.js:190599:54)
    at completionInfo (/typescript-5.5.2/lib/typescript.js:188978:43)
    at /typescript-5.5.2/lib/typescript.js:191397:69
    at IOSession.executeWithRequestId (/typescript-5.5.2/lib/typescript.js:191389:14)
    at IOSession.executeCommand (/typescript-5.5.2/lib/typescript.js:191397:29)
    at IOSession.onMessage (/typescript-5.5.2/lib/typescript.js:191439:51)
    at Interface.<anonymous> (/typescript-5.5.2/lib/tsserver.js:499:14)

Repos no longer reporting the error

@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":21959,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":14797,"offset":60}}
{"seq":21960,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":14819,"offset":39,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}}
{"seq":21961,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":14854,"offset":12}}
{"seq":21962,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":14854,"offset":14,"includeExternalModuleExports":false,"triggerKind":1}}

Repro steps

#!/bin/bash

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

Req #5915 - completionInfo
    at getThisContainer (/typescript-5.6.0-dev.20240623/lib/typescript.js:17980:20)
    at tryGetThisTypeAt (/typescript-5.6.0-dev.20240623/lib/typescript.js:75144:73)
    at Object.tryGetThisTypeAt (/typescript-5.6.0-dev.20240623/lib/typescript.js:50468:22)
    at getGlobalCompletions (/typescript-5.6.0-dev.20240623/lib/typescript.js:165326:36)
    at tryGetGlobalSymbols (/typescript-5.6.0-dev.20240623/lib/typescript.js:165271:397)
    at getCompletionData (/typescript-5.6.0-dev.20240623/lib/typescript.js:165020:10)
    at Object.getCompletionsAtPosition (/typescript-5.6.0-dev.20240623/lib/typescript.js:162957:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.6.0-dev.20240623/lib/typescript.js:149554:35)
    at IOSession.getCompletions (/typescript-5.6.0-dev.20240623/lib/typescript.js:191181:54)
    at completionInfo (/typescript-5.6.0-dev.20240623/lib/typescript.js:189510:43)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:191979:69
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240623/lib/typescript.js:191971:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240623/lib/typescript.js:191979:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240623/lib/typescript.js:192020:51)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240623/lib/tsserver.js:487:14)

Affected repos

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

Last few requests

{"seq":5912,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/angular/angular.js","line":20884,"offset":7,"includeExternalModuleExports":true,"triggerKind":1}}
{"seq":5913,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/angular/angular.js","line":20884,"offset":7,"entryNames":["@abstract"]}}
{"seq":5914,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/angular/angular.js","line":20884,"offset":44}}
{"seq":5915,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/angular/angular.js","line":20917,"offset":46,"includeExternalModuleExports":false,"triggerKind":1}}

Repro steps

#!/bin/bash

git clone https://github.com/JacksonTian/fks --recurse-submodules
git -C "./fks" reset --hard 54722627d64b3b8918f4f4cf73752d3675dae99e
# Install packages (exact steps are below, but it might be easier to follow the repo readme)
npm --prefix "./fks" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./fks/fks_chart/bower_components/marked" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./fks/fks_chart/bower_components/angular-marked" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./fks/fks_chart/bower_components/angular" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162373/artifacts?artifactName=RepoResults7&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults7.zip "$downloadUrl"
unzip -p RepoResults7.zip RepoResults7/JacksonTian.fks.replay.txt > JacksonTian.fks.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 ./fks ./JacksonTian.fks.replay.txt <PATH_TO_tsserver.js>

@typescript-bot
Copy link
Collaborator Author

Error: Debug Failure.

Req #6006 - completionInfo
    at getThisContainer (/typescript-5.6.0-dev.20240623/lib/typescript.js:17980:20)
    at tryGetThisTypeAt (/typescript-5.6.0-dev.20240623/lib/typescript.js:75144:73)
    at Object.tryGetThisTypeAt (/typescript-5.6.0-dev.20240623/lib/typescript.js:50468:22)
    at getGlobalCompletions (/typescript-5.6.0-dev.20240623/lib/typescript.js:165326:36)
    at tryGetGlobalSymbols (/typescript-5.6.0-dev.20240623/lib/typescript.js:165271:397)
    at getCompletionData (/typescript-5.6.0-dev.20240623/lib/typescript.js:165020:10)
    at Object.getCompletionsAtPosition (/typescript-5.6.0-dev.20240623/lib/typescript.js:162957:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.6.0-dev.20240623/lib/typescript.js:149554:35)
    at IOSession.getCompletions (/typescript-5.6.0-dev.20240623/lib/typescript.js:191181:54)
    at completionInfo (/typescript-5.6.0-dev.20240623/lib/typescript.js:189510:43)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:191979:69
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240623/lib/typescript.js:191971:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240623/lib/typescript.js:191979:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240623/lib/typescript.js:192020:51)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240623/lib/tsserver.js:487: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

{"seq":6003,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/spreadsheet/code/lib/angular.js","line":24209,"offset":4,"entryNames":["@abstract"]}}
{"seq":6004,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/spreadsheet/code/lib/angular.js","line":24212,"offset":23,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}}
{"seq":6005,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/spreadsheet/code/lib/angular.js","line":24227,"offset":7}}
{"seq":6006,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/spreadsheet/code/lib/angular.js","line":24250,"offset":23,"includeExternalModuleExports":false,"triggerKind":1}}

Repro steps

#!/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/162373/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:

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

@typescript-bot
Copy link
Collaborator Author

RangeError: Maximum call stack size exceeded

Req #14529 - completionEntryDetails
    at isMatchingReference (/typescript-5.6.0-dev.20240623/lib/typescript.js:72211:31)
    at getTypeAtFlowAssignment (/typescript-5.6.0-dev.20240623/lib/typescript.js:73265:11)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73204:18)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73216:18)
    at getTypeAtFlowBranchLabel (/typescript-5.6.0-dev.20240623/lib/typescript.js:73424:26)
    at getTypeAtFlowNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:73224:48)
    at getTypeAtFlowCondition (/typescript-5.6.0-dev.20240623/lib/typescript.js:73376:24)

Affected repos

dcloudio/uni-app Raw error text: RepoResults2/dcloudio.uni-app.rawError.txt in the artifact folder
Replay commands: RepoResults2/dcloudio.uni-app.replay.txt in the artifact folder

Last few requests

{"seq":14526,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/uni-app-uts/lib/unicloud-utils/index.js","line":1,"offset":1136019,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":14527,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/uni-app-uts/lib/unicloud-utils/index.js","line":1,"offset":1136853,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}}
{"seq":14528,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/uni-app-uts/lib/unicloud-utils/index.js","line":1,"offset":1138831,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":14529,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/uni-app-uts/lib/unicloud-utils/index.js","line":1,"offset":1138831,"entryNames":["_"]}}

Repro steps

#!/bin/bash

git clone https://github.com/dcloudio/uni-app --recurse-submodules
git -C "./uni-app" reset --hard 58823d9411294c300aa09f3905add445e071c188
# Install packages (exact steps are below, but it might be easier to follow the repo readme)
pnpm --dir "./uni-app" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent
pnpm --dir "./uni-app/packages/playground/uts/uni_modules/test-uniplugin" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162373/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults2.zip "$downloadUrl"
unzip -p RepoResults2.zip RepoResults2/dcloudio.uni-app.replay.txt > dcloudio.uni-app.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 ./uni-app ./dcloudio.uni-app.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 #898 - references
    at addSyntheticNodes (/typescript-5.6.0-dev.20240623/lib/typescript.js:148360:15)
    at createSyntaxList (/typescript-5.6.0-dev.20240623/lib/typescript.js:148375:5)
    at processNodes (/typescript-5.6.0-dev.20240623/lib/typescript.js:148340:19)
    at visitNodes (/typescript-5.6.0-dev.20240623/lib/typescript.js:31905:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:32057:12)
    at forEachChild (/typescript-5.6.0-dev.20240623/lib/typescript.js:32421:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240623/lib/typescript.js:148320:12)
    at createChildren (/typescript-5.6.0-dev.20240623/lib/typescript.js:148345:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240623/lib/typescript.js:148299:59)
    at getTokenAtPositionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:136664:32)
    at getTouchingToken (/typescript-5.6.0-dev.20240623/lib/typescript.js:136637:10)
    at getTouchingPropertyName (/typescript-5.6.0-dev.20240623/lib/typescript.js:136634:10)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240623/lib/typescript.js:169345:31)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240623/lib/typescript.js:169338:7)
    at getReferencesInSourceFile (/typescript-5.6.0-dev.20240623/lib/typescript.js:169331:12)
    at searchForName (/typescript-5.6.0-dev.20240623/lib/typescript.js:169145:7)
    at getReferencesInContainerOrFiles (/typescript-5.6.0-dev.20240623/lib/typescript.js:168946:9)
    at getReferencedSymbolsForSymbol (/typescript-5.6.0-dev.20240623/lib/typescript.js:168928:7)
    at Object.getReferencedSymbolsForNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:168678:24)
    at Object.findReferencedSymbols (/typescript-5.6.0-dev.20240623/lib/typescript.js:168263:34)
    at Object.findReferences (/typescript-5.6.0-dev.20240623/lib/typescript.js:149723:41)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:188969:43
    at searchPosition (/typescript-5.6.0-dev.20240623/lib/typescript.js:189111:28)
    at getPerProjectReferences (/typescript-5.6.0-dev.20240623/lib/typescript.js:189090:32)
    at getReferencesWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:188961:29)
    at IOSession.getReferences (/typescript-5.6.0-dev.20240623/lib/typescript.js:190936:24)
    at references (/typescript-5.6.0-dev.20240623/lib/typescript.js:189391:43)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:191979:69
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240623/lib/typescript.js:191971:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240623/lib/typescript.js:191979:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240623/lib/typescript.js:192020:51)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240623/lib/tsserver.js:487:14)

Affected repos

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

Last few requests

{"seq":895,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/lib/html-entities.js","line":1,"offset":4291,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":896,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/lib/html-entities.js","line":1,"offset":5454}}
{"seq":897,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/lib/html-entities.js","line":1,"offset":5716}}
{"seq":898,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/lib/html-entities.js","line":1,"offset":7164}}

Repro steps

#!/bin/bash

git clone https://github.com/HeyPuter/puter --recurse-submodules
git -C "./puter" reset --hard a094ae56831c0704eecf7e333de56846e83e1787
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162373/artifacts?artifactName=RepoResults6&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults6.zip "$downloadUrl"
unzip -p RepoResults6.zip RepoResults6/HeyPuter.puter.replay.txt > HeyPuter.puter.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 ./puter ./HeyPuter.puter.replay.txt <PATH_TO_tsserver.js>

@typescript-bot
Copy link
Collaborator Author

Verbose Debug Information: {"pos":74020,"end":77774} and {"pos":74020,"end":77774}

Req #236 - organizeImports
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:175338:15
    at mapDefined (/typescript-5.6.0-dev.20240623/lib/typescript.js:2708:22)
    at Object.getTextChangesFromChanges (/typescript-5.6.0-dev.20240623/lib/typescript.js:175334:12)
    at _ChangeTracker.getChanges (/typescript-5.6.0-dev.20240623/lib/typescript.js:175231:35)
    at Object.organizeImports (/typescript-5.6.0-dev.20240623/lib/typescript.js:171994:24)
    at Object.organizeImports2 [as organizeImports] (/typescript-5.6.0-dev.20240623/lib/typescript.js:149894:39)
    at IOSession.organizeImports (/typescript-5.6.0-dev.20240623/lib/typescript.js:191628:50)
    at organizeImports (/typescript-5.6.0-dev.20240623/lib/typescript.js:189763:43)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:191979:69
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240623/lib/typescript.js:191971:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240623/lib/typescript.js:191979:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240623/lib/typescript.js:192020:51)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240623/lib/tsserver.js:487:14)

Affected repos

parcel-bundler/parcel Raw error text: RepoResults2/parcel-bundler.parcel.rawError.txt in the artifact folder
Replay commands: RepoResults2/parcel-bundler.parcel.replay.txt in the artifact folder

Last few requests

{"seq":233,"type":"request","command":"navtree","arguments":{"file":"@PROJECT_ROOT@/packages/core/cache/index.d.ts"}}
{"seq":234,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/packages/dev/esm-fuzzer/generateExample.js"],"openFiles":[]}}
{"seq":235,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/flow-typed/npm/@swc/core_v1.x.x.js","projectRootPath":"@PROJECT_ROOT@"}]}}
{"seq":236,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/flow-typed/npm/@swc/core_v1.x.x.js"}},"skipDestructiveCodeActions":true}}

Repro steps

#!/bin/bash

git clone https://github.com/parcel-bundler/parcel --recurse-submodules
git -C "./parcel" reset --hard 43bcef9e2d3e5132c0f3e839efa9b36905af6ba9
yarn --cwd "./parcel" install --ignore-engines --ignore-scripts --silent
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162373/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults2.zip "$downloadUrl"
unzip -p RepoResults2.zip RepoResults2/parcel-bundler.parcel.replay.txt > parcel-bundler.parcel.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 ./parcel ./parcel-bundler.parcel.replay.txt <PATH_TO_tsserver.js>

@typescript-bot
Copy link
Collaborator Author

Error: Debug Failure. False expression.

Req #4902 - organizeImports
    at Object.resetTokenState (/typescript-5.6.0-dev.20240623/lib/typescript.js:14585:11)
    at addSyntheticNodes (/typescript-5.6.0-dev.20240623/lib/typescript.js:148351:11)
    at createSyntaxList (/typescript-5.6.0-dev.20240623/lib/typescript.js:148379:3)
    at processNodes (/typescript-5.6.0-dev.20240623/lib/typescript.js:148340:19)
    at visitNodes (/typescript-5.6.0-dev.20240623/lib/typescript.js:31905:14)
    at forEachChildInFunctionType (/typescript-5.6.0-dev.20240623/lib/typescript.js:31974:111)
    at forEachChild (/typescript-5.6.0-dev.20240623/lib/typescript.js:32421:35)
    at NodeObject.forEachChild (/typescript-5.6.0-dev.20240623/lib/typescript.js:148320:12)
    at createChildren (/typescript-5.6.0-dev.20240623/lib/typescript.js:148345:8)
    at NodeObject.getChildren (/typescript-5.6.0-dev.20240623/lib/typescript.js:148299:59)
    at getTokenAtPositionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:136664:32)
    at getTouchingToken (/typescript-5.6.0-dev.20240623/lib/typescript.js:136637:10)
    at getTouchingPropertyName (/typescript-5.6.0-dev.20240623/lib/typescript.js:136634:10)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:169253:33
    at mapDefined (/typescript-5.6.0-dev.20240623/lib/typescript.js:2708:22)
    at getPossibleSymbolReferenceNodes (/typescript-5.6.0-dev.20240623/lib/typescript.js:169252:12)
    at eachSymbolReferenceInFile (/typescript-5.6.0-dev.20240623/lib/typescript.js:169199:25)
    at Object.isSymbolReferencedInFile (/typescript-5.6.0-dev.20240623/lib/typescript.js:169193:12)
    at isDeclarationUsed (/typescript-5.6.0-dev.20240623/lib/typescript.js:172171:221)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:172146:66
    at removeUnusedImports (/typescript-5.6.0-dev.20240623/lib/typescript.js:172146:52)
    at processImportsOfSameModuleSpecifier (/typescript-5.6.0-dev.20240623/lib/typescript.js:172034:39)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:172002:175
    at flatMap (/typescript-5.6.0-dev.20240623/lib/typescript.js:2638:17)
    at organizeDeclsWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:172002:28)
    at organizeImportsWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:172039:5)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:171981:57
    at Object.organizeImports (/typescript-5.6.0-dev.20240623/lib/typescript.js:171981:28)
    at Object.organizeImports2 [as organizeImports] (/typescript-5.6.0-dev.20240623/lib/typescript.js:149894:39)
    at IOSession.organizeImports (/typescript-5.6.0-dev.20240623/lib/typescript.js:191628:50)
    at organizeImports (/typescript-5.6.0-dev.20240623/lib/typescript.js:189763:43)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:191979:69
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240623/lib/typescript.js:191971:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240623/lib/typescript.js:191979:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240623/lib/typescript.js:192020:51)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240623/lib/tsserver.js:487: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":4899,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/decap-cms-core/src/actions/entries.ts","line":1034,"offset":54,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"'"}}
{"seq":4900,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/packages/decap-cms-core/src/actions/search.ts"],"openFiles":[]}}
{"seq":4901,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/packages/decap-cms-core/src/actions/editorialWorkflow.ts","projectRootPath":"@PROJECT_ROOT@"}]}}
{"seq":4902,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/packages/decap-cms-core/src/actions/editorialWorkflow.ts"}},"skipDestructiveCodeActions":false}}

Repro steps

#!/bin/bash

git clone https://github.com/decaporg/decap-cms --recurse-submodules
git -C "./decap-cms" reset --hard 7ca7fc3841a45b0f770c1824130977900cec7736
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/162373/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>

@typescript-bot
Copy link
Collaborator Author

Error: Debug Failure. False expression.

Req #2871 - references
    at getSourceFileLikeForImportDeclaration (/typescript-5.6.0-dev.20240623/lib/typescript.js:168140:9)
    at handleDirectImports (/typescript-5.6.0-dev.20240623/lib/typescript.js:167703:31)
    at getImportersForExport (/typescript-5.6.0-dev.20240623/lib/typescript.js:167638:3)
    at State.importTracker (/typescript-5.6.0-dev.20240623/lib/typescript.js:167617:46)
    at State.getImportSearches (/typescript-5.6.0-dev.20240623/lib/typescript.js:169030:19)
    at searchForImportsOfExport (/typescript-5.6.0-dev.20240623/lib/typescript.js:169074:71)
    at getImportOrExportReferences (/typescript-5.6.0-dev.20240623/lib/typescript.js:169465:7)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240623/lib/typescript.js:169392:5)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240623/lib/typescript.js:169338:7)
    at getReferencesInSourceFile (/typescript-5.6.0-dev.20240623/lib/typescript.js:169331:12)
    at searchForImportedSymbol (/typescript-5.6.0-dev.20240623/lib/typescript.js:169140:7)
    at getImportOrExportReferences (/typescript-5.6.0-dev.20240623/lib/typescript.js:169462:9)
    at getReferencesAtLocation (/typescript-5.6.0-dev.20240623/lib/typescript.js:169392:5)
    at getReferencesInContainer (/typescript-5.6.0-dev.20240623/lib/typescript.js:169338:7)
    at getReferencesInContainerOrFiles (/typescript-5.6.0-dev.20240623/lib/typescript.js:168935:7)
    at getReferencedSymbolsForSymbol (/typescript-5.6.0-dev.20240623/lib/typescript.js:168928:7)
    at Object.getReferencedSymbolsForNode (/typescript-5.6.0-dev.20240623/lib/typescript.js:168678:24)
    at Object.findReferencedSymbols (/typescript-5.6.0-dev.20240623/lib/typescript.js:168263:34)
    at Object.findReferences (/typescript-5.6.0-dev.20240623/lib/typescript.js:149723:41)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:188969:43
    at searchPosition (/typescript-5.6.0-dev.20240623/lib/typescript.js:189111:28)
    at getPerProjectReferences (/typescript-5.6.0-dev.20240623/lib/typescript.js:189090:32)
    at getReferencesWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:188961:29)
    at IOSession.getReferences (/typescript-5.6.0-dev.20240623/lib/typescript.js:190936:24)
    at references (/typescript-5.6.0-dev.20240623/lib/typescript.js:189391:43)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:191979:69
    at IOSession.executeWithRequestId (/typescript-5.6.0-dev.20240623/lib/typescript.js:191971:14)
    at IOSession.executeCommand (/typescript-5.6.0-dev.20240623/lib/typescript.js:191979:29)
    at IOSession.onMessage (/typescript-5.6.0-dev.20240623/lib/typescript.js:192020:51)
    at Interface.<anonymous> (/typescript-5.6.0-dev.20240623/lib/tsserver.js:487:14)

Affected repos

videojs/video.js Raw error text: RepoResults2/videojs.video.js.rawError.txt in the artifact folder
Replay commands: RepoResults2/videojs.video.js.replay.txt in the artifact folder

Last few requests

{"seq":2868,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/js/player.js","line":5083,"offset":6,"entryNames":["@abstract"]}}
{"seq":2869,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/js/player.js","line":5086,"offset":6}}
{"seq":2870,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/js/player.js","line":5092,"offset":6}}
{"seq":2871,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/js/player.js","line":5092,"offset":6}}

Repro steps

#!/bin/bash

git clone https://github.com/videojs/video.js --recurse-submodules
git -C "./video.js" reset --hard fa9c41c8668bb5c6cbf9685f0d7e67485b98160c
npm --prefix "./video.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/162373/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults2.zip "$downloadUrl"
unzip -p RepoResults2.zip RepoResults2/videojs.video.js.replay.txt > videojs.video.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 ./video.js ./videojs.video.js.replay.txt <PATH_TO_tsserver.js>

@typescript-bot
Copy link
Collaborator Author

RangeError: Maximum call stack size exceeded

Req #16945 - completionInfo
    at assignParameterType (/typescript-5.6.0-dev.20240623/lib/typescript.js:80952:9)
    at assignNonContextualParameterTypes (/typescript-5.6.0-dev.20240623/lib/typescript.js:80930:7)
    at contextuallyCheckFunctionExpressionOrObjectLiteralMethod (/typescript-5.6.0-dev.20240623/lib/typescript.js:81692:13)
    at checkFunctionExpressionOrObjectLiteralMethod (/typescript-5.6.0-dev.20240623/lib/typescript.js:81665:5)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:83449:16)
    at checkExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83350:32)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:78370:9
    at forEach (/typescript-5.6.0-dev.20240623/lib/typescript.js:2398:22)
    at resolveUntypedCall (/typescript-5.6.0-dev.20240623/lib/typescript.js:78369:7)
    at resolveCallExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:79621:14)
    at resolveSignature (/typescript-5.6.0-dev.20240623/lib/typescript.js:80044:16)
    at getResolvedSignature (/typescript-5.6.0-dev.20240623/lib/typescript.js:80070:18)
    at checkCallExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:80181:23)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:83440:16)
    at checkExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83350:32)
    at maybeCheckExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:82439:28)
    at BinaryExpressionStateMachine.onRight (/typescript-5.6.0-dev.20240623/lib/typescript.js:82403:16)
    at Array.right (/typescript-5.6.0-dev.20240623/lib/typescript.js:31595:30)
    at trampoline (/typescript-5.6.0-dev.20240623/lib/typescript.js:31679:42)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:82333:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:83474:16)
    at checkExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83350:32)
    at checkParenthesizedExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83382:12)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:83444:16)
    at checkExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83350:32)
    at maybeCheckExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:82439:28)
    at BinaryExpressionStateMachine.onRight (/typescript-5.6.0-dev.20240623/lib/typescript.js:82403:16)
    at Array.right (/typescript-5.6.0-dev.20240623/lib/typescript.js:31595:30)
    at trampoline (/typescript-5.6.0-dev.20240623/lib/typescript.js:31679:42)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:82333:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:83474:16)
    at checkExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83350:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240623/lib/typescript.js:83024:28)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:81499:20
    at traverse (/typescript-5.6.0-dev.20240623/lib/typescript.js:17789:16)
    at visitNodes (/typescript-5.6.0-dev.20240623/lib/typescript.js:31908:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240623/lib/typescript.js:32378:10)
    at forEachChild (/typescript-5.6.0-dev.20240623/lib/typescript.js:32421:35)
    at traverse (/typescript-5.6.0-dev.20240623/lib/typescript.js:17805:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240623/lib/typescript.js:17785:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240623/lib/typescript.js:81480:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240623/lib/typescript.js:81293:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240623/lib/typescript.js:62775:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:80206:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:83440:16)
    at checkExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83350:32)
    at maybeCheckExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:82439:28)
    at BinaryExpressionStateMachine.onRight (/typescript-5.6.0-dev.20240623/lib/typescript.js:82403:16)
    at Array.right (/typescript-5.6.0-dev.20240623/lib/typescript.js:31595:30)
    at trampoline (/typescript-5.6.0-dev.20240623/lib/typescript.js:31679:42)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:82333:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:83474:16)
    at checkExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83350:32)
    at checkExpressionCached (/typescript-5.6.0-dev.20240623/lib/typescript.js:83024:28)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:81499:20
    at traverse (/typescript-5.6.0-dev.20240623/lib/typescript.js:17789:16)
    at visitNodes (/typescript-5.6.0-dev.20240623/lib/typescript.js:31908:22)
    at forEachChildInCaseClause (/typescript-5.6.0-dev.20240623/lib/typescript.js:32165:51)
    at forEachChild (/typescript-5.6.0-dev.20240623/lib/typescript.js:32421:35)
    at traverse (/typescript-5.6.0-dev.20240623/lib/typescript.js:17805:16)
    at visitNodes (/typescript-5.6.0-dev.20240623/lib/typescript.js:31908:22)
    at forEachChildInCaseBlock (/typescript-5.6.0-dev.20240623/lib/typescript.js:32162:12)
    at forEachChild (/typescript-5.6.0-dev.20240623/lib/typescript.js:32421:35)
    at traverse (/typescript-5.6.0-dev.20240623/lib/typescript.js:17805:16)
    at visitNode2 (/typescript-5.6.0-dev.20240623/lib/typescript.js:31900:18)
    at forEachChildInSwitchStatement (/typescript-5.6.0-dev.20240623/lib/typescript.js:32159:51)
    at forEachChild (/typescript-5.6.0-dev.20240623/lib/typescript.js:32421:35)
    at traverse (/typescript-5.6.0-dev.20240623/lib/typescript.js:17805:16)
    at visitNodes (/typescript-5.6.0-dev.20240623/lib/typescript.js:31908:22)
    at forEachChildInBlock (/typescript-5.6.0-dev.20240623/lib/typescript.js:32378:10)
    at forEachChild (/typescript-5.6.0-dev.20240623/lib/typescript.js:32421:35)
    at traverse (/typescript-5.6.0-dev.20240623/lib/typescript.js:17805:16)
    at forEachReturnStatement (/typescript-5.6.0-dev.20240623/lib/typescript.js:17785:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.6.0-dev.20240623/lib/typescript.js:81480:5)
    at getReturnTypeFromBody (/typescript-5.6.0-dev.20240623/lib/typescript.js:81293:21)
    at getReturnTypeOfSignature (/typescript-5.6.0-dev.20240623/lib/typescript.js:62775:426)
    at checkCallExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:80206:24)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:83440:16)
    at checkExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83350:32)
    at maybeCheckExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:82439:28)
    at BinaryExpressionStateMachine.onRight (/typescript-5.6.0-dev.20240623/lib/typescript.js:82403:16)
    at Array.right (/typescript-5.6.0-dev.20240623/lib/typescript.js:31595:30)
    at trampoline (/typescript-5.6.0-dev.20240623/lib/typescript.js:31679:42)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:82333:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:83474:16)
    at checkExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83350:32)
    at checkParenthesizedExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83382:12)
    at checkExpressionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:83444:16)
    at checkExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83350:32)
    at maybeCheckExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:82439:28)
    at BinaryExpressionStateMachine.onRight (/typescript-5.6.0-dev.20240623/lib/typescript.js:82403:16)
    at Array.right (/typescript-5.6.0-dev.20240623/lib/typescript.js:31595:30)
    at trampoline (/typescript-5.6.0-dev.20240623/lib/typescript.js:31679:42)
    at /typescript-5.6.0-dev.20240623/lib/typescript.js:82333:22
    at checkExpressionWorker (/typescript-5.6.0-dev.20240623/lib/typescript.js:83474:16)
    at checkExpression (/typescript-5.6.0-dev.20240623/lib/typescript.js:83350:32)
    at checkExpressionWithContextualType (/typescript-5.6.0-dev.20240623/lib/typescript.js:83000:18)
    at getSignatureApplicabilityError (/typescript-5.6.0-dev.20240623/lib/typescript.js:78830:25)
    at chooseOverload (/typescript-5.6.0-dev.20240623/lib/typescript.js:79367:13)
    at resolveCall (/typescript-5.6.0-dev.20240623/lib/typescript.js:79214:16)

Affected repos

microsoft/monaco-editor Raw error text: RepoResults2/microsoft.monaco-editor.rawError.txt in the artifact folder
Replay commands: RepoResults2/microsoft.monaco-editor.replay.txt in the artifact folder

Last few requests

{"seq":16942,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":53034,"offset":43}}
{"seq":16943,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":53034,"offset":43,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":16944,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":53042,"offset":1}}
{"seq":16945,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/language/typescript/lib/typescriptServices.js","line":53099,"offset":39,"includeExternalModuleExports":false,"triggerKind":1}}

Repro steps

#!/bin/bash

git clone https://github.com/microsoft/monaco-editor --recurse-submodules
git -C "./monaco-editor" reset --hard c321d0fbecb50ab8a5365fa1965476b0ae63fc87
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/162373/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults2.zip "$downloadUrl"
unzip -p RepoResults2.zip RepoResults2/microsoft.monaco-editor.replay.txt > microsoft.monaco-editor.replay.txt
npm install --no-save @typescript/server-replay

To run the repro:

# `npx tsreplay --help` to learn about helpful switches for debugging, logging, etc.
npx tsreplay ./monaco-editor ./microsoft.monaco-editor.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

2 participants