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

tsserver seems to watch entire home directory #60989

Open
sweber83 opened this issue Jan 17, 2025 · 1 comment
Open

tsserver seems to watch entire home directory #60989

sweber83 opened this issue Jan 17, 2025 · 1 comment
Labels
Needs More Info The issue still hasn't been fully clarified

Comments

@sweber83
Copy link

🔎 Search Terms

When developing on a typescript project I keep needing to restart the tsserver because it always gets unresponsive after the first iteration checking my opened file.
Today I finally had a look at the log file.
I found the following lines (redacted my user name):

DirectoryWatcher:: Added:: WatchInfo: /home/REDACTED/ 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
...
Info 72523[16:05:52.615] sysLog:: /home/REDACTED/some/file/somewhere/in/my/home:: Defaulting to watchFile
...
Elapsed:: 263231.954163ms DirectoryWatcher:: Added:: WatchInfo: /home/REDACTED/ 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache

The line in between the ellipsis is repeated hundred thousands of times, apparently watching all the files in my home directory.
What could be the issue?

🕗 Version & Regression Information

  • This behavior was observed in version 5.3.3, 5.4.5 & 5.7.3

⏯ Playground Link

No response

💻 Code

// Your code here

🙁 Actual behavior

🙂 Expected behavior

Additional information about the issue

No response

@RyanCavanaugh RyanCavanaugh added the Needs More Info The issue still hasn't been fully clarified label Jan 24, 2025
@RyanCavanaugh
Copy link
Member

We haven't seen any other reports of this, so need some more clues as to what might be unusual about your setup here. WSL? Linux? Mac? Where are your TypeScript files/tsconfigs? Anything that's out of the ordinary would be good to know about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs More Info The issue still hasn't been fully clarified
Projects
None yet
Development

No branches or pull requests

2 participants