jwiegley / emacs-async

Simple library for asynchronous processing in Emacs
GNU General Public License v3.0
828 stars 68 forks source link

copy-file to remote works only with threads #112

Open jeswcollins opened 5 years ago

jeswcollins commented 5 years ago

I'm writing about an issue with async.el we found when investigating an issue with ssh-deploy

(async-start (lambda() (copy-file path-local path-remote t t t t)) (lambda(response) (message "Copied with response: %s" response))

Fails to copy to a remote host (emacs 26, ssh).

Though the copy succeeds with threads (albeit with some timer error messages): (make-thread (lambda() (message "Copied with response: %s" (copy-file path-local path-remote t t t t))

thierryvolpiatto commented 5 years ago

Jesse W. Collins notifications@github.com writes:

I'm writing about an issue with async.el we found when investigating an issue with ssh-deploy

(async-start (lambda() (copy-file path-local path-remote t t t t)) (lambda(response) (message "Copied with response: %s" response))

Fails to copy to a remote host (emacs 26, ssh).

Be sure you have an authentification system (auth-source) that requires no user interaction i.e. enter password.

Though the copy succeeds with threads (albeit with some timer error messages): (make-thread (lambda() (message "Copied with response: %s" (copy-file path-local path-remote t t t t))

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.*

-- Thierry

Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997

jeswcollins commented 5 years ago

Yes, correct. EDIT: Oh I see the README now. I will add the recommended line to the init file.

jeswcollins commented 5 years ago

I don't see why I should need an auth-source, I have a key pair for ssh without user and pass. I also don't have use-package at the moment.