zero9178 / C-Cpp-Coverage-for-CLion

Get coverage data in CLion using gcov or llvm-cov
MIT License
38 stars 2 forks source link

NumberFormatException: For input string: "5399167664" #6

Closed gjasny closed 5 years ago

gjasny commented 5 years ago

Hello,

I get the following exception in CLion in 2019.1.2 with gcc / gcov version 8.

I installed gcc 8 via brew install gcc and pointed the coverate gcov to /usr/local/bin/gcov-8. Then I set the following environment variables to use GCC and enable coverage: CXXFLAGS=--coverage;LDFLAGS=--coverage;CFLAGS=--coverage;CC=gcc-8;CXX=g++-8.

When I do c coverage run I get the following exception:

java.lang.NumberFormatException: For input string: "5399167664"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:583)
    at java.lang.Integer.parseInt(Integer.java:615)
    at gcov.data.CoverageThread.parseGCov(CoverageThread.kt:146)
    at gcov.data.CoverageThread.run(CoverageThread.kt:191)

Thanks, Gregor