Invalid Args('') for action attachment/defaultaction

classic Classic list List threaded Threaded
4 messages Options
sjv
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Invalid Args('') for action attachment/defaultaction

sjv
Hi mojo-ers,

I was wondering if anyone has encountered errors such as the following in CPAN before.  I've had a wild ride trying to get mojomojo working on Mac OS X 10.5 and this appears to be the final hurdle.  Any suggestions very gratefully received!

Thanks,

Sam


t/01app.t ....................... 1/2
#   Failed test 'use Catalyst::Test;'
#   at t/01app.t line 7.
#     Tried to use 'Catalyst::Test'.
#     Error:  Could not load class (MojoMojo) because : Invalid Args('') for action attachment/defaultaction (use 'Args' or 'Args(<number>)' at /Library/Perl/5.8.8/Catalyst/Dispatcher.pm line 536
# Compilation failed in require at /Library/Perl/5.8.8/darwin-thread-multi-2level/Class/MOP.pm line 135.
#  at /Library/Perl/5.8.8/darwin-thread-multi-2level/Class/MOP.pm line 120
# Class::MOP::load_first_existing_class('MojoMojo') called at /Library/Perl/5.8.8/darwin-thread-multi-2level/Class/MOP.pm line 141
# Class::MOP::load_class('MojoMojo') called at /Library/Perl/5.8.8/Catalyst/Test.pm line 23
# Catalyst::Test::__ANON__('Catalyst::Test', 'all', 'HASH(0x28e86c0)', 'HASH(0xe38dc8)') called at /Library/Perl/5.8.8/Sub/Exporter.pm line 493
# Sub::Exporter::_expand_group('Catalyst::Test', 'HASH(0x28e82a0)', 'ARRAY(0x28e7b88)', 'HASH(0xe38dc8)', 'HASH(0x28e86fc)', 'HASH(0x28e7840)') called at /Library/Perl/5.8.8/Sub/Exporter.pm line 424
# Sub::Exporter::_expand_groups('Catalyst::Test', 'HASH(0x28e82a0)', 'ARRAY(0x28e8318)', 'HASH(0xe38dc8)') called at /Library/Perl/5.8.8/Sub/Exporter.pm line 742
# Sub::Exporter::__ANON__('Catalyst::Test', '-all', 'HASH(0x842648)') called at /Library/Perl/5.8.8/Catalyst/Test.pm line 106
# Catalyst::Test::import('Catalyst::Test', 'MojoMojo') called at (eval 1494) line 2
# main::BEGIN() called at /Library/Perl/5.8.8/Catalyst/Test.pm line 2
# eval {...} called at /Library/Perl/5.8.8/Catalyst/Test.pm line 2
# eval 'package main;
# use Catalyst::Test @{$args[0]};
# 1;
#
# ;' called at /Library/Perl/Updates/5.8.8/Test/More.pm line 805
# Test::More::_eval('package main;\x{a}use Catalyst::Test @{$args[0]};\x{a}1;\x{a}', 'ARRAY(0x83a228)') called at /Library/Perl/Updates/5.8.8/Test/More.pm line 780
# Test::More::use_ok('Catalyst::Test', 'MojoMojo') called at t/01app.t line 7
# BEGIN failed--compilation aborted at (eval 1494) line 2.
Undefined subroutine &main::request called at t/01app.t line 8.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Invalid Args('') for action attachment/defaultaction

Mateu X Hunter
This highlights what was a warning with catalyst 5.8004 and older is now an error with 5.8005.  The easy patch is in trunk:

http://github.com/marcusramberg/mojomojo/commit/31b35347474b1287fa9efdbcab36f21cb1402c99

- Mateu

|  
|  Hi mojo-ers,
|  
|  I was wondering if anyone has encountered errors such as the following in
|  CPAN before.  I've had a wild ride trying to get mojomojo working on Mac OS
|  X 10.5 and this appears to be the final hurdle.  Any suggestions very
|  gratefully received!
|  
|  Thanks,
|  
|  Sam
|  
|  
|  t/01app.t ....................... 1/2
|  #   Failed test 'use Catalyst::Test;'
|  #   at t/01app.t line 7.
|  #     Tried to use 'Catalyst::Test'.
|  #     Error:  Could not load class (MojoMojo) because : Invalid Args('') for
|  action attachment/defaultaction (use 'Args' or 'Args(<number>)' at
|  /Library/Perl/5.8.8/Catalyst/Dispatcher.pm line 536
|  # Compilation failed in require at
|  /Library/Perl/5.8.8/darwin-thread-multi-2level/Class/MOP.pm line 135.
|  #  at /Library/Perl/5.8.8/darwin-thread-multi-2level/Class/MOP.pm line 120
|  # Class::MOP::load_first_existing_class('MojoMojo') called at
|  /Library/Perl/5.8.8/darwin-thread-multi-2level/Class/MOP.pm line 141
|  # Class::MOP::load_class('MojoMojo') called at
|  /Library/Perl/5.8.8/Catalyst/Test.pm line 23
|  # Catalyst::Test::__ANON__('Catalyst::Test', 'all', 'HASH(0x28e86c0)',
|  'HASH(0xe38dc8)') called at /Library/Perl/5.8.8/Sub/Exporter.pm line 493
|  # Sub::Exporter::_expand_group('Catalyst::Test', 'HASH(0x28e82a0)',
|  'ARRAY(0x28e7b88)', 'HASH(0xe38dc8)', 'HASH(0x28e86fc)', 'HASH(0x28e7840)')
|  called at /Library/Perl/5.8.8/Sub/Exporter.pm line 424
|  # Sub::Exporter::_expand_groups('Catalyst::Test', 'HASH(0x28e82a0)',
|  'ARRAY(0x28e8318)', 'HASH(0xe38dc8)') called at
|  /Library/Perl/5.8.8/Sub/Exporter.pm line 742
|  # Sub::Exporter::__ANON__('Catalyst::Test', '-all', 'HASH(0x842648)')
|  called at /Library/Perl/5.8.8/Catalyst/Test.pm line 106
|  # Catalyst::Test::import('Catalyst::Test', 'MojoMojo') called at (eval
|  1494) line 2
|  # main::BEGIN() called at /Library/Perl/5.8.8/Catalyst/Test.pm line 2
|  # eval {...} called at /Library/Perl/5.8.8/Catalyst/Test.pm line 2
|  # eval 'package main;
|  # use Catalyst::Test @{$args[0]};
|  # 1;
|  #
|  # ;' called at /Library/Perl/Updates/5.8.8/Test/More.pm line 805
|  # Test::More::_eval('package main;\x{a}use Catalyst::Test
|  @{$args[0]};\x{a}1;\x{a}', 'ARRAY(0x83a228)') called at
|  /Library/Perl/Updates/5.8.8/Test/More.pm line 780
|  # Test::More::use_ok('Catalyst::Test', 'MojoMojo') called at t/01app.t line
|  7
|  # BEGIN failed--compilation aborted at (eval 1494) line 2.
|  Undefined subroutine &main::request called at t/01app.t line 8.
|  --
|  View this message in context: http://n2.nabble.com/Invalid-Args%28%27%27%29-for-action-attachment-defaultaction-tp3066285p3066285.html
|  Sent from the mojomojo mailing list archive at Nabble.com.
|  
|  
|  _______________________________________________
|  Mojomojo mailing list
|  [hidden email]
|  http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/mojomojo

_______________________________________________
Mojomojo mailing list
[hidden email]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/mojomojo
sjv
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Invalid Args('') for action attachment/defaultaction

sjv
Thanks for your help Mateu.  I ran into a few more issues but eventually got it up and running.

I'm in the process of writing up my findings to create a little how-to and possibly suggest some improvements.  In the process I've discovered that it doesn't appear to be possible to put angle brackets and ampersands in code blocks.

If you look at the Markdown page here: http://daringfireball.net/projects/markdown/basics you'll see near the bottom of the page that the idea of a <pre><code>blah</code></pre> block is to have any angle brackets or ampersands in the "blah" text escaped to ensure correct formatting.

If you look at the source of e.g. your troubleshooting page on mojomojo.org and search for "wonky" you'll see an example of text that's been quoted without its angle brackets getting escaped.  It's OK in this case because they're greater-than signs, but this problem means it's impossible to quote e.g. XML in a block quote.

This is a pretty serious problem for me because I was planning on using MojoMojo to build a fairly large set of technical documentation.  I intend to quote a lot of code snippets, shell scripts, SQL and so forth, so the block quotes in the Markdown need to work flawlessly!

I'm guessing this problem isn't MojoMojo's fault.  When I get some more time I'll have a play with calling some of the Markdown modules directly from a test program in Perl to see if that's where the bug lies.  If so I'll get in touch with the authors.

Cheers,

Sam
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Invalid Args('') for action attachment/defaultaction

Mateu X Hunter
It would be good if anyone wants to improve the Markup situation, but Sam if you want a solution now why not use Textile as we discussed.  It handles <code> and <pre> as you wish.  I use it regularly for technical documentation and it suits my need quite well including HTML, SQL, and Perl code snippets.

- mateu

|  
|  Thanks for your help Mateu.  I ran into a few more issues but eventually got
|  it up and running.
|  
|  I'm in the process of writing up my findings to create a little how-to and
|  possibly suggest some improvements.  In the process I've discovered that it
|  doesn't appear to be possible to put angle brackets and ampersands in code
|  blocks.
|  
|  If you look at the Markdown page here:
|  http://daringfireball.net/projects/markdown/basics you'll see near the
|  bottom of the page that the idea of a <pre><code>blah</code></pre> block is
|  to have any angle brackets or ampersands in the "blah" text escaped to
|  ensure correct formatting.
|  
|  If you look at the source of e.g. your troubleshooting page on mojomojo.org
|  and search for "wonky" you'll see an example of text that's been quoted
|  without its angle brackets getting escaped.  It's OK in this case because
|  they're greater-than signs, but this problem means it's impossible to quote
|  e.g. XML in a block quote.
|  
|  This is a pretty serious problem for me because I was planning on using
|  MojoMojo to build a fairly large set of technical documentation.  I intend
|  to quote a lot of code snippets, shell scripts, SQL and so forth, so the
|  block quotes in the Markdown need to work flawlessly!
|  
|  I'm guessing this problem isn't MojoMojo's fault.  When I get some more time
|  I'll have a play with calling some of the Markdown modules directly from a
|  test program in Perl to see if that's where the bug lies.  If so I'll get in
|  touch with the authors.
|  
|  Cheers,
|  
|  Sam
|  
|  --
|  View this message in context: http://n2.nabble.com/Invalid-Args%28%27%27%29-for-action-attachment-defaultaction-tp3066285p3075055.html
|  Sent from the mojomojo mailing list archive at Nabble.com.
|  
|  
|  _______________________________________________
|  Mojomojo mailing list
|  [hidden email]
|  http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/mojomojo

_______________________________________________
Mojomojo mailing list
[hidden email]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/mojomojo
Loading...