Closed
Description
We are running tsserver in Gitpod Theia. And while working with very big monorepo, tsserver crashes. It does not happen always, but only when multiple files are opened from different packages and I trigger find references in one of them. I cannot share the full logs because source code is not open, but the last message in logs always:
Info 764 [9:26:46.489] Starting updateGraphWorker: Project: /dev/null/inferredProject1*
Info 765 [9:26:46.878] DirectoryWatcher:: Added:: WatchInfo: /home/gitpod/.cache/typescript/3.8/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
Info 766 [9:26:47.31] Elapsed:: 153ms DirectoryWatcher:: Added:: WatchInfo: /home/gitpod/.cache/typescript/3.8/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
Also before the failure tsserver consumes a lot of CPU, but not much memory. htop shows 421% for CPU and 2.5% for memory. Logs don't have any other errors. I wonder what could be the cause of the crash? Could we change something in tsconfig to work it around? I've already tried to use latest and next versions but get the same issue.