🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
[Coke] how do I stop getting notifications about raku-community-modules? 01:12
tellable6 2021-12-24T19:38:56Z #raku <tbrowder> [Coke] i ran the tests and i think the pertinent ones passed. and the actual code example ran in the prog i built for it on my local host.
[Coke] tbrowder: "the prog you built" - was the prog somehow different from the code in the snippet? 01:13
tbrowder no, the same code. 01:14
[Coke] ok. the last attempt I saw also failed so I reverted it as well. 01:15
if it passed for you, maybe we need a tie breaker. I am running 2021.10
tbrowder there was no “xt” target, but an “xtest” target. 01:16
[Coke] yes. xt is the folder.
(stop getting notifications) well, leaving the org works. done 01:17
tbrowder i don’t know how you are seeing the failure.p
[Coke] git checkout 49bf7a271; TEST_FILES=doc/Language/classtut.pod6 xt/examples-compilation.t 01:18
tbrowder have you tried the example on yr local host? maybe it’s the mac problem
[Coke] subtest 30 dies with Attribute $!counter not declared in class
and it's not. it's a my, not a has. 01:19
tbrowder that passed for me, running linux debian 10 and rakudo 2021.10
[Coke] Your code seems incorrect.
tbrowder did you look at my pr? 01:20
[Coke] m: class Str-with-ID is Str { my $.counter = 0; has Str $.string; has Int $.ID; submethod TWEAK() { $!ID = ++$!counter; } }; say Str-with-ID.new(string => 'First').ID; say Str-with-ID.new(string => 'Second').ID;
camelia ===SORRY!=== Error while compiling <tmp>
Attribute $!counter not declared in class Str-with-ID
at <tmp>:1
------> method TWEAK() { $!ID = ++$!counter; } }⏏; say Str-with-ID.new(string => 'First')
expecting any of:
[Coke] ^^&
So, not just me. 01:21
tbrowder look at my pr
[Coke] I would verify when you run it standalone you're running the code you think you are, and that you don't have any local modifications to the file.
URL?
tbrowder my $counter;
[Coke] I was looking at *what you committed*
tbrowder look at my pr which i did not commit. it was done after your revert 01:22
[Coke] *facepalm* 01:23
as I said - if the tests pass for you, go ahead and commit it.
tbrowder ok, but i haven’t looked at the pr since i submitted it. won’t it show a good test if it passes the xt tests? 01:26
[Coke] No. the xt tests are "extra" they are not run as part of the normal process.
apparently I am the only person that runs them.
I hope that folks with direct commit bits or large PRs will run the tests as part of their normal workflow. 01:27
the checks run on PRs get you 'make test', basically.
tbrowder ok, i’m confident it works, but i would feel better if you could inspect my code changes in the pr first. note also the important changes in the adjacent text. 01:29
as an aside, the classtut file seems to me to be a bit disorganized after these 4+ yrs of updates. 01:31
i accept the lashes for not running the xt tests when i should, but i will try to remember to do that 01:33
[Coke] if you ran the compilation test, You're set. I'm not doing it again. 01:35
tbrowder ok 01:36
Geth doc: 53029bc57b | (Tom Browder)++ | doc/Language/classtut.pod6
Correct TWEAK example and associated description; is a class attribute and does not have a twigil.
01:37
doc: c45bcf8880 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/classtut.pod6
Merge pull request #4003 from tbrowder/tweak-eg

Correct TWEAK example and associated description
linkable6 Link: docs.raku.org/language/classtut
[Coke] Thank you
tbrowder you’re welcome, Merry Christmas, [Coke]! 01:38
thowe I hope everyone is warm and full and contented this holiday season. 03:01
guifa lizmat++ on advent day post 04:39
and Vrolijk Kerstfeest! 04:41
Anton Antonov Get some sort of seasonal greeting card with this link: www.wolframcloud.com/obj/8691f810-...=GrayTones 13:51
Every time new image is generated. (Also, not made with Raku, but maybe holiday-ish enough...) 13:52
CIAvash Can't verify the rakudo 2021-12 release, it seems there is no public key for the signature, cc jdv 19:12