Sunday, October 21, 2018

CLion: "external file changes sync may be slow" warning

Native file system watcher for Linux

Inotify requires a “watch handle” to be set for each directory it monitors.
Unfortunately, the default limit of watch handles may not be enough for reasonably sized projects.
The current limit can be verified by executing:

cat /proc/sys/fs/inotify/max_user_watches
It can be raised by adding following line to the /etc/sysctl.conf file:

fs.inotify.max_user_watches = 524288
… and issuing this command to apply the change:

sudo sysctl -p