microsoft / TypeScript

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

[ServerErrors][JavaScript] 4.9.0-dev.20220918 #50836

Closed typescript-bot closed 2 years ago

typescript-bot commented 2 years ago

The following errors were reported by 4.9.0-dev.20220918 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 191 of 200 visited repos | Outcome | Count | |---------|-------| | Detected interesting changes | 10 | | Detected no interesting changes | 181 | | Language service disabled in new TS | 1 | | Unknown failure | 8 |

cypress-io/cypress

:warning: Note that typescript-4.8.3 also had errors :warning: ``` Req #715 - updateOpen at Object.ThrowNoProject (/typescript-4.8.3/lib/tsserver.js:170301:23) at ScriptInfo.getDefaultProject (/typescript-4.8.3/lib/tsserver.js:171144:46) at ProjectService.telemetryOnOpenFile (/typescript-4.8.3/lib/tsserver.js:176529:42) at /typescript-4.8.3/lib/tsserver.js:176611:76 at ProjectService.applyChangesInOpenFiles (/typescript-4.8.3/lib/tsserver.js:176611:37) at Session.handlers.ts.Map.ts.getEntries._a. (/typescript-4.8.3/lib/tsserver.js:177974:46) at /typescript-4.8.3/lib/tsserver.js:180166:96 at IOSession.Session.executeWithRequestId (/typescript-4.8.3/lib/tsserver.js:180157:28) at IOSession.Session.executeCommand (/typescript-4.8.3/lib/tsserver.js:180166:41) at IOSession.Session.onMessage (/typescript-4.8.3/lib/tsserver.js:180194:35) at Interface. (/typescript-4.8.3/lib/tsserver.js:184330:31) ```
Req #715 - updateOpen
    at Object.ThrowNoProject (/typescript-4.9.0-dev.20220918/lib/tsserver.js:171421:23)
    at ScriptInfo.getDefaultProject (/typescript-4.9.0-dev.20220918/lib/tsserver.js:172264:46)
    at ProjectService.telemetryOnOpenFile (/typescript-4.9.0-dev.20220918/lib/tsserver.js:177649:42)
    at /typescript-4.9.0-dev.20220918/lib/tsserver.js:177731:76
    at ProjectService.applyChangesInOpenFiles (/typescript-4.9.0-dev.20220918/lib/tsserver.js:177731:37)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179094:46)
    at /typescript-4.9.0-dev.20220918/lib/tsserver.js:181286:96
    at IOSession.Session.executeWithRequestId (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181277:28)
    at IOSession.Session.executeCommand (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181286:41)
    at IOSession.Session.onMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181314:35)
    at Interface.<anonymous> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:185436:31)

Last few requests

```json {"seq":712,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/npm/react/cypress/component/advanced/hooks/counter-with-hooks.jsx"}},"skipDestructiveCodeActions":true}} {"seq":713,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/npm/react/cypress/component/advanced/hooks/counter-with-hooks.jsx"}} {"seq":714,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/npm/eslint-plugin-dev/test/fixtures/skip-comment-fail.js"],"openFiles":[]}} {"seq":715,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/npm/react/cypress/component/advanced/hooks/counter2-with-hooks.cy.jsx","projectRootPath":"@PROJECT_ROOT@"}]}} ```

Repro Steps

  1. git clone https://github.com/cypress-io/cypress
  2. In dir cypress, run git reset --hard 466be9f1f0cbb843684361a9900832814353e3c0
  3. Download RepoResults2/cypress-io.cypress.replay.txt from the artifact folder
  4. npm install --no-save @typescript/server-replay
  5. npx tsreplay ./cypress ./cypress-io.cypress.replay.txt path/to/tsserver.js

gatsbyjs/gatsby

:warning: Note that typescript-4.8.3 also had errors :warning: ``` Req #3944 - references at Object.ThrowNoProject (/typescript-4.8.3/lib/tsserver.js:170301:23) at IOSession.Session.getProjects (/typescript-4.8.3/lib/tsserver.js:179137:42) at IOSession.Session.getReferences (/typescript-4.8.3/lib/tsserver.js:179193:37) at Session.handlers.ts.Map.ts.getEntries._a. (/typescript-4.8.3/lib/tsserver.js:178032:61) at /typescript-4.8.3/lib/tsserver.js:180166:96 at IOSession.Session.executeWithRequestId (/typescript-4.8.3/lib/tsserver.js:180157:28) at IOSession.Session.executeCommand (/typescript-4.8.3/lib/tsserver.js:180166:41) at IOSession.Session.onMessage (/typescript-4.8.3/lib/tsserver.js:180194:35) at Interface. (/typescript-4.8.3/lib/tsserver.js:184330:31) ```
Req #3944 - references
    at Object.ThrowNoProject (/typescript-4.9.0-dev.20220918/lib/tsserver.js:171421:23)
    at IOSession.Session.getProjects (/typescript-4.9.0-dev.20220918/lib/tsserver.js:180257:42)
    at IOSession.Session.getReferences (/typescript-4.9.0-dev.20220918/lib/tsserver.js:180313:37)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179152:61)
    at /typescript-4.9.0-dev.20220918/lib/tsserver.js:181286:96
    at IOSession.Session.executeWithRequestId (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181277:28)
    at IOSession.Session.executeCommand (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181286:41)
    at IOSession.Session.onMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181314:35)
    at Interface.<anonymous> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:185436:31)

Last few requests

```json {"seq":3941,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/gatsby-plugin-image/src/babel-plugin-parse-static-images.ts","line":85,"offset":1}} {"seq":3942,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/packages/gatsby-plugin-google-gtag/index.d.ts"],"openFiles":[]}} {"seq":3943,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/packages/gatsby-plugin-image/src/components/__tests__/gatsby-image.browser.tsx","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":3944,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/gatsby-plugin-image/src/components/__tests__/gatsby-image.browser.tsx","line":2,"offset":4}} ```

Repro Steps

  1. git clone https://github.com/gatsbyjs/gatsby
  2. In dir gatsby, run git reset --hard e91d5a6a46eec48820ab89cecc7ee3f0d2dc1780
  3. Download RepoResults1/gatsbyjs.gatsby.replay.txt from the artifact folder
  4. npm install --no-save @typescript/server-replay
  5. npx tsreplay ./gatsby ./gatsbyjs.gatsby.replay.txt path/to/tsserver.js

GoogleChrome/lighthouse

:warning: Note that typescript-4.8.3 also had errors :warning: ``` Req #25071 - references at formatMessage (/typescript-4.8.3/lib/tsserver.js:177437:29) at IOSession.Session.writeMessage (/typescript-4.8.3/lib/tsserver.js:178513:31) at IOSession.Session.send (/typescript-4.8.3/lib/tsserver.js:178510:22) at IOSession.Session.doOutput (/typescript-4.8.3/lib/tsserver.js:178563:22) at IOSession.Session.onMessage (/typescript-4.8.3/lib/tsserver.js:180209:30) at Interface. (/typescript-4.8.3/lib/tsserver.js:184330:31) ```
Req #25071 - references
    at formatMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:178557:29)
    at IOSession.Session.writeMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179633:31)
    at IOSession.Session.send (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179630:22)
    at IOSession.Session.doOutput (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179683:22)
    at IOSession.Session.onMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181329:30)
    at Interface.<anonymous> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:185436:31)

Last few requests

```json {"seq":25068,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/core/test/fixtures/source-maps/coursehero-bundle-1.js","line":1,"offset":843146}} {"seq":25069,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/core/test/fixtures/source-maps/coursehero-bundle-1.js","line":1,"offset":843409,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}} {"seq":25070,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/core/test/fixtures/source-maps/coursehero-bundle-1.js","line":1,"offset":844874}} {"seq":25071,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/core/test/fixtures/source-maps/coursehero-bundle-1.js","line":1,"offset":845297}} ```

Repro Steps

  1. git clone https://github.com/GoogleChrome/lighthouse
  2. In dir lighthouse, run git reset --hard 0ce84c0feb444964dd8fe1555230e1efd785993d
  3. Download RepoResults3/GoogleChrome.lighthouse.replay.txt from the artifact folder
  4. npm install --no-save @typescript/server-replay
  5. npx tsreplay ./lighthouse ./GoogleChrome.lighthouse.replay.txt path/to/tsserver.js

jgraph/drawio

:warning: Note that typescript-4.8.3 also had errors :warning: ``` Req #25127 - references at formatMessage (/typescript-4.8.3/lib/tsserver.js:177437:29) at IOSession.Session.writeMessage (/typescript-4.8.3/lib/tsserver.js:178513:31) at IOSession.Session.send (/typescript-4.8.3/lib/tsserver.js:178510:22) at IOSession.Session.doOutput (/typescript-4.8.3/lib/tsserver.js:178563:22) at IOSession.Session.onMessage (/typescript-4.8.3/lib/tsserver.js:180209:30) at Interface. (/typescript-4.8.3/lib/tsserver.js:184330:31) ```
Req #25127 - references
    at formatMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:178557:29)
    at IOSession.Session.writeMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179633:31)
    at IOSession.Session.send (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179630:22)
    at IOSession.Session.doOutput (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179683:22)
    at IOSession.Session.onMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181329:30)
    at Interface.<anonymous> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:185436:31)

Last few requests

```json {"seq":25124,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/main/webapp/js/extensions.min.js","line":1743,"offset":16536}} {"seq":25125,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/main/webapp/js/extensions.min.js","line":1743,"offset":17459,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":2,"triggerCharacter":"."}} {"seq":25126,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/src/main/webapp/js/extensions.min.js","line":1743,"offset":18300}} {"seq":25127,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/main/webapp/js/extensions.min.js","line":1743,"offset":18322}} ```

Repro Steps

  1. git clone https://github.com/jgraph/drawio
  2. In dir drawio, run git reset --hard ea012baba6fb2e903797fa6306833ca4f31ab361
  3. Download RepoResults2/jgraph.drawio.replay.txt from the artifact folder
  4. npm install --no-save @typescript/server-replay
  5. npx tsreplay ./drawio ./jgraph.drawio.replay.txt path/to/tsserver.js

Kong/insomnia

:warning: Note that typescript-4.8.3 also had errors :warning: ``` Req #17933 - references at formatMessage (/typescript-4.8.3/lib/tsserver.js:177437:29) at IOSession.Session.writeMessage (/typescript-4.8.3/lib/tsserver.js:178513:31) at IOSession.Session.send (/typescript-4.8.3/lib/tsserver.js:178510:22) at IOSession.Session.doOutput (/typescript-4.8.3/lib/tsserver.js:178563:22) at IOSession.Session.onMessage (/typescript-4.8.3/lib/tsserver.js:180209:30) at Interface. (/typescript-4.8.3/lib/tsserver.js:184330:31) ```
Req #17933 - references
    at formatMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:178557:29)
    at IOSession.Session.writeMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179633:31)
    at IOSession.Session.send (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179630:22)
    at IOSession.Session.doOutput (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179683:22)
    at IOSession.Session.onMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181329:30)
    at Interface.<anonymous> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:185436:31)

Last few requests

```json {"seq":17930,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/insomnia/bin/yarn-standalone.js","line":116816,"offset":130403,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":2,"triggerCharacter":"\""}} {"seq":17931,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/insomnia/bin/yarn-standalone.js","line":116816,"offset":130603}} {"seq":17932,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/insomnia/bin/yarn-standalone.js","line":116816,"offset":130722,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}} {"seq":17933,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/insomnia/bin/yarn-standalone.js","line":116816,"offset":131101}} ```

Repro Steps

  1. git clone https://github.com/Kong/insomnia
  2. In dir insomnia, run git reset --hard d28d8cafb6f5b8f7a06d98e54b3e5e24f14a899e
  3. Download RepoResults3/Kong.insomnia.replay.txt from the artifact folder
  4. npm install --no-save @typescript/server-replay
  5. npx tsreplay ./insomnia ./Kong.insomnia.replay.txt path/to/tsserver.js

mrdoob/three.js

:warning: Note that typescript-4.8.3 also had errors :warning: ``` Req #31731 - references at formatMessage (/typescript-4.8.3/lib/tsserver.js:177437:29) at IOSession.Session.writeMessage (/typescript-4.8.3/lib/tsserver.js:178513:31) at IOSession.Session.send (/typescript-4.8.3/lib/tsserver.js:178510:22) at IOSession.Session.doOutput (/typescript-4.8.3/lib/tsserver.js:178563:22) at IOSession.Session.onMessage (/typescript-4.8.3/lib/tsserver.js:180209:30) at Interface. (/typescript-4.8.3/lib/tsserver.js:184330:31) ```
Req #31731 - references
    at formatMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:178557:29)
    at IOSession.Session.writeMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179633:31)
    at IOSession.Session.send (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179630:22)
    at IOSession.Session.doOutput (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179683:22)
    at IOSession.Session.onMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181329:30)
    at Interface.<anonymous> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:185436:31)

Last few requests

```json {"seq":31728,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/manual/3rdparty/monaco-editor/min/vs/language/typescript/tsWorker.js","line":21,"offset":1252481}} {"seq":31729,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/manual/3rdparty/monaco-editor/min/vs/language/typescript/tsWorker.js","line":21,"offset":1252724}} {"seq":31730,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/manual/3rdparty/monaco-editor/min/vs/language/typescript/tsWorker.js","line":21,"offset":1253145,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":2,"triggerCharacter":" "}} {"seq":31731,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/manual/3rdparty/monaco-editor/min/vs/language/typescript/tsWorker.js","line":21,"offset":1254456}} ```

Repro Steps

  1. git clone https://github.com/mrdoob/three.js
  2. In dir three.js, run git reset --hard 561c61ce09196f39b407d66f1ba8afcf9e47e7cf
  3. Download RepoResults1/mrdoob.three.js.replay.txt from the artifact folder
  4. npm install --no-save @typescript/server-replay
  5. npx tsreplay ./three.js ./mrdoob.three.js.replay.txt path/to/tsserver.js

nodejs/node

:warning: Note that typescript-4.8.3 also had errors :warning: ``` Req #3521 - references at formatMessage (/typescript-4.8.3/lib/tsserver.js:177437:29) at IOSession.Session.writeMessage (/typescript-4.8.3/lib/tsserver.js:178513:31) at IOSession.Session.send (/typescript-4.8.3/lib/tsserver.js:178510:22) at IOSession.Session.doOutput (/typescript-4.8.3/lib/tsserver.js:178563:22) at IOSession.Session.onMessage (/typescript-4.8.3/lib/tsserver.js:180209:30) at Interface. (/typescript-4.8.3/lib/tsserver.js:184330:31) ```
Req #3521 - references
    at formatMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:178557:29)
    at IOSession.Session.writeMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179633:31)
    at IOSession.Session.send (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179630:22)
    at IOSession.Session.doOutput (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179683:22)
    at IOSession.Session.onMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181329:30)
    at Interface.<anonymous> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:185436:31)

Last few requests

```json {"seq":3518,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/deps/v8/test/mjsunit/asm/poppler/poppler.js","line":7313,"offset":82857,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}} {"seq":3519,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/deps/v8/test/mjsunit/asm/poppler/poppler.js","line":7313,"offset":83712}} {"seq":3520,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/deps/v8/test/mjsunit/asm/poppler/poppler.js","line":7313,"offset":84441}} {"seq":3521,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/deps/v8/test/mjsunit/asm/poppler/poppler.js","line":7313,"offset":84632}} ```

Repro Steps

  1. git clone https://github.com/nodejs/node
  2. In dir node, run git reset --hard a2a32d8beef4d6db3a8c520572e8a23e0e51a2f8
  3. Install packages
    1. In dir node/deps/acorn/acorn-walk, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    2. In dir node/deps/acorn/acorn, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    3. In dir node/deps/cjs-module-lexer, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    4. In dir node/deps/corepack, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    5. In dir node/deps/npm, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    6. In dir node/deps/undici/src, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    7. In dir node/deps/v8/tools/clusterfuzz/js_fuzzer, run npm ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    8. In dir node/deps/v8/tools, run npm ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    9. In dir node/deps/v8/tools/tracing/proto-converter, run npm ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    10. In dir node/deps/v8/tools/turbolizer, run npm ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    11. In dir node/tools/clang-format, run npm ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    12. In dir node/tools/doc, run npm ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
    13. In dir node/tools/lint-md, run npm ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  4. Download RepoResults1/nodejs.node.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./node ./nodejs.node.replay.txt path/to/tsserver.js

odoo/odoo

Req #41020 - references
    at getTypeOfSymbolAtLocation (/typescript-4.9.0-dev.20220918/lib/tsserver.js:72678:29)
    at Object.getTypeOfSymbolAtLocation (/typescript-4.9.0-dev.20220918/lib/tsserver.js:49246:35)
    at getDefinitionFromOverriddenMember (/typescript-4.9.0-dev.20220918/lib/tsserver.js:142535:61)
    at Object.getDefinitionAtPosition (/typescript-4.9.0-dev.20220918/lib/tsserver.js:142388:24)
    at Object.getDefinitionAtPosition (/typescript-4.9.0-dev.20220918/lib/tsserver.js:168502:38)
    at getDefinitionLocation (/typescript-4.9.0-dev.20220918/lib/tsserver.js:178704:61)
    at getPerProjectReferences (/typescript-4.9.0-dev.20220918/lib/tsserver.js:178860:37)
    at getReferencesWorker (/typescript-4.9.0-dev.20220918/lib/tsserver.js:178712:37)
    at IOSession.Session.getReferences (/typescript-4.9.0-dev.20220918/lib/tsserver.js:180315:34)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179152:61)
    at /typescript-4.9.0-dev.20220918/lib/tsserver.js:181286:96
    at IOSession.Session.executeWithRequestId (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181277:28)
    at IOSession.Session.executeCommand (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181286:41)
    at IOSession.Session.onMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181314:35)
    at Interface.<anonymous> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:185436:31)

Last few requests

```json {"seq":41017,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/addons/web/static/src/legacy/js/control_panel/control_panel_model_extension.js","line":1626,"offset":12,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}} {"seq":41018,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/addons/web/static/src/legacy/js/control_panel/control_panel_model_extension.js","line":1626,"offset":12,"entryNames":["@abstract"]}} {"seq":41019,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/addons/web/static/src/legacy/js/control_panel/control_panel_model_extension.js","line":1642,"offset":12}} {"seq":41020,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/addons/web/static/src/legacy/js/control_panel/control_panel_model_extension.js","line":1643,"offset":12}} ```

Repro Steps

  1. git clone https://github.com/odoo/odoo
  2. In dir odoo, run git reset --hard 6bf6ce062aa4cfbb7efb96806cbfcfa13868337f
  3. In dir odoo/addons/pad/static/plugin/ep_disable_init_focus, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q
  4. Download RepoResults3/odoo.odoo.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./odoo ./odoo.odoo.replay.txt path/to/tsserver.js

prettier/prettier

:warning: Note that typescript-4.8.3 also had errors :warning: ``` Req #1305 - organizeImports at getPos (/typescript-4.8.3/lib/tsserver.js:150536:22) at assignPositionsToNode (/typescript-4.8.3/lib/tsserver.js:151494:44) at visitArrayWorker (/typescript-4.8.3/lib/tsserver.js:90473:48) at Object.visitNodes (/typescript-4.8.3/lib/tsserver.js:90436:23) at assignPositionsToNodeArray (/typescript-4.8.3/lib/tsserver.js:151499:30) at Object.visitEachChild (/typescript-4.8.3/lib/tsserver.js:90985:62) at assignPositionsToNode (/typescript-4.8.3/lib/tsserver.js:151491:30) at getNonformattedText (/typescript-4.8.3/lib/tsserver.js:151472:56) at getFormattedTextOfNode (/typescript-4.8.3/lib/tsserver.js:151443:26) at format (/typescript-4.8.3/lib/tsserver.js:151430:52) at /typescript-4.8.3/lib/tsserver.js:151432:78 at computeNewText (/typescript-4.8.3/lib/tsserver.js:151432:36) at /typescript-4.8.3/lib/tsserver.js:151397:39 at Object.mapDefined (/typescript-4.8.3/lib/tsserver.js:622:30) at /typescript-4.8.3/lib/tsserver.js:151395:42 at Object.mapDefined (/typescript-4.8.3/lib/tsserver.js:622:30) at Object.getTextChangesFromChanges (/typescript-4.8.3/lib/tsserver.js:151381:27) at ChangeTracker.getChanges (/typescript-4.8.3/lib/tsserver.js:151320:45) at Object.organizeImports (/typescript-4.8.3/lib/tsserver.js:143322:34) at Object.organizeImports (/typescript-4.8.3/lib/tsserver.js:167640:39) at IOSession.Session.organizeImports (/typescript-4.8.3/lib/tsserver.js:179805:60) at Session.handlers.ts.Map.ts.getEntries._a. (/typescript-4.8.3/lib/tsserver.js:178260:61) at /typescript-4.8.3/lib/tsserver.js:180166:96 at IOSession.Session.executeWithRequestId (/typescript-4.8.3/lib/tsserver.js:180157:28) at IOSession.Session.executeCommand (/typescript-4.8.3/lib/tsserver.js:180166:41) at IOSession.Session.onMessage (/typescript-4.8.3/lib/tsserver.js:180194:35) at Interface. (/typescript-4.8.3/lib/tsserver.js:184330:31) ```
Req #1305 - organizeImports
    at getPos (/typescript-4.9.0-dev.20220918/lib/tsserver.js:151596:22)
    at assignPositionsToNode (/typescript-4.9.0-dev.20220918/lib/tsserver.js:152554:44)
    at visitArrayWorker (/typescript-4.9.0-dev.20220918/lib/tsserver.js:91123:48)
    at Object.visitNodes (/typescript-4.9.0-dev.20220918/lib/tsserver.js:91087:23)
    at assignPositionsToNodeArray (/typescript-4.9.0-dev.20220918/lib/tsserver.js:152559:30)
    at visitEachChildOfExportDeclaration (/typescript-4.9.0-dev.20220918/lib/tsserver.js:91627:66)
    at Object.visitEachChild (/typescript-4.9.0-dev.20220918/lib/tsserver.js:91267:42)
    at assignPositionsToNode (/typescript-4.9.0-dev.20220918/lib/tsserver.js:152551:30)
    at getNonformattedText (/typescript-4.9.0-dev.20220918/lib/tsserver.js:152532:56)
    at getFormattedTextOfNode (/typescript-4.9.0-dev.20220918/lib/tsserver.js:152503:26)
    at format (/typescript-4.9.0-dev.20220918/lib/tsserver.js:152490:52)
    at /typescript-4.9.0-dev.20220918/lib/tsserver.js:152492:78
    at computeNewText (/typescript-4.9.0-dev.20220918/lib/tsserver.js:152492:36)
    at /typescript-4.9.0-dev.20220918/lib/tsserver.js:152457:39
    at Object.mapDefined (/typescript-4.9.0-dev.20220918/lib/tsserver.js:621:30)
    at /typescript-4.9.0-dev.20220918/lib/tsserver.js:152455:42
    at Object.mapDefined (/typescript-4.9.0-dev.20220918/lib/tsserver.js:621:30)
    at Object.getTextChangesFromChanges (/typescript-4.9.0-dev.20220918/lib/tsserver.js:152441:27)
    at ChangeTracker.getChanges (/typescript-4.9.0-dev.20220918/lib/tsserver.js:152380:45)
    at Object.organizeImports (/typescript-4.9.0-dev.20220918/lib/tsserver.js:144344:34)
    at Object.organizeImports (/typescript-4.9.0-dev.20220918/lib/tsserver.js:168760:39)
    at IOSession.Session.organizeImports (/typescript-4.9.0-dev.20220918/lib/tsserver.js:180925:60)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179380:61)
    at /typescript-4.9.0-dev.20220918/lib/tsserver.js:181286:96
    at IOSession.Session.executeWithRequestId (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181277:28)
    at IOSession.Session.executeCommand (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181286:41)
    at IOSession.Session.onMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181314:35)
    at Interface.<anonymous> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:185436:31)

Last few requests

```json {"seq":1302,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/tests/format/flow-repo/declare_export/ES6_Default_AnonFunction1.js","line":3,"offset":4,"entryNames":["@abstract"]}} {"seq":1303,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/tests/format/flow-repo/declaration_files_incremental_node/test_relative.js"],"openFiles":[]}} {"seq":1304,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/tests/format/flow-repo/declare_export/ES6_ExportAllFrom_Intermediary2.js","projectRootPath":"@PROJECT_ROOT@"}]}} {"seq":1305,"type":"request","command":"organizeImports","arguments":{"scope":{"type":"file","args":{"file":"@PROJECT_ROOT@/tests/format/flow-repo/declare_export/ES6_ExportAllFrom_Intermediary2.js"}},"skipDestructiveCodeActions":true}} ```

Repro Steps

  1. git clone https://github.com/prettier/prettier
  2. In dir prettier, run git reset --hard b0d9387b95cdd4e9d50f5999d3be53b0b5d03a97
  3. Install packages
    1. In dir prettier, run yarn install --silent --ignore-engines --ignore-scripts --silent
    2. In dir prettier/scripts/release, run yarn install --silent --ignore-engines --ignore-scripts --silent
    3. In dir prettier/scripts/tools/bundle-test, run yarn install --silent --ignore-engines --ignore-scripts --silent
    4. In dir prettier/scripts/tools/eslint-plugin-prettier-internal-rules, run yarn install --silent --ignore-engines --ignore-scripts --silent
    5. In dir prettier/tests/config/prettier-plugins/prettier-plugin-dummy-stylus, run yarn install --silent --ignore-engines --ignore-scripts --silent
    6. In dir prettier/tests/config/prettier-plugins/prettier-plugin-missing-comments, run yarn install --silent --ignore-engines --ignore-scripts --silent
    7. In dir prettier/tests/config/prettier-plugins/prettier-plugin-uppercase-rocks, run yarn install --silent --ignore-engines --ignore-scripts --silent
    8. In dir prettier/tests/integration/cli/cache, run yarn install --silent --ignore-engines --ignore-scripts --silent
    9. In dir prettier/tests/integration/cli/config-external-config-syntax-error, run yarn install --silent --ignore-engines --ignore-scripts --silent
    10. In dir prettier/tests/integration/cli/config/external-config, run yarn install --silent --ignore-engines --ignore-scripts --silent
    11. In dir prettier/tests/integration/cli/config/package, run yarn install --silent --ignore-engines --ignore-scripts --silent
    12. In dir prettier/tests/integration/cli/config/rc-cjs/prettier-config-cjs-in-type-commonjs, run yarn install --silent --ignore-engines --ignore-scripts --silent
    13. In dir prettier/tests/integration/cli/config/rc-cjs/prettier-config-cjs-in-type-module, run yarn install --silent --ignore-engines --ignore-scripts --silent
    14. In dir prettier/tests/integration/cli/config/rc-cjs/prettier-config-cjs-in-type-none, run yarn install --silent --ignore-engines --ignore-scripts --silent
    15. In dir prettier/tests/integration/cli/config/rc-cjs/prettierrc-cjs-in-type-commonjs, run yarn install --silent --ignore-engines --ignore-scripts --silent
    16. In dir prettier/tests/integration/cli/config/rc-cjs/prettierrc-cjs-in-type-module, run yarn install --silent --ignore-engines --ignore-scripts --silent
    17. In dir prettier/tests/integration/cli/config/rc-cjs/prettierrc-cjs-in-type-none, run yarn install --silent --ignore-engines --ignore-scripts --silent
    18. In dir prettier/tests/integration/plugins/automatic, run yarn install --silent --ignore-engines --ignore-scripts --silent
    19. In dir prettier/website, run yarn install --silent --ignore-engines --ignore-scripts --silent
  4. Download RepoResults1/prettier.prettier.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./prettier ./prettier.prettier.replay.txt path/to/tsserver.js

vercel/next.js

:warning: Note that typescript-4.8.3 also had errors :warning: ``` Req #8255 - references at formatMessage (/typescript-4.8.3/lib/tsserver.js:177437:29) at IOSession.Session.writeMessage (/typescript-4.8.3/lib/tsserver.js:178513:31) at IOSession.Session.send (/typescript-4.8.3/lib/tsserver.js:178510:22) at IOSession.Session.doOutput (/typescript-4.8.3/lib/tsserver.js:178563:22) at IOSession.Session.onMessage (/typescript-4.8.3/lib/tsserver.js:180209:30) at Interface. (/typescript-4.8.3/lib/tsserver.js:184330:31) ```
Req #8255 - references
    at formatMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:178557:29)
    at IOSession.Session.writeMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179633:31)
    at IOSession.Session.send (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179630:22)
    at IOSession.Session.doOutput (/typescript-4.9.0-dev.20220918/lib/tsserver.js:179683:22)
    at IOSession.Session.onMessage (/typescript-4.9.0-dev.20220918/lib/tsserver.js:181329:30)
    at Interface.<anonymous> (/typescript-4.9.0-dev.20220918/lib/tsserver.js:185436:31)

Last few requests

```json {"seq":8252,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/next/compiled/webpack/bundle5.js","line":28,"offset":1496673,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":2,"triggerCharacter":" "}} {"seq":8253,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/next/compiled/webpack/bundle5.js","line":28,"offset":1498581}} {"seq":8254,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/next/compiled/webpack/bundle5.js","line":28,"offset":1500140,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}} {"seq":8255,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/next/compiled/webpack/bundle5.js","line":28,"offset":1500530}} ```

Repro Steps

  1. git clone https://github.com/vercel/next.js
  2. In dir next.js, run git reset --hard 1bf7d4d968ed28fbfd287e7ff4755df8fa72f1f0
  3. Download RepoResults1/vercel.next.js.replay.txt from the artifact folder
  4. npm install --no-save @typescript/server-replay
  5. npx tsreplay ./next.js ./vercel.next.js.replay.txt path/to/tsserver.js
amcasey commented 2 years ago

All the formatMessage exceptions in references are https://github.com/microsoft/TypeScript/issues/50134.

amcasey commented 2 years ago

cypress-io/cypress looks like #50868

amcasey commented 2 years ago

gatsbyjs/gatsby added to #50868

amcasey commented 2 years ago

prettier/prettier appears to be #50866

amcasey commented 2 years ago

odoo/odoo getDefinitionFromOverriddenMember computes the error type (type id 4) for the base type and that type has no associated symbol. The node in question is from jsdoc.

amcasey commented 2 years ago

All issues have been split out.