Got this error while trying to save a file in Emacs lately. Seems to be related to lsp-mode, which I'm using with Elixir. Solution:
M-x file-notify-rm-all-watches
Before:
1 2 3 4 | ❯ ps auxww| grep Emacs jerome 1697 0.0 1.0 37216772 162408 ?? S 16Feb23 21:04.84 /Applications/Emacs .app /Contents/MacOS/Emacs ❯ lsof -p 1697 | wc -l 1640 |
After:
1 2 | ❯ lsof -p 1697 | wc -l 664 |