Skip Menu |
Report information
Id: 130502
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: testneeded
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [LTA] error message complains too much about Metamodel.nqp (Buf.new('0'))
Download (untitled) / with headers
text/plain 545b
Code: say Buf.new('0') Result: Type check failed in initializing element #0 to Buf; expected uint8 but got Str ("0") in any at gen/moar/Metamodel.nqp line 1727 in block <unit> at /tmp/9PmeQTevmg line 1 Actually thrown at: in any at gen/moar/Metamodel.nqp line 3072 in any at gen/moar/Metamodel.nqp line 1727 in block <unit> at /tmp/9PmeQTevmg line 1 It points three times to a line in Metamodel.nqp, and only once to the actual user file. Perhaps there is a way to improve it? Maybe not just for this case, but for any exception?
Download (untitled) / with headers
text/plain 754b
On Wed, 04 Jan 2017 14:21:15 -0800, alex.jakimenko@gmail.com wrote: Show quoted text
> Code: > say Buf.new('0') > > Result: > Type check failed in initializing element #0 to Buf; expected uint8 > but got Str ("0") > in any at gen/moar/Metamodel.nqp line 1727 > in block <unit> at /tmp/9PmeQTevmg line 1 > > Actually thrown at: > in any at gen/moar/Metamodel.nqp line 3072 > in any at gen/moar/Metamodel.nqp line 1727 > in block <unit> at /tmp/9PmeQTevmg line 1 > >
Fixed with commit https://github.com/rakudo/rakudo/commit/f230224d27bb6d47746de836113b07bf9a4ebcc0 Show quoted text
> > It points three times to a line in Metamodel.nqp, and only once to the > actual user file. Perhaps there is a way to improve it? Maybe not just > for this case, but for any exception?


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org