eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.91k stars 2.49k forks source link

Unable to watch for file changes in this large workspace #12898

Open safisa opened 1 year ago

safisa commented 1 year ago

Bug Description:

Hi,

I added a web application (react) to my workspace, once I ran npm install that added a large node_modules folder to my workspace (inside an inner folder), I started getting this notification warning on load: Unable to watch for file changes in this large workspace. The information you see may not include recent file changes. I see also this error in Theia log: ERROR [nsfw-watcher: 839] NSFW service error on "<workspace>": [Error: Inotify limit reached]

I have added this exclusion to my workspace settings under files.watcherExclude: "**/node_modules/**": true but this did not help. it seems it is being ignored...

Additional Information

safisa commented 1 year ago

Hi, Any help on this issue? files.watcherExclude maybe not working correctly?

Thanks

msujew commented 1 year ago

As far as I'm aware, file watcher exclusion does not work in the file watching library we're using see also https://github.com/Axosoft/nsfw/issues/54.