kensanata / oddmuse6

Oddmuse wiki engine based on Perl 6 and Cro
GNU Affero General Public License v3.0
3 stars 2 forks source link

“Changes” endpoint errors out with `Cannot resolve caller INTERPOLATE` #12

Closed AlexDaniel closed 4 years ago

AlexDaniel commented 5 years ago

Not sure if it's a regression in Cro or Rakudo itself, but:

⚠ test Cannot resolve caller INTERPOLATE(Match:D: Str:D, BOOTInt, BOOTInt, BOOTInt, BOOTInt, VMNull); none of these signatures match:
⚠ test     (Match: Callable:D \var, $, $, $, $, $, *%_)
⚠ test     (Match: Iterable:D \var, int \im, int \monkey, int \s, $, \context, *%_)
⚠ test     (Match: Associative:D \var, int \im, $, $, $, \context, *%_)
⚠ test     (Match: Regex:D \var, int \im, int \monkey, $, $, $, *%_)
⚠ test     (Match: Mu:D \var, int \im, int \monkey, $, $, \context, *%_)
⚠ test     (Match: Mu:U \var, $, $, $, $, $, *%_)
⚠ test   in regex  at /home/alex/git/oddmuse6/test/lib/.precomp/68B6B14FCFBE9E273DA2C05846BA76C4C305927C/38/382155EF68DB72479CC0E8FD44EE2D740827E47C line 1
⚠ test   in block  at /home/alex/git/oddmuse6/test/../lib/Oddmuse/Routes.pm6 (Oddmuse::Routes) line 43
⚠ test   in regex  at EVAL_133 line 1
⚠ test   in block  at /home/alex/.rakudobrew/moar-master/install/share/perl6/site/sources/EA7F59C097F10A9E1DC914FD54A0F0947A7E51C8 (Cro::HTTP::Router) line 217
⚠ test   in block  at /home/alex/.rakudobrew/moar-master/install/share/perl6/site/sources/1F5D8331AC3C3C7EF5EC75A84AC3D545846FAE2C (Cro::HTTP::Internal) line 22
⚠ test   in block  at /home/alex/.rakudobrew/moar-master/install/share/perl6/site/sources/8E7C5041D3CF824E9809195923854B450FCEB484 (Cro::HTTP::RequestParser) line 119
⚠ test   in block  at /home/alex/.rakudobrew/moar-master/install/share/perl6/site/sources/8E7C5041D3CF824E9809195923854B450FCEB484 (Cro::HTTP::RequestParser) line 52
⚠ test   in block  at /home/alex/.rakudobrew/moar-master/install/share/perl6/site/sources/F048BB66854D2463798A39CC2B01D4CC1532F957 (Cro::TCP) line 53

It happens here: https://github.com/kensanata/oddmuse6/blob/a82b7ea9f1b7046238d0856f4477e23baf0e6495/lib/Oddmuse/Routes.pm6#L42-L44

I changed it to:

 get -> 'view', $id where $changes { 

And it started to work!

kensanata commented 5 years ago

I get no errors...

AlexDaniel commented 5 years ago

What's your rakudo and cro versions?

EDIT: OK, from another ticket:

This is Rakudo Star version 2018.10 built on MoarVM version 2018.10 implementing Perl 6.c.

I think you should try with newer rakudo…

kensanata commented 4 years ago

I just ran all the tests on moar-2020-07 and didn't get any errors any more. Can we close this issue, @AlexDaniel?

AlexDaniel commented 4 years ago

Yeah, I guess so!