inotify alert (#15027)
Release Notes: - linux: Show an error and troubleshooting steps for inotify limits (#10310)
This commit is contained in:
parent
41a3e78b1e
commit
b0c525af5f
4 changed files with 103 additions and 29 deletions
|
@ -122,3 +122,13 @@ All of these features are provided by XDG desktop portals, specifically:
|
|||
- `org.freedesktop.portal.Secret`, or `org.freedesktop.Secrets`
|
||||
|
||||
Some window managers, such as `Hyprland`, don't provide a file picker by default. See [this list](https://wiki.archlinux.org/title/XDG_Desktop_Portal#List_of_backends_and_interfaces) as a starting point for alternatives. `KDE` doesn't implement the secret portal, installing `gnome-keyring` may solve this.
|
||||
|
||||
### Could not start inotify
|
||||
|
||||
Zed relies on inotify to watch your filesystem for changes. If you cannot start inotify then Zed will not work reliably.
|
||||
|
||||
If you are seeing "too many open files" then first try `sysctl fs.inotify`.
|
||||
* You should see that max_user_instances is 128 or higher (you can change the limit with `sudo sysctl fs.inotify.max_user_instances=1024`). Zed needs only 1 inotify instance.
|
||||
* You should see that `max_user_watches` is 8000 or higher (you can change the limit with `sudo sysctl fs.inotify.max_user_watches=64000`). Zed needs one watch per directory in all your open projects + one per git repository + a handful more for settings, themes, keymaps, extensions.
|
||||
|
||||
It is also possible that you are running out of file descriptors. You can check the limits with `ulimit` and update them by editing `/etc/security/limits.conf`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue