[ESS] tracebug ess-inject-source race condition

Vitalie Spinu spinuvit at gmail.com
Wed Jun 26 17:02:11 CEST 2013


Thanks Rodney, 

I have fixed it on elisp side by deleting temp file only when process is
not busy. This guaranties that all the files have been processes by that
time.

    Vitalie

 >> Rodney Sparapani <rsparapa at mcw.edu>
 >> on Wed, 26 Jun 2013 08:48:47 -0500 wrote:

 > On 06/26/2013 04:22 AM, Vitalie Spinu wrote:
 >> > A well working alternative might be to clean up files which must be
 >> > named in our "file pattern" if they are older than one week or
 >> > so. {may harm people who run an ESS for longer than one week, but
 >> > should they really be doing that ??}
 >> 
 >> Indeed, this looks like a pretty reliable option, I hope it is also
 >> fast.
 >> 

 > I vote no.  Here we have users who have ESS sessions going for long
 > periods of time:  a week would not be out of the ordinary.

 >> Another option is to make R to delete the file after sourcing it. I know
 >> how to implement this reliably in R but not in other ESS dialects. So
 >> emacs side solution is desirable anyways.
 >> 
 >> Vitalie

 > I'd rather try this.  Other ESS dialects are not as interactive as
 > R so it is less of an issue there (except, of course, S+).



More information about the ESS-help mailing list