You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This scripts requires two arguments :
-d
The disk where to create the image (e.g: ``sda``)
-i
The image name (e.g: ``iecharge-image-comboard.wic``)
And running rstfmt on my source folder using rstfmt source, I'm having the following error :
Traceback (most recent call last):
File "/workspaces/comboard-linux-image/docs/.venv/lib/python3.8/site-packages/rstfmt/rstfmt.py", line 733, in fmt
func = getattr(Formatters, type(node).__name__)
AttributeError: type object 'Formatters' has no attribute 'option_list'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/workspaces/comboard-linux-image/docs/.venv/bin/rstfmt", line 8, in <module>
sys.exit(main())
File "/workspaces/comboard-linux-image/docs/.venv/lib/python3.8/site-packages/rstfmt/__main__.py", line 97, in main
do_file(args, f, misformatted)
File "/workspaces/comboard-linux-image/docs/.venv/lib/python3.8/site-packages/rstfmt/__main__.py", line 44, in do_file
output = rstfmt.format_node(args.width, doc)
File "/workspaces/comboard-linux-image/docs/.venv/lib/python3.8/site-packages/rstfmt/rstfmt.py", line 742, in format_node
ret = "\n".join(fmt(node, FormatContext(0, width, "", "", [], 0)))
File "/workspaces/comboard-linux-image/docs/.venv/lib/python3.8/site-packages/rstfmt/rstfmt.py", line 488, in document
yield from chain_intersperse("", fmt_children(node, ctx))
File "/workspaces/comboard-linux-image/docs/.venv/lib/python3.8/site-packages/rstfmt/rstfmt.py", line 75, in chain_intersperse
yield from x
File "/workspaces/comboard-linux-image/docs/.venv/lib/python3.8/site-packages/rstfmt/rstfmt.py", line 484, in section
yield from chain_intersperse("", fmt_children(node, ctx.in_section()))
File "/workspaces/comboard-linux-image/docs/.venv/lib/python3.8/site-packages/rstfmt/rstfmt.py", line 75, in chain_intersperse
yield from x
File "/workspaces/comboard-linux-image/docs/.venv/lib/python3.8/site-packages/rstfmt/rstfmt.py", line 484, in section
yield from chain_intersperse("", fmt_children(node, ctx.in_section()))
File "/workspaces/comboard-linux-image/docs/.venv/lib/python3.8/site-packages/rstfmt/rstfmt.py", line 71, in chain_intersperse
for x in it:
File "/workspaces/comboard-linux-image/docs/.venv/lib/python3.8/site-packages/rstfmt/rstfmt.py", line 209, in <genexpr>
return (fmt(c, ctx) for c in node.children)
File "/workspaces/comboard-linux-image/docs/.venv/lib/python3.8/site-packages/rstfmt/rstfmt.py", line 735, in fmt
raise ValueError(f"Unknown node type {type(node).__name__}!")
ValueError: Unknown node type option_list!
Putting -d and -i in between ticks solves the issue :
``-d``
The disk where to create the image (e.g: ``sda``)
``-i``
The image name (e.g: ``iecharge-image-comboard.wic``)
rstfmt version : rstfmt 0.0.13
python3 version : Python 3.8.10
The text was updated successfully, but these errors were encountered:
Using the following code syntax :
And running
rstfmt
on mysource
folder usingrstfmt source
, I'm having the following error :Putting
-d
and-i
in between ticks solves the issue :rstfmt
version :rstfmt 0.0.13
python3
version :Python 3.8.10
The text was updated successfully, but these errors were encountered: