22 Dec 2021
SmokeMachine worked on irccloud but not on textual 13:17
:( 13:29
lizmat meh 13:37
SmokeMachine worked!!! It even read your message!!! :) thanks! 13:38
lizmat nice... 13:41
you're welcome :-)
14 Jan 2022
samebchase Hi, I have a Red model, in which a column is of the Json type, and can be null in some situations. When I fetch the rows, I get the "Use of uninitialized value element of type Any in string context." message printed on the console, seems to be coming from github.com/FCO/Red/blob/master/lib...son.pm6#L5 where from-json is called on a 17:06
Nil value. What can I do here, to prevent this from being printed. I'm trying various default values, but no luck so far.
My code is similar to gist.github.com/samebchase/3b519f4...346bc8f294
lizmat It's not very busy here, but SmokeMachine hangs out here... :-) 17:10
SmokeMachine samebchase: Sorry, I'll have to take a look at it later today, after day job 17:15
samebchase: could you share how are you using that model to get that error, please? 17:16
samebchase I can share the full code with you on email 17:17
Turns out, its github.com/FCO/Red/issues/438 still happening on latest Raku and latest Red (unless I am doing something horribly wrong)
Okay, I have been able to reproduce it, let me share a gist here 17:35
gist.github.com/samebchase/48107b4...1bb4520fdf 17:38
It happens when a JSON field has a nested field which is NULL. 17:39
Here I was thinking it happens when the entire JSON field itself is NULL
, but this happens on nested fields.
This is PG, btw
SmokeMachine does that work on SQLite as well? 17:41
I mean: does that happens on SQLite as well?
*happen sorry 17:42
just reproduced! usercontent.irccloud-cdn.com/file/.../image.png 18:09
samebchase: I finally fixed that! sorry for the delay! 21:38
19 Feb 2022
leont Mentioning it here, since I suspect the people who care are concentrated here: I just released Net::Postgres, my fully asynchronous postgresql client :-) 19:37
lizmat leont++ # cool stuff 19:44
SmokeMachine leont: cool! I’ll take a look at it as soon I’m back from vacation 20:38
1 Mar 2022
japhb SmokeMachine: Red seems to be failing install on Rakudo head. 18:03
SmokeMachine Really? :( 18:04
japhb : Do you have the error? I’m not able to try it out now… 18:05
japhb Yeah, it wouldn't compile because "On Red:api<2> references must declaire :model-name (or :model-type) and the references block must receive the model as reference"
SmokeMachine Does it say on what error it happened? 18:06
japhb Mind you, gist.github.com/japhb/506effd33e69...763f6e0677 18:08
Mind you? Don't know what that was from
But the gist should give info. :-) 18:09
SmokeMachine japhb: thank you very much!
japhb Sure! 18:11
5 Mar 2022
CIAvash The IRC logs are now available at irclogs.raku.org/red/ so the topic of the room can be changed 05:20
7 Mar 2022
japhb SmokeMachine: FYI: irclogs.raku.org/raku-dev/2022-03-07.html 05:52
SmokeMachine: github.com/rakudo/rakudo/issues/4809 18:53
SmokeMachine japhb: it seems I found the difference... 19:03
this used to be true:
m: my %column = :references, :model-name; say so(%column{<model-name model-type>.none}:exists) == so(%column{<model-name model-type>.all}:!exists)
It seems I've fixed that in Red... committing in a sec... 19:08
japhb Ah, cool. 19:11
Would you mind commenting on the bug when you've got it worked around? (It would be good to nail down if this is a regression on something that really should work, or just a change in something that happened to work.) 19:13
SmokeMachine done 19:19
it must be fixed now... just need to wait zef to update its clan list 22:02
*cpan
japhb FWIW, you should probably convert to zef/fez upload at some point soonish. Looks like the plan to phase out CPAN over the next year will probably be approved. 22:05
SmokeMachine yes... I'm planing to do it... but I need some time to do it... 22:06
japhb Nodnod. Thankfully, with mi6 now natively supporting the Zef ecosystem, it gets a bit easier. 22:07