Skip to content
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

"Use of uninitialized value" should at least report line number #1157

Closed
p6rt opened this issue Jul 23, 2009 · 6 comments
Closed

"Use of uninitialized value" should at least report line number #1157

p6rt opened this issue Jul 23, 2009 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 23, 2009

Migrated from rt.perl.org#67808 (status was 'resolved')

Searchable as RT67808$

@p6rt
Copy link
Author

p6rt commented Jul 23, 2009

From tewk@cs.utah.edu

05​:22 < tewk> rakudo "Use of uninitialized value"
05​:23 < tewk> Any way I can find out what the value is?
05​:23 <@​moritz_> don't think so :(
05​:24 <@​moritz_> it should at least include a line number... care to
open a ticket for that?

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

From @coke

On Thu Jul 23 04​:29​:17 2009, tewk@​cs.utah.edu wrote​:

05​:22 < tewk> rakudo "Use of uninitialized value"
05​:23 < tewk> Any way I can find out what the value is?
05​:23 <@​moritz_> don't think so :(
05​:24 <@​moritz_> it should at least include a line number... care to
open a ticket for that?

I tried to duplicate this with "my $a; say $a" - that currently gives Any(). What are you getting
this warning on?

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented May 2, 2011

From @tadzik

On Thu Jul 23 04​:29​:17 2009, tewk@​cs.utah.edu wrote​:

05​:22 < tewk> rakudo "Use of uninitialized value"
05​:23 < tewk> Any way I can find out what the value is?
05​:23 <@​moritz_> don't think so :(
05​:24 <@​moritz_> it should at least include a line number... care to
open a ticket for that?

â��â��[tadzik@​yavin4]â��[/tmp]
��[%]�> cat foo.pl
say 'foo';
say 'bar';
say $a;
say 'baz';

â��â��[tadzik@​yavin4]â��[/tmp]
��[%]�> perl6 foo.pl
===SORRY!===
Symbol '$a' not predeclared in <anonymous> (foo.pl​:3)

That looks fixed now, can we close this?

@p6rt
Copy link
Author

p6rt commented May 2, 2011

From @moritz

"uninitialized" warnings now provide line numbers and something like
"numeric context", so I'm closing this ticket.

If you still get misterious warnings, please open another ticket with
more information that lets us reproduce the problem.

@p6rt
Copy link
Author

p6rt commented May 2, 2011

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed May 2, 2011
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant