>Von: codeface-bounce@xxxxxxxxxxxxx <codeface-bounce@xxxxxxxxxxxxx> im Auftrag >von Wolfgang Mauerer <wm@xxxxxxxxxxxxxxxx> >Gesendet: Freitag, 27. Februar 2015 21:35 >An: codeface@xxxxxxxxxxxxx >Betreff: [codeface] Re: Preparing time series data - sloccount analysis > >Am 27/02/2015 um 20:30 schrieb Mitchell Joblin: >> Hi Matthias, >> >> On Fri, Feb 27, 2015 at 5:09 PM, Matthias Gemmer >> <matthias.gemmer@xxxxxxxxxxxxxxxxxxxx> wrote: >>> Codeface is checked out from the branch mitchell-updates (hash: 88db2d5). >>> >>> >>> Performing the analysis of the projects linux-kernel (tagging: 'feature', >>> 'proximity'), openssl and jquery raises an error during preparing time >>> series data. >>> >>> The Traceback occurs in every project-analysis after the first sloccount >>> analysis. >>> >>> >>> 2015-02-22 16:58:46 [codeface.R.complexity] INFO: Performing sloccount >>> analysis for acf102237f9e26c1b864bf6e432f65040b477851 >>> 2015-02-22 16:58:47 [codeface.R] INFO: Traceback: >>> 0: >>> 1: config.script.run({ >>> conf <- config.from.args(positional.args = list("rep >>> 2: withCallingHandlers(expr, error = function(e) { >>> if (!interactive()) { >>> >>> 3: do.complexity.analysis(conf) >>> 4: mclapply.db(conf, 1:nrow(commits.list), function(conf, i) { >>> logdevinfo(s >>> 5: mclapply(X, function(i) { >>> conf <- init.db.global(conf) >>> res.local <- F >>> 6: lapply(X = X, FUN = FUN, ...) >>> 7: FUN(1:18[[1]], ...) >>> 8: FUN(conf, i) >>> 9: add.sloccount.ts(conf, sloccount.plot.id, commit.date, res) >>> 10: cbind(plotId = plot.id, time = commit.date, values$metrics) >>> 11: cbind(deparse.level, ...) >>> 12: data.frame(..., check.names = FALSE) >>> 13: stop(gettextf("arguments imply differing number of rows: %s", >>> paste(unique( >>> 2015-02-22 16:58:47 [codeface.R] CRITICAL: arguments imply differing number >>> of rows: 0, 1 >>> 2015-02-22 16:58:47 [codeface.R] INFO: Error dump was written to >>> 'error.dump.rda'. >>> 2015-02-22 16:58:47 [codeface.R] INFO: To debug, launch R and run >>> 'load("error.dump.rda"); debugger(error.dump)' >> >> You can use this recommendation above to load the error.dump then >> check for any odd values in the working variables. That will give you >> a hint of what went wrong. I have recently analyzed jquery and linux > >in particular, please go to call frame #9 and check the content >of commit.date and values (use function print). As the error message >says, "arguments imply differing number of rows", so there seems >to be something wrong with the output gathered from sloccount. > Which output is expected from sloccount at this point? Enter an environment number, or 0 to exit Selection: 9 Browsing in the environment with call: add.sloccount.ts(conf, sloccount.plot.id, commit.date, res) Called from: debugger.look(ind) Browse[1]> ls() [1] "commit.date" "conf" "plot.id" "values" Browse[1]> print(commit.date) [1] "2006-09-05 20:20:16 UTC" Browse[1]> print(values) $lang.info lang lines fraction 1 xml 98 0.5833333 2 perl 70 0.4166667 $metrics person.months total.cost schedule.months avg.devel 1 0.37 4426 1.71 0.22 Browse[1]> > >Which version of sloccount are you using? It's version 2.26. >Best regards, Wolfgang Mauerer >> and didn't see this error. I remember you were having trouble with >> successfully running the test suite. Is that problem solved? > > >> >> Kind regards, >> >> Mitchell >> >>> 2015-02-22 16:58:47 [codeface.util] MainProcess ERROR: Command >>> '/home/codeface/codeface/codeface/R/complexity.r --loglevel info -c >>> /home/codeface/codeface/codeface.conf -p /tmp/jquerytraj0B -j 1 >>> /home/codeface/projects/jquery/.git 33' failed with exit code 1. >>> (stdout: None >>> stderr: None) >>> Traceback (most recent call last): >>> File "/home/codeface/.local/bin/codeface", line 9, in <module> >>> load_entry_point('codeface==0.2.0', 'console_scripts', 'codeface')() >>> File "/home/codeface/codeface/codeface/cli.py", line 198, in main >>> return run(sys.argv) >>> File "/home/codeface/codeface/codeface/cli.py", line 194, in run >>> return args.func(args) >>> File "/home/codeface/codeface/codeface/cli.py", line 112, in cmd_run >>> args.profile_r, args.jobs, args.tagging) >>> File "/home/codeface/codeface/codeface/project.py", line 173, in >>> project_analyse >>> execute_command(cmd, direct_io=True, cwd=cwd) >>> File "/home/codeface/codeface/codeface/util.py", line 278, in >>> execute_command >>> raise Exception(msg) >>> Exception: Command '/home/codeface/codeface/codeface/R/complexity.r >>> --loglevel info -c /home/codeface/codeface/codeface.conf -p >>> /tmp/jquerytraj0B -j 1 /home/codeface/projects/jquery/.git 33' failed with >>> exit code 1. >>> (stdout: None >>> stderr: None) >>> >>> >>> The linux-kernel with tagging 'tag' returns an TypeError: iteration over >>> non-sequence. >>> >>> >>