microsoft / TypeScript

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

[ServerErrors][TypeScript] 5.3.0-dev.20231001 #55935

Closed typescript-bot closed 11 months ago

typescript-bot commented 11 months ago

The following errors were reported by 5.3.0-dev.20231001 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 185 of 200 visited repos | Outcome | Count | |---------|-------| | Detected interesting changes | 6 | | Detected no interesting changes | 179 | | Git clone failed | 3 | | Language service disabled in new TS | 1 | | Unknown failure | 11 |

Investigation Status

Repo Errors Outcome
!fc31b5eadcb63248b25b93cfa369b910 1
05dc022b77792efd84491358bf4bf0af 1
4fe84273b9d168280fa61b3a842f7694 1
82b4762cc2171dc2397ece3e41a54276 1
c9c8f278b5dd3d60a946279f2db45b44 1
f4bba97eab6da69a7e8973fa17ac4ad1 1
typescript-bot commented 11 months ago
Error: start < 0 ``` Req #5028 - references at createTextSpan (/typescript-5.2.2/lib/tsserver.js:13622:11) at createTextSpanFromBounds (/typescript-5.2.2/lib/tsserver.js:13630:10) at getErrorSpanForNode (/typescript-5.2.2/lib/tsserver.js:16404:10) at createDiagnosticForNodeFromMessageChain (/typescript-5.2.2/lib/tsserver.js:16239:16) at resolveExternalModule (/typescript-5.2.2/lib/tsserver.js:51029:31) at resolveExternalModuleNameWorker (/typescript-5.2.2/lib/tsserver.js:50926:61) at resolveExternalModuleName (/typescript-5.2.2/lib/tsserver.js:50923:12) at getSymbolAtLocation (/typescript-5.2.2/lib/tsserver.js:85725:18) at Object.getSymbolAtLocation (/typescript-5.2.2/lib/tsserver.js:47880:21) at /typescript-5.2.2/lib/tsserver.js:162028:36 at forEachImport (/typescript-5.2.2/lib/tsserver.js:162064:7) at findModuleReferences (/typescript-5.2.2/lib/tsserver.js:162027:5) at getReferencedSymbolsForModule (/typescript-5.2.2/lib/tsserver.js:162924:35) at getReferencedSymbolsForModuleIfDeclaredBySourceFile (/typescript-5.2.2/lib/tsserver.js:162864:30) at Object.getReferencedSymbolsForNode (/typescript-5.2.2/lib/tsserver.js:162794:30) at Object.findReferencedSymbols (/typescript-5.2.2/lib/tsserver.js:162385:34) at Object.findReferences (/typescript-5.2.2/lib/tsserver.js:144241:41) at /typescript-5.2.2/lib/tsserver.js:181918:43 at searchPosition (/typescript-5.2.2/lib/tsserver.js:182064:28) at getPerProjectReferences (/typescript-5.2.2/lib/tsserver.js:182041:32) at getReferencesWorker (/typescript-5.2.2/lib/tsserver.js:181910:29) at IOSession.getReferences (/typescript-5.2.2/lib/tsserver.js:183810:24) at references (/typescript-5.2.2/lib/tsserver.js:182337:43) at /typescript-5.2.2/lib/tsserver.js:184838:69 at IOSession.executeWithRequestId (/typescript-5.2.2/lib/tsserver.js:184830:14) at IOSession.executeCommand (/typescript-5.2.2/lib/tsserver.js:184838:29) at IOSession.onMessage (/typescript-5.2.2/lib/tsserver.js:184880:51) at Interface. (/typescript-5.2.2/lib/tsserver.js:186437:14) ```

Repos no longer reporting the error

typescript-bot commented 11 months ago

Server exited prematurely with code unknown and signal SIGABRT

Server exited prematurely with code unknown and signal SIGABRT

Affected repos

mantinedev/mantine Raw error text: RepoResults5/mantinedev.mantine.rawError.txt in the artifact folder

Last few requests

```json {"seq":7935,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/mantine-demos/src/demos/form/Form.demo.rulesValidation.tsx","line":53,"offset":10,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":7936,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/mantine-demos/src/demos/form/Form.demo.rulesValidation.tsx","line":53,"offset":10,"entryNames":["arguments"]}} {"seq":7937,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/mantine-demos/src/demos/form/Form.demo.rulesValidation.tsx","line":58,"offset":20}} {"seq":7938,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/mantine-demos/src/demos/form/Form.demo.rulesValidation.tsx","line":61,"offset":53}} ```

Repro steps

  1. git clone https://github.com/mantinedev/mantine --recurse-submodules
  2. In dir mantine, run git reset --hard 88947083046c2c485b69f3c0ce70e2e326bc09f3
  3. Install packages (exact steps are below, but it might be easier to follow the repo readme)
    1. In dir mantine/docs, run yarn install --ignore-engines --ignore-scripts --silent
    2. In dir mantine, run yarn install --ignore-engines --ignore-scripts --silent
  4. Back in the initial folder, download RepoResults5/mantinedev.mantine.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./mantine ./mantinedev.mantine.replay.txt path/to/tsserver.js
  7. npx tsreplay --help to learn about helpful switches for debugging, logging, etc

typescript-bot commented 11 months ago

Error: Debug Failure. False expression.

Req #3394 - completionInfo
    at consumeTokenAndAdvanceScanner (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170947:13)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170856:9)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170795:9
    at visitNode2 (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30179:18)
    at forEachChildInParameter (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30229:135)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at processChildNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170914:32)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170808:9
    at visitNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30184:14)
    at forEachChildInMethodSignature (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30261:186)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at processChildNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170914:32)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170808:9
    at visitNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30184:14)
    at forEachChildInTypeLiteral (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30294:12)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at processChildNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170914:32)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170808:9
    at visitNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30184:14)
    at forEachChildInUnionOrIntersectionType (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30643:10)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170795:9
    at visitNode2 (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30179:18)
    at forEachChildInParenthesizedTypeOrTypeOperator (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30646:10)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at processChildNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170914:32)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170808:9
    at visitNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30184:14)
    at forEachChildInUnionOrIntersectionType (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30643:10)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170795:9
    at visitNode2 (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30179:18)
    at forEachChildInPropertySignature (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30235:134)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at processChildNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170914:32)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170808:9
    at visitNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30184:14)
    at forEachChildInTypeLiteral (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30294:12)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at processChildNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170914:32)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170808:9
    at visitNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30184:14)
    at forEachChildInUnionOrIntersectionType (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30643:10)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at processChildNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170914:32)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170808:9
    at visitNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30184:14)
    at forEachChildInTypeReference (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30285:49)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170795:9
    at visitNode2 (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30179:18)
    at forEachChildInParameter (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30229:177)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at processChildNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170914:32)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170808:9
    at visitNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30184:14)
    at forEachChildInFunctionType (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30253:111)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170795:9
    at visitNode2 (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30179:18)
    at forEachChildInParenthesizedTypeOrTypeOperator (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30646:10)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at processChildNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170914:32)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170808:9
    at visitNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30184:14)
    at forEachChildInUnionOrIntersectionType (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30643:10)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170795:9
    at visitNode2 (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30179:18)
    at forEachChildInParameter (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30229:177)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)

Affected repos

baidu/amis Raw error text: RepoResults8/baidu.amis.rawError.txt in the artifact folder

Last few requests

```json {"seq":3391,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/amis-core/src/WithStore.tsx","line":42,"offset":5}} {"seq":3392,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/amis-core/src/WithStore.tsx","line":42,"offset":5,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":3393,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/packages/amis-core/src/WithStore.tsx","line":42,"offset":5,"entryNames":["arguments"]}} {"seq":3394,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/amis-core/src/WithStore.tsx","line":48,"offset":1,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

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

typescript-bot commented 11 months ago

TypeError: Cannot read properties of undefined (reading 'sourceFile')

Req #331 - references
    at isDocumentRegistryEntry (/typescript-5.3.0-dev.20231001/lib/tsserver.js:135377:18)
    at getDocumentRegistryEntry (/typescript-5.3.0-dev.20231001/lib/tsserver.js:135453:19)
    at Object.releaseDocumentWithKey (/typescript-5.3.0-dev.20231001/lib/tsserver.js:135548:19)
    at Object.onReleaseOldSourceFile (/typescript-5.3.0-dev.20231001/lib/tsserver.js:144436:24)
    at createProgram (/typescript-5.3.0-dev.20231001/lib/tsserver.js:121030:14)
    at synchronizeHostData (/typescript-5.3.0-dev.20231001/lib/tsserver.js:144394:15)
    at Object.getProgram (/typescript-5.3.0-dev.20231001/lib/tsserver.js:144468:5)
    at ConfiguredProject2.updateGraphWorker (/typescript-5.3.0-dev.20231001/lib/tsserver.js:176849:41)
    at ConfiguredProject2.updateGraph (/typescript-5.3.0-dev.20231001/lib/tsserver.js:176700:32)
    at ConfiguredProject2.updateGraph (/typescript-5.3.0-dev.20231001/lib/tsserver.js:177971:24)
    at updateProjectIfDirty (/typescript-5.3.0-dev.20231001/lib/tsserver.js:178427:35)
    at ConfiguredProject2.getLanguageService (/typescript-5.3.0-dev.20231001/lib/tsserver.js:176311:7)
    at getDefinitionLocation (/typescript-5.3.0-dev.20231001/lib/tsserver.js:181906:32)
    at getPerProjectReferences (/typescript-5.3.0-dev.20231001/lib/tsserver.js:182032:29)
    at getReferencesWorker (/typescript-5.3.0-dev.20231001/lib/tsserver.js:181919:29)
    at IOSession.getReferences (/typescript-5.3.0-dev.20231001/lib/tsserver.js:183826:24)
    at references (/typescript-5.3.0-dev.20231001/lib/tsserver.js:182350:43)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:184857:69
    at IOSession.executeWithRequestId (/typescript-5.3.0-dev.20231001/lib/tsserver.js:184849:14)
    at IOSession.executeCommand (/typescript-5.3.0-dev.20231001/lib/tsserver.js:184857:29)
    at IOSession.onMessage (/typescript-5.3.0-dev.20231001/lib/tsserver.js:184899:51)
    at Interface.<anonymous> (/typescript-5.3.0-dev.20231001/lib/tsserver.js:186456:14)

Affected repos

n8n-io/n8n Raw error text: RepoResults2/n8n-io.n8n.rawError.txt in the artifact folder

Last few requests

```json {"seq":328,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/packages/cli/src/auth/jwt.ts","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":329,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/packages/cli/src/auth/jwt.ts"}} {"seq":330,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"@PROJECT_ROOT@/packages/cli/src/auth/jwt.ts","textChanges":[{"newText":" //comment","start":{"line":1,"offset":32},"end":{"line":1,"offset":32}}]}],"closedFiles":[],"openFiles":[]}} {"seq":331,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/cli/src/auth/jwt.ts","line":4,"offset":22}} ```

Repro steps

  1. git clone https://github.com/n8n-io/n8n --recurse-submodules
  2. In dir n8n, run git reset --hard d1b6c7fd79c9232c009087edbdce7dc7f84fd98d
  3. In dir n8n, run pnpm install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent
  4. Back in the initial folder, download RepoResults2/n8n-io.n8n.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./n8n ./n8n-io.n8n.replay.txt path/to/tsserver.js
  7. npx tsreplay --help to learn about helpful switches for debugging, logging, etc
typescript-bot commented 11 months ago

Error: Debug Failure. False expression.

Req #3451 - completionInfo
    at consumeTokenAndAdvanceScanner (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170947:13)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170856:9)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170795:9
    at visitNode2 (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30179:18)
    at forEachChildInPropertySignature (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30235:92)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at processChildNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170914:32)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170808:9
    at visitNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30184:14)
    at forEachChildInTypeLiteral (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30294:12)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at processChildNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170914:32)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170808:9
    at visitNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30184:14)
    at forEachChildInUnionOrIntersectionType (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30643:10)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170795:9
    at visitNode2 (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30179:18)
    at forEachChildInParenthesizedTypeOrTypeOperator (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30646:10)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170795:9
    at visitNode2 (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30179:18)
    at forEachChildInIndexedAccessType (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30319:12)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170795:9
    at visitNode2 (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30179:18)
    at forEachChildInConditionalType (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30305:90)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170795:9
    at visitNode2 (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30179:18)
    at forEachChildInTypeParameter (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30220:131)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at processChildNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170871:7)
    at processChildNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170914:32)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170808:9
    at visitNodes (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30184:14)
    at forEachChildInMethodDeclaration (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30258:221)
    at forEachChild (/typescript-5.3.0-dev.20231001/lib/tsserver.js:30696:35)
    at processNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170792:5)
    at formatSpanWorker (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170594:5)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:170534:105
    at getFormattingScanner (/typescript-5.3.0-dev.20231001/lib/tsserver.js:169337:15)
    at Object.formatNodeGivenIndentation (/typescript-5.3.0-dev.20231001/lib/tsserver.js:170534:10)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:157945:36
    at flatMap (/typescript-5.3.0-dev.20231001/lib/tsserver.js:2597:17)
    at Object.printAndFormatSnippetList (/typescript-5.3.0-dev.20231001/lib/tsserver.js:157943:21)
    at getEntryForMemberCompletion (/typescript-5.3.0-dev.20231001/lib/tsserver.js:157706:28)
    at createCompletionEntry (/typescript-5.3.0-dev.20231001/lib/tsserver.js:157530:35)
    at getCompletionEntriesFromSymbols (/typescript-5.3.0-dev.20231001/lib/tsserver.js:158114:19)
    at completionInfoFromData (/typescript-5.3.0-dev.20231001/lib/tsserver.js:157186:23)
    at Object.getCompletionsAtPosition (/typescript-5.3.0-dev.20231001/lib/tsserver.js:156728:24)
    at Object.getCompletionsAtPosition2 [as getCompletionsAtPosition] (/typescript-5.3.0-dev.20231001/lib/tsserver.js:144566:35)
    at IOSession.getCompletions (/typescript-5.3.0-dev.20231001/lib/tsserver.js:184073:54)
    at completionInfo (/typescript-5.3.0-dev.20231001/lib/tsserver.js:182469:43)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:184857:69
    at IOSession.executeWithRequestId (/typescript-5.3.0-dev.20231001/lib/tsserver.js:184849:14)
    at IOSession.executeCommand (/typescript-5.3.0-dev.20231001/lib/tsserver.js:184857:29)
    at IOSession.onMessage (/typescript-5.3.0-dev.20231001/lib/tsserver.js:184899:51)
    at Interface.<anonymous> (/typescript-5.3.0-dev.20231001/lib/tsserver.js:186456:14)

Affected repos

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

Last few requests

```json {"seq":3448,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/dist/index.d.ts","line":9373,"offset":5}} {"seq":3449,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/dist/index.d.ts","line":9373,"offset":5,"includeExternalModuleExports":false,"triggerKind":1}} {"seq":3450,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/dist/index.d.ts","line":9373,"offset":5,"entryNames":["@abstract"]}} {"seq":3451,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/dist/index.d.ts","line":9378,"offset":39,"includeExternalModuleExports":false,"triggerKind":1}} ```

Repro steps

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

Error: start < 0

Req #2324 - references
    at createTextSpan (/typescript-5.3.0-dev.20231001/lib/tsserver.js:13626:11)
    at createTextSpanFromBounds (/typescript-5.3.0-dev.20231001/lib/tsserver.js:13634:10)
    at getErrorSpanForNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:16399:10)
    at createDiagnosticForNodeFromMessageChain (/typescript-5.3.0-dev.20231001/lib/tsserver.js:16236:16)
    at resolveExternalModule (/typescript-5.3.0-dev.20231001/lib/tsserver.js:51214:31)
    at resolveExternalModuleNameWorker (/typescript-5.3.0-dev.20231001/lib/tsserver.js:51112:61)
    at resolveExternalModuleName (/typescript-5.3.0-dev.20231001/lib/tsserver.js:51109:12)
    at getSymbolAtLocation (/typescript-5.3.0-dev.20231001/lib/tsserver.js:86107:18)
    at Object.getSymbolAtLocation (/typescript-5.3.0-dev.20231001/lib/tsserver.js:47988:21)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:161601:36
    at forEachImport (/typescript-5.3.0-dev.20231001/lib/tsserver.js:161637:7)
    at findModuleReferences (/typescript-5.3.0-dev.20231001/lib/tsserver.js:161600:5)
    at getReferencedSymbolsForModule (/typescript-5.3.0-dev.20231001/lib/tsserver.js:162491:35)
    at getReferencedSymbolsForModuleIfDeclaredBySourceFile (/typescript-5.3.0-dev.20231001/lib/tsserver.js:162431:30)
    at Object.getReferencedSymbolsForNode (/typescript-5.3.0-dev.20231001/lib/tsserver.js:162361:30)
    at Object.findReferencedSymbols (/typescript-5.3.0-dev.20231001/lib/tsserver.js:161952:34)
    at Object.findReferences (/typescript-5.3.0-dev.20231001/lib/tsserver.js:144720:41)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:181927:43
    at searchPosition (/typescript-5.3.0-dev.20231001/lib/tsserver.js:182077:28)
    at getPerProjectReferences (/typescript-5.3.0-dev.20231001/lib/tsserver.js:182054:32)
    at getReferencesWorker (/typescript-5.3.0-dev.20231001/lib/tsserver.js:181919:29)
    at IOSession.getReferences (/typescript-5.3.0-dev.20231001/lib/tsserver.js:183826:24)
    at references (/typescript-5.3.0-dev.20231001/lib/tsserver.js:182350:43)
    at /typescript-5.3.0-dev.20231001/lib/tsserver.js:184857:69
    at IOSession.executeWithRequestId (/typescript-5.3.0-dev.20231001/lib/tsserver.js:184849:14)
    at IOSession.executeCommand (/typescript-5.3.0-dev.20231001/lib/tsserver.js:184857:29)
    at IOSession.onMessage (/typescript-5.3.0-dev.20231001/lib/tsserver.js:184899:51)
    at Interface.<anonymous> (/typescript-5.3.0-dev.20231001/lib/tsserver.js:186456:14)

Affected repos

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

Last few requests

```json {"seq":2321,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/packages/core/test/scxml.test.ts"}},"skipDestructiveCodeActions":true}} {"seq":2322,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/packages/core/test/scxml.test.ts"}},"skipDestructiveCodeActions":false}} {"seq":2323,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/packages/core/test/scxml.test.ts"}} {"seq":2324,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/core/test/scxml.test.ts","line":1,"offset":36}} ```

Repro steps

  1. git clone https://github.com/statelyai/xstate --recurse-submodules
  2. In dir xstate, run git reset --hard 9f69d46a645dfe8060180a34fcfe1a5c2ab08fa2
  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/fetch, run yarn install --ignore-engines --ignore-scripts --silent
    9. In dir xstate/examples/friends-list-react, run yarn install --ignore-engines --ignore-scripts --silent
    10. In dir xstate/examples/mongodb-persisted-state, run yarn install --ignore-engines --ignore-scripts --silent
    11. In dir xstate/examples/persisted-donut-maker, run yarn install --ignore-engines --ignore-scripts --silent
    12. In dir xstate/examples/snake-react, run yarn install --ignore-engines --ignore-scripts --silent
    13. In dir xstate/examples/stopwatch, run yarn install --ignore-engines --ignore-scripts --silent
    14. In dir xstate/examples/tic-tac-toe-react, run yarn install --ignore-engines --ignore-scripts --silent
    15. In dir xstate/examples/tiles, run yarn install --ignore-engines --ignore-scripts --silent
    16. In dir xstate/examples/timer, run yarn install --ignore-engines --ignore-scripts --silent
    17. In dir xstate/examples/todomvc-react, run yarn install --ignore-engines --ignore-scripts --silent
    18. In dir xstate/examples/toggle, run yarn install --ignore-engines --ignore-scripts --silent
    19. In dir xstate/examples/workflow-accumulate-room-readings, run yarn install --ignore-engines --ignore-scripts --silent
    20. In dir xstate/examples/workflow-applicant-request, run yarn install --ignore-engines --ignore-scripts --silent
    21. In dir xstate/examples/workflow-async-function, run yarn install --ignore-engines --ignore-scripts --silent
    22. In dir xstate/examples/workflow-async-subflow, run yarn install --ignore-engines --ignore-scripts --silent
    23. In dir xstate/examples/workflow-book-lending, run yarn install --ignore-engines --ignore-scripts --silent
    24. In dir xstate/examples/workflow-car-auction-bids, run yarn install --ignore-engines --ignore-scripts --silent
    25. In dir xstate/examples/workflow-car-vitals, run yarn install --ignore-engines --ignore-scripts --silent
    26. In dir xstate/examples/workflow-check-inbox, run yarn install --ignore-engines --ignore-scripts --silent
    27. In dir xstate/examples/workflow-credit-check, run yarn install --ignore-engines --ignore-scripts --silent
    28. In dir xstate/examples/workflow-event-based-service, run yarn install --ignore-engines --ignore-scripts --silent
    29. In dir xstate/examples/workflow-event-based, run yarn install --ignore-engines --ignore-scripts --silent
    30. In dir xstate/examples/workflow-event-greeting, run yarn install --ignore-engines --ignore-scripts --silent
    31. In dir xstate/examples/workflow-filling-water, run yarn install --ignore-engines --ignore-scripts --silent
    32. In dir xstate/examples/workflow-finalize-college-app, run yarn install --ignore-engines --ignore-scripts --silent
    33. In dir xstate/examples/workflow-greeting, run yarn install --ignore-engines --ignore-scripts --silent
    34. In dir xstate/examples/workflow-hello, run yarn install --ignore-engines --ignore-scripts --silent
    35. In dir xstate/examples/workflow-math-problem, run yarn install --ignore-engines --ignore-scripts --silent
    36. In dir xstate/examples/workflow-monitor-job, run yarn install --ignore-engines --ignore-scripts --silent
    37. In dir xstate/examples/workflow-monitor-patient, run yarn install --ignore-engines --ignore-scripts --silent
    38. In dir xstate/examples/workflow-new-patient-onboarding, run yarn install --ignore-engines --ignore-scripts --silent
    39. In dir xstate/examples/workflow-parallel, run yarn install --ignore-engines --ignore-scripts --silent
    40. In dir xstate/examples/workflow-provision-orders, run yarn install --ignore-engines --ignore-scripts --silent
    41. In dir xstate/examples/workflow-purchase-order-deadline, run yarn install --ignore-engines --ignore-scripts --silent
    42. In dir xstate/examples/workflow-reusing-functions, run yarn install --ignore-engines --ignore-scripts --silent
    43. In dir xstate/examples/workflow-send-cloudevent, run yarn install --ignore-engines --ignore-scripts --silent
    44. In dir xstate, run yarn install --ignore-engines --ignore-scripts --silent
    45. In dir xstate/templates/react-ts, run yarn install --ignore-engines --ignore-scripts --silent
    46. In dir xstate/templates/svelte-ts, run pnpm install --no-frozen-lockfile --prefer-offline --ignore-scripts --reporter=silent
    47. In dir xstate/templates/vanilla-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