[ESS] tracebug ess-inject-source race condition

Vitalie Spinu spinuvit at gmail.com
Mon Jun 24 03:25:47 CEST 2013


Thanks for reporting this. 

I guess the only reliable solution is to not delete temp files at
all. Or at least do the cleaning only on the process termination. 

    Vitalie

 >> Peter Meilstrup <peter.meilstrup at gmail.com>
 >> on Sun, 23 Jun 2013 14:41:20 -0700 wrote:

 > Here's a problem with how tracebug evaluates code chunks.
 > (1) set ess-inject-source to t

 > (2) Create an .R file with some code chunks that take an appreciable time
 > to evaluate. Then send a series of chunks using C-c -C-c (or faster: C-c
 > C-c, C-x C-z, z, z, z, z, z). The point is that ESS is sending chunks
 > faster than the R process runs them.

 > This results in ESS deleting temporary files before R can see them,
 > resulting in errors like:

 >> Error in file(filename, "r", encoding = encoding) :
 >   cannot open the connection
 > In addition: Warning message:
 > In file(filename, "r", encoding = encoding) :
 >   cannot open file
 > '/var/folders/Zz/ZzJ1nC8pHNGtZb-btS+lGU+++Tc/-Tmp-/ESS-region/bdd.R at 241':
 > No such file or directory

 > 	[[alternative HTML version deleted]]

 > ______________________________________________
 > ESS-help at r-project.org mailing list
 > https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list