emacs-ess / ESS

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

"Save workspace image?" spam when running `system(zip)` functions #1283

Open kaibagley opened 8 months ago

kaibagley commented 8 months ago

Hey,

Setup

OS: Windows 10 Emacs: 29.1 (build 2) 2023-08-02 ESS: 18.10.3snapshot

Issue

When running raster::KML, or utils::zip, the R buffer will suddenly print thousands of lines of:

Save workspace image? [y/n/c]: >

With no way to quit other than killing the R process in task manager.

What I've tried

I can see that raster::KML calls a function .zipKML, which then calls system(...), similar to utils::zip.

I've tried uninstalling 7zip, but same problem. Even calling system("zip") with no other arguments causes the same issue.

This error only happens on Emacs/ESS, and not on Rstudio.

Thanks for any help!!!

ppanko commented 1 month ago

Having the same issue on Windows 11 with Emacs 27.1, ESS version 24.01.1 on a minimal config.

Calls involving system, Rcpp, rstan or brms all result in the R process printing "Save workspace image? [y/n/c/]" repeatedly and becoming unresponsive. This occurs both when sending lines to the process (e.g., ess-eval-region) and when evaluating a line directly in the inferior R buffer.

Attempts at debugging haven't resulted in anything; this behavior does not seem to be producing an error. The messages buffer offers no information either. Running the same code using Rstudio or RGui does not produce this issue.