Skip to content
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

This package is making editing files through ssh very slow #8

Open
asdrubalivan opened this issue Jul 8, 2019 · 3 comments
Open

This package is making editing files through ssh very slow #8

asdrubalivan opened this issue Jul 8, 2019 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@asdrubalivan
Copy link

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

@pauldub
Copy link
Owner

pauldub commented Jul 10, 2019

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

@pauldub pauldub added bug Something isn't working help wanted Extra attention is needed labels Jul 10, 2019
@asdrubalivan
Copy link
Author

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

@pauldub
Copy link
Owner

pauldub commented Jul 10, 2019

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: tkf/emacs-request#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants