[codeface] AW: Re: Unit tests - Exception in mailing list analysis executing batch.R

  • From: Matthias Gemmer <matthias.gemmer@xxxxxxxxxxxxxxxxxxxx>
  • To: "codeface@xxxxxxxxxxxxx" <codeface@xxxxxxxxxxxxx>
  • Date: Fri, 30 Jan 2015 15:08:28 +0000

I cloned the latest commit of the branch "mitchell-updates" and installed 
codeface.
There are the following failures running unit tests:

1) IOError: [Errno 2] No such file or directory: '/tmp/does_not_exist_42_42'
    2015-01-30 15:57:19 [codeface.configuration] MainProcess ERROR: Could not 
parse configuration file '/tmp/tmp4cq_OI'

2) [codeface.util] MainProcess ERROR: Command 'Rscript -e library(testthat); if 
(test_dir(".")$n > 0) stop("Some tests failed.")' failed with exit code 1.

3) [codeface.configuration] MainProcess CRITICAL: Malformed configuration: 
revision and rcs list lengths differ! Found 5 revisions and 4 release 
candidates.

4) [codeface.VCS] MainProcess CRITICAL: doxygen analysis error[Errno 2] No such 
file or directory - defaulting to Ctags

5) [codeface.util] MainProcess ERROR: Command 
'/home/matthias/codeface/codeface/R/cluster/persons.r --loglevel devinfo 
--logfile /tmp/codeface_test_project9FdvGm/.git/log.R.r0 -c 
/home/matthias/codeface/codeface_testing.conf -p 
/tmp/codeface_test_project9FdvGm3NuXGh 
/tmp/codeface_test_project9FdvGm/.git/results/codeface_test_project9FdvGm/proximity/v0_release-v1_release
 153' failed with exit code 1.

Best Regards,
Matthias Gemmer

________________________________________
Von: codeface-bounce@xxxxxxxxxxxxx <codeface-bounce@xxxxxxxxxxxxx> im Auftrag 
von Wolfgang Mauerer <wm@xxxxxxxxxxxxxxxx>
Gesendet: Dienstag, 27. Januar 2015 13:16
An: codeface@xxxxxxxxxxxxx
Betreff: [codeface] Re: Unit tests - Exception in mailing list analysis 
executing batch.R

Am 27/01/2015 12:55, schrieb Mitchell Joblin:
> On Tue, Jan 27, 2015 at 9:03 AM, Wolfgang Mauerer <wm@xxxxxxxxxxxxxxxx> wrote:
>>
>>
>> Am 26/01/2015 17:33, schrieb Matthias Gemmer:
>>> Hello,
>>>
>>> I am using R version 3.1.2. All required packages should be installed
>>> correctly.
>>>
>>> Running the unit tests still raises an exception, something goes wrong
>>> in the mailinglist analysis:
>>>
>>> Exception: Command '/home/matthias/codeface/codeface/R/ml/batch.r
>>> --logfile /tmp/codeface_test_projectH8ZL0F/.git/log.R.ml.0 --loglevel
>>> devinfo -c /home/matthias/codeface/codeface_testing.conf -p
>>> /tmp/codeface_test_projectH8ZL0F/.git/testproject.conf -j 1
>>> /tmp/codeface_test_projectH8ZL0F/.git/results/codeface_test_projectH8ZL0F/ml
>>> /tmp/codeface_test_projectH8ZL0F/.git codeface_test_projectH8ZL0F.dev1'
>>> failed with exit code 1.
>>>
>>> The log file says:
>>> $cat /tmp/codeface_test_projectH8ZL0F/.git/log.R.ml.0
>>> ...
>>> 2015-01-26 14:49:40 [codeface.R.ml.analysis] INFO: Starting mailinglist
>>> analysis
>>> 2015-01-26 14:49:40 [codeface.R] INFO: Traceback:
>>>   0:
>>>   1: config.script.run({
>>>          positional.args <- list("resdir", "mldir", "listname
>>>   2: withCallingHandlers(expr, error = function(e) {
>>>          if (!interactive()) {
>>>
>>>   3: dispatch.all(conf, conf$mldir, conf$resdir)
>>>   4: gen.forest(conf, repo.path, resdir)
>>>   5: gen.corpus(conf$listname, repo.path, suffix = ".mbox", marks =
>>> c("^_{10,}",
>>>   6: preprocess(corp)
>>>   7: sapply(corp, Author)
>>>   8: match.fun(FUN)
>>> 2015-01-26 14:49:40 [codeface.R] CRITICAL: object 'Author' not found
>>
>> package tm changed the interface in the latest release (0.6) and does
>> not pro function Author() any more. The replacement call is meta(), see
>> http://cran.r-project.org/web/packages/tm/tm.pdf.
>> The call to Author() needs to be changed (or a replacement provided
>> via meta()); can you please file an appropriate bug? Or better
>> still, submit a patch :)
>
> No need to send a patch for this. I fixed this a while back in
> eef75f98 on the mitchell-updates branch, it just hasn't been merged to
> master yet. Now that I can commit to master I will merge that very
> soon.
great, I did not realise that. I agree that it's high time we merge
your updates branch. I'm fine with the branch.

Cheers, Wolfgang
>
> --Mitchell
>
>
>>
>> Thanks & best regards, Wolfgang Mauerer
>>
>>> 2015-01-26 14:49:40 [codeface.R] INFO: Error dump was written to
>>> 'error.dump.rda'.
>>> 2015-01-26 14:49:40 [codeface.R] INFO: To debug, launch R and run
>>> 'load("error.dump.rda"); debugger(error.dump)'
>>>
>>> Attached you can find the error dump.
>>>
>>> Kind regards,
>>> Matthias
>>>
>>>
>>
>


Other related posts: