houseabsolute / perl-code-tidyall

Engine for tidyall, your all-in-one code tidier and validator
https://metacpan.org/release/Code-TidyAll/
Other
21 stars 31 forks source link

Missing dependency Perl::Tidy #22

Closed sestaton closed 10 years ago

sestaton commented 10 years ago

After installing successfully with cpanminus:

$ cpanm Code::TidyAll
$ tidyall --version
tidyall 0.20 on perl 5.020001 built for x86_64-linux-thread-multi

I get the error:

$ tidyall -a 
could not load plugin class 'Code::TidyAll::Plugin::PerlTidy': Can't locate Perl/Tidy.pm in @INC (you may need to install the Perl::Tidy module) ...

Installing Perl::Tidy manually fixed the issue. I would send a pull request but I figure it's easier to just add the one line to the configuration yourself (I noticed it's missing from dist.ini).

autarch commented 10 years ago

This is actually intentional, since the various plugins combined would have a whole bunch of other prereqs. However, I'll add a note to the docs about this for the next release.

sestaton commented 10 years ago

Thanks, this was my bad. I see now that the Synopsis of 'tidyall' describes an example usage of plugins, though it seems at first glance that Perl-Tidy and Perl-Critic are available right away.

autarch commented 10 years ago

I think it's just that you happen to have this modules installed on your system already.