microsoft / TypeScript

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

[ServerErrors][TypeScript] 5.4.0-dev.20240211 #57378

Closed typescript-bot closed 7 months ago

typescript-bot commented 7 months ago

The following errors were reported by 5.4.0-dev.20240211 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 188 of 200 visited repos | Outcome | Count | |---------|-------| | Detected interesting changes | 5 | | Detected no interesting changes | 183 | | Git clone failed | 3 | | Language service disabled in new TS | 1 | | Unknown failure | 8 |

Investigation Status

Repo Errors Outcome
3f60e6ecb9c2c5c32e9fb7ff325f030a 1
4d856010ca0b0b942400bc5d4f14d2be 1
57829e1c77177880650701517d53ba34 1
668fe597b73273fc638b7d03a1ab8b07 1
d72d1429fda96c924bde26956321a0a9 1
typescript-bot commented 7 months ago

Error: Debug Failure. False expression.

Req #3373 - completionInfo
    at consumeTokenAndAdvanceScanner (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173475:13)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173384:9)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173323:9
    at visitNode2 (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30459:18)
    at forEachChildInPropertySignature (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30515:92)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at processChildNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173442:32)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173336:9
    at visitNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30464:14)
    at forEachChildInTypeLiteral (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30574:12)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at processChildNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173442:32)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173336:9
    at visitNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30464:14)
    at forEachChildInUnionOrIntersectionType (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30923:10)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173323:9
    at visitNode2 (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30459:18)
    at forEachChildInParenthesizedTypeOrTypeOperator (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30926:10)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173323:9
    at visitNode2 (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30459:18)
    at forEachChildInIndexedAccessType (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30599:12)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173323:9
    at visitNode2 (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30459:18)
    at forEachChildInConditionalType (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30585:90)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173323:9
    at visitNode2 (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30459:18)
    at forEachChildInTypeParameter (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30500:131)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at processChildNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173442:32)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173336:9
    at visitNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30464:14)
    at forEachChildInMethodDeclaration (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30538:221)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at formatSpanWorker (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173122:5)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173062:105
    at getFormattingScanner (/typescript-5.4.0-dev.20240211/lib/tsserver.js:171865:15)
    at Object.formatNodeGivenIndentation (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173062:10)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:160163:36
    at flatMap (/typescript-5.4.0-dev.20240211/lib/tsserver.js:2609:17)
    at Object.printAndFormatSnippetList (/typescript-5.4.0-dev.20240211/lib/tsserver.js:160161:21)
    at getEntryForMemberCompletion (/typescript-5.4.0-dev.20240211/lib/tsserver.js:159924:28)
    at createCompletionEntry (/typescript-5.4.0-dev.20240211/lib/tsserver.js:159748:35)
    at getCompletionEntriesFromSymbols (/typescript-5.4.0-dev.20240211/lib/tsserver.js:160335:19)
    at completionInfoFromData (/typescript-5.4.0-dev.20240211/lib/tsserver.js:159404:23)
    at Object.getCompletionsAtPosition (/typescript-5.4.0-dev.20240211/lib/tsserver.js:158946:24)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.4.0-dev.20240211/lib/tsserver.js:146523:35)
    at IOSession.getCompletions (/typescript-5.4.0-dev.20240211/lib/tsserver.js:186747:54)
    at completionInfo (/typescript-5.4.0-dev.20240211/lib/tsserver.js:185137:43)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:187531:69
    at IOSession.executeWithRequestId (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187523:14)
    at IOSession.executeCommand (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187531:29)
    at IOSession.onMessage (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187573:51)
    at Interface.<anonymous> (/typescript-5.4.0-dev.20240211/lib/tsserver.js:189158:14)

Affected repos

GrapesJS/grapesjs Raw error text: RepoResults7/GrapesJS.grapesjs.rawError.txt in the artifact folder

Last few requests

```json {"seq":3370,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/dist/index.d.ts","line":8719,"offset":5}} {"seq":3371,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/dist/index.d.ts","line":8719,"offset":5}} {"seq":3372,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/dist/index.d.ts","line":8720,"offset":5}} {"seq":3373,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/dist/index.d.ts","line":8726,"offset":11,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

  1. git clone https://github.com/GrapesJS/grapesjs --recurse-submodules
  2. In dir grapesjs, run git reset --hard fb5175fd1edd13a2db54d661193fb61a354f8625
  3. In dir grapesjs, run yarn install --ignore-engines --ignore-scripts --silent
  4. Back in the initial folder, download RepoResults7/GrapesJS.grapesjs.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./grapesjs ./GrapesJS.grapesjs.replay.txt path/to/tsserver.js
  7. npx tsreplay --help to learn about helpful switches for debugging, logging, etc
typescript-bot commented 7 months ago

Error: Debug Failure. False expression: Token end is child end

Req #13522 - completionInfo
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173392:17)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173323:9
    at visitNode2 (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30459:18)
    at forEachChildInPropertySignature (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30515:59)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at processChildNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173442:32)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173336:9
    at visitNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30464:14)
    at forEachChildInTypeLiteral (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30574:12)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173323:9
    at visitNode2 (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30459:18)
    at forEachChildInPropertyDeclaration (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30512:179)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at formatSpanWorker (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173122:5)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173062:105
    at getFormattingScanner (/typescript-5.4.0-dev.20240211/lib/tsserver.js:171865:15)
    at Object.formatNodeGivenIndentation (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173062:10)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:160163:36
    at flatMap (/typescript-5.4.0-dev.20240211/lib/tsserver.js:2609:17)
    at Object.printAndFormatSnippetList (/typescript-5.4.0-dev.20240211/lib/tsserver.js:160161:21)
    at getEntryForMemberCompletion (/typescript-5.4.0-dev.20240211/lib/tsserver.js:159924:28)
    at createCompletionEntry (/typescript-5.4.0-dev.20240211/lib/tsserver.js:159748:35)
    at getCompletionEntriesFromSymbols (/typescript-5.4.0-dev.20240211/lib/tsserver.js:160335:19)
    at completionInfoFromData (/typescript-5.4.0-dev.20240211/lib/tsserver.js:159404:23)
    at Object.getCompletionsAtPosition (/typescript-5.4.0-dev.20240211/lib/tsserver.js:158946:24)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.4.0-dev.20240211/lib/tsserver.js:146523:35)
    at IOSession.getCompletions (/typescript-5.4.0-dev.20240211/lib/tsserver.js:186747:54)
    at completionInfo (/typescript-5.4.0-dev.20240211/lib/tsserver.js:185137:43)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:187531:69
    at IOSession.executeWithRequestId (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187523:14)
    at IOSession.executeCommand (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187531:29)
    at IOSession.onMessage (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187573:51)
    at Interface.<anonymous> (/typescript-5.4.0-dev.20240211/lib/tsserver.js:189158:14)

Affected repos

the1812/Bilibili-Evolved Raw error text: RepoResults6/the1812.Bilibili-Evolved.rawError.txt in the artifact folder

Last few requests

```json {"seq":13519,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/registry/lib/components/video/player/remember-speed/component.ts","line":191,"offset":18,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":13520,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/registry/lib/components/video/player/remember-speed/component.ts","line":192,"offset":6}} {"seq":13521,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/registry/lib/components/video/player/remember-speed/component.ts","line":192,"offset":6}} {"seq":13522,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/registry/lib/components/video/player/remember-speed/component.ts","line":214,"offset":4,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

  1. git clone https://github.com/the1812/Bilibili-Evolved --recurse-submodules
  2. In dir Bilibili-Evolved, run git reset --hard fdc05db08b73a4fcf973c145748f390e73086049
  3. Install packages (exact steps are below, but it might be easier to follow the repo readme)
    1. In dir Bilibili-Evolved/dev-tools/donate-table, run pnpm install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent
    2. In dir Bilibili-Evolved, run pnpm install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent
    3. In dir Bilibili-Evolved/registry, run pnpm install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent
  4. Back in the initial folder, download RepoResults6/the1812.Bilibili-Evolved.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./Bilibili-Evolved ./the1812.Bilibili-Evolved.replay.txt path/to/tsserver.js
  7. npx tsreplay --help to learn about helpful switches for debugging, logging, etc

typescript-bot commented 7 months ago

Error: Debug Failure. False expression.

Req #6274 - completionInfo
    at consumeTokenAndAdvanceScanner (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173475:13)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173384:9)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173323:9
    at visitNode2 (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30459:18)
    at forEachChildInPropertySignature (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30515:92)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at processChildNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173442:32)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173336:9
    at visitNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30464:14)
    at forEachChildInTypeLiteral (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30574:12)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at processChildNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173442:32)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173336:9
    at visitNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30464:14)
    at forEachChildInUnionOrIntersectionType (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30923:10)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at processChildNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173442:32)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173336:9
    at visitNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30464:14)
    at forEachChildInTypeReference (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30565:49)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173323:9
    at visitNode2 (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30459:18)
    at forEachChildInParameter (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30509:177)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at processChildNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173442:32)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173336:9
    at visitNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30464:14)
    at forEachChildInMethodDeclaration (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30538:273)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at formatSpanWorker (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173122:5)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173062:105
    at getFormattingScanner (/typescript-5.4.0-dev.20240211/lib/tsserver.js:171865:15)
    at Object.formatNodeGivenIndentation (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173062:10)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:160163:36
    at flatMap (/typescript-5.4.0-dev.20240211/lib/tsserver.js:2609:17)
    at Object.printAndFormatSnippetList (/typescript-5.4.0-dev.20240211/lib/tsserver.js:160161:21)
    at getEntryForMemberCompletion (/typescript-5.4.0-dev.20240211/lib/tsserver.js:159924:28)
    at createCompletionEntry (/typescript-5.4.0-dev.20240211/lib/tsserver.js:159748:35)
    at getCompletionEntriesFromSymbols (/typescript-5.4.0-dev.20240211/lib/tsserver.js:160335:19)
    at completionInfoFromData (/typescript-5.4.0-dev.20240211/lib/tsserver.js:159404:23)
    at Object.getCompletionsAtPosition (/typescript-5.4.0-dev.20240211/lib/tsserver.js:158946:24)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.4.0-dev.20240211/lib/tsserver.js:146523:35)
    at IOSession.getCompletions (/typescript-5.4.0-dev.20240211/lib/tsserver.js:186747:54)
    at completionInfo (/typescript-5.4.0-dev.20240211/lib/tsserver.js:185137:43)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:187531:69
    at IOSession.executeWithRequestId (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187523:14)
    at IOSession.executeCommand (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187531:29)
    at IOSession.onMessage (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187573:51)
    at Interface.<anonymous> (/typescript-5.4.0-dev.20240211/lib/tsserver.js:189158:14)

Affected repos

jhipster/generator-jhipster Raw error text: RepoResults6/jhipster.generator-jhipster.rawError.txt in the artifact folder

Last few requests

```json {"seq":6271,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/generators/spring-data-relational/generator.ts","line":61,"offset":16,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}} {"seq":6272,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/generators/spring-data-relational/generator.ts","line":81,"offset":67,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":"."}} {"seq":6273,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/generators/spring-data-relational/generator.ts","line":83,"offset":9}} {"seq":6274,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/generators/spring-data-relational/generator.ts","line":86,"offset":4,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

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

Error: start < 0

Req #1959 - references
    at createTextSpan (/typescript-5.4.0-dev.20240211/lib/tsserver.js:13700:11)
    at createTextSpanFromBounds (/typescript-5.4.0-dev.20240211/lib/tsserver.js:13708:10)
    at getErrorSpanForNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:16513:10)
    at createDiagnosticForNodeFromMessageChain (/typescript-5.4.0-dev.20240211/lib/tsserver.js:16350:16)
    at resolveExternalModule (/typescript-5.4.0-dev.20240211/lib/tsserver.js:51750:31)
    at resolveExternalModuleNameWorker (/typescript-5.4.0-dev.20240211/lib/tsserver.js:51644:61)
    at resolveExternalModuleName (/typescript-5.4.0-dev.20240211/lib/tsserver.js:51641:12)
    at getSymbolAtLocation (/typescript-5.4.0-dev.20240211/lib/tsserver.js:87303:18)
    at Object.getSymbolAtLocation (/typescript-5.4.0-dev.20240211/lib/tsserver.js:48499:21)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:163880:36
    at forEachImport (/typescript-5.4.0-dev.20240211/lib/tsserver.js:163916:7)
    at findModuleReferences (/typescript-5.4.0-dev.20240211/lib/tsserver.js:163879:5)
    at getReferencedSymbolsForModule (/typescript-5.4.0-dev.20240211/lib/tsserver.js:164778:35)
    at getReferencedSymbolsForModuleIfDeclaredBySourceFile (/typescript-5.4.0-dev.20240211/lib/tsserver.js:164718:30)
    at Object.getReferencedSymbolsForNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:164648:30)
    at Object.findReferencedSymbols (/typescript-5.4.0-dev.20240211/lib/tsserver.js:164236:34)
    at Object.findReferences (/typescript-5.4.0-dev.20240211/lib/tsserver.js:146677:41)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:184587:43
    at searchPosition (/typescript-5.4.0-dev.20240211/lib/tsserver.js:184737:28)
    at getPerProjectReferences (/typescript-5.4.0-dev.20240211/lib/tsserver.js:184714:32)
    at getReferencesWorker (/typescript-5.4.0-dev.20240211/lib/tsserver.js:184579:29)
    at IOSession.getReferences (/typescript-5.4.0-dev.20240211/lib/tsserver.js:186499:24)
    at references (/typescript-5.4.0-dev.20240211/lib/tsserver.js:185018:43)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:187531:69
    at IOSession.executeWithRequestId (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187523:14)
    at IOSession.executeCommand (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187531:29)
    at IOSession.onMessage (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187573:51)
    at Interface.<anonymous> (/typescript-5.4.0-dev.20240211/lib/tsserver.js:189158:14)

Affected repos

statelyai/xstate Raw error text: RepoResults4/statelyai.xstate.rawError.txt in the artifact folder

Last few requests

```json {"seq":1956,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/packages/core/test/actor.test.ts","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":1957,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/packages/core/test/actor.test.ts"}} {"seq":1958,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/core/test/actor.test.ts","line":33,"offset":24}} {"seq":1959,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/core/test/actor.test.ts","line":33,"offset":24}} ```

Repro steps

  1. git clone https://github.com/statelyai/xstate --recurse-submodules
  2. In dir xstate, run git reset --hard 91549ce8a6a5105b3d354ca442ea5c058e58e206
  3. Install packages (exact steps are below, but it might be easier to follow the repo readme)
    1. In dir xstate/docs/fr/sandboxes/todomvc, run yarn install --ignore-engines --ignore-scripts --silent
    2. In dir xstate/docs, run yarn install --ignore-engines --ignore-scripts --silent
    3. In dir xstate/docs/sandboxes/todomvc, run yarn install --ignore-engines --ignore-scripts --silent
    4. In dir xstate/docs/zh/sandboxes/todomvc, run yarn install --ignore-engines --ignore-scripts --silent
    5. In dir xstate/examples/7guis-counter-react, run yarn install --ignore-engines --ignore-scripts --silent
    6. In dir xstate/examples/7guis-temperature-react, run yarn install --ignore-engines --ignore-scripts --silent
    7. In dir xstate/examples/counter, run yarn install --ignore-engines --ignore-scripts --silent
    8. In dir xstate/examples/express-workflow, run yarn install --ignore-engines --ignore-scripts --silent
    9. In dir xstate/examples/fetch, run yarn install --ignore-engines --ignore-scripts --silent
    10. In dir xstate/examples/friends-list-react, run yarn install --ignore-engines --ignore-scripts --silent
    11. In dir xstate/examples/mongodb-credit-check-api, run yarn install --ignore-engines --ignore-scripts --silent
    12. In dir xstate/examples/mongodb-persisted-state, run yarn install --ignore-engines --ignore-scripts --silent
    13. In dir xstate/examples/persisted-donut-maker, run yarn install --ignore-engines --ignore-scripts --silent
    14. In dir xstate/examples/snake-react, run yarn install --ignore-engines --ignore-scripts --silent
    15. In dir xstate/examples/stopwatch, run yarn install --ignore-engines --ignore-scripts --silent
    16. In dir xstate/examples/tic-tac-toe-react, run yarn install --ignore-engines --ignore-scripts --silent
    17. In dir xstate/examples/tiles, run yarn install --ignore-engines --ignore-scripts --silent
    18. In dir xstate/examples/timer, run yarn install --ignore-engines --ignore-scripts --silent
    19. In dir xstate/examples/todomvc-react, run yarn install --ignore-engines --ignore-scripts --silent
    20. In dir xstate/examples/toggle, run yarn install --ignore-engines --ignore-scripts --silent
    21. In dir xstate/examples/workflow-accumulate-room-readings, run yarn install --ignore-engines --ignore-scripts --silent
    22. In dir xstate/examples/workflow-applicant-request, run yarn install --ignore-engines --ignore-scripts --silent
    23. In dir xstate/examples/workflow-async-function, run yarn install --ignore-engines --ignore-scripts --silent
    24. In dir xstate/examples/workflow-async-subflow, run yarn install --ignore-engines --ignore-scripts --silent
    25. In dir xstate/examples/workflow-book-lending, run yarn install --ignore-engines --ignore-scripts --silent
    26. In dir xstate/examples/workflow-car-auction-bids, run yarn install --ignore-engines --ignore-scripts --silent
    27. In dir xstate/examples/workflow-car-vitals, run yarn install --ignore-engines --ignore-scripts --silent
    28. In dir xstate/examples/workflow-check-inbox, run yarn install --ignore-engines --ignore-scripts --silent
    29. In dir xstate/examples/workflow-credit-check, run yarn install --ignore-engines --ignore-scripts --silent
    30. In dir xstate/examples/workflow-event-based-service, run yarn install --ignore-engines --ignore-scripts --silent
    31. In dir xstate/examples/workflow-event-based, run yarn install --ignore-engines --ignore-scripts --silent
    32. In dir xstate/examples/workflow-event-greeting, run yarn install --ignore-engines --ignore-scripts --silent
    33. In dir xstate/examples/workflow-filling-water, run yarn install --ignore-engines --ignore-scripts --silent
    34. In dir xstate/examples/workflow-finalize-college-app, run yarn install --ignore-engines --ignore-scripts --silent
    35. In dir xstate/examples/workflow-greeting, run yarn install --ignore-engines --ignore-scripts --silent
    36. In dir xstate/examples/workflow-hello, run yarn install --ignore-engines --ignore-scripts --silent
    37. In dir xstate/examples/workflow-math-problem, run yarn install --ignore-engines --ignore-scripts --silent
    38. In dir xstate/examples/workflow-media-scanner, run yarn install --ignore-engines --ignore-scripts --silent
    39. In dir xstate/examples/workflow-monitor-job, run yarn install --ignore-engines --ignore-scripts --silent
    40. In dir xstate/examples/workflow-monitor-patient, run yarn install --ignore-engines --ignore-scripts --silent
    41. In dir xstate/examples/workflow-new-patient-onboarding, run yarn install --ignore-engines --ignore-scripts --silent
    42. In dir xstate/examples/workflow-parallel, run yarn install --ignore-engines --ignore-scripts --silent
    43. In dir xstate/examples/workflow-provision-orders, run yarn install --ignore-engines --ignore-scripts --silent
    44. In dir xstate/examples/workflow-purchase-order-deadline, run yarn install --ignore-engines --ignore-scripts --silent
    45. In dir xstate/examples/workflow-reusing-functions, run yarn install --ignore-engines --ignore-scripts --silent
    46. In dir xstate/examples/workflow-send-cloudevent, run yarn install --ignore-engines --ignore-scripts --silent
    47. In dir xstate, run yarn install --ignore-engines --ignore-scripts --silent
    48. In dir xstate/templates/react-ts, run yarn install --ignore-engines --ignore-scripts --silent
    49. In dir xstate/templates/svelte-ts, run yarn install --ignore-engines --ignore-scripts --silent
    50. In dir xstate/templates/vanilla-ts, run yarn install --ignore-engines --ignore-scripts --silent
    51. In dir xstate/templates/vue-ts, run yarn install --ignore-engines --ignore-scripts --silent
  4. Back in the initial folder, download RepoResults4/statelyai.xstate.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./xstate ./statelyai.xstate.replay.txt path/to/tsserver.js
  7. npx tsreplay --help to learn about helpful switches for debugging, logging, etc

typescript-bot commented 7 months ago

Error: Debug Failure. False expression: Token end is child end

Req #21173 - completionInfo
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173392:17)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173323:9
    at visitNode2 (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30459:18)
    at forEachChildInPropertySignature (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30515:59)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at processChildNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173442:32)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173336:9
    at visitNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30464:14)
    at forEachChildInTypeLiteral (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30574:12)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at processChildNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173442:32)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173336:9
    at visitNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30464:14)
    at forEachChildInUnionOrIntersectionType (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30923:10)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at processChildNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173442:32)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173336:9
    at visitNodes (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30464:14)
    at forEachChildInTypeReference (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30565:49)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at processChildNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173399:7)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173323:9
    at visitNode2 (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30459:18)
    at forEachChildInPropertyDeclaration (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30512:179)
    at forEachChild (/typescript-5.4.0-dev.20240211/lib/tsserver.js:30976:35)
    at processNode (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173320:5)
    at formatSpanWorker (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173122:5)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:173062:105
    at getFormattingScanner (/typescript-5.4.0-dev.20240211/lib/tsserver.js:171865:15)
    at Object.formatNodeGivenIndentation (/typescript-5.4.0-dev.20240211/lib/tsserver.js:173062:10)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:160163:36
    at flatMap (/typescript-5.4.0-dev.20240211/lib/tsserver.js:2609:17)
    at Object.printAndFormatSnippetList (/typescript-5.4.0-dev.20240211/lib/tsserver.js:160161:21)
    at getEntryForMemberCompletion (/typescript-5.4.0-dev.20240211/lib/tsserver.js:159924:28)
    at createCompletionEntry (/typescript-5.4.0-dev.20240211/lib/tsserver.js:159748:35)
    at getCompletionEntriesFromSymbols (/typescript-5.4.0-dev.20240211/lib/tsserver.js:160335:19)
    at completionInfoFromData (/typescript-5.4.0-dev.20240211/lib/tsserver.js:159404:23)
    at Object.getCompletionsAtPosition (/typescript-5.4.0-dev.20240211/lib/tsserver.js:158946:24)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.4.0-dev.20240211/lib/tsserver.js:146523:35)
    at IOSession.getCompletions (/typescript-5.4.0-dev.20240211/lib/tsserver.js:186747:54)
    at completionInfo (/typescript-5.4.0-dev.20240211/lib/tsserver.js:185137:43)
    at /typescript-5.4.0-dev.20240211/lib/tsserver.js:187531:69
    at IOSession.executeWithRequestId (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187523:14)
    at IOSession.executeCommand (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187531:29)
    at IOSession.onMessage (/typescript-5.4.0-dev.20240211/lib/tsserver.js:187573:51)
    at Interface.<anonymous> (/typescript-5.4.0-dev.20240211/lib/tsserver.js:189158:14)

Affected repos

apache/echarts Raw error text: RepoResults1/apache.echarts.rawError.txt in the artifact folder

Last few requests

```json {"seq":21170,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/src/chart/helper/LargeSymbolDraw.ts"}} {"seq":21171,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"@PROJECT_ROOT@/src/chart/helper/LargeSymbolDraw.ts","textChanges":[{"newText":" //comment","start":{"line":1,"offset":3},"end":{"line":1,"offset":3}}]}],"closedFiles":[],"openFiles":[]}} {"seq":21172,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/chart/helper/LargeSymbolDraw.ts","line":13,"offset":29,"includeExternalModuleExports":false,"triggerKind":2,"triggerCharacter":" "}} {"seq":21173,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/chart/helper/LargeSymbolDraw.ts","line":52,"offset":1,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

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