emacs-ess / ESS

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

`corfu--auto-complete-deferred` error causing stuttering with Corfu+ESS #1267

Open kaibagley opened 1 year ago

kaibagley commented 1 year ago

OS: Windows 10 Emacs version: 29.1 build 2 Corfu version: 0.38 ESS version: 18.10.3snapshot

Hey,

When using corfu + ESS, I regularly get stuttering while typing, and if I stop typing at the right time I can see in the minibuffer an error message:

Error running timer 'corfu--auto-complete-deferred': (user-error "ESS process not ready. Finish your command before trying again")

I brought this up on the Corfu tracker and minad mentioned that he believes it is likely due to the ESS Capf being uninterruptible. Thanks for any help!

KaiAragaki commented 1 year ago

OS: macOS 14.0 Emacs version: 29.1 build 1 Corfu version: 0.38 ESS version: Commit 8b4664e4a76a573b76ab3cf7a467d5e20fd5a6de

I also get this error. When this happens, I cannot stop iESS via C-c C-c, and typically have to kill the process and start it anew. I don't get stuttering while typing, though.

kaibagley commented 1 year ago

Interesting, I don't have to restart R to fix it in my case, it just causes stuttering for me

KaiAragaki commented 1 year ago

A temporary, but not preferred workaround, is setting corfu-auto to nil.

KaiAragaki commented 1 year ago

Since this is also the solution to https://github.com/emacs-ess/ESS/issues/1226, perhaps they're related.