Raku / Pod-To-HTML

Convert Raku docs to shiny HTML
Artistic License 2.0
12 stars 19 forks source link

"Cannot look up attributes in a Pod::to::HTML type object" #86

Closed JJ closed 4 years ago

JJ commented 4 years ago

Using raku --doc HTML on any file does not work:

raku --doc=HTML lib/Encode/Latin2.pm6 
Cannot look up attributes in a Pod::To::HTML type object
  in method render at /home/jmerelo/.rakubrew/versions/moar-2020.10/install/share/perl6/site/sources/FEA648BB02B6EA93088B3D61F4E0644CAA020948 (Pod::To::HTML) line 45
  in block <unit> at lib/Encode/Latin2.pm6 line 101

Does not even work on the examples here:

raku --doc=HTML doc/Pod/To/HTML.rakudoc 
Cannot look up attributes in a Pod::To::HTML type object
  in method render at /home/jmerelo/.rakubrew/versions/moar-2020.10/install/share/perl6/site/sources/FEA648BB02B6EA93088B3D61F4E0644CAA020948 (Pod::To::HTML) line 45
  in block <unit> at doc/Pod/To/HTML.rakudoc line 149
JJ commented 4 years ago

This problem also occurs in version 0.7.1. This the problematic line: https://github.com/Raku/Pod-To-HTML/blob/master/lib/Pod/To/HTML.pm6#L45 Quite obviously it's an attribute, and we're calling it usually (or always) as class methods.

JJ commented 4 years ago

it's going to fail tor all attributes, actually. That variable is not actually used anywhere, but @!body in the next line over has still got the same problem.

Altai-man commented 4 years ago

We have a similar case in Cro, so I'll address it a bit later today.