New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POD not as documented #5258
Comments
It is my understanding that these blocks should keep the whitespace as is from the pod. That is correct, right? FWIW, I think there are spectest expecting =input / =output to be Code blocks. Will check. In any case, with the current RakuAST implementation I'd like to stay as close to the legacy implementation, including any bugs. To be replaced by another, more sensible implementation for 6.e. Or alternately, run the pod through the |
@lizmat They should keep the whitespace as in file. Yes. But they should not be CodeBlocks. S26 says that code, input and output rendering should be different, eg. by typeface. However, by the time of the Renderer, there is no way to distinguish between the three, so effectively, they are the same. This is a big bug. But because no one ever used I'm thinking of suggesting that they be removed from the Pod Documentation. Is there a link to how to access the RakuAst blocks? I'm looking forward to experimenting with that. |
Currently, the
For example, for a file with content:
you'd get:
Now looking at this output, I immediately see some buglets, but hopefully this will give you an idea. |
which version of raku?
|
You would need the HEAD version, post 2023.04 even. |
FWIW, I think the conversion to text (a la |
@lizmat I tried using 2023.04, doesn't work in continuation of this theme, but off-topic: what is a convenient way of keeping a Raku version available at the bleeding edge? I now rely on the |
@lizmat Regarding |
The only way to keep on HEAD, is to checkout the Rakudo repo, and build from there. 2023.04 doesn't have all the nooks and crannies yet, I implemented those post 2023.04. |
Currently, |
@finanalyst: There is no way around building your own Rakudo. That boils down to:
Once set up as above update with:
If you don't want to manually set the paths like above and be able to quickly switch between different Rakudos, use Rakubrew. To do so build a Rakudo like above (but leave PATH alone) and then:
Then you can |
On Thursday, 4 May 2023 11:01:44 CEST Patrick Böker wrote:
@finanalyst: There is no way around building your own Rakudo.
Actually, there is. There are up-to-date Rakudo main builds available on the
OBS at: https://build.opensuse.org/project/show/home:niner9:rakudo-git
|
Just to report:
File for testing
AST output
Pod output
|
The Problem
In
Raku/doc/doc/Language/pod.rakupod
and inS26
the blocks=input
and=output
are defined as named blocks, but are parsed by Rakudo intocode-block
Structures.Expected Behavior
A
=input
should lead toPod::Block::Named{:name("input")}
If not
::Named
then perhaps::Input
, but not::Code
because there is no way to distinguish=input
,=output
from=code
.Actual Behavior
Actually we get
Pod::Block::Code
Steps to Reproduce
test file
ttt.raku
containsrun with
raku ttt.raku
yields:Environment
perl6 -v
orraku -v
):Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2023.02.
The text was updated successfully, but these errors were encountered: