microsoft / TypeScript

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

[ServerErrors][TypeScript] 5.0.0-dev.20230122 #52361

Closed typescript-bot closed 1 year ago

typescript-bot commented 1 year ago

The following errors were reported by 5.0.0-dev.20230122 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 | 3 | | Detected no interesting changes | 185 | | Git clone failed | 1 | | Unknown failure | 11 |

Investigation Status

Repo Errors Outcome
BuilderIO/qwik 1
pubkey/rxdb 1
redwoodjs/redwood 1
typescript-bot commented 1 year ago

BuilderIO/qwik

:warning: Note that typescript-4.9.4 also had errors :warning: ``` Req #7310 - references at createTextSpan (/typescript-4.9.4/lib/tsserver.js:12557:19) at Object.createTextSpanFromBounds (/typescript-4.9.4/lib/tsserver.js:12566:16) at getTextSpan (/typescript-4.9.4/lib/tsserver.js:140416:23) at entryToDocumentSpan (/typescript-4.9.4/lib/tsserver.js:140313:32) at toReferenceEntry (/typescript-4.9.4/lib/tsserver.js:140299:32) at toReferencedSymbolEntry (/typescript-4.9.4/lib/tsserver.js:140293:34) at /typescript-4.9.4/lib/tsserver.js:140153:70 at /typescript-4.9.4/lib/tsserver.js:140153:44 at Object.mapDefined (/typescript-4.9.4/lib/tsserver.js:621:30) at Object.findReferencedSymbols (/typescript-4.9.4/lib/tsserver.js:140148:85) at Object.findReferences (/typescript-4.9.4/lib/tsserver.js:169280:41) at /typescript-4.9.4/lib/tsserver.js:179452:53 at searchPosition (/typescript-4.9.4/lib/tsserver.js:179649:38) at getPerProjectReferences (/typescript-4.9.4/lib/tsserver.js:179617:42) at getReferencesWorker (/typescript-4.9.4/lib/tsserver.js:179449:37) at IOSession.Session.getReferences (/typescript-4.9.4/lib/tsserver.js:181056:34) at Session.handlers.ts.Map.ts.getEntries._a. (/typescript-4.9.4/lib/tsserver.js:179889:61) at /typescript-4.9.4/lib/tsserver.js:182024:96 at IOSession.Session.executeWithRequestId (/typescript-4.9.4/lib/tsserver.js:182015:28) at IOSession.Session.executeCommand (/typescript-4.9.4/lib/tsserver.js:182024:41) at IOSession.Session.onMessage (/typescript-4.9.4/lib/tsserver.js:182052:35) at Interface. (/typescript-4.9.4/lib/tsserver.js:186178:31) ```
Req #7310 - references
    at NodeObject.assertHasRealPosition (/typescript-5.0.0-dev.20230122/lib/tsserver.js:135857:11)
    at NodeObject.getStart (/typescript-5.0.0-dev.20230122/lib/tsserver.js:135863:10)
    at getTextSpan (/typescript-5.0.0-dev.20230122/lib/tsserver.js:155025:21)
    at entryToDocumentSpan (/typescript-5.0.0-dev.20230122/lib/tsserver.js:154933:22)
    at toReferenceEntry (/typescript-5.0.0-dev.20230122/lib/tsserver.js:154917:24)
    at toReferencedSymbolEntry (/typescript-5.0.0-dev.20230122/lib/tsserver.js:154908:26)
    at /typescript-5.0.0-dev.20230122/lib/tsserver.js:154763:41
    at /typescript-5.0.0-dev.20230122/lib/tsserver.js:154763:30
    at mapDefined (/typescript-5.0.0-dev.20230122/lib/tsserver.js:2713:22)
    at Object.findReferencedSymbols (/typescript-5.0.0-dev.20230122/lib/tsserver.js:154759:69)
    at Object.findReferences (/typescript-5.0.0-dev.20230122/lib/tsserver.js:137206:41)
    at /typescript-5.0.0-dev.20230122/lib/tsserver.js:176170:43
    at searchPosition (/typescript-5.0.0-dev.20230122/lib/tsserver.js:176312:28)
    at getPerProjectReferences (/typescript-5.0.0-dev.20230122/lib/tsserver.js:176289:32)
    at getReferencesWorker (/typescript-5.0.0-dev.20230122/lib/tsserver.js:176162:29)
    at IOSession.getReferences (/typescript-5.0.0-dev.20230122/lib/tsserver.js:178041:24)
    at references (/typescript-5.0.0-dev.20230122/lib/tsserver.js:176585:43)
    at /typescript-5.0.0-dev.20230122/lib/tsserver.js:179057:69
    at IOSession.executeWithRequestId (/typescript-5.0.0-dev.20230122/lib/tsserver.js:179049:14)
    at IOSession.executeCommand (/typescript-5.0.0-dev.20230122/lib/tsserver.js:179057:29)
    at IOSession.onMessage (/typescript-5.0.0-dev.20230122/lib/tsserver.js:179099:51)
    at Interface.<anonymous> (/typescript-5.0.0-dev.20230122/lib/tsserver.js:180550:14)

That is a filtered view of the text. To see the raw error text, go to RepoResults4/BuilderIO.qwik.rawError.txt in the artifact folder

Last few requests

```json {"seq":7307,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"@PROJECT_ROOT@/packages/qwik/src/core/state/context.ts","textChanges":[{"newText":" //comment","start":{"line":1,"offset":65},"end":{"line":1,"offset":65}}]}],"closedFiles":[],"openFiles":[]}} {"seq":7308,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/qwik/src/core/state/context.ts","line":6,"offset":7,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":2,"triggerCharacter":" "}} {"seq":7309,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/qwik/src/core/state/context.ts","line":15,"offset":7}} {"seq":7310,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/qwik/src/core/state/context.ts","line":18,"offset":31}} ```

Repro Steps

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

pubkey/rxdb

Req #3415 - definitionAndBoundSpan
    at contains (/typescript-5.0.0-dev.20230122/lib/tsserver.js:2528:21)
    at getSuggestedLibForNonExistentProperty (/typescript-5.0.0-dev.20230122/lib/tsserver.js:72668:50)
    at reportNonexistentProperty (/typescript-5.0.0-dev.20230122/lib/tsserver.js:72617:31)
    at checkPropertyAccessExpressionOrQualifiedName (/typescript-5.0.0-dev.20230122/lib/tsserver.js:72450:11)
    at checkPropertyAccessExpression (/typescript-5.0.0-dev.20230122/lib/tsserver.js:72241:94)
    at getSymbolOfNameOrPropertyAccessExpression (/typescript-5.0.0-dev.20230122/lib/tsserver.js:83761:11)
    at getSymbolAtLocation (/typescript-5.0.0-dev.20230122/lib/tsserver.js:83886:18)
    at Object.getSymbolAtLocation (/typescript-5.0.0-dev.20230122/lib/tsserver.js:46907:21)
    at getSymbol (/typescript-5.0.0-dev.20230122/lib/tsserver.js:156791:26)
    at getDefinitionAtPosition (/typescript-5.0.0-dev.20230122/lib/tsserver.js:156594:43)
    at Object.getDefinitionAndBoundSpan (/typescript-5.0.0-dev.20230122/lib/tsserver.js:156775:23)
    at Object.getDefinitionAndBoundSpan2 [as getDefinitionAndBoundSpan] (/typescript-5.0.0-dev.20230122/lib/tsserver.js:137140:38)
    at IOSession.getDefinitionAndBoundSpan (/typescript-5.0.0-dev.20230122/lib/tsserver.js:177554:73)
    at definitionAndBoundSpan (/typescript-5.0.0-dev.20230122/lib/tsserver.js:176548:43)
    at /typescript-5.0.0-dev.20230122/lib/tsserver.js:179057:69
    at IOSession.executeWithRequestId (/typescript-5.0.0-dev.20230122/lib/tsserver.js:179049:14)
    at IOSession.executeCommand (/typescript-5.0.0-dev.20230122/lib/tsserver.js:179057:29)
    at IOSession.onMessage (/typescript-5.0.0-dev.20230122/lib/tsserver.js:179099:51)
    at Interface.<anonymous> (/typescript-5.0.0-dev.20230122/lib/tsserver.js:180550:14)

That is a filtered view of the text. To see the raw error text, go to RepoResults3/pubkey.rxdb.rawError.txt in the artifact folder

Last few requests

```json {"seq":3412,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/dist/lib/rx-query.js","line":197,"offset":6,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}} {"seq":3413,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/dist/lib/rx-query.js","line":197,"offset":6,"entryNames":["@abstract"]}} {"seq":3414,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/dist/lib/rx-query.js","line":197,"offset":40,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":2,"triggerCharacter":" "}} {"seq":3415,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/dist/lib/rx-query.js","line":203,"offset":19}} ```

Repro Steps

  1. git clone https://github.com/pubkey/rxdb --recurse-submodules
  2. In dir rxdb, run git reset --hard 48ddf4b172581438953042f8d1527332d4f3fd52
  3. Install packages (exact steps are below, but it might be easier to follow the repo readme)
    1. In dir rxdb/docs-src/files/logo, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    2. In dir rxdb/docs/files/files/logo, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    3. In dir rxdb/docs/files/logo, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    4. In dir rxdb/examples/angular, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    5. In dir rxdb/examples/electron, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    6. In dir rxdb/examples/flutter/javascript, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    7. In dir rxdb/examples/graphql, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    8. In dir rxdb/examples/ionic2, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    9. In dir rxdb/examples/node, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    10. In dir rxdb/examples/react-native, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    11. In dir rxdb/examples/react, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    12. In dir rxdb/examples/supabase, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    13. In dir rxdb/examples/svelte, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    14. In dir rxdb/examples/vanilla, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    15. In dir rxdb/examples/vite-vanilla-ts, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    16. In dir rxdb/examples/vue, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    17. In dir rxdb, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    18. In dir rxdb/plugins/attachments, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    19. In dir rxdb/plugins/backup, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    20. In dir rxdb/plugins/cleanup, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    21. In dir rxdb/plugins/crdt, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    22. In dir rxdb/plugins/dev-mode, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    23. In dir rxdb/plugins/electron, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    24. In dir rxdb/plugins/encryption, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    25. In dir rxdb/plugins/flutter, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    26. In dir rxdb/plugins/json-dump, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    27. In dir rxdb/plugins/key-compression, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    28. In dir rxdb/plugins/leader-election, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    29. In dir rxdb/plugins/local-documents, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    30. In dir rxdb/plugins/migration, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    31. In dir rxdb/plugins/query-builder, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    32. In dir rxdb/plugins/replication-couchdb-new, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    33. In dir rxdb/plugins/replication-couchdb, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    34. In dir rxdb/plugins/replication-firestore, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    35. In dir rxdb/plugins/replication-graphql, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    36. In dir rxdb/plugins/replication-p2p, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    37. In dir rxdb/plugins/replication-websocket, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    38. In dir rxdb/plugins/replication, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    39. In dir rxdb/plugins/server-couchdb, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    40. In dir rxdb/plugins/storage-dexie, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    41. In dir rxdb/plugins/storage-foundationdb, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    42. In dir rxdb/plugins/storage-lokijs, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    43. In dir rxdb/plugins/storage-memory, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    44. In dir rxdb/plugins/storage-remote-websocket, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    45. In dir rxdb/plugins/storage-remote, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    46. In dir rxdb/plugins/update, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    47. In dir rxdb/plugins/utils, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    48. In dir rxdb/plugins/validate-ajv, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    49. In dir rxdb/plugins/validate-is-my-json-valid, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    50. In dir rxdb/plugins/validate-z-schema, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    51. In dir rxdb/test/tutorials, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  4. Back in the initial folder, download RepoResults3/pubkey.rxdb.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./rxdb ./pubkey.rxdb.replay.txt path/to/tsserver.js
  7. npx tsreplay --help to learn about helpful switches for debugging, logging, etc

typescript-bot commented 1 year ago

redwoodjs/redwood

:warning: Note that typescript-4.9.4 also had errors :warning: ``` Exited unexpectedly with signal SIGABRT ```
Server exited prematurely with code unknown and signal SIGABRT

That is a filtered view of the text. To see the raw error text, go to RepoResults3/redwoodjs.redwood.rawError.txt in the artifact folder

Last few requests

```json {"seq":2333,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/packages/auth-providers/clerk/api/src/index.ts"}} {"seq":2334,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"@PROJECT_ROOT@/packages/auth-providers/clerk/api/src/index.ts","textChanges":[{"newText":" //comment","start":{"line":1,"offset":40},"end":{"line":1,"offset":40}}]}],"closedFiles":[],"openFiles":[]}} {"seq":2335,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/packages/auth-providers/azureActiveDirectory/web/src/index.ts"],"openFiles":[]}} {"seq":2336,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/packages/auth-providers/clerk/setup/jest.config.js","projectRootPath":"@PROJECT_ROOT@"}]}} ```

Repro Steps

  1. git clone https://github.com/redwoodjs/redwood --recurse-submodules
  2. In dir redwood, run git reset --hard 729895017d5ce0b326e827bd9fe1669c10f8fc17
  3. Install packages (exact steps are below, but it might be easier to follow the repo readme)
    1. In dir redwood/docs, run yarn install --no-immutable --mode=skip-build
    2. In dir redwood, run yarn install --no-immutable --mode=skip-build
    3. In dir redwood/tasks/check, run yarn install --no-immutable --mode=skip-build
  4. Back in the initial folder, download RepoResults3/redwoodjs.redwood.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./redwood ./redwoodjs.redwood.replay.txt path/to/tsserver.js
  7. npx tsreplay --help to learn about helpful switches for debugging, logging, etc