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

Error in supply block reported at call context instead of definition #4591

Closed
p6rt opened this issue Sep 25, 2015 · 5 comments
Closed

Error in supply block reported at call context instead of definition #4591

p6rt opened this issue Sep 25, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Sep 25, 2015

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

Searchable as RT126184$

@p6rt
Copy link
Author

p6rt commented Sep 25, 2015

From @jdv

[jdv@​wieldy ~]$ cat -n test.p6
  1 use v6;
  2
  3 my $supply = supply {
  4 die;
  5 }
  6
  7 react {
  8 whenever $supply {
  9
  10 }
  11 }
  12
[jdv@​wieldy ~]$ perl6 test.p6
Died
  in block <unit> at test.p6​:7

[jdv@​wieldy ~]$ perl6 -v
This is perl6 version 2015.09-102-gf89dc23 built on MoarVM version
2015.09-35-gd15a446
[jdv@​wieldy ~]$

Could we report the error being at line 4 instead of 7?

Thanks,
jdv

@p6rt
Copy link
Author

p6rt commented Dec 3, 2017

From @AlexDaniel

Yes.

Current message​:
An operation first awaited​:
  in block <unit> at test.p6 line 7

Died with the exception​:
    Died
      in block <unit> at test.p6 line 4

This was done in rakudo/rakudo@abf6caf

「testneeded」, although maybe there are tests for it already.

On 2015-09-25 09​:37​:49, jdv79 wrote​:

[jdv@​wieldy ~]$ cat -n test.p6
1 use v6;
2
3 my $supply = supply {
4 die;
5 }
6
7 react {
8 whenever $supply {
9
10 }
11 }
12
[jdv@​wieldy ~]$ perl6 test.p6
Died
in block <unit> at test.p6​:7

[jdv@​wieldy ~]$ perl6 -v
This is perl6 version 2015.09-102-gf89dc23 built on MoarVM version
2015.09-35-gd15a446
[jdv@​wieldy ~]$

Could we report the error being at line 4 instead of 7?

Thanks,
jdv

@p6rt
Copy link
Author

p6rt commented Dec 3, 2017

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

@p6rt
Copy link
Author

p6rt commented Dec 12, 2017

@p6rt p6rt closed this as completed Dec 12, 2017
@p6rt
Copy link
Author

p6rt commented Dec 12, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant