Sublime Forum

Inotify issues on LInux

#1

I am constantly running into the issue where both Sublime Text and Sublime Merge no longer watch files. This specifically is an issue on Linux.

Sublime Merge won’t see changes to currently tracked files, and new folders and and files don’t appear in Sublime Text sidebar:

In Sublime Text I see the following errors in the console:

inotify_add_watch failed: No space left on device (/some/file/name)

Is there any kind of mitigation for this? At this point I have to keep reopening the applications to see any changes:

Sublime Text: 3210
Sublime Merge: 1118

0 Likes

Sublime merge not updating unstaged files when files change on disk
#2

Hmm, I guess after noticing another comment in the console, we need to increase the watches:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

I guess. I’ll keep a watch on this and see if this fixes the issue.

0 Likes

#3

The next version of Sublime Text/Sublime Merge will handle this better, ie. you’ll get a prompt to change the inotify setting along with the option to automatically make the change.

2 Likes

#4

Thanks @bschaaf! That’d be super helpful as it wasn’t immediately clear what was happening.

0 Likes