DEV Community

Discussion on: Running VSCode On Linux: Hitting My Watcher Limit And What To Do About It

Collapse
 
therealkevinard profile image
Kevin Ard

Inotify is kinda awesome, really. The inotifywait cmd exposes an ignore pattern (like gitignore, rsync, etc). It would be GREAT if IDEs let us grab that, too! Preeeety sure, my limit is being reached because of the trillion files in my node_modules lol

Collapse
 
tkdmzq profile image
TKDMzq • Edited

Yea ist main suspect. But how would vs code know if we installed new module to get exports from it?

Collapse
 
therealkevinard profile image
Kevin Ard

Could always fall-back to the universal polling mechanism (eg check ignored dirs every 3-ish seconds).

Alt, my Intellij has pre- and post-scripts that run after certain commands. Those could exec only after npm **.

This is purely theoretical, though 🤷‍♀️ (unless someone on here is building the IDEs)

Collapse
 
lesha profile image
lesha 🟨⬛️

trillion files in my node_modules

 w h a t

Collapse
 
therealkevinard profile image
Kevin Ard

Rough estimate 😉

(But... Now I'm absolutely going to run a file count on my node_modules when I get back to the office)

Thread Thread
 
therealkevinard profile image
Kevin Ard

Update:

❯ find . -type f | grep node_modules | wc -l
412140

But, to be fair: That's from a pretty large project with several microservice modules in it.