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

RatStr P6opaque: no such attribute '$!denominator' #6013

Closed
p6rt opened this issue Jan 20, 2017 · 4 comments
Closed

RatStr P6opaque: no such attribute '$!denominator' #6013

p6rt opened this issue Jan 20, 2017 · 4 comments
Labels
Bug regression Issue did not exist previously

Comments

@p6rt
Copy link

p6rt commented Jan 20, 2017

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

Searchable as RT130606$

@p6rt
Copy link
Author

p6rt commented Jan 20, 2017

From @dwarring

[09​:20] <dwarring> bisect​: sub clip-to ($min, $v is rw, $max) { $v = ($min
max $v) min $max }; sub blah ( Array() :$rgbd ) { clip-to 0, $_, 255 for
@​$rgbd; }; blah(rgbd => <.086, .165, .282> );
[09​:20] <+bisectable6> dwarring, Bisecting by exit code (old=2015.12
new=3f80e13). Old exit code​: 0
[09​:20] <+bisectable6> dwarring, bisect log​:
https://gist.github.com/877f61a45080d12fa694e1560a55542f
[09​:20] <+bisectable6> dwarring, (2016-12-30)
rakudo/rakudo@a567eb4
[09​:21] <brokenchicken> dwarring​: Color module?
[09​:21] <brokenchicken> That's should be fixed on HEAD
[09​:21] <dwarring> yeah, there's a second regression in t/01-new-key-value.t
[09​:21] <brokenchicken> oh damn
[09​:21] * brokenchicken is now looking at 4 things at once :o
[09​:22] <brokenchicken> time to de-parralelize :)
[09​:22] <dwarring> I think it's a different problem
[09​:22] <brokenchicken> m​: sub clip-to ($min, $v is rw, $max) { $v = ($min
max $v) min $max }; sub blah ( Array() :$rgbd ) { clip-to 0, $_, 255 for
@​$rgbd; }; blah(rgbd => <.086, .165, .282> );
[09​:22] <+camelia> rakudo-moar 3f80e1​: OUTPUT«P6opaque​: no such attribute
'$!denominator' in type RatStr when trying to get a value␤ in sub clip-to
at <tmp> line 1␤ in sub blah at <tmp> line 1␤ in block <unit> at <tmp>
line 1␤␤»
[09​:23] <brokenchicken> m​: say .4 cmp <.5>
[09​:23] <+camelia> rakudo-moar 3f80e1​: OUTPUT«Less␤»
[09​:23] <brokenchicken> m​: say .4 max <.5>
[09​:23] <+camelia> rakudo-moar 3f80e1​: OUTPUT«.5␤»
[09​:23] <brokenchicken> m​: say .4 min <.5>
[09​:23] <+camelia> rakudo-moar 3f80e1​: OUTPUT«0.4␤»
[09​:23] <brokenchicken> m​: dd <.5>
[09​:23] <+camelia> rakudo-moar 3f80e1​: OUTPUT«RatStr.new(0.5, ".5")␤»
[09​:23] * brokenchicken shrugs
[09​:23] <brokenchicken> gonna look at this in ~1hr
[09​:25] <dwarring> I'll raise an RT
[09​:25] <brokenchicken> Thanks

@p6rt
Copy link
Author

p6rt commented Jan 20, 2017

From @zoffixznet

On Fri, 20 Jan 2017 12​:28​:43 -0800, david.warring wrote​:

[09​:20] <dwarring> bisect​: sub clip-to ($min, $v is rw, $max) { $v =
($min
max $v) min $max }; sub blah ( Array() :$rgbd ) { clip-to 0, $_, 255
for
@​$rgbd; }; blah(rgbd => <.086, .165, .282> );
[09​:20] <+bisectable6> dwarring, Bisecting by exit code (old=2015.12
new=3f80e13). Old exit code​: 0
[09​:20] <+bisectable6> dwarring, bisect log​:
https://gist.github.com/877f61a45080d12fa694e1560a55542f
[09​:20] <+bisectable6> dwarring, (2016-12-30)
rakudo/rakudo@a567eb4
[09​:21] <brokenchicken> dwarring​: Color module?
[09​:21] <brokenchicken> That's should be fixed on HEAD
[09​:21] <dwarring> yeah, there's a second regression in t/01-new-key-
value.t
[09​:21] <brokenchicken> oh damn
[09​:21] * brokenchicken is now looking at 4 things at once :o
[09​:22] <brokenchicken> time to de-parralelize :)
[09​:22] <dwarring> I think it's a different problem
[09​:22] <brokenchicken> m​: sub clip-to ($min, $v is rw, $max) { $v =
($min
max $v) min $max }; sub blah ( Array() :$rgbd ) { clip-to 0, $_, 255
for
@​$rgbd; }; blah(rgbd => <.086, .165, .282> );
[09​:22] <+camelia> rakudo-moar 3f80e1​: OUTPUT«P6opaque​: no such
attribute
'$!denominator' in type RatStr when trying to get a value␤ in sub
clip-to
at <tmp> line 1␤ in sub blah at <tmp> line 1␤ in block <unit> at
<tmp>
line 1␤␤»
[09​:23] <brokenchicken> m​: say .4 cmp <.5>
[09​:23] <+camelia> rakudo-moar 3f80e1​: OUTPUT«Less␤»
[09​:23] <brokenchicken> m​: say .4 max <.5>
[09​:23] <+camelia> rakudo-moar 3f80e1​: OUTPUT«.5␤»
[09​:23] <brokenchicken> m​: say .4 min <.5>
[09​:23] <+camelia> rakudo-moar 3f80e1​: OUTPUT«0.4␤»
[09​:23] <brokenchicken> m​: dd <.5>
[09​:23] <+camelia> rakudo-moar 3f80e1​: OUTPUT«RatStr.new(0.5, ".5")␤»
[09​:23] * brokenchicken shrugs
[09​:23] <brokenchicken> gonna look at this in ~1hr
[09​:25] <dwarring> I'll raise an RT
[09​:25] <brokenchicken> Thanks

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@8ec54bafe4
Test​: Raku/roast@6bbfcc0eef

@p6rt
Copy link
Author

p6rt commented Jan 20, 2017

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

@p6rt
Copy link
Author

p6rt commented Jan 20, 2017

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

@p6rt p6rt closed this as completed Jan 20, 2017
@p6rt p6rt added Bug regression Issue did not exist previously labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug regression Issue did not exist previously
Projects
None yet
Development

No branches or pull requests

1 participant