Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ServerErrors] 4.9.0-dev.20220907 #50679

Closed
typescript-bot opened this issue Sep 8, 2022 · 2 comments
Closed

[ServerErrors] 4.9.0-dev.20220907 #50679

typescript-bot opened this issue Sep 8, 2022 · 2 comments
Assignees

Comments

@typescript-bot
Copy link
Collaborator

The following errors were reported by 4.9.0-dev.20220907
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 8
Detected no interesting changes 183
Git clone failed 2
Unknown failure 7

apache/echarts

Repro Steps

  1. git clone https://github.com/apache/echarts
  2. In dir echarts, run git reset --hard 29a4fe91f7cf59ea347e066bb241346f0b1bde75
  3. Download RepoResults1/apache.echarts.replay.txt from the artifact folder
  4. npm install --no-save @typescript/server-replay
  5. npx tsreplay ./echarts ./apache.echarts.replay.txt path/to/tsserver.js
Last few requests
{"seq":4669,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/dist/echarts.common.min.js","line":45,"offset":233233,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}}
{"seq":4670,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/dist/echarts.common.min.js","line":45,"offset":233233,"entryNames":["_"]}}
{"seq":4671,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/dist/echarts.common.min.js","line":45,"offset":233723,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":2,"triggerCharacter":" "}}
{"seq":4672,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/dist/echarts.common.min.js","line":45,"offset":234248}}

Error

>   "message": "Error processing request. Invalid string length\nRangeError: Invalid string length\n    at JSON.stringify (<anonymous>)\n    at formatMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:178006:29)\n    at IOSession.Session.writeMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179082:31)\n    at IOSession.Session.send (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179079:22)\n    at IOSession.Session.doOutput (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179132:22)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180778:30)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:184885:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"
> 
⚠️ Note that typescript-4.8.2 also had errors ⚠️
> {"seq":0,"type":"response","command":"references","request_seq":4672,"success":false,"message":"Error processing request. Invalid string length\nRangeError: Invalid string length\n    at JSON.stringify (<anonymous>)\n    at formatMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:177411:29)\n    at IOSession.Session.writeMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178487:31)\n    at IOSession.Session.send (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178484:22)\n    at IOSession.Session.doOutput (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178537:22)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180183:30)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:184304:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"}
> 

desktop/desktop

Repro Steps

  1. git clone https://github.com/desktop/desktop
  2. In dir desktop, run git reset --hard e2262a52f9742f9566297cd1de8f5d1ba51f04db
  3. In dir desktop/app, run yarn install --silent --ignore-engines --ignore-scripts
  4. In dir desktop/app/static/common/choosealicense.com/assets/vendor/clipboard, run yarn install --silent --ignore-engines --ignore-scripts
  5. In dir desktop/app/static/common/choosealicense.com/assets/vendor/jquery, run yarn install --silent --ignore-engines --ignore-scripts
  6. In dir desktop/app/static/common/choosealicense.com/license-list-XML, run yarn install --silent --ignore-engines --ignore-scripts
  7. In dir desktop, run yarn install --silent --ignore-engines --ignore-scripts
  8. Download RepoResults5/desktop.desktop.replay.txt from the artifact folder
  9. npm install --no-save @typescript/server-replay
  10. npx tsreplay ./desktop ./desktop.desktop.replay.txt path/to/tsserver.js
Last few requests
{"seq":25323,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/vendor/yarn-1.21.1.js","line":84971,"offset":92161,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":2,"triggerCharacter":"\""}}
{"seq":25324,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/vendor/yarn-1.21.1.js","line":84971,"offset":93037,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":2,"triggerCharacter":"\""}}
{"seq":25325,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/vendor/yarn-1.21.1.js","line":84971,"offset":93173,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}}
{"seq":25326,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/vendor/yarn-1.21.1.js","line":84971,"offset":95487}}

Error

>   "message": "Error processing request. Invalid string length\nRangeError: Invalid string length\n    at JSON.stringify (<anonymous>)\n    at formatMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:178006:29)\n    at IOSession.Session.writeMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179082:31)\n    at IOSession.Session.send (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179079:22)\n    at IOSession.Session.doOutput (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179132:22)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180778:30)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:184885:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"
> 
⚠️ Note that typescript-4.8.2 also had errors ⚠️
> {"seq":0,"type":"response","command":"references","request_seq":25326,"success":false,"message":"Error processing request. Invalid string length\nRangeError: Invalid string length\n    at JSON.stringify (<anonymous>)\n    at formatMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:177411:29)\n    at IOSession.Session.writeMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178487:31)\n    at IOSession.Session.send (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178484:22)\n    at IOSession.Session.doOutput (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178537:22)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180183:30)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:184304:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"}
> 

facebook/flipper

Repro Steps

  1. git clone https://github.com/facebook/flipper
  2. In dir flipper, run git reset --hard ccec5a6abe6ecb3b66183d53d11849926c2e2644
  3. In dir flipper/desktop/app, run yarn install --silent --ignore-engines --ignore-scripts
  4. In dir flipper/desktop/babel-transformer, run yarn install --silent --ignore-engines --ignore-scripts
  5. In dir flipper/desktop/doctor, run yarn install --silent --ignore-engines --ignore-scripts
  6. In dir flipper/desktop/eslint-plugin-flipper, run yarn install --silent --ignore-engines --ignore-scripts
  7. In dir flipper/desktop/examples/headless-demo, run yarn install --silent --ignore-engines --ignore-scripts
  8. In dir flipper/desktop/examples/headless-tic-tac-toe, run yarn install --silent --ignore-engines --ignore-scripts
  9. In dir flipper/desktop/flipper-common, run yarn install --silent --ignore-engines --ignore-scripts
  10. In dir flipper/desktop/flipper-dump, run yarn install --silent --ignore-engines --ignore-scripts
  11. In dir flipper/desktop/flipper-frontend-core, run yarn install --silent --ignore-engines --ignore-scripts
  12. In dir flipper/desktop/flipper-plugin, run yarn install --silent --ignore-engines --ignore-scripts
  13. In dir flipper/desktop/flipper-plugin/src/data-source, run yarn install --silent --ignore-engines --ignore-scripts
  14. In dir flipper/desktop/flipper-server-companion, run yarn install --silent --ignore-engines --ignore-scripts
  15. In dir flipper/desktop/flipper-server-core, run yarn install --silent --ignore-engines --ignore-scripts
  16. In dir flipper/desktop/flipper-server, run yarn install --silent --ignore-engines --ignore-scripts
  17. In dir flipper/desktop/flipper-ui-browser, run yarn install --silent --ignore-engines --ignore-scripts
  18. In dir flipper/desktop/flipper-ui-core, run yarn install --silent --ignore-engines --ignore-scripts
  19. In dir flipper/desktop, run yarn install --silent --ignore-engines --ignore-scripts
  20. In dir flipper/desktop/pkg-lib, run yarn install --silent --ignore-engines --ignore-scripts
  21. In dir flipper/desktop/pkg, run yarn install --silent --ignore-engines --ignore-scripts
  22. In dir flipper/desktop/pkg/schemas, run yarn install --silent --ignore-engines --ignore-scripts
  23. In dir flipper/desktop/plugin-lib, run yarn install --silent --ignore-engines --ignore-scripts
  24. In dir flipper/desktop/plugins, run yarn install --silent --ignore-engines --ignore-scripts
  25. In dir flipper/desktop/plugins/public/cpu, run yarn install --silent --ignore-engines --ignore-scripts
  26. In dir flipper/desktop/plugins/public/crash_reporter, run yarn install --silent --ignore-engines --ignore-scripts
  27. In dir flipper/desktop/plugins/public/databases, run yarn install --silent --ignore-engines --ignore-scripts
  28. In dir flipper/desktop/plugins/public/example, run yarn install --silent --ignore-engines --ignore-scripts
  29. In dir flipper/desktop/plugins/public/fresco, run yarn install --silent --ignore-engines --ignore-scripts
  30. In dir flipper/desktop/plugins/public/headless-demo, run yarn install --silent --ignore-engines --ignore-scripts
  31. In dir flipper/desktop/plugins/public/hermesdebuggerrn, run yarn install --silent --ignore-engines --ignore-scripts
  32. In dir flipper/desktop/plugins/public/kaios-allocations, run yarn install --silent --ignore-engines --ignore-scripts
  33. In dir flipper/desktop/plugins/public/kaios-ram, run yarn install --silent --ignore-engines --ignore-scripts
  34. In dir flipper/desktop/plugins/public/layout, run yarn install --silent --ignore-engines --ignore-scripts
  35. In dir flipper/desktop/plugins/public/leak_canary, run yarn install --silent --ignore-engines --ignore-scripts
  36. In dir flipper/desktop/plugins/public/logs, run yarn install --silent --ignore-engines --ignore-scripts
  37. In dir flipper/desktop/plugins/public/navigation, run yarn install --silent --ignore-engines --ignore-scripts
  38. In dir flipper/desktop/plugins/public/network, run yarn install --silent --ignore-engines --ignore-scripts
  39. In dir flipper/desktop/plugins/public, run yarn install --silent --ignore-engines --ignore-scripts
  40. In dir flipper/desktop/plugins/public/reactdevtools, run yarn install --silent --ignore-engines --ignore-scripts
  41. In dir flipper/desktop/plugins/public/rn-tic-tac-toe, run yarn install --silent --ignore-engines --ignore-scripts
  42. In dir flipper/desktop/plugins/public/sandbox, run yarn install --silent --ignore-engines --ignore-scripts
  43. In dir flipper/desktop/plugins/public/seamammals, run yarn install --silent --ignore-engines --ignore-scripts
  44. In dir flipper/desktop/plugins/public/shared_preferences, run yarn install --silent --ignore-engines --ignore-scripts
  45. In dir flipper/desktop/plugins/public/ui-debugger, run yarn install --silent --ignore-engines --ignore-scripts
  46. In dir flipper/desktop/scripts, run yarn install --silent --ignore-engines --ignore-scripts
  47. In dir flipper/desktop/static, run yarn install --silent --ignore-engines --ignore-scripts
  48. In dir flipper/desktop/test-utils, run yarn install --silent --ignore-engines --ignore-scripts
  49. In dir flipper/desktop/types, run yarn install --silent --ignore-engines --ignore-scripts
  50. In dir flipper/js/js-flipper, run yarn install --silent --ignore-engines --ignore-scripts
  51. In dir flipper/js/react-flipper-example, run yarn install --silent --ignore-engines --ignore-scripts
  52. In dir flipper/react-native/react-native-flipper, run yarn install --silent --ignore-engines --ignore-scripts
  53. In dir flipper/react-native/ReactNativeFlipperExample, run yarn install --silent --ignore-engines --ignore-scripts
  54. In dir flipper/website, run yarn install --silent --ignore-engines --ignore-scripts
  55. Download RepoResults7/facebook.flipper.replay.txt from the artifact folder
  56. npm install --no-save @typescript/server-replay
  57. npx tsreplay ./flipper ./facebook.flipper.replay.txt path/to/tsserver.js
Last few requests
{"seq":1387,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/desktop/flipper-plugin/src/data-source/DataSource.tsx","line":642,"offset":46,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":2,"triggerCharacter":" "}}
{"seq":1388,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/desktop/flipper-plugin/src/data-source/DataSource.tsx","line":646,"offset":11,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}}
{"seq":1389,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/desktop/flipper-plugin/src/data-source/DataSource.tsx","line":646,"offset":11,"entryNames":["arguments"]}}
{"seq":1390,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/desktop/flipper-plugin/src/data-source/DataSource.tsx","line":674,"offset":23}}

Error

>   "message": "Error processing request. Debug Failure.\nError: Debug Failure.\n    at getSymbolForProgram (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:167798:38)\n    at Object.updateIsDefinitionOfReferencedSymbols (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:167768:26)\n    at /home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:178212:68\n    at Map.forEach (<anonymous>)\n    at _loop_9 (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:178209:39)\n    at getReferencesWorker (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:178222:35)\n    at IOSession.Session.getReferences (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179764:34)\n    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:178601:61)\n    at /home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180735:96\n    at IOSession.Session.executeWithRequestId (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180726:28)\n    at IOSession.Session.executeCommand (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180735:41)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180763:35)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:184885:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"
> 
⚠️ Note that typescript-4.8.2 also had errors ⚠️
> {"seq":0,"type":"response","command":"references","request_seq":1390,"success":false,"performanceData":{"updateGraphDurationMs":4186.30695200013},"message":"Error processing request. Debug Failure.\nError: Debug Failure.\n    at getSymbolForProgram (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:167203:38)\n    at Object.updateIsDefinitionOfReferencedSymbols (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:167173:26)\n    at /home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:177617:68\n    at Map.forEach (<anonymous>)\n    at _loop_9 (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:177614:39)\n    at getReferencesWorker (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:177627:35)\n    at IOSession.Session.getReferences (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:179169:34)\n    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178006:61)\n    at /home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180140:96\n    at IOSession.Session.executeWithRequestId (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180131:28)\n    at IOSession.Session.executeCommand (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180140:41)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180168:35)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:184304:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"}
> 

formatjs/formatjs

Repro Steps

  1. git clone https://github.com/formatjs/formatjs
  2. In dir formatjs, run git reset --hard f1af8b13433d1d98ed55addf5450dcafa4b8bdae
  3. Download RepoResults7/formatjs.formatjs.replay.txt from the artifact folder
  4. npm install --no-save @typescript/server-replay
  5. npx tsreplay ./formatjs ./formatjs.formatjs.replay.txt path/to/tsserver.js
Last few requests
{"seq":4173,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/test262/test/language/expressions/class/dstr/private-gen-meth-static-dflt-obj-ptrn-rest-val-obj.js"],"openFiles":[]}}
{"seq":4174,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/test262/test/language/expressions/class/elements/after-same-line-gen-rs-static-privatename-identifier-alt.js","projectRootPath":"@PROJECT_ROOT@"}]}}
{"seq":4175,"type":"request","command":"getOutliningSpans","arguments":{"file":"@PROJECT_ROOT@/test262/test/language/expressions/class/elements/after-same-line-gen-rs-static-privatename-identifier-alt.js"}}
{"seq":4176,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/test262/test/language/expressions/class/elements/after-same-line-gen-rs-static-privatename-identifier-alt.js","line":74,"offset":11,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}}

Error

>   "message": "Error processing request. Debug Failure. Did not expect SourceFile to have an Identifier in its trivia\nError: Debug Failure. Did not expect SourceFile to have an Identifier in its trivia\n    at addSyntheticNodes (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:166636:30)\n    at createSyntaxList (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:166652:13)\n    at processNodes (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:166615:27)\n    at visitNodes (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:30980:24)\n    at forEachChildInSourceFile (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:31343:20)\n    at Object.forEachChild (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:31758:47)\n    at SourceFileObject.NodeObject.forEachChild (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:166590:23)\n    at createChildren (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:166624:14)\n    at SourceFileObject.NodeObject.getChildren (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:166567:56)\n    at find (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:129595:30)\n    at Object.findPrecedingToken (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:129588:22)\n    at getRelevantTokens (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:137109:36)\n    at Object.getCompletionsAtPosition (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:134272:33)\n    at Object.getCompletionsAtPosition (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:167870:35)\n    at IOSession.Session.getCompletions (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180002:64)\n    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:178675:61)\n    at /home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180735:96\n    at IOSession.Session.executeWithRequestId (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180726:28)\n    at IOSession.Session.executeCommand (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180735:41)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180763:35)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:184885:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"
> 
⚠️ Note that typescript-4.8.2 also had errors ⚠️
> {"seq":0,"type":"response","command":"completionInfo","request_seq":4176,"success":false,"message":"Error processing request. Debug Failure. Did not expect SourceFile to have an Identifier in its trivia\nError: Debug Failure. Did not expect SourceFile to have an Identifier in its trivia\n    at addSyntheticNodes (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:166044:30)\n    at createSyntaxList (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:166060:13)\n    at processNodes (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:166023:27)\n    at visitNodes (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:30906:24)\n    at Object.forEachChild (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:31238:24)\n    at SourceFileObject.NodeObject.forEachChild (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:165998:23)\n    at createChildren (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:166032:14)\n    at SourceFileObject.NodeObject.getChildren (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:165975:56)\n    at find (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:129105:30)\n    at Object.findPrecedingToken (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:129098:22)\n    at getRelevantTokens (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:136614:36)\n    at Object.getCompletionsAtPosition (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:133779:33)\n    at Object.getCompletionsAtPosition (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:167275:35)\n    at IOSession.Session.getCompletions (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:179407:64)\n    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178080:61)\n    at /home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180140:96\n    at IOSession.Session.executeWithRequestId (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180131:28)\n    at IOSession.Session.executeCommand (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180140:41)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180168:35)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:184304:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"}
> 

jupyterlab/jupyterlab

Repro Steps

  1. git clone https://github.com/jupyterlab/jupyterlab
  2. In dir jupyterlab, run git reset --hard c6d57dc28dd566aa60fe95a7548640143fb443ee
  3. In dir jupyterlab/builder, run yarn install --silent --ignore-engines --ignore-scripts
  4. In dir jupyterlab/buildutils, run yarn install --silent --ignore-engines --ignore-scripts
  5. In dir jupyterlab/buildutils/template, run yarn install --silent --ignore-engines --ignore-scripts
  6. In dir jupyterlab/dev_mode, run yarn install --silent --ignore-engines --ignore-scripts
  7. In dir jupyterlab/examples/app, run yarn install --silent --ignore-engines --ignore-scripts
  8. In dir jupyterlab/examples/cell, run yarn install --silent --ignore-engines --ignore-scripts
  9. In dir jupyterlab/examples/console, run yarn install --silent --ignore-engines --ignore-scripts
  10. In dir jupyterlab/examples/federated/core_package, run yarn install --silent --ignore-engines --ignore-scripts
  11. In dir jupyterlab/examples/federated/md_package, run yarn install --silent --ignore-engines --ignore-scripts
  12. In dir jupyterlab/examples/federated/middle_package, run yarn install --silent --ignore-engines --ignore-scripts
  13. In dir jupyterlab/examples/federated, run yarn install --silent --ignore-engines --ignore-scripts
  14. In dir jupyterlab/examples/filebrowser, run yarn install --silent --ignore-engines --ignore-scripts
  15. In dir jupyterlab/examples/notebook, run yarn install --silent --ignore-engines --ignore-scripts
  16. In dir jupyterlab/examples/terminal, run yarn install --silent --ignore-engines --ignore-scripts
  17. In dir jupyterlab/galata, run yarn install --silent --ignore-engines --ignore-scripts
  18. In dir jupyterlab/jupyterlab/staging, run yarn install --silent --ignore-engines --ignore-scripts
  19. In dir jupyterlab/jupyterlab/tests/mock_packages/extension, run yarn install --silent --ignore-engines --ignore-scripts
  20. In dir jupyterlab/jupyterlab/tests/mock_packages/incompat, run yarn install --silent --ignore-engines --ignore-scripts
  21. In dir jupyterlab/jupyterlab/tests/mock_packages/interop/consumer, run yarn install --silent --ignore-engines --ignore-scripts
  22. In dir jupyterlab/jupyterlab/tests/mock_packages/interop/provider, run yarn install --silent --ignore-engines --ignore-scripts
  23. In dir jupyterlab/jupyterlab/tests/mock_packages/interop/token, run yarn install --silent --ignore-engines --ignore-scripts
  24. In dir jupyterlab/jupyterlab/tests/mock_packages/mimeextension, run yarn install --silent --ignore-engines --ignore-scripts
  25. In dir jupyterlab/jupyterlab/tests/mock_packages/package, run yarn install --silent --ignore-engines --ignore-scripts
  26. In dir jupyterlab/jupyterlab/tests/mock_packages/test_no_hyphens, run yarn install --silent --ignore-engines --ignore-scripts
  27. In dir jupyterlab/jupyterlab/tests/mock_packages/test-hyphens-underscore, run yarn install --silent --ignore-engines --ignore-scripts
  28. In dir jupyterlab/jupyterlab/tests/mock_packages/test-hyphens, run yarn install --silent --ignore-engines --ignore-scripts
  29. In dir jupyterlab, run yarn install --silent --ignore-engines --ignore-scripts
  30. In dir jupyterlab/testutils, run yarn install --silent --ignore-engines --ignore-scripts
  31. Download RepoResults7/jupyterlab.jupyterlab.replay.txt from the artifact folder
  32. npm install --no-save @typescript/server-replay
  33. npx tsreplay ./jupyterlab ./jupyterlab.jupyterlab.replay.txt path/to/tsserver.js
Last few requests
{"seq":15284,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/jupyterlab/staging/yarn.js","line":85060,"offset":54365,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}}
{"seq":15285,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/jupyterlab/staging/yarn.js","line":85060,"offset":54928,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}}
{"seq":15286,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/jupyterlab/staging/yarn.js","line":85060,"offset":56024,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}}
{"seq":15287,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/jupyterlab/staging/yarn.js","line":85060,"offset":58394}}

Error

>   "message": "Error processing request. Invalid string length\nRangeError: Invalid string length\n    at JSON.stringify (<anonymous>)\n    at formatMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:178006:29)\n    at IOSession.Session.writeMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179082:31)\n    at IOSession.Session.send (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179079:22)\n    at IOSession.Session.doOutput (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179132:22)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180778:30)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:184885:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"
> 
⚠️ Note that typescript-4.8.2 also had errors ⚠️
> {"seq":0,"type":"response","command":"references","request_seq":15287,"success":false,"message":"Error processing request. Invalid string length\nRangeError: Invalid string length\n    at JSON.stringify (<anonymous>)\n    at formatMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:177411:29)\n    at IOSession.Session.writeMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178487:31)\n    at IOSession.Session.send (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178484:22)\n    at IOSession.Session.doOutput (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178537:22)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180183:30)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:184304:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"}
> 

n8n-io/n8n

Repro Steps

  1. git clone https://github.com/n8n-io/n8n
  2. In dir n8n, run git reset --hard ca8c2d657711fd75d8c40914a0fbf1a920cdfab0
  3. In dir n8n, run npm ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  4. In dir n8n/packages/cli, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  5. In dir n8n/packages/core, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  6. In dir n8n/packages/design-system, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  7. In dir n8n/packages/editor-ui, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  8. In dir n8n/packages/node-dev, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  9. In dir n8n/packages/nodes-base, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  10. In dir n8n/packages/workflow, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  11. Download RepoResults3/n8n-io.n8n.replay.txt from the artifact folder
  12. npm install --no-save @typescript/server-replay
  13. npx tsreplay ./n8n ./n8n-io.n8n.replay.txt path/to/tsserver.js
Last few requests
{"seq":12192,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts","line":11,"offset":24,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}}
{"seq":12193,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts","line":28,"offset":1}}
{"seq":12194,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts","line":89,"offset":16,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":2,"triggerCharacter":" "}}
{"seq":12195,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts","line":112,"offset":10}}

Error

>   "message": "Error processing request. Invalid string length\nRangeError: Invalid string length\n    at JSON.stringify (<anonymous>)\n    at formatMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:178006:29)\n    at IOSession.Session.writeMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179082:31)\n    at IOSession.Session.send (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179079:22)\n    at IOSession.Session.doOutput (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179132:22)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180778:30)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:184885:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"
> 
⚠️ Note that typescript-4.8.2 also had errors ⚠️
> {"seq":0,"type":"response","command":"references","request_seq":12195,"success":false,"message":"Error processing request. Invalid string length\nRangeError: Invalid string length\n    at JSON.stringify (<anonymous>)\n    at formatMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:177411:29)\n    at IOSession.Session.writeMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178487:31)\n    at IOSession.Session.send (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178484:22)\n    at IOSession.Session.doOutput (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178537:22)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180183:30)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:184304:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"}
> 

nhn/tui.editor

Repro Steps

  1. git clone https://github.com/nhn/tui.editor
  2. In dir tui.editor, run git reset --hard 06355b6c1885fa2b5109209e93292c7f2367e4d7
  3. In dir tui.editor/apps/editor, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  4. In dir tui.editor/apps/react-editor, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  5. In dir tui.editor/apps/vue-editor, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  6. In dir tui.editor/libs/toastmark, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  7. In dir tui.editor, run npm ci --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  8. In dir tui.editor/plugins/chart, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  9. In dir tui.editor/plugins/code-syntax-highlight, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  10. In dir tui.editor/plugins/color-syntax, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  11. In dir tui.editor/plugins/table-merged-cell, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  12. In dir tui.editor/plugins/uml, run npm install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts
  13. Download RepoResults5/nhn.tui.editor.replay.txt from the artifact folder
  14. npm install --no-save @typescript/server-replay
  15. npx tsreplay ./tui.editor ./nhn.tui.editor.replay.txt path/to/tsserver.js
Last few requests
{"seq":46,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/apps/editor/rollup.config.js","line":57,"offset":17}}
{"seq":47,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/apps/editor/rollup.config.js","line":61,"offset":17,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}}
{"seq":48,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/__mocks__/cssMock.js"],"openFiles":[]}}
{"seq":49,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/apps/editor/scripts/createConfigVariable.js","projectRootPath":"@PROJECT_ROOT@"}]}}

Error

>   "message": "Error processing request. No Project.\nError: No Project.\n    at Object.ThrowNoProject (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:170870:23)\n    at ScriptInfo.getDefaultProject (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:171713:46)\n    at ProjectService.telemetryOnOpenFile (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:177098:42)\n    at /home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:177180:76\n    at Array.forEach (<anonymous>)\n    at ProjectService.applyChangesInOpenFiles (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:177180:37)\n    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:178543:46)\n    at /home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180735:96\n    at IOSession.Session.executeWithRequestId (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180726:28)\n    at IOSession.Session.executeCommand (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180735:41)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180763:35)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:184885:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"
> 
⚠️ Note that typescript-4.8.2 also had errors ⚠️
> {"seq":0,"type":"response","command":"updateOpen","request_seq":49,"success":false,"performanceData":{"updateGraphDurationMs":20.67305799946189},"message":"Error processing request. No Project.\nError: No Project.\n    at Object.ThrowNoProject (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:170275:23)\n    at ScriptInfo.getDefaultProject (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:171118:46)\n    at ProjectService.telemetryOnOpenFile (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:176503:42)\n    at /home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:176585:76\n    at Array.forEach (<anonymous>)\n    at ProjectService.applyChangesInOpenFiles (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:176585:37)\n    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:177948:46)\n    at /home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180140:96\n    at IOSession.Session.executeWithRequestId (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180131:28)\n    at IOSession.Session.executeCommand (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180140:41)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180168:35)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:184304:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"}
> 

palantir/blueprint

Repro Steps

  1. git clone https://github.com/palantir/blueprint
  2. In dir blueprint, run git reset --hard 93dfdaecf21d07f9d7b939923ff606e77689fe75
  3. In dir blueprint, run yarn install --silent --ignore-engines --ignore-scripts
  4. Download RepoResults4/palantir.blueprint.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./blueprint ./palantir.blueprint.replay.txt path/to/tsserver.js
Last few requests
{"seq":12988,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/site/docs/versions/1/docs-app.js","line":1,"offset":529178}}
{"seq":12989,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/site/docs/versions/1/docs-app.js","line":1,"offset":529340}}
{"seq":12990,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/site/docs/versions/1/docs-app.js","line":1,"offset":529402,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":2,"triggerCharacter":"\""}}
{"seq":12991,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/site/docs/versions/1/docs-app.js","line":1,"offset":529559}}

Error

>   "message": "Error processing request. Invalid string length\nRangeError: Invalid string length\n    at JSON.stringify (<anonymous>)\n    at formatMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:178006:29)\n    at IOSession.Session.writeMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179082:31)\n    at IOSession.Session.send (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179079:22)\n    at IOSession.Session.doOutput (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:179132:22)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:180778:30)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.9.0-dev.20220907/lib/tsserver.js:184885:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"
> 
⚠️ Note that typescript-4.8.2 also had errors ⚠️
> {"seq":0,"type":"response","command":"references","request_seq":12991,"success":false,"message":"Error processing request. Invalid string length\nRangeError: Invalid string length\n    at JSON.stringify (<anonymous>)\n    at formatMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:177411:29)\n    at IOSession.Session.writeMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178487:31)\n    at IOSession.Session.send (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178484:22)\n    at IOSession.Session.doOutput (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:178537:22)\n    at IOSession.Session.onMessage (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:180183:30)\n    at Interface.<anonymous> (/home/vsts/work/1/s/typescript-4.8.2/lib/tsserver.js:184304:31)\n    at Interface.emit (node:events:513:28)\n    at Interface._onLine (node:readline:491:10)\n    at Interface._normalWrite (node:readline:665:12)\n    at Socket.ondata (node:readline:272:10)\n    at Socket.emit (node:events:513:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)"}
> 
@amcasey amcasey self-assigned this Sep 9, 2022
@amcasey
Copy link
Member

amcasey commented Sep 9, 2022

Most (all?) of the string length errors appear to be #50134

amcasey added a commit to amcasey/TypeScript that referenced this issue Sep 16, 2022
In some scenarios (see the new test for an example), FAR may search an inferred project and then subsequently trigger the loading of a configured project containing (some of) the same files.  When the configured project is loaded, the files are removed from the inferred project and added to the configured project, potentially _invalidating the results already computed for the inferred project_.  This change introduces a cleanup pass that removes results from `dirty` projects if the corresponding files are no longer in the project.

Caught by microsoft#50679
@amcasey
Copy link
Member

amcasey commented Sep 23, 2022

The others are too hard to read, so we'll wait for them to happen again.

@amcasey amcasey closed this as completed Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants