Subject: | nytprofhtml and nytprofmerge both fail with "...version 4.06 doesn't match version 4.07 of ..." |
In Version 4.07 the version numbers from the two helper utilities,
"nytprofhtml" and "nytprofmerge" will fail to execute, announcing the
following error message:
$ nytprofhtml
/home/davido/perl5/bin/nytprofhtml version '4.06' doesn't match version
'4.07' of /home/davido/perl5/lib/perl5/x86_64-linux/Devel/NYTProf/Core.pm
The issue is really simple: The version numbers of those two utilities
didn't get updated in release 4.07 from their previous number of 4.06.
Sorry for a 'git diff' patch: I don't use subversion, but it's only two
lines of code to fix. Here's a patch:
$ git diff
diff --git a/bin/nytprofhtml b/bin/nytprofhtml
index 1d861d5..0047e74 100755
--- a/bin/nytprofhtml
+++ b/bin/nytprofhtml
@@ -44,7 +44,7 @@ use Devel::NYTProf::Constants qw(NYTP_SCi_CALLING_SUB);
my $json_any = eval { require JSON::Any; JSON::Any->import;
JSON::Any->new }
or warn "Can't load JSON::Any module - HTML visualizations skipped.\n";
-our $VERSION = '4.06';
+our $VERSION = '4.07';
if ($VERSION != $Devel::NYTProf::Core::VERSION) {
die "$0 version '$VERSION' doesn't match version
'$Devel::NYTProf::Core::VERSION' of $INC{'Devel/NYTProf/Core.pm'}\n";
diff --git a/bin/nytprofmerge b/bin/nytprofmerge
index cd20ba4..a7b1842 100755
--- a/bin/nytprofmerge
+++ b/bin/nytprofmerge
@@ -18,7 +18,7 @@ require Devel::NYTProf::FileHandle;
require Devel::NYTProf::Data;
use List::Util qw(min sum);
-our $VERSION = '4.06';
+our $VERSION = '4.07';
if ($VERSION != $Devel::NYTProf::Core::VERSION) {
die "$0 version '$VERSION' doesn't match version
'$Devel::NYTProf::Core::VERSION' of $INC{'Devel/NYTProf/Core.pm'}\n";