Skip to content

Instantly share code, notes, and snippets.

@ology
Created October 23, 2022 17:37
Show Gist options
  • Select an option

  • Save ology/8e8dbbbf01d576e2e3df193ac1c9baec to your computer and use it in GitHub Desktop.

Select an option

Save ology/8e8dbbbf01d576e2e3df193ac1c9baec to your computer and use it in GitHub Desktop.
A t/control.mid file is shipped with the module, but causes an ugly failure?
[2022-10-23 10:13:51] gene@mopey:~/sandbox/MIDI-Tab master
▸ dzil release
[DZ] beginning to build MIDI-Tab
[DZ] guessing dist's main_module is lib/MIDI/Tab.pm
[VersionFromModule] dist version 0.0402 (from lib/MIDI/Tab.pm)
[PkgVersion] skipping lib/MIDI/Tab.pm: assigns to $VERSION
[ExtraTests] rewriting author test xt/author/pod-coverage.t
[ExtraTests] rewriting author test xt/author/pod-syntax.t
[ExtraTests] rewriting author test xt/author/no-tabs.t
[ExtraTests] rewriting author test xt/author/eol.t
[ExtraTests] rewriting author test xt/author/pod-spell.t
Could not decode UTF-8 t/control.mid; filename set by GatherDir (Dist::Zilla::Plugin::GatherDir line 235); encoded_content added by GatherDir (Dist::Zilla::Plugin::GatherDir line 236); error was: UTF-8 "\xF2" does not map to Unicode at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/Role/File.pm line 153, <DATA> line 6.
; maybe you need the [Encoding] plugin to specify an encoding at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/Role/File.pm line 177, <DATA> line 6.
Dist::Zilla::Role::File::_throw(Dist::Zilla::File::OnDisk=HASH(0x55eb357e4898), "decode UTF-8", "UTF-8 \"\\xF2\" does not map to Unicode at /home/gene/perl5/perl"...) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/Role/File.pm line 154
Dist::Zilla::Role::File::catch {...} ("UTF-8 \"\\xF2\" does not map to Unicode at /home/gene/perl5/perl"...) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Try/Tiny.pm line 123
Try::Tiny::try(CODE(0x55eb370a8668), Try::Tiny::Catch=REF(0x55eb37122990)) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/Role/File.pm line 154
Dist::Zilla::Role::File::_decode(Dist::Zilla::File::OnDisk=HASH(0x55eb357e4898), "MThd\x{0}\x{0}\x{0}\x{6}\x{0}\x{0}\x{0}\x{1}\x{0}`MTrk\x{0}\x{0}\x{0}\x{f2}\x{0}\x{ff}\x{1}*t/01-methods.t at Sun Oct 23 10:09:"...) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/Role/MutableFile.pm line 63
Dist::Zilla::Role::MutableFile::content(Dist::Zilla::File::OnDisk=HASH(0x55eb357e4898)) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/Plugin/MinimumPerl.pm line 104
Dist::Zilla::Plugin::MinimumPerl::_scan_file(Dist::Zilla::Plugin::MinimumPerl=HASH(0x55eb339c6070), "test", Dist::Zilla::File::OnDisk=HASH(0x55eb357e4898)) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/Plugin/MinimumPerl.pm line 92
Dist::Zilla::Plugin::MinimumPerl::register_prereqs(Dist::Zilla::Plugin::MinimumPerl=HASH(0x55eb339c6070)) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/Dist/Builder.pm line 365
Dist::Zilla::Dist::Builder::build_in(Dist::Zilla::Dist::Builder=HASH(0x55eb33971d78), undef) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/Dist/Builder.pm line 430
Dist::Zilla::Dist::Builder::ensure_built_in(Dist::Zilla::Dist::Builder=HASH(0x55eb33971d78)) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/Dist/Builder.pm line 419
Dist::Zilla::Dist::Builder::ensure_built(Dist::Zilla::Dist::Builder=HASH(0x55eb33971d78)) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/Dist/Builder.pm line 497
Dist::Zilla::Dist::Builder::build_archive(Dist::Zilla::Dist::Builder=HASH(0x55eb33971d78)) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/Dist/Builder.pm line 624
Dist::Zilla::Dist::Builder::release(Dist::Zilla::Dist::Builder=HASH(0x55eb33971d78)) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/Dist/Zilla/App/Command/release.pm line 67
Dist::Zilla::App::Command::release::execute(Dist::Zilla::App::Command::release=HASH(0x55eb3178c9b8), Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x55eb31888cc0), ARRAY(0x55eb3155c4f8)) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/App/Cmd.pm line 473
App::Cmd::execute_command(Dist::Zilla::App=HASH(0x55eb3114f540), Dist::Zilla::App::Command::release=HASH(0x55eb3178c9b8), Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x55eb31888cc0)) called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/lib/site_perl/5.32.1/App/Cmd.pm line 326
App::Cmd::run("Dist::Zilla::App") called at /home/gene/perl5/perlbrew/perls/perl-5.32.1/bin/dzil line 19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment