Welcome the channel on the development of Cro, a set of libraries for building reactive distributed systems, lovingly crafted to take advantage of all the Raku Programming Language has to offer (cro.services). This channel is being logged for historical purposes. Set by lizmat on 24 May 2021. |
|||
04:26
Xliff joined
|
|||
Xliff | Hello gentlemen. This definitely looks like a Cro issue. I have no idea how to fix it, at this time: | 04:27 | |
No such method 'attributes' for invocant of type | |||
'Perl6::Metamodel::CoercionHOW' | |||
in method parse at /home/ubuntu/rakudobrew/versions/moar-blead/install/share/perl6/site/sources/420A8C169D235BFA5450A21197EA59972595651B (Cro::WebApp::Form) line 295 | |||
^^ jnthnwrthngtn | |||
The problem comes in .parse, when it wants to access self.^attributes. It cannot because it can't find .^attributes on self as it reports a ::CoercionHOW instead of a ::ClassHOW | 04:28 | ||
This is odd, because the class I am using it for reports itself as ::ClassHOW via "Instance.HOW" | 04:30 | ||
Ah. I wasn't paying attention. It's not what is being coerced to, it's what it's being coerced FROM. That is the form-data portion. | 04:32 | ||
Here's the relevant bit: "post -> 'view', $instance-id { form-data -> Instance() $instance { ... }; }; " | |||
07:33
Xliff left
09:44
lizmat_ joined
09:47
lizmat left
09:53
kawaii_ left
10:00
kawaii_ joined
10:01
perlmaros left
10:05
perlmaros joined
17:05
Altai-man joined
|
|||
JRaspass | In ad-hoc middleware (e.g. before { ... }) `content 'text/html', render-template ...` still works under the latest Cro but `template ...` now dies with "Can only use 'template' inside of a request handler". Is that intentional? Seemed pretty convenient to use the short-hand in before blocks, my use-case is rendering a "pretty" 404 page. | 17:06 | |
And annoyingly going the first way means I can't make use of the new template parts as they seem to be loaded via `template` | 17:52 | ||
18:48
kawaii_ left
18:51
kawaii_ joined
18:52
zostay left
18:53
zostay joined
|