Version:
All supported versions of Domino using VSCode as the workspace IDE.Issue:
An error prompt appears in a VSCode workspace with the following message:Root Cause:
VSCode uses the Linuxinotify subsystem to watch files for changes. Each file or directory being watched consumes one inotify handle. When a workspace contains a large number of files — for example, due to a Python virtual environment (.venv), node_modules, or a large project directory — VSCode exhausts the system’s available file watcher handles, triggering this error.
Resolution:
There are two approaches to resolve this issue. Try Option 1 first before increasing system limits. Option 1 – Exclude large directories from file watching (Recommended) Configure VSCode to exclude large folders from the file watcher by adding them to thefiles.watcherExclude setting. This reduces the number of handles consumed without changing system limits.
Open your VSCode settings and add the following, expanding the list to include any additional large directories in your workspace (e.g., .venv):
- User Settings — applies globally to all VSCode instances for the user.
- Workspace Settings — stored in the workspace and applies only when that workspace is open.
Notes/Information:
Option 1 is preferred as it resolves the issue without requiring system-level changes or admin access. Common high-file-count directories to exclude include.venv, node_modules, and .git/objects.
For more information on this error in VSCode, see the official VSCode documentation: Visual Studio Code – Unable to watch for file changes (ENOSPC).