activity-watch-mode icon indicating copy to clipboard operation
activity-watch-mode copied to clipboard

This package is making editing files through ssh very slow

Open asdrubalivan opened this issue 5 years ago • 3 comments

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

asdrubalivan avatar Jul 08 '19 12:07 asdrubalivan

Looks like this is related to the requests package, I'll have a look.

pauldub avatar Jul 10 '19 07:07 pauldub

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

asdrubalivan avatar Jul 10 '19 12:07 asdrubalivan

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

pauldub avatar Jul 10 '19 14:07 pauldub