activity-watch-mode
activity-watch-mode copied to clipboard
This package is making editing files through ssh very slow
Hello! So I'm trying to edit files on ssh using this plugin and emacs freezes! I get the following messages in the console, where redacted is the IP of the ssh server I'm connecting to
Tramp: Opening connection for root@[redacted] using ssh...done REQUEST [error] Error (error) while connecting to http://localhost:5600/api/0/buckets/aw-watcher-emacs_localhost.localdomain. REQUEST [error] Failed delete file /ssh:root@[redacted]:/tmp/emacs-requestvFyTDa. Got: (file-error "Couldn’t delete /ssh:root@[redacted]:/tmp/emacs-requestvFyTDa") REQUEST [error] Failed delete file /ssh:root@[redacted]:/tmp/emacs-requestpqzPBG. Got: (file-error "Removing old name: is a directory" "/ssh:root@[redacted]:/tmp/emacs-requestpqzPBG")
It seems it's trying to use its temporary files within the ssh instance.
I'm using Emacs 26.2 from Fedora 30. Let me know if you need more assistance
Looks like this is related to the requests
package, I'll have a look.
Thank you! Let me know how can I help you! I'm not experienced with Lisp, but I can surely take a look at the relevant code
It looks like this is a builtin feature of requests when operating on remote files: https://github.com/tkf/emacs-request/blob/master/request.el#L959
I think you are facing an issue similar to this one: https://github.com/tkf/emacs-request/issues/59
Maybe you can try and set the requests backend to url-retrieve
which does not support tramp: http://tkf.github.io/emacs-request/manual.html#request-backend