in reply to Re^4: Creating coverage big report
in thread Creating coverage big report

You have multiple versions of perl installed, with different sets of modules available. (Your 5.26 has Sereal but your 5.14 does not.) This is causing Devel::Cover to try to use different database formats for different runs, which of course are incompatible. Try setting the environment variable DEVEL_COVER_DB_FORMAT to either "JSON" or "Storable" to force a consistent database format.

Replies are listed 'Best First'.
Re^6: Creating coverage big report
by ovedpo15 (Pilgrim) on Oct 04, 2019 at 00:28 UTC
    Thank you for your help. I set the env to JSON but I still have the same error.
    Is it possible to make the coverage module pass PERL5OPT only to spescific scripts? That way, the perl scripts of flow runner tool will not be reflected by it

      After changing the format, you will have to delete the old database.

      And no, the coverage module is being loaded by setting PERL5OPT so you will need to either filter those from the report (as explained in the manpage for cover) or just ignore them.

        Thanks again for the help. I'm still having the following error:
        malformed JSON string, neither array, object, number, string or atom, +at character offset 0 (before "pst0\x{5}\x{6}\x{3}\x{0}...") at /usr/ +pkgs/perl/5.14.1/lib64/module/Devel/Cover/DB/IO/JSON.pm line 33
        So I'm trying to use the ignore option:
        setenv DEVEL_COVER_OPTIONS '+ignore,/usr/pkgs/perl/,tests/' setenv DEVEL_COVER_DB_FORMAT JSON
        Using this flag, I'm trying to ignore all paths /usr/pkgs/perl/* but the error is still remains. How can I remove this error?