emacs-ess / ESS

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

Emacs/Tramp freezes/hangs due to ESS #1217

Open ghost opened 1 year ago

ghost commented 1 year ago

I'm running doomemacs (but the issue was happening on plain emacs too), and this is my configuration: https://pastebin.com/pr2htCUU When writing code in a .R file, opened via tramp, Emacs will hang frequently. I am able to C-g a few times to stop the freeze and type for a few seconds, but then the same problem happens again, over and over. This is the output of debug on quit:

Screen Shot 2022-08-24 at 10 19 31 AM

Another debug output when trying to write a tibble:

Screen Shot 2022-08-24 at 10 25 06 AM

This is where the cursor was when Emacs froze:

Screen Shot 2022-08-24 at 10 26 10 AM

Question: Can anyone help me understand what is causing Emacs to freeze and how to solve it?

Please let me know what other information I can provide that would be useful. Thank you!

Edit 1: I'm using ESS 18.10.3, and launched a shell, sshx into the remote server, started R, and used ess-remote. I'm trying to run an R process now with M-x R(setting inferior-ess-r-program to the remote install) instead to check if the problem persists.

Edit 2: The problem is not happening when I start R with M-x R, but rather when I use ess-remote.

ghost commented 1 year ago

Still having the same issue, with both M-x R and with ess-remote. I have also disabled company, but the problem persists.

Screen Shot 2022-09-21 at 2 53 54 PM
ghost commented 1 year ago

Bump. Still having the same issue even after disabling completion packages.

ghost commented 1 year ago

Same issue, with the same debug on quit error is happening locally (no tramp, no ess-remote, no ssh at all), just a plain buffer with R-mode on.