Giter Club home page Giter Club logo

Comments (8)

typescript-bot avatar typescript-bot commented on September 27, 2024
New server no longer reports this error: Error: Debug Failure. Expected 1 < 1.
Req #4230 - completionInfo
    at getArgumentOrParameterListInfo (/typescript-5.5.4/lib/typescript.js:172840:11)
    at getImmediatelyContainingArgumentInfo (/typescript-5.5.4/lib/typescript.js:172857:18)
    at Object.getArgumentInfoForCompletions (/typescript-5.5.4/lib/typescript.js:172831:16)
    at getContextualType (/typescript-5.5.4/lib/typescript.js:164393:48)
    at getCompletionData (/typescript-5.5.4/lib/typescript.js:164631:43)
    at Object.getCompletionsAtPosition (/typescript-5.5.4/lib/typescript.js:162588:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.4/lib/typescript.js:149186:35)
    at IOSession.getCompletions (/typescript-5.5.4/lib/typescript.js:190693:54)
    at completionInfo (/typescript-5.5.4/lib/typescript.js:189072:43)
    at /typescript-5.5.4/lib/typescript.js:191491:69
    at IOSession.executeWithRequestId (/typescript-5.5.4/lib/typescript.js:191483:14)
    at IOSession.executeCommand (/typescript-5.5.4/lib/typescript.js:191491:29)
    at IOSession.onMessage (/typescript-5.5.4/lib/typescript.js:191533:51)
    at Interface.<anonymous> (/typescript-5.5.4/lib/tsserver.js:499:14)

Affected repos

swagger-api/swagger-ui Raw error text: RepoResults4/swagger-api.swagger-ui.rawError.txt in the artifact folder
Replay commands: RepoResults4/swagger-api.swagger-ui.replay.txt in the artifact folder

Last few requests

{"seq":13585,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx","line":2,"offset":4,"entryNames":["@abstract"]}}
{"seq":13586,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx","line":36,"offset":4,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":13587,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx","line":36,"offset":4,"entryNames":["@abstract"]}}
{"seq":13588,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx","line":48,"offset":110,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"\""}}

Repro steps

#!/bin/bash

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

from typescript.

typescript-bot avatar typescript-bot commented on September 27, 2024
New server no longer reports this error: Error: Debug Failure.
Req #5997 - completionInfo
    at getThisContainer (/typescript-5.5.4/lib/typescript.js:17920:20)
    at tryGetThisTypeAt (/typescript-5.5.4/lib/typescript.js:74993:73)
    at Object.tryGetThisTypeAt (/typescript-5.5.4/lib/typescript.js:50308:22)
    at getGlobalCompletions (/typescript-5.5.4/lib/typescript.js:164932:36)
    at tryGetGlobalSymbols (/typescript-5.5.4/lib/typescript.js:164877:397)
    at getCompletionData (/typescript-5.5.4/lib/typescript.js:164626:10)
    at Object.getCompletionsAtPosition (/typescript-5.5.4/lib/typescript.js:162588:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.4/lib/typescript.js:149186:35)
    at IOSession.getCompletions (/typescript-5.5.4/lib/typescript.js:190693:54)
    at completionInfo (/typescript-5.5.4/lib/typescript.js:189072:43)
    at /typescript-5.5.4/lib/typescript.js:191491:69
    at IOSession.executeWithRequestId (/typescript-5.5.4/lib/typescript.js:191483:14)
    at IOSession.executeCommand (/typescript-5.5.4/lib/typescript.js:191491:29)
    at IOSession.onMessage (/typescript-5.5.4/lib/typescript.js:191533:51)
    at Interface.<anonymous> (/typescript-5.5.4/lib/tsserver.js:499: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":7740,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/fks_chart/bower_components/jquery/src/css/var/isHidden.js"],"openFiles":[]}}
{"seq":7741,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/fks_chart/bower_components/jquery/src/ajax/var/nonce.js","projectRootPath":"@PROJECT_ROOT@"}]}}
{"seq":7742,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/fks_chart/bower_components/jquery/src/ajax/var/nonce.js"}}
{"seq":7743,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"@PROJECT_ROOT@/fks_chart/bower_components/jquery/src/ajax/var/nonce.js","textChanges":[{"newText":" //comment","start":{"line":1,"offset":9},"end":{"line":1,"offset":9}}]}],"closedFiles":[],"openFiles":[]}}

Repro steps

#!/bin/bash

git clone https://github.com/JacksonTian/fks --recurse-submodules
git -C "./fks" reset --hard 54722627d64b3b8918f4f4cf73752d3675dae99e
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163497/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>

from typescript.

typescript-bot avatar typescript-bot commented on September 27, 2024
New server no longer reports this error: Error: Debug Failure.
Req #6093 - completionInfo
    at getThisContainer (/typescript-5.5.4/lib/typescript.js:17920:20)
    at tryGetThisTypeAt (/typescript-5.5.4/lib/typescript.js:74993:73)
    at Object.tryGetThisTypeAt (/typescript-5.5.4/lib/typescript.js:50308:22)
    at getGlobalCompletions (/typescript-5.5.4/lib/typescript.js:164932:36)
    at tryGetGlobalSymbols (/typescript-5.5.4/lib/typescript.js:164877:397)
    at getCompletionData (/typescript-5.5.4/lib/typescript.js:164626:10)
    at Object.getCompletionsAtPosition (/typescript-5.5.4/lib/typescript.js:162588:26)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.5.4/lib/typescript.js:149186:35)
    at IOSession.getCompletions (/typescript-5.5.4/lib/typescript.js:190693:54)
    at completionInfo (/typescript-5.5.4/lib/typescript.js:189072:43)
    at /typescript-5.5.4/lib/typescript.js:191491:69
    at IOSession.executeWithRequestId (/typescript-5.5.4/lib/typescript.js:191483:14)
    at IOSession.executeCommand (/typescript-5.5.4/lib/typescript.js:191491:29)
    at IOSession.onMessage (/typescript-5.5.4/lib/typescript.js:191533:51)
    at Interface.<anonymous> (/typescript-5.5.4/lib/tsserver.js:499:14)

Affected repos

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

Last few requests

{"seq":10637,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}},"skipDestructiveCodeActions":true}}
{"seq":10638,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}},"skipDestructiveCodeActions":false}}
{"seq":10639,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}}
{"seq":10640,"type":"request","command":"navbar","arguments":{"file":"@PROJECT_ROOT@/blockcode/code/gamelib/examples/asteroids.js"}}

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

from typescript.

typescript-bot avatar typescript-bot commented on September 27, 2024

RangeError: Maximum call stack size exceeded

Req #23765 - completionInfo
    at getRelationKey (/typescript-5.7.0-dev.20240901/lib/typescript.js:70653:26)
    at recursiveTypeRelatedTo (/typescript-5.7.0-dev.20240901/lib/typescript.js:68995:18)
    at isRelatedTo (/typescript-5.7.0-dev.20240901/lib/typescript.js:68508:122)
    at checkTypeRelatedTo (/typescript-5.7.0-dev.20240901/lib/typescript.js:68131:20)
    at isTypeRelatedTo (/typescript-5.7.0-dev.20240901/lib/typescript.js:68064:14)
    at isTypeAssignableTo (/typescript-5.7.0-dev.20240901/lib/typescript.js:67190:12)
    at isTypeAssignableToKind (/typescript-5.7.0-dev.20240901/lib/typescript.js:82581:433)
    at allTypesAssignableToKind (/typescript-5.7.0-dev.20240901/lib/typescript.js:82584:133)
    at getPromisedTypeOfPromise (/typescript-5.7.0-dev.20240901/lib/typescript.js:85274:9)
    at reportNonexistentProperty (/typescript-5.7.0-dev.20240901/lib/typescript.js:78551:28)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.7.0-dev.20240901/lib/typescript.js:78385:11)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:78166:94)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:84085:16)
    at checkExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:83995:32)
    at checkNonNullExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:78087:29)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:78166:162)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:84085:16)
    at checkExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:83995:32)
    at checkExpressionWithContextualType (/typescript-5.7.0-dev.20240901/lib/typescript.js:83598:18)
    at getSignatureApplicabilityError (/typescript-5.7.0-dev.20240901/lib/typescript.js:79332:25)
    at chooseOverload (/typescript-5.7.0-dev.20240901/lib/typescript.js:79869:13)
    at resolveCall (/typescript-5.7.0-dev.20240901/lib/typescript.js:79716:16)
    at resolveCallExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:80153:12)
    at resolveSignature (/typescript-5.7.0-dev.20240901/lib/typescript.js:80546:16)
    at getResolvedSignature (/typescript-5.7.0-dev.20240901/lib/typescript.js:80572:18)
    at checkCallExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:80683:23)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:84096:16)
    at checkExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:83995:32)
    at checkExpressionCached (/typescript-5.7.0-dev.20240901/lib/typescript.js:83622:28)
    at /typescript-5.7.0-dev.20240901/lib/typescript.js:82019:20
    at traverse (/typescript-5.7.0-dev.20240901/lib/typescript.js:17716:16)
    at visitNodes (/typescript-5.7.0-dev.20240901/lib/typescript.js:31965:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240901/lib/typescript.js:32435:10)
    at forEachChild (/typescript-5.7.0-dev.20240901/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240901/lib/typescript.js:17732:16)
    at forEachReturnStatement (/typescript-5.7.0-dev.20240901/lib/typescript.js:17712:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.7.0-dev.20240901/lib/typescript.js:82000:5)
    at getReturnTypeFromBody (/typescript-5.7.0-dev.20240901/lib/typescript.js:81828:21)
    at getReturnTypeOfSignature (/typescript-5.7.0-dev.20240901/lib/typescript.js:63128:426)
    at serializeReturnTypeForSignature (/typescript-5.7.0-dev.20240901/lib/typescript.js:56584:26)
    at signatureToSignatureDeclarationHelper (/typescript-5.7.0-dev.20240901/lib/typescript.js:55684:30)
    at addPropertyToElementList (/typescript-5.7.0-dev.20240901/lib/typescript.js:55505:37)
    at createTypeNodesFromResolvedType (/typescript-5.7.0-dev.20240901/lib/typescript.js:55416:11)
    at createTypeNodeFromObjectType (/typescript-5.7.0-dev.20240901/lib/typescript.js:55183:25)
    at visitAndTransformType (/typescript-5.7.0-dev.20240901/lib/typescript.js:55106:24)
    at createAnonymousTypeNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:55046:20)
    at typeToTypeNodeWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:54839:16)
    at typeToTypeNodeHelper (/typescript-5.7.0-dev.20240901/lib/typescript.js:54620:24)
    at /typescript-5.7.0-dev.20240901/lib/typescript.js:54444:165
    at withContext2 (/typescript-5.7.0-dev.20240901/lib/typescript.js:54599:29)
    at Object.typeToTypeNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:54444:86)
    at typeToString (/typescript-5.7.0-dev.20240901/lib/typescript.js:54389:34)
    at reportNonexistentProperty (/typescript-5.7.0-dev.20240901/lib/typescript.js:78557:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.7.0-dev.20240901/lib/typescript.js:78385:11)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:78166:94)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:84085:16)
    at checkExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:83995:32)
    at checkNonNullExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:78087:29)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:78166:162)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:84085:16)
    at checkExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:83995:32)
    at checkExpressionWithContextualType (/typescript-5.7.0-dev.20240901/lib/typescript.js:83598:18)
    at getSignatureApplicabilityError (/typescript-5.7.0-dev.20240901/lib/typescript.js:79332:25)
    at chooseOverload (/typescript-5.7.0-dev.20240901/lib/typescript.js:79869:13)
    at resolveCall (/typescript-5.7.0-dev.20240901/lib/typescript.js:79716:16)
    at resolveCallExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:80153:12)
    at resolveSignature (/typescript-5.7.0-dev.20240901/lib/typescript.js:80546:16)
    at getResolvedSignature (/typescript-5.7.0-dev.20240901/lib/typescript.js:80572:18)
    at checkCallExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:80683:23)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:84096:16)
    at checkExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:83995:32)
    at checkExpressionCached (/typescript-5.7.0-dev.20240901/lib/typescript.js:83622:28)
    at /typescript-5.7.0-dev.20240901/lib/typescript.js:82019:20
    at traverse (/typescript-5.7.0-dev.20240901/lib/typescript.js:17716:16)
    at visitNodes (/typescript-5.7.0-dev.20240901/lib/typescript.js:31965:22)
    at forEachChildInBlock (/typescript-5.7.0-dev.20240901/lib/typescript.js:32435:10)
    at forEachChild (/typescript-5.7.0-dev.20240901/lib/typescript.js:32478:35)
    at traverse (/typescript-5.7.0-dev.20240901/lib/typescript.js:17732:16)
    at forEachReturnStatement (/typescript-5.7.0-dev.20240901/lib/typescript.js:17712:10)
    at checkAndAggregateReturnExpressionTypes (/typescript-5.7.0-dev.20240901/lib/typescript.js:82000:5)
    at getReturnTypeFromBody (/typescript-5.7.0-dev.20240901/lib/typescript.js:81828:21)
    at getReturnTypeOfSignature (/typescript-5.7.0-dev.20240901/lib/typescript.js:63128:426)
    at serializeReturnTypeForSignature (/typescript-5.7.0-dev.20240901/lib/typescript.js:56584:26)
    at signatureToSignatureDeclarationHelper (/typescript-5.7.0-dev.20240901/lib/typescript.js:55684:30)
    at addPropertyToElementList (/typescript-5.7.0-dev.20240901/lib/typescript.js:55505:37)
    at createTypeNodesFromResolvedType (/typescript-5.7.0-dev.20240901/lib/typescript.js:55416:11)
    at createTypeNodeFromObjectType (/typescript-5.7.0-dev.20240901/lib/typescript.js:55183:25)
    at visitAndTransformType (/typescript-5.7.0-dev.20240901/lib/typescript.js:55106:24)
    at createAnonymousTypeNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:55046:20)
    at typeToTypeNodeWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:54839:16)
    at typeToTypeNodeHelper (/typescript-5.7.0-dev.20240901/lib/typescript.js:54620:24)
    at /typescript-5.7.0-dev.20240901/lib/typescript.js:54444:165
    at withContext2 (/typescript-5.7.0-dev.20240901/lib/typescript.js:54599:29)
    at Object.typeToTypeNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:54444:86)
    at typeToString (/typescript-5.7.0-dev.20240901/lib/typescript.js:54389:34)
    at reportNonexistentProperty (/typescript-5.7.0-dev.20240901/lib/typescript.js:78557:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.7.0-dev.20240901/lib/typescript.js:78385:11)
    at checkPropertyAccessExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:78166:94)
    at checkExpressionWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:84085:16)
    at checkExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:83995:32)

Affected repos

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

Last few requests

{"seq":23762,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":313295,"entryNames":["_"]}}
{"seq":23763,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":313626,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":23764,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":313626,"entryNames":["_"]}}
{"seq":23765,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/cli/test/fixtures/unused-javascript.js","line":9,"offset":314955,"includeExternalModuleExports":false,"triggerKind":1}}

Repro steps

#!/bin/bash

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

from typescript.

typescript-bot avatar typescript-bot commented on September 27, 2024

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":22388,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":15278,"offset":9,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":22389,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":15292,"offset":47,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":22390,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":15292,"offset":47,"entryNames":["$"]}}
{"seq":22391,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":15341,"offset":1,"includeExternalModuleExports":false,"triggerKind":1}}

Repro steps

#!/bin/bash

git clone https://github.com/tastejs/todomvc --recurse-submodules
git -C "./todomvc" reset --hard 643cab2e0d5154130077df6356e53871f3b0fa84
# Install packages (exact steps are below, but it might be easier to follow the repo readme)
npm --prefix "./todomvc" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/tooling" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/tests" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/tasks" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/web-components" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/vue" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/typescript-react" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/typescript-backbone" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/typescript-angular" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/svelte" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/riotjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/reagent" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/react-redux" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/react" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/ractive" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/preact" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/polymer" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/mithril" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/lit" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/lavaca_require" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/knockoutjs_require" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/knockoutjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/knockback" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/jsblocks" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/js_of_ocaml" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/jquery" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/javascript-es6" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/javascript-es5" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/gwt" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/exoskeleton" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/enyo_backbone" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
pnpm --dir "./todomvc/examples/emberjs/todomvc" install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent
npm --prefix "./todomvc/examples/elm" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/duel" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/dojo" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/dijon" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/cujo" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/closure" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/canjs_require" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/canjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/binding-scala" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/backbone_require" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/backbone_marionette" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/backbone" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/aurelia" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/angularjs_require" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/angularjs_require/test" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/angular-dart" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/examples/angular" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/bower_components/webcomponentsjs" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./todomvc/bower_components/bootstrap" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163497/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>

from typescript.

typescript-bot avatar typescript-bot commented on September 27, 2024

RangeError: Maximum call stack size exceeded

Req #13061 - completionEntryDetails
    at isMatchingReference (/typescript-5.7.0-dev.20240901/lib/typescript.js:72631:31)
    at getTypeAtFlowAssignment (/typescript-5.7.0-dev.20240901/lib/typescript.js:73688:11)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73627:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73647:48)
    at getTypeAtFlowCondition (/typescript-5.7.0-dev.20240901/lib/typescript.js:73799:24)
    at getTypeAtFlowNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:73639:18)
    at getTypeAtFlowBranchLabel (/typescript-5.7.0-dev.20240901/lib/typescript.js:73847:26)

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":13058,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/uni-app-uts/lib/unicloud-utils/index.js","line":1,"offset":1136883,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}}
{"seq":13059,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/uni-app-uts/lib/unicloud-utils/index.js","line":1,"offset":1138559,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}}
{"seq":13060,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/uni-app-uts/lib/unicloud-utils/index.js","line":1,"offset":1138752,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":13061,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/uni-app-uts/lib/unicloud-utils/index.js","line":1,"offset":1138752,"entryNames":["_"]}}

Repro steps

#!/bin/bash

git clone https://github.com/dcloudio/uni-app --recurse-submodules
git -C "./uni-app" reset --hard 0016a3f0cc516a46040ce200971dfec5faefc197
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163497/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>

from typescript.

typescript-bot avatar typescript-bot commented on September 27, 2024

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

Req #477 - references
    at addSyntheticNodes (/typescript-5.7.0-dev.20240901/lib/typescript.js:149365:15)
    at createSyntaxList (/typescript-5.7.0-dev.20240901/lib/typescript.js:149380:5)
    at processNodes (/typescript-5.7.0-dev.20240901/lib/typescript.js:149345:19)
    at visitNodes (/typescript-5.7.0-dev.20240901/lib/typescript.js:31962:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:32114:12)
    at forEachChild (/typescript-5.7.0-dev.20240901/lib/typescript.js:32478:35)
    at NodeObject.forEachChild (/typescript-5.7.0-dev.20240901/lib/typescript.js:149325:12)
    at createChildren (/typescript-5.7.0-dev.20240901/lib/typescript.js:149350:8)
    at NodeObject.getChildren (/typescript-5.7.0-dev.20240901/lib/typescript.js:149304:83)
    at getTokenAtPositionWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:137616:32)
    at getTouchingToken (/typescript-5.7.0-dev.20240901/lib/typescript.js:137589:10)
    at getTouchingPropertyName (/typescript-5.7.0-dev.20240901/lib/typescript.js:137586:10)
    at getReferencesAtLocation (/typescript-5.7.0-dev.20240901/lib/typescript.js:170762:31)
    at getReferencesInContainer (/typescript-5.7.0-dev.20240901/lib/typescript.js:170755:7)
    at getReferencesInSourceFile (/typescript-5.7.0-dev.20240901/lib/typescript.js:170748:12)
    at searchForName (/typescript-5.7.0-dev.20240901/lib/typescript.js:170561:7)
    at getReferencesInContainerOrFiles (/typescript-5.7.0-dev.20240901/lib/typescript.js:170361:9)
    at getReferencedSymbolsForSymbol (/typescript-5.7.0-dev.20240901/lib/typescript.js:170343:7)
    at Object.getReferencedSymbolsForNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:170093:24)
    at Object.findReferencedSymbols (/typescript-5.7.0-dev.20240901/lib/typescript.js:169677:34)
    at Object.findReferences (/typescript-5.7.0-dev.20240901/lib/typescript.js:150736:41)
    at /typescript-5.7.0-dev.20240901/lib/typescript.js:190350:43
    at searchPosition (/typescript-5.7.0-dev.20240901/lib/typescript.js:190492:28)
    at getPerProjectReferences (/typescript-5.7.0-dev.20240901/lib/typescript.js:190471:32)
    at getReferencesWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:190342:29)
    at IOSession.getReferences (/typescript-5.7.0-dev.20240901/lib/typescript.js:192326:24)
    at references (/typescript-5.7.0-dev.20240901/lib/typescript.js:190775:43)
    at /typescript-5.7.0-dev.20240901/lib/typescript.js:193345:15
    at IOSession.executeWithRequestId (/typescript-5.7.0-dev.20240901/lib/typescript.js:193334:14)
    at IOSession.executeCommand (/typescript-5.7.0-dev.20240901/lib/typescript.js:193343:29)
    at IOSession.onMessage (/typescript-5.7.0-dev.20240901/lib/typescript.js:193391:68)
    at Interface.<anonymous> (/typescript-5.7.0-dev.20240901/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

{"seq":474,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/editor/main.js","line":2,"offset":29337,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":475,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/editor/main.js","line":2,"offset":29337,"entryNames":["e"]}}
{"seq":476,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/editor/main.js","line":2,"offset":29767}}
{"seq":477,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/web/dist/libs/editor/main.js","line":2,"offset":29871}}

Repro steps

#!/bin/bash

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

To run the repro:

# `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>

from typescript.

typescript-bot avatar typescript-bot commented on September 27, 2024

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

Req #1921 - references
    at addSyntheticNodes (/typescript-5.7.0-dev.20240901/lib/typescript.js:149365:15)
    at createSyntaxList (/typescript-5.7.0-dev.20240901/lib/typescript.js:149380:5)
    at processNodes (/typescript-5.7.0-dev.20240901/lib/typescript.js:149345:19)
    at visitNodes (/typescript-5.7.0-dev.20240901/lib/typescript.js:31962:14)
    at forEachChildInObjectLiteralExpression (/typescript-5.7.0-dev.20240901/lib/typescript.js:32114:12)
    at forEachChild (/typescript-5.7.0-dev.20240901/lib/typescript.js:32478:35)
    at NodeObject.forEachChild (/typescript-5.7.0-dev.20240901/lib/typescript.js:149325:12)
    at createChildren (/typescript-5.7.0-dev.20240901/lib/typescript.js:149350:8)
    at NodeObject.getChildren (/typescript-5.7.0-dev.20240901/lib/typescript.js:149304:83)
    at getTokenAtPositionWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:137616:32)
    at getTouchingToken (/typescript-5.7.0-dev.20240901/lib/typescript.js:137589:10)
    at getTouchingPropertyName (/typescript-5.7.0-dev.20240901/lib/typescript.js:137586:10)
    at getReferencesAtLocation (/typescript-5.7.0-dev.20240901/lib/typescript.js:170762:31)
    at getReferencesInContainer (/typescript-5.7.0-dev.20240901/lib/typescript.js:170755:7)
    at getReferencesInSourceFile (/typescript-5.7.0-dev.20240901/lib/typescript.js:170748:12)
    at searchForName (/typescript-5.7.0-dev.20240901/lib/typescript.js:170561:7)
    at getReferencesInContainerOrFiles (/typescript-5.7.0-dev.20240901/lib/typescript.js:170361:9)
    at getReferencedSymbolsForSymbol (/typescript-5.7.0-dev.20240901/lib/typescript.js:170343:7)
    at Object.getReferencedSymbolsForNode (/typescript-5.7.0-dev.20240901/lib/typescript.js:170093:24)
    at Object.findReferencedSymbols (/typescript-5.7.0-dev.20240901/lib/typescript.js:169677:34)
    at Object.findReferences (/typescript-5.7.0-dev.20240901/lib/typescript.js:150736:41)
    at /typescript-5.7.0-dev.20240901/lib/typescript.js:190350:43
    at searchPosition (/typescript-5.7.0-dev.20240901/lib/typescript.js:190492:28)
    at getPerProjectReferences (/typescript-5.7.0-dev.20240901/lib/typescript.js:190471:32)
    at getReferencesWorker (/typescript-5.7.0-dev.20240901/lib/typescript.js:190342:29)
    at IOSession.getReferences (/typescript-5.7.0-dev.20240901/lib/typescript.js:192326:24)
    at references (/typescript-5.7.0-dev.20240901/lib/typescript.js:190775:43)
    at /typescript-5.7.0-dev.20240901/lib/typescript.js:193345:15
    at IOSession.executeWithRequestId (/typescript-5.7.0-dev.20240901/lib/typescript.js:193334:14)
    at IOSession.executeCommand (/typescript-5.7.0-dev.20240901/lib/typescript.js:193343:29)
    at IOSession.onMessage (/typescript-5.7.0-dev.20240901/lib/typescript.js:193391:68)
    at Interface.<anonymous> (/typescript-5.7.0-dev.20240901/lib/tsserver.js:501:14)

Affected repos

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

Last few requests

{"seq":1918,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":7372}}
{"seq":1919,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":8035}}
{"seq":1920,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":8492}}
{"seq":1921,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/dev-center/js/html-entities.js","line":1,"offset":8790}}

Repro steps

#!/bin/bash

git clone https://github.com/HeyPuter/puter --recurse-submodules
git -C "./puter" reset --hard 8e5711bf38ed27a37ae351b8e1bf0be163a59613
# Install packages (exact steps are below, but it might be easier to follow the repo readme)
npm --prefix "./puter" ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./puter/mods/mods_available/kdmod" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
npm --prefix "./puter/experiments/x86emu/www" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/163497/artifacts?artifactName=RepoResults4&api-version=7.0" | jq -r ".resource.downloadUrl")
wget -O RepoResults4.zip "$downloadUrl"
unzip -p RepoResults4.zip RepoResults4/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>

from typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.