New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't locate Foo/Bar.pm isn't a helpful message #8637
Comments
From @perlpunkCreated by @perlpunkIf you do 'use Foo::Bar' and get the message 'Can't locate Foo/Bar.pm Could the message 'Can't locate Foo/Bar.pm'be extended to something like (Note: Also 'use diagnostics' doesn't help much here) Perl Info
|
From @JuerdTina skribis 2006-10-12 3:06 (-0700):
Many newbies do get part of the message, but they think it says: copy a
Some heuristics would suffice, I think. For a path that has a slash in
I'm afraid that most people don't know about "use diagnostics" and I actually think the module complaint should come *before* the path: "Can't load module Foo::Bar (no Foo/Bar.pm in @INC)" "Can't locate loadable object for module Foo::Bar in @INC" curiously juerd waalboer: perl hacker <juerd@juerd.nl> <http://juerd.nl/sig> Ik vertrouw stemcomputers niet. |
The RT System itself - Status changed from 'new' to 'open' |
From @demerphqOn 10/12/06, Juerd <juerd@convolution.nl> wrote:
Maybe use should localize a global temporarily to make the module name BEGIN{ it becomes BEGIN{ Then extensions could use it themselves to override the message as This would also work around the problem that the original name is lost I had a quick look into doing this but its not a part of the perl Yves -- |
From @jrockwayJuerd wrote:
I disagree that "use diagnostics" doesn't help. I think the message is (F) You said to do (or require, or use) a file that couldn't be Perhaps mentioning CPAN (and cpan) would help? "You might also try However, referring the user to some relevant documentation might be a Regards, -- |
From @jimcJonathan Rockway wrote:
it doesnt help when they dont use it, which is common. I wouldnt mind seeing the 1st 3 errors verbosified (with the rest left |
p5p@spam.wizbit.be - Status changed from 'open' to 'stalled' |
From @cpansproutThis is now resolved by commit f7ee53b. |
@cpansprout - Status changed from 'stalled' to 'resolved' |
Migrated from rt.perl.org#40516 (status was 'resolved')
Searchable as RT40516$
The text was updated successfully, but these errors were encountered: