emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
614 stars 160 forks source link

Tramp hangs on remote R execution #1161

Open tonosam opened 2 years ago

tonosam commented 2 years ago

Hello:

Tramp works fine for me (on Windows 10, Putty/plinkx). I can open a remote R file and ESS mode activates but when I try to eval any R code or, when in dired mode, I try to open an R shell (M-x R), Tramp hangs on message "Opening connection".

In this example, I wait 5 minutes and quit (C-g) and I can see the messages I post at the bottom. I don't know if the ^H is normal or not...

Any idea about what may be happening?

Anyway, I really thank all developers and helpers for this package. I really appreciate it.

Regards from Spain!

*debug tramp*
-------------------------
19:16:51.795268 tramp-send-command (6) # exec env TERM='dumb' INSIDE_EMACS='27.1,comint,tramp:2.5.1.2' ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh  -i
19:16:51.868511 tramp-wait-for-regexp (6) #
exec env TERM='dumb' INSIDE_EMACS='27.1,comint,tramp:2.5.1.2' ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /b
<,tramp:2.5.1.2' ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bi                                              ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^Hn/sh  -i
#$
#$
19:16:51.869071 tramp-send-command (6) # (cd ~/) 2>/dev/null; echo tramp_exit_status $?
19:16:51.938356 tramp-wait-for-regexp (6) #
(cd ~/) 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 0
#$
#$
19:16:51.938822 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...done
19:16:51.939055 tramp-open-connection-setup-interactive-shell (5) # Setting up remote shell environment
19:16:51.939260 tramp-send-command (6) # set +o vi +o emacs
19:16:52.008170 tramp-wait-for-regexp (6) #
set +o vi +o emacs
#$
19:16:52.008515 tramp-send-command (6) # stty -inlcr -onlcr -echo kill '^U' erase '^H'
19:16:52.078381 tramp-wait-for-regexp (6) #
stty -inlcr -onlcr -echo kill '^U' erase '^H'

#$
19:16:52.078768 tramp-send-command (6) # echo foo
19:21:17.168832 tramp-accept-process-output (1) # Quit: "Quit", ""
#$ #$ foo
#$ #$
--------------------------------------------

*Messages*
--------------------------------------------
For information about GNU Emacs and the GNU system, type C-h C-a.
Tramp: Opening connection nil for CexR using plinkx...done
Opening directory /plinkx:CexR:/home/ims/...done
Cannot read history file /plinkx:CexR:/home/ims/.Rhistory
Tramp: Opening connection R for CexR using plinkx...failed
Quit: ""
Tramp: Opening connection nil for CexR using plinkx...failed
Quit
Tramp: Opening connection nil for CexR using plinkx...failed
Quit
Tramp: Opening connection nil for CexR using plinkx...failed
Quit