Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the MojoMojo CPAN distribution.

Report information
The Basics
Id: 41507
Status: resolved
Priority: 0/
Queue: MojoMojo

People
Owner: Nobody in particular
Requestors: nonsolosoft [...] diff.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.999023
Fixed in: (no value)



Subject: fails test

Message body is not shown because it is too large.

On Sun Dec 07 10:38:42 2008, nonsolosoft@diff.org wrote: Show quoted text
> Test Summary Report > ------------------- > t/formatter_toc (Wstat: 0 Tests: 3 Failed: 3) > Failed tests: 1-3
I've got the same failure here on linux/x86. Here's a boiled down version of the first failing test: infinoid@quack ~/MojoMojo-0.999027 $ perl -Iblib/lib -MMojoMojo::Formatter::TOC -we 'my $str = "<br />Ok"; MojoMojo::Formatter::TOC->format_content(\$str); print("$str\n");' <br />Ok infinoid@quack ~/MojoMojo-0.999027 $ perl -Iblib/lib -MMojoMojo::Formatter::TOC -we 'my $str = "=toc<br />Ok"; MojoMojo::Formatter::TOC->format_content(\$str); print("$str\n");' Use of uninitialized value $str in concatenation (.) or string at -e line 1. The POD-like "=toc" prefix at the beginning of the string seems to make the result undef. Here's my list of installed dependency versions: [Core Features] - Algorithm::Diff ...loaded. (1.1902 >= 1.1901) - Algorithm::Merge ...loaded. (0.08) - Archive::Zip ...loaded. (1.26 >= 1.14) - Catalyst ...loaded. (5.71000 >= 5.7000) - Catalyst::Action::RenderView ...loaded. (0.08 >= 0.07) - Catalyst::Controller::HTML::FormFu ...loaded. (0.03007 >= 0.02000) - Catalyst::Model::DBIC::Schema ...loaded. (0.21 >= 0.01) - KinoSearch ...loaded. (0.163) - Catalyst::Plugin::Authentication ...loaded. (0.10010 >= 0.10005) - Catalyst::Authentication::Store::DBIx::Class ...loaded. (0.1082 >= 0.101) - Catalyst::Plugin::Email ...loaded. (0.08) - Catalyst::Plugin::ConfigLoader ...loaded. (0.22 >= 0.13) - Catalyst::Plugin::Session::Store::File ...loaded. (0.13) - Catalyst::Plugin::Session::State::Cookie ...loaded. (0.10) - Catalyst::Plugin::Singleton ...loaded. (0.02 >= 0.02) - Catalyst::Plugin::Static::Simple ...loaded. (0.20 >= 0.07) - Catalyst::Plugin::SubRequest ...loaded. (0.13 >= 0.09) - Catalyst::Plugin::Unicode ...loaded. (0.8 >= 0.8) - Catalyst::Plugin::I18N ...loaded. (0.08) - Catalyst::View::TT ...loaded. (0.27 >= 0.23) - Catalyst::View::JSON ...loaded. (0.24) - Cache::Memory ...loaded. (2.04) - Config::General ...loaded. (2.42) - Data::FormValidator::Constraints::DateTime ...loaded. (1.09) - DateTime::Format::Mail ...loaded. (0.3001) - DBIx::Class::DateTime::Epoch ...loaded. (0.03) - DBIx::Class::HTML::FormFu ...loaded. (0.01005) - HTML::FormFu::Model::DBIC ...loaded. (0.03007) - DBIx::Class::EncodedColumn ...loaded. (0.00002) - Module::Pluggable::Ordered ...loaded. (1.5 >= 1.4) - Data::Page ...loaded. (2.01 >= 2.00) - DateTime ...loaded. (0.4401 >= 0.28) - DBD::SQLite ...loaded. (1.14 >= 1.08) - File::MMagic ...loaded. (1.27 >= 1.27) - File::Copy::Recursive ...loaded. (0.38) - HTML::GenToc ...loaded. (3.10) - HTML::Strip ...loaded. (1.06 >= 1.04) - HTML::Scrubber ...loaded. (0.08) - HTML::TagCloud ...loaded. (0.34) - Image::ExifTool ...loaded. (7.51) - Image::Math::Constrain ...loaded. (1.02) - Imager ...loaded. (0.65) - IO::Scalar ...loaded. (2.110) - IO::File ...loaded. (1.14 >= 1.14) - LWP::Simple ...loaded. (5.810) - Moose ...loaded. (0.68) - Pod::Simple::HTML ...loaded. (3.03 >= 3.01) - String::Diff ...loaded. (0.04) - Template::Plugin::JavaScript ...loaded. (0.01) - Text::Context ...loaded. (3.6 >= 3.5) - URI ...loaded. (1.37 >= 1.35) - XML::Clean ...loaded. (0) - YAML ...loaded. (0.66 >= 0.36) - URI::Fetch ...loaded. (0.08) - Text::Password::Pronounceable ...loaded. (0.28) - DBIx::Class ...loaded. (0.08011 >= 0.08) - Syntax::Highlight::Engine::Kate ...loaded. (0.04) - Cache::FastMmap ...loaded. (1.28) - Config::JFDI ...loaded. (0.04) [Automatic deployment] - SQL::Translator ...loaded. (0.09003) [Markdown Formatter] - Text::MultiMarkdown ...loaded. (1.0.24 >= 1.0.17)
On Thu Feb 12 12:09:48 2009, INFINOID wrote: Show quoted text
> The POD-like "=toc" prefix at the beginning of the string seems to make > the result undef.
[snip] Show quoted text
> - HTML::GenToc ...loaded. (3.10)
Downgrading that to 3.00 seems to be a valid workaround.
From: ddascalescu+perl [...] gmail.com
On Thu Feb 12 09:23:44 2009, INFINOID wrote: Show quoted text
> On Thu Feb 12 12:09:48 2009, INFINOID wrote:
> > The POD-like "=toc" prefix at the beginning of the string seems to make > > the result undef.
> > [snip] >
> > - HTML::GenToc ...loaded. (3.10)
> > > Downgrading that to 3.00 seems to be a valid workaround.
Update on the ToC: we removed the dependency on HTML::GenToc and use HTML::Toc instead. Please get the latest TOC.pm from http://github.com/marcusramberg/mojomojo/blob/16d932f88b543e2ce21def99b3419924cf5396fb/lib/MojoMojo/Formatter/TOC.pm (there's a 'raw' link). This ToC is tested and stable and will be moved from the syntax_change branch to master.
Marking this resolved since the has been fixed in later versions of MojoMojo. Try the latest, 0.999029.