TypeScript ``` [ServerErrors][JavaScript] 5.3.0-dev.20231029 ```

mctunoxg  于 6个月前  发布在  TypeScript
关注(0)|答案(3)|浏览(51)

以下是5.3.0-dev.20231029报告的错误
Pipeline that generated this bug
Logs for the pipeline run
File that generated the pipeline
本次运行考虑了来自GH(跳过前0个)的200个流行TS仓库。
成功分析了200个访问过的仓库中的193个
| 结果 | 计数 |
| ------------ | ------------ |
| 发现有趣的更改 | 3 |
| 没有发现有趣的更改 | 190 |
| 未知故障 | 7 |

调查状态

仓库错误结果
!a65c951aa1ef9eae2bb61ce354ef2e581
05dc022b77792efd84491358bf4bf0af1
946072a365ec9c366c0d2a84d2e41c5a1
wtzytmuj

wtzytmuj1#

范围错误:调用栈大小超过最大限制

Req #7173 - completionInfo
    at getSymbolLinks (/typescript-5.2.2/lib/tsserver.js:49047:26)
    at getTypeOfSymbolWithDeferredType (/typescript-5.2.2/lib/tsserver.js:56953:19)
    at getTypeOfSymbol (/typescript-5.2.2/lib/tsserver.js:56986:14)
    at getExpandedParameters (/typescript-5.2.2/lib/tsserver.js:57892:24)
    at signatureToSignatureDeclarationHelper (/typescript-5.2.2/lib/tsserver.js:53150:30)
    at createTypeNodesFromResolvedType (/typescript-5.2.2/lib/tsserver.js:52909:29)
    at createTypeNodeFromObjectType (/typescript-5.2.2/lib/tsserver.js:52741:25)
    at createAnonymousTypeNode (/typescript-5.2.2/lib/tsserver.js:52629:18)
    at typeToTypeNodeWorker (/typescript-5.2.2/lib/tsserver.js:52426:16)
    at typeToTypeNodeHelper (/typescript-5.2.2/lib/tsserver.js:52206:24)
    at /typescript-5.2.2/lib/tsserver.js:52141:134
    at withContext (/typescript-5.2.2/lib/tsserver.js:52193:29)
    at Object.typeToTypeNode (/typescript-5.2.2/lib/tsserver.js:52141:71)
    at typeToString (/typescript-5.2.2/lib/tsserver.js:52094:34)
    at reportNonexistentProperty (/typescript-5.2.2/lib/tsserver.js:74205:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.2.2/lib/tsserver.js:74039:11)
    at checkPropertyAccessExpression (/typescript-5.2.2/lib/tsserver.js:73824:94)
    at checkExpressionWorker (/typescript-5.2.2/lib/tsserver.js:79454:16)
    at checkExpression (/typescript-5.2.2/lib/tsserver.js:79375:32)
    at checkExpressionCached (/typescript-5.2.2/lib/tsserver.js:79048:28)
    at getTargetOfAliasLikeExpression (/typescript-5.2.2/lib/tsserver.js:50484:5)
    at getTargetOfAccessExpression (/typescript-5.2.2/lib/tsserver.js:50491:12)
    at getTargetOfAliasDeclaration (/typescript-5.2.2/lib/tsserver.js:50526:16)
    at getTypeOfAlias (/typescript-5.2.2/lib/tsserver.js:56915:51)
    at getTypeOfSymbol (/typescript-5.2.2/lib/tsserver.js:57010:14)
    at getNonMissingTypeOfSymbol (/typescript-5.2.2/lib/tsserver.js:57015:30)
    at addPropertyToElementList (/typescript-5.2.2/lib/tsserver.js:52970:97)
    at createTypeNodesFromResolvedType (/typescript-5.2.2/lib/tsserver.js:52947:11)
    at createTypeNodeFromObjectType (/typescript-5.2.2/lib/tsserver.js:52741:25)
    at createAnonymousTypeNode (/typescript-5.2.2/lib/tsserver.js:52629:18)
    at typeToTypeNodeWorker (/typescript-5.2.2/lib/tsserver.js:52426:16)
    at typeToTypeNodeHelper (/typescript-5.2.2/lib/tsserver.js:52206:24)
    at /typescript-5.2.2/lib/tsserver.js:52141:134
    at withContext (/typescript-5.2.2/lib/tsserver.js:52193:29)
    at Object.typeToTypeNode (/typescript-5.2.2/lib/tsserver.js:52141:71)
    at typeToString (/typescript-5.2.2/lib/tsserver.js:52094:34)
    at reportNonexistentProperty (/typescript-5.2.2/lib/tsserver.js:74205:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.2.2/lib/tsserver.js:74039:11)
    at checkPropertyAccessExpression (/typescript-5.2.2/lib/tsserver.js:73824:94)
    at checkExpressionWorker (/typescript-5.2.2/lib/tsserver.js:79454:16)
    at checkExpression (/typescript-5.2.2/lib/tsserver.js:79375:32)
    at checkExpressionCached (/typescript-5.2.2/lib/tsserver.js:79048:28)
    at getTargetOfAliasLikeExpression (/typescript-5.2.2/lib/tsserver.js:50484:5)
    at getTargetOfAccessExpression (/typescript-5.2.2/lib/tsserver.js:50491:12)
    at getTargetOfAliasDeclaration (/typescript-5.2.2/lib/tsserver.js:50526:16)
    at getTypeOfAlias (/typescript-5.2.2/lib/tsserver.js:56915:51)
    at getTypeOfSymbol (/typescript-5.2.2/lib/tsserver.js:57010:14)
    at getNonMissingTypeOfSymbol (/typescript-5.2.2/lib/tsserver.js:57015:30)
    at addPropertyToElementList (/typescript-5.2.2/lib/tsserver.js:52970:97)
    at createTypeNodesFromResolvedType (/typescript-5.2.2/lib/tsserver.js:52947:11)
    at createTypeNodeFromObjectType (/typescript-5.2.2/lib/tsserver.js:52741:25)
    at createAnonymousTypeNode (/typescript-5.2.2/lib/tsserver.js:52629:18)
    at typeToTypeNodeWorker (/typescript-5.2.2/lib/tsserver.js:52426:16)
    at typeToTypeNodeHelper (/typescript-5.2.2/lib/tsserver.js:52206:24)
    at /typescript-5.2.2/lib/tsserver.js:52141:134
    at withContext (/typescript-5.2.2/lib/tsserver.js:52193:29)
    at Object.typeToTypeNode (/typescript-5.2.2/lib/tsserver.js:52141:71)
    at typeToString (/typescript-5.2.2/lib/tsserver.js:52094:34)
    at reportNonexistentProperty (/typescript-5.2.2/lib/tsserver.js:74205:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.2.2/lib/tsserver.js:74039:11)
    at checkPropertyAccessExpression (/typescript-5.2.2/lib/tsserver.js:73824:94)
    at checkExpressionWorker (/typescript-5.2.2/lib/tsserver.js:79454:16)
    at checkExpression (/typescript-5.2.2/lib/tsserver.js:79375:32)
    at checkExpressionCached (/typescript-5.2.2/lib/tsserver.js:79048:28)
    at getTargetOfAliasLikeExpression (/typescript-5.2.2/lib/tsserver.js:50484:5)
    at getTargetOfAccessExpression (/typescript-5.2.2/lib/tsserver.js:50491:12)
    at getTargetOfAliasDeclaration (/typescript-5.2.2/lib/tsserver.js:50526:16)
    at getTypeOfAlias (/typescript-5.2.2/lib/tsserver.js:56915:51)
    at getTypeOfSymbol (/typescript-5.2.2/lib/tsserver.js:57010:14)
    at getNonMissingTypeOfSymbol (/typescript-5.2.2/lib/tsserver.js:57015:30)
    at addPropertyToElementList (/typescript-5.2.2/lib/tsserver.js:52970:97)
    at createTypeNodesFromResolvedType (/typescript-5.2.2/lib/tsserver.js:52947:11)
    at createTypeNodeFromObjectType (/typescript-5.2.2/lib/tsserver.js:52741:25)
    at createAnonymousTypeNode (/typescript-5.2.2/lib/tsserver.js:52629:18)
    at typeToTypeNodeWorker (/typescript-5.2.2/lib/tsserver.js:52426:16)
    at typeToTypeNodeHelper (/typescript-5.2.2/lib/tsserver.js:52206:24)
    at /typescript-5.2.2/lib/tsserver.js:52141:134
    at withContext (/typescript-5.2.2/lib/tsserver.js:52193:29)
    at Object.typeToTypeNode (/typescript-5.2.2/lib/tsserver.js:52141:71)
    at typeToString (/typescript-5.2.2/lib/tsserver.js:52094:34)
    at reportNonexistentProperty (/typescript-5.2.2/lib/tsserver.js:74205:27)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.2.2/lib/tsserver.js:74039:11)
    at checkPropertyAccessExpression (/typescript-5.2.2/lib/tsserver.js:73824:94)
    at checkExpressionWorker (/typescript-5.2.2/lib/tsserver.js:79454:16)
    at checkExpression (/typescript-5.2.2/lib/tsserver.js:79375:32)
    at checkExpressionCached (/typescript-5.2.2/lib/tsserver.js:79048:28)
    at getTargetOfAliasLikeExpression (/typescript-5.2.2/lib/tsserver.js:50484:5)
    at getTargetOfAccessExpression (/typescript-5.2.2/lib/tsserver.js:50491:12)
    at getTargetOfAliasDeclaration (/typescript-5.2.2/lib/tsserver.js:50526:16)
    at getTypeOfAlias (/typescript-5.2.2/lib/tsserver.js:56915:51)
    at getTypeOfSymbol (/typescript-5.2.2/lib/tsserver.js:57010:14)
    at getNonMissingTypeOfSymbol (/typescript-5.2.2/lib/tsserver.js:57015:30)
    at addPropertyToElementList (/typescript-5.2.2/lib/tsserver.js:52970:97)
    at createTypeNodesFromResolvedType (/typescript-5.2.2/lib/tsserver.js:52947:11)
    at createTypeNodeFromObjectType (/typescript-5.2.2/lib/tsserver.js:52741:25)
    at createAnonymousTypeNode (/typescript-5.2.2/lib/tsserver.js:52629:18)
    at typeToTypeNodeWorker (/typescript-5.2.2/lib/tsserver.js:52426:16)
    at typeToTypeNodeHelper (/typescript-5.2.2/lib/tsserver.js:52206:24)
    at /typescript-5.2.2/lib/tsserver.js:52141:134
    at withContext (/typescript-5.2.2/lib/tsserver.js:52193:29)
仓库不再报告错误
wh6knrhe

wh6knrhe2#

服务器异常退出,代码未知且信号SIGABRT

Server exited prematurely with code unknown and signal SIGABRT
受影响的仓库

tastejs/todomvc 原始错误文本: RepoResults5/tastejs.todomvc.rawError.txt in the artifact folder

最后几笔请求
{"seq":4544,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":17772,"offset":82,"includeExternalModuleExports":false,"triggerKind":1}}
{"seq":4545,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":17772,"offset":87}}
{"seq":4546,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":17772,"offset":87}}
{"seq":4547,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":17772,"offset":87,"includeExternalModuleExports":false,"triggerKind":1}}
重现步骤
  1. git clone https://github.com/tastejs/todomvc --recurse-submodules
  2. todomvc 目录下运行 git reset --hard 3595bc2c4d136032fde2cd008f843fb205d1b44f
  3. 安装软件包(具体步骤如下,但可能更容易遵循仓库的 readme)
  4. todomvc/bower_components/bootstrap 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  5. todomvc/bower_components/webcomponentsjs 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  6. todomvc/examples/angular-dart 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  7. todomvc/examples/angular2_es2015 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  8. todomvc/examples/angular2 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  9. todomvc/examples/angularjs_require 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  10. todomvc/examples/angularjs_require/test 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  11. todomvc/examples/angularjs 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  12. todomvc/examples/aurelia 目录下运行 npm ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  13. todomvc/examples/backbone_marionette 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  14. todomvc/examples/backbone_require 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  15. todomvc/examples/backbone 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  16. todomvc/examples/binding-scala 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  17. todomvc/examples/canjs_require 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  18. todomvc/examples/canjs 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  19. todomvc/examples/closure 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  20. todomvc/examples/cujo 目录下运行 npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  21. 在 x
cgvd09ve

cgvd09ve3#

详细调试信息: {"pos":74020,"end":77774} 和 {"pos":74020,"end":77774}

Req #3 - organizeImports
    at /typescript-5.3.0-dev.20231029/lib/tsserver.js:169200:15
    at mapDefined (/typescript-5.3.0-dev.20231029/lib/tsserver.js:2668:22)
    at Object.getTextChangesFromChanges (/typescript-5.3.0-dev.20231029/lib/tsserver.js:169196:12)
    at _ChangeTracker.getChanges (/typescript-5.3.0-dev.20231029/lib/tsserver.js:169093:35)
    at Object.organizeImports (/typescript-5.3.0-dev.20231029/lib/tsserver.js:165885:24)
    at Object.organizeImports2 [as organizeImports] (/typescript-5.3.0-dev.20231029/lib/tsserver.js:145392:39)
    at IOSession.organizeImports (/typescript-5.3.0-dev.20231029/lib/tsserver.js:185018:50)
    at organizeImports (/typescript-5.3.0-dev.20231029/lib/tsserver.js:183228:43)
    at /typescript-5.3.0-dev.20231029/lib/tsserver.js:185366:69
    at IOSession.executeWithRequestId (/typescript-5.3.0-dev.20231029/lib/tsserver.js:185358:14)
    at IOSession.executeCommand (/typescript-5.3.0-dev.20231029/lib/tsserver.js:185366:29)
    at IOSession.onMessage (/typescript-5.3.0-dev.20231029/lib/tsserver.js:185408:51)
    at Interface.<anonymous> (/typescript-5.3.0-dev.20231029/lib/tsserver.js:186966:14)
受影响的仓库

parcel-bundler/parcel 原始错误文本: RepoResults2/parcel-bundler.parcel.rawError.txtartifact folder

最近的几个请求
{"rootDirPlaceholder":"@PROJECT_ROOT@","serverArgs":["--disableAutomaticTypingAcquisition"]}
{"seq":1,"type":"request","command":"configure","arguments":{"preferences":{"disableLineTextInReferences":true,"includePackageJsonAutoImports":"auto","includeCompletionsForImportStatements":true,"includeCompletionsWithSnippetText":true,"includeAutomaticOptionalChainCompletions":true,"includeCompletionsWithInsertText":true,"includeCompletionsWithClassMemberSnippets":true,"allowIncompleteCompletions":true,"includeCompletionsForModuleExports":false},"watchOptions":{"excludeDirectories":["**/node_modules"]}}}
{"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/flow-typed/npm/@swc/core_v1.x.x.js","projectRootPath":"@PROJECT_ROOT@"}]}}
{"seq":3,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/flow-typed/npm/@swc/core_v1.x.x.js"}},"skipDestructiveCodeActions":false}}
重现步骤
  1. git clone https://github.com/parcel-bundler/parcel --recurse-submodules
  2. 在目录 parcel 中运行 git reset --hard e0909fed31feb41e1029146a08f311a7e5769fb7
  3. 在目录 parcel 中运行 yarn install --ignore-engines --ignore-scripts --silent
  4. 回到初始文件夹,从 artifact folder 下载 RepoResults2/parcel-bundler.parcel.replay.txt
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./parcel ./parcel-bundler.parcel.replay.txt path/to/tsserver.js
  7. npx tsreplay --help 以了解有关调试、记录等的有用开关

相关问题