You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any idea why that is happening? The already existing error handling code (https://github.com/clhunsen/cppstats/blob/master/analyses/featurelocations.py#L687) seems to be handling that situation wrong as I would expected a crash instead of creating an invalid .csv file. However I need the root cause so cppstats runs properly on travis.
Thanks again for reporting. After some debugging, my best assumption for this error is a wrong src2srcml version. According to the TravisCI page, the system is a Ubuntu 12.04 64-bit, but the shipped version of srcML is for Ubuntu 14.04 64-bit.
Try downgrading the scrML binaries (in lib/srcml/linux) with appropriate versions from here. If the test fails again, we need to have a closer look by introducing more debugging code or, even better, by inspecting the temporary files that are written by cppstats in the file-based analysis.
Regarding the expected crash, I must say that the defensive handling comes from the multi-file analysis, but you are also right. This must be handled better. I opened issue #12 for that, any news about the issue will go there.
When running in travis I get:
$ /usr/bin/env cppstats --kind featurelocations --file /tmp/tmp4GFmR1.c /tmp/tmpgqa8Ef.csv
The test-file I used was:
Any idea why that is happening? The already existing error handling code (https://github.com/clhunsen/cppstats/blob/master/analyses/featurelocations.py#L687) seems to be handling that situation wrong as I would expected a crash instead of creating an invalid
.csv
file. However I need the root cause so cppstats runs properly on travis.You can see the error in https://travis-ci.org/matthid/codeface/builds/49739940#L4149
This makes the following unit test in codeface fail: https://github.com/matthid/codeface/blob/integration/codeface/test/unit/test_cppstats_works.py#L62
Any help/hint is appreciated.
The text was updated successfully, but these errors were encountered: