Raku / Documentable

Documentation API: caching, parsing, indexing and generating documentation
https://docs.raku.org
Artistic License 2.0
11 stars 13 forks source link

Test failures #160

Open coke opened 2 years ago

coke commented 2 years ago
$ git reflog
307ecb9 (HEAD -> master, origin/master, origin/HEAD) HEAD@{0}: clone: from github.com:Raku/Documentable.git
$ raku --v
Welcome to Rakudo™ v2022.03.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2022.03.
$ sw_vers
ProductName:    macOS
ProductVersion: 11.6.1
BuildVersion:   20G224
$ zef test .
===> Testing: Documentable:ver<2.0.1>:auth<github:Raku>:api<1>
[Documentable]     # Failed test 'Lives'
[Documentable]     # at t/101-cli.t line 31
[Documentable]     # Cannot resolve caller render(Pod::Block::Named:D, :editable(Str), :main-template-path(Str), :url(Sub+{Callable[Mu]}), :editURL(Str), :podPath(Str)); none of these signatures matches:
[Documentable]     #     (IO::Path $file, |c)
[Documentable]     #     (Str $string, |c)
[Documentable]     # Failed test 'Lives'
[Documentable]     # at t/101-cli.t line 35
[Documentable]     # Cannot resolve caller render(Pod::Block::Named:D, :editable(Str), :podPath(Str), :main-template-path(Str), :editURL(Str), :url(Sub+{Callable[Mu]})); none of these signatures matches:
[Documentable]     #     (IO::Path $file, |c)
[Documentable]     #     (Str $string, |c)
[Documentable] Cannot resolve caller render(Pod::Block::Named:D, :editable(Str), :url(Sub+{Callable[Mu]}), :main-template-path(Str), :editURL(Str), :podPath(Str)); none of these signatures matches:
[Documentable]     (IO::Path $file, |c)
[Documentable]     (Str $string, |c)
[Documentable]   in method render at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/To/HTML/Wrapper.pm6 (Documentable::To::HTML::Wrapper) line 109
[Documentable]   in method generate-main-page at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/DocPage/Factory.pm6 (Documentable::DocPage::Factory) line 41
[Documentable]   in method generate-home-page at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/DocPage/Factory.pm6 (Documentable::DocPage::Factory) line 31
[Documentable]   in sub MAIN at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/CLI.pm6 (Documentable::CLI) line 200
[Documentable]   in block <unit> at t/101-start.t line 11
[Documentable] Cannot resolve caller render(Pod::Block::Named:D, :editURL(Str), :url(Sub+{Callable[Mu]}), :podPath(Str), :main-template-path(Str), :editable(Str)); none of these signatures matches:
[Documentable]     (IO::Path $file, |c)
[Documentable]     (Str $string, |c)
[Documentable]   in method render at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/To/HTML/Wrapper.pm6 (Documentable::To::HTML::Wrapper) line 109
[Documentable]   in method generate-main-page at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/DocPage/Factory.pm6 (Documentable::DocPage::Factory) line 41
[Documentable]   in method generate-home-page at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/DocPage/Factory.pm6 (Documentable::DocPage::Factory) line 31
[Documentable]   in sub MAIN at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/CLI.pm6 (Documentable::CLI) line 200
[Documentable]   in block <unit> at t/102-stable-update.t line 10
[Documentable] Cannot resolve caller render(Pod::Block::Named:D, :url(Sub+{Callable[Mu]}), :editable(Str), :podPath(Str), :editURL(Str), :main-template-path(Str)); none of these signatures matches:
[Documentable]     (IO::Path $file, |c)
[Documentable]     (Str $string, |c)
[Documentable]   in method render at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/To/HTML/Wrapper.pm6 (Documentable::To::HTML::Wrapper) line 109
[Documentable]   in method generate-main-page at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/DocPage/Factory.pm6 (Documentable::DocPage::Factory) line 41
[Documentable]   in method generate-home-page at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/DocPage/Factory.pm6 (Documentable::DocPage::Factory) line 31
[Documentable]   in sub MAIN at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/CLI.pm6 (Documentable::CLI) line 200
[Documentable]   in block <unit> at t/102-update-only-modified.t line 10
[Documentable] Cannot resolve caller render(Pod::Block::Named:D, :main-template-path(Str), :url(Sub+{Callable[Mu]}), :editURL(Str), :editable(Str), :podPath(Str)); none of these signatures matches:
[Documentable]     (IO::Path $file, |c)
[Documentable]     (Str $string, |c)
[Documentable]   in method render at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/To/HTML/Wrapper.pm6 (Documentable::To::HTML::Wrapper) line 109
[Documentable]   in method generate-main-page at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/DocPage/Factory.pm6 (Documentable::DocPage::Factory) line 41
[Documentable]   in method generate-home-page at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/DocPage/Factory.pm6 (Documentable::DocPage::Factory) line 31
[Documentable]   in sub MAIN at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/CLI.pm6 (Documentable::CLI) line 200
[Documentable]   in block <unit> at t/102-update.t line 12
[Documentable] Failed to open file /Volumes/BUKKIT/Users/coke/sandbox/Documentable/html/language/terms.html: No such file or directory
[Documentable]   in block <unit> at t/102-update_1.t line 25
[Documentable] Actually thrown at:
[Documentable]   in block <unit> at t/102-update_1.t line 26
[Documentable]     # Failed test 'Lives with a new cache'
[Documentable]     # at t/104-update-issue-16-47.t line 9
[Documentable]     # Cannot resolve caller render(Pod::Block::Named:D, :editable(Str), :main-template-path(Str), :podPath(Str), :editURL(Str), :url(Sub+{Callable[Mu]})); none of these signatures matches:
[Documentable]     #     (IO::Path $file, |c)
[Documentable]     #     (Str $string, |c)
[Documentable]     # Failed test 'Lives when a new file is added'
[Documentable]     # at t/104-update-issue-16-47.t line 15
[Documentable]     # Cannot resolve caller render(Pod::Block::Named:D, :url(Sub+{Callable[Mu]}), :editable(Str), :main-template-path(Str), :podPath(Str), :editURL(Str)); none of these signatures matches:
[Documentable]     #     (IO::Path $file, |c)
[Documentable]     #     (Str $string, |c)
[Documentable]     # You failed 2 tests of 2
[Documentable] # Failed test 'New file added'
[Documentable] # at t/104-update-issue-16-47.t line 6
[Documentable]     # Failed test 'Lives when a file is deleted'
[Documentable]     # at t/104-update-issue-16-47.t line 25
[Documentable]     # Cannot resolve caller render(Pod::Block::Named:D, :editURL(Str), :editable(Str), :url(Sub+{Callable[Mu]}), :podPath(Str), :main-template-path(Str)); none of these signatures matches:
[Documentable]     #     (IO::Path $file, |c)
[Documentable]     #     (Str $string, |c)
[Documentable]     # You failed 1 test of 1
[Documentable] # Failed test 'New file added'
[Documentable] # at t/104-update-issue-16-47.t line 21
[Documentable] # You failed 2 tests of 2
[Documentable] /Volumes/BUKKIT/Users/coke/sandbox/Documentable/t/.cache-test-doc directory will be used as a cache. Please do not use any other directory with this name.
[Documentable] Cannot resolve caller render(Array:D, :url(Sub+{Callable[Mu]}), :main-template-path(Str), :editable(Str), :editURL(Str), :podPath(Str)); none of these signatures matches:
[Documentable]     (IO::Path $file, |c)
[Documentable]     (Str $string, |c)
[Documentable]   in method render at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/To/HTML/Wrapper.pm6 (Documentable::To::HTML::Wrapper) line 109
[Documentable]   in block <unit> at t/400-template.t line 83
[Documentable] Cannot resolve caller render(Pod::Block::Named:D, :editURL(Str), :main-template-path(Str), :url(Sub), :podPath(Str), :editable(Str)); none of these signatures matches:
[Documentable]     (IO::Path $file, |c)
[Documentable]     (Str $string, |c)
[Documentable]   in method render at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/To/HTML/Wrapper.pm6 (Documentable::To::HTML::Wrapper) line 109
[Documentable]   in method generate-main-page at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/DocPage/Factory.pm6 (Documentable::DocPage::Factory) line 41
[Documentable]   in method generate-home-page at /Volumes/BUKKIT/Users/coke/sandbox/Documentable/lib/Documentable/DocPage/Factory.pm6 (Documentable::DocPage::Factory) line 31
[Documentable]   in block <unit> at t/402-factory.t line 22
===> Testing [FAIL]: Documentable:ver<2.0.1>:auth<github:Raku>:api<1>
Aborting due to test failure: Documentable:ver<2.0.1>:auth<github:Raku>:api<1> (use --force-test to override)
JJ commented 2 years ago

Checking it locally in Ubuntu 20

JJ commented 2 years ago

Testing OK in Ubuntu:

===> Testing: Documentable:ver<2.0.1>:auth<github:Raku>:api<1>
[Documentable] /home/jmerelo/Code/forks/raku/documentable/t/.cache-test-doc directory will be used as a cache. Please do not use any other directory with this name.
===> Testing [OK] for Documentable:ver<2.0.1>:auth<github:Raku>:api<1>
JJ commented 2 years ago

It looks like render is getting something that it can't deal with, namely, a Pod::Block::Named. I can't figure out why that happens, but my hunch is that it's going to have to do with some version of some library... Not really clear why. This is going to need a bit of work, mainly to pinpoint what's the library that's yielding that problem. I'll probably try and create additional tests for whatever is being fed to render