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

List.splice issues superfluous warning: "Use of uninitialized value of type Any in string context" #6204

Closed
p6rt opened this issue Apr 23, 2017 · 5 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Apr 23, 2017

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

Searchable as RT131197$

@p6rt
Copy link
Author

p6rt commented Apr 23, 2017

From @atweiden

To repro​:

  use v6;
  my $root = qw<zero one two>;
  my $step = 2;
  my $value = 'three';
  $root.splice($step, 0, $value);
  # Use of uninitialized value of type Any in string context.
  # Methods .^name, .perl, .gist, or .say can be used to stringify it to
something meaningful.
  # in block <unit> at lta-golf.p6 line 8
  # Cannot resolve caller splice(List, Int, Int, Str); none of these
signatures match​:
  # in block <unit> at lta-golf.p6 line 8

This is creating LTA error messages during exception testing of Crane [1].

[1]​: https://github.com/atweiden/crane

@p6rt
Copy link
Author

p6rt commented Apr 23, 2017

From @zoffixznet

On Sun, 23 Apr 2017 10​:36​:15 -0700, archbaum@​gmail.com wrote​:

To repro​:

use v6;
my $root = qw\<zero one two>;
my $step = 2;
my $value = 'three';
$root\.splice\($step, 0, $value\);
\# Use of uninitialized value of type Any in string context\.
\# Methods \.^name, \.perl, \.gist, or \.say can be used to stringify it to

something meaningful.
# in block <unit> at lta-golf.p6 line 8
# Cannot resolve caller splice(List, Int, Int, Str); none of these
signatures match​:
# in block <unit> at lta-golf.p6 line 8

This is creating LTA error messages during exception testing of Crane [1].

[1]​: https://github.com/atweiden/crane

Bisectable points to "Allow for native arrays in the settings" that moved splice proto to Mu​:
rakudo/rakudo@6595950

  <Zoffix_> bisect​: CONTROL { default { say 'bug' } }; CATCH { default {} }; qw<zero one two>.splice(2, 0, 'three');
  <bisectable6> Zoffix_, Bisecting by output (old=2015.12 new=1bce2e5) because on both starting points the exit code is 0
  <bisectable6> Zoffix_, bisect log​: https://gist.github.com/626a5d430a68d88dc2daa52b1486b57e
  <bisectable6> Zoffix_, (2017-03-03) rakudo/rakudo@6595950

@p6rt
Copy link
Author

p6rt commented Apr 23, 2017

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

@p6rt
Copy link
Author

p6rt commented Jan 17, 2018

From @zoffixznet

On Sun, 23 Apr 2017 10​:36​:15 -0700, archbaum@​gmail.com wrote​:

To repro​:

use v6;
my $root = qw\<zero one two>;
my $step = 2;
my $value = 'three';
$root\.splice\($step, 0, $value\);
\# Use of uninitialized value of type Any in string context\.
\# Methods \.^name, \.perl, \.gist, or \.say can be used to stringify it to

something meaningful.
# in block <unit> at lta-golf.p6 line 8
# Cannot resolve caller splice(List, Int, Int, Str); none of these
signatures match​:
# in block <unit> at lta-golf.p6 line 8

This is creating LTA error messages during exception testing of Crane [1].

[1]​: https://github.com/atweiden/crane

This has been fixed and tested as part of resolving RT#​131367[^1] awhile back.

[1] https://rt-archive.perl.org/perl6/Ticket/Display.html?id=131367

@p6rt p6rt closed this as completed Jan 17, 2018
@p6rt
Copy link
Author

p6rt commented Jan 17, 2018

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

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant