microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
101.05k stars 12.49k forks source link

[ServerErrors][JavaScript] 5.4.0-dev.20240107 #56975

Open typescript-bot opened 10 months ago

typescript-bot commented 10 months ago

The following errors were reported by 5.4.0-dev.20240107 Pipeline that generated this bug Logs for the pipeline run File that generated the pipeline

This run considered 200 popular TS repos from GH (after skipping the top 0).

Successfully analyzed 192 of 200 visited repos | Outcome | Count | |---------|-------| | Detected interesting changes | 2 | | Detected no interesting changes | 190 | | Unknown failure | 8 |

Investigation Status

Repo Errors Outcome
05dc022b77792efd84491358bf4bf0af 1
716abbddd7f3e5caca29491d4eb42c55 1
typescript-bot commented 10 months ago

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: RepoResults5/tastejs.todomvc.rawError.txt in the artifact folder

Last few requests

```json {"seq":4660,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":18797,"offset":11,"entryNames":["$"]}} {"seq":4661,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":18829,"offset":17}} {"seq":4662,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":18832,"offset":22,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":4663,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/examples/angular-dart/web/main.dart.js","line":18837,"offset":27,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}} ```

Repro steps

  1. git clone https://github.com/tastejs/todomvc --recurse-submodules
  2. In dir todomvc, run git reset --hard 181dc18d390189ad31c52ecc942d1083d7c635a6
  3. Back in the initial folder, download RepoResults5/tastejs.todomvc.replay.txt from the artifact folder
  4. npm install --no-save @typescript/server-replay
  5. npx tsreplay ./todomvc ./tastejs.todomvc.replay.txt path/to/tsserver.js
  6. npx tsreplay --help to learn about helpful switches for debugging, logging, etc
typescript-bot commented 10 months ago

Error: Debug Failure. False expression.

Req #1786 - completionInfo
    at consumeTokenAndAdvanceScanner (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172901:13)
    at processChildNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172810:9)
    at /typescript-5.4.0-dev.20240107/lib/tsserver.js:172749:9
    at visitNode2 (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30408:18)
    at forEachChildInPropertySignature (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30464:92)
    at forEachChild (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30925:35)
    at processNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172746:5)
    at processChildNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172825:7)
    at processChildNodes (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172868:32)
    at /typescript-5.4.0-dev.20240107/lib/tsserver.js:172762:9
    at visitNodes (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30413:14)
    at forEachChildInTypeLiteral (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30523:12)
    at forEachChild (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30925:35)
    at processNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172746:5)
    at processChildNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172825:7)
    at processChildNodes (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172868:32)
    at /typescript-5.4.0-dev.20240107/lib/tsserver.js:172762:9
    at visitNodes (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30413:14)
    at forEachChildInUnionOrIntersectionType (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30872:10)
    at forEachChild (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30925:35)
    at processNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172746:5)
    at processChildNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172825:7)
    at processChildNodes (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172868:32)
    at /typescript-5.4.0-dev.20240107/lib/tsserver.js:172762:9
    at visitNodes (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30413:14)
    at forEachChildInTypeReference (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30514:49)
    at forEachChild (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30925:35)
    at processNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172746:5)
    at processChildNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172825:7)
    at processChildNodes (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172868:32)
    at /typescript-5.4.0-dev.20240107/lib/tsserver.js:172762:9
    at visitNodes (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30413:14)
    at forEachChildInUnionOrIntersectionType (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30872:10)
    at forEachChild (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30925:35)
    at processNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172746:5)
    at processChildNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172825:7)
    at /typescript-5.4.0-dev.20240107/lib/tsserver.js:172749:9
    at visitNode2 (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30408:18)
    at forEachChildInPropertySignature (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30464:134)
    at forEachChild (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30925:35)
    at processNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172746:5)
    at processChildNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172825:7)
    at processChildNodes (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172868:32)
    at /typescript-5.4.0-dev.20240107/lib/tsserver.js:172762:9
    at visitNodes (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30413:14)
    at forEachChildInTypeLiteral (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30523:12)
    at forEachChild (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30925:35)
    at processNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172746:5)
    at processChildNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172825:7)
    at /typescript-5.4.0-dev.20240107/lib/tsserver.js:172749:9
    at visitNode2 (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30408:18)
    at forEachChildInParameter (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30458:177)
    at forEachChild (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30925:35)
    at processNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172746:5)
    at processChildNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172825:7)
    at processChildNodes (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172868:32)
    at /typescript-5.4.0-dev.20240107/lib/tsserver.js:172762:9
    at visitNodes (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30413:14)
    at forEachChildInMethodDeclaration (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30487:273)
    at forEachChild (/typescript-5.4.0-dev.20240107/lib/tsserver.js:30925:35)
    at processNode (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172746:5)
    at formatSpanWorker (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172548:5)
    at /typescript-5.4.0-dev.20240107/lib/tsserver.js:172488:105
    at getFormattingScanner (/typescript-5.4.0-dev.20240107/lib/tsserver.js:171291:15)
    at Object.formatNodeGivenIndentation (/typescript-5.4.0-dev.20240107/lib/tsserver.js:172488:10)
    at /typescript-5.4.0-dev.20240107/lib/tsserver.js:159718:36
    at flatMap (/typescript-5.4.0-dev.20240107/lib/tsserver.js:2610:17)
    at Object.printAndFormatSnippetList (/typescript-5.4.0-dev.20240107/lib/tsserver.js:159716:21)
    at getEntryForMemberCompletion (/typescript-5.4.0-dev.20240107/lib/tsserver.js:159479:28)
    at createCompletionEntry (/typescript-5.4.0-dev.20240107/lib/tsserver.js:159303:35)
    at getCompletionEntriesFromSymbols (/typescript-5.4.0-dev.20240107/lib/tsserver.js:159890:19)
    at completionInfoFromData (/typescript-5.4.0-dev.20240107/lib/tsserver.js:158959:23)
    at Object.getCompletionsAtPosition (/typescript-5.4.0-dev.20240107/lib/tsserver.js:158501:24)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.4.0-dev.20240107/lib/tsserver.js:146313:35)
    at IOSession.getCompletions (/typescript-5.4.0-dev.20240107/lib/tsserver.js:186121:54)
    at completionInfo (/typescript-5.4.0-dev.20240107/lib/tsserver.js:184511:43)
    at /typescript-5.4.0-dev.20240107/lib/tsserver.js:186905:69
    at IOSession.executeWithRequestId (/typescript-5.4.0-dev.20240107/lib/tsserver.js:186897:14)
    at IOSession.executeCommand (/typescript-5.4.0-dev.20240107/lib/tsserver.js:186905:29)
    at IOSession.onMessage (/typescript-5.4.0-dev.20240107/lib/tsserver.js:186947:51)
    at Interface.<anonymous> (/typescript-5.4.0-dev.20240107/lib/tsserver.js:188532:14)

Affected repos

fabricjs/fabric.js Raw error text: RepoResults5/fabricjs.fabric.js.rawError.txt in the artifact folder

Last few requests

```json {"seq":1783,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/canvas/StaticCanvas.ts","line":288,"offset":91,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":1784,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/canvas/StaticCanvas.ts","line":289,"offset":6,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":1785,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/canvas/StaticCanvas.ts","line":289,"offset":6,"entryNames":["@abstract"]}} {"seq":1786,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/canvas/StaticCanvas.ts","line":319,"offset":4,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

  1. git clone https://github.com/fabricjs/fabric.js --recurse-submodules
  2. In dir fabric.js, run git reset --hard 2dda4717c33bdd94a7fc0d26dc6e35980f6b1c3a
  3. Install packages (exact steps are below, but it might be easier to follow the repo readme)
    1. In dir fabric.js, run npm ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    2. In dir fabric.js/website, run npm ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  4. Back in the initial folder, download RepoResults5/fabricjs.fabric.js.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./fabric.js ./fabricjs.fabric.js.replay.txt path/to/tsserver.js
  7. npx tsreplay --help to learn about helpful switches for debugging, logging, etc