-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaks when using TRAMP #9
Comments
@PythonNut Can file notifications work at all for remote directories? I guess not, so a simple yet proper fix was to not activate |
@tsdh I think it does work doesn't it? The fact that it loops indicates that the file notification system is working, right? |
@PythonNut Good point. :-) Hm, I just tried to reproduce the issue by finding a git working copy directory on a remote server and doing And now I tried on a different remote but then |
@PythonNut Well, actually I don't understand your description completely. magit-filenotify's refresh conditions are "something in a repo dir changed on disk". How does firing up or refreshing a magit status buffer change something on disk? But anyway, it is possible that my PR #12 already solves this issue by accident. Essentially, it delays magit status buffer refreshes as long as new file notifications keep coming in in a short period of time. So please test if you find some time. |
@tsdh git uses a lockfile ( I'll look into your PR when I get a few spare minutes. |
The |
Actually It just seems to hang if it has to handle too many remote directories (A SSH+gvfs-monitor-dir process is spawned for every subdir). Actually its not usable on big repos. I use GNU Emacs 24.5 and the tramp master branch. |
Not sure how relevant this is since I haven't been following this thread, but
The file watching mechanism may cast a wider net than you expect, cf magit/magit#2454 (comment) and http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22454 |
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22454 is fixed. Is this still an issue? |
It's not "fixed" exactly, I closed it because there was no bug in Emacs: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22454#13 So depending on the filesystem, it's possible that changes inside |
I just got the |
@alphapapa magit-filenotify is just an optional mode. You can run Magit without it. |
If
magit-filenotify
is enabled andmagit-status
is called on a TRAMP directory, the buffer will be caught in an infinite loop because of the extra delay of TRAMP causingmagit-filenotify
to trigger its own refresh conditions.The text was updated successfully, but these errors were encountered: