Open cross opened 2 years ago
You'll need to specify DEVEL_COVER_DB_FORMAT=JSON
as an environment variable for the Devel::Cover
run to output the databases in a JSON
compatible format. The default is Sereal
as described here.
Is this still a problem?
I am using perl 5.24.4 with Devel::Cover 1.36. For some reason, I've begun getting the following error upon starting any perl script with Devel::Cover
Can't read /..../cover_db/digests with Cpanel::JSON::XS: Usage: Cpanel::JSON::XS::decode(self, jsonstr, typesv= NULL) at ...Devel/Cover/DB/IO/JSON.pm line 35.
I am using Cpanel::JSON::XS version 4.08.
I've tried with no
digests
file, and what had earlier been working (perhaps with a different array of perl modules on the system) of a file containing only{}
. Looking at that line in JSON.pm, it's calling it with<$fh>
which looks like it should meet that, but.This could well be an issue on my system, or how I've installed things, but I am not sure how to proceed. If this is an issue because of a newer Cpanel::JSON::XS, then maybe it's not fixable by me.