vanstyn / RapidApp

Turnkey ajaxy webapps
http://rapi.io
Other
48 stars 15 forks source link

Missing dependency: *::RenderView #4

Closed tommystanton closed 11 years ago

tommystanton commented 11 years ago

First off, excellent software! Thank you for releasing this to the Perl community! :)

After a successful install via cpanminus, I found that a dependency was missing:

$ script/ra_infosite_server.pl
[info] Built asset: /assets/extjs/19d5c8775070285 in 13.082s
...
Can't locate Catalyst/Action/RenderView.pm in @INC (@INC contains: /home/tstanton/devel/github/public/RA-InfoSite_cmsdemo/script/../lib /home/tstanton/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /home/tstanton/perl5/lib/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /home/tstanton/perl5/lib/perl5/Catalyst.pm line 2499.
Compilation failed in require at /home/tstanton/perl5/lib/perl5/Catalyst/ScriptRunner.pm line 50.

Catalyst::Action::RenderView is probably not picked up by the AutoPrereqs Dist::Zilla plugin since it is not the sort of module that is explicitly use()'d:

$ ack RenderView
lib/RapidApp/Controller/DefaultRoot.pm
46:  sub end : ActionClass('RenderView') {}
65:sub end : ActionClass('RenderView') {}

The way I would resolve this issue is by adding the following to dist.ini, probably after AutoPrereqs:

[Prereqs]
Catalyst::Action::RenderView = 0
vanstyn commented 11 years ago

tommystanton:

Thank you! I had no idea it wasn't pulled with Catalyst. I fixed it with your suggestion.

I really appreciate the feedback! -vanstyn