emacs-ess / ESS

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

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

Open kaibagley opened 10 months ago

kaibagley commented 10 months 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 10 months 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 10 months ago

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

KaiAragaki commented 10 months ago

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

KaiAragaki commented 10 months ago

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