Every time the svgbob
diagram changes and I save the file, I get the following:
ERROR 2020/10/13 07:06:22 hugo/developing-in-virtual-machine.adoc: asciidoctor: DEBUG: Finding 'svgbob' in attributes
ERROR 2020/10/13 07:06:22 hugo/developing-in-virtual-machine.adoc: asciidoctor: DEBUG: Finding 'svgbob' in environment
ERROR 2020/10/13 07:06:22 hugo/developing-in-virtual-machine.adoc: asciidoctor: DEBUG: Found '/usr/local/bin/svgbob' in environment
ERROR 2020/10/13 07:06:22 hugo/developing-in-virtual-machine.adoc: asciidoctor: DEBUG: Executing ["/usr/local/bin/svgbob", "-o", "/var/folders/1j/fkfrvhf53vz7p2f998b2skdw0000gp/T/svgbob20201013-25272-qsnhch.svg"] with options {:stdin_data=>"\n .----------------------------------------.\n | Host Computer |\n | |\n | |\n | |\n | |\n | |\n | |\n | |\n | |\n | |\n | |\n | |\n +-------+--------------------------------+\n | Start | |\n '----------------------------------------'\n"}
INFO 2020/10/13 07:06:22 Rendering hugo/the_index.adoc with /Users/my_home/.rvm/gems/ruby-2.7.0/bin/asciidoctor using asciidoctor args [-r asciidoctor-html5s -r asciidoctor-diagram -a icons=font -a my-base-url=/static/ -a source-highlighter=pygments --base-dir /Users/my_home/prj/content/hugo -a outdir=/Users/my_home/prj/dev_server/hugo/the_index --no-header-footer --verbose --trace -] ...
Total in 1782 ms
ERROR 2020/10/13 07:06:23 Rebuild failed:
ERROR 2020/10/13 07:06:23 Logged 4 error(s)
INFO 2020/10/13 07:06:23 Received System Events: ["/Users/my_home/prj/content/hugo/developing-in-virtual-machine.adoc": CHMOD]
The second time I save, everything seems to work fine, the page renders OK.
If I do this:
$ which svgbob
/usr/local/bin/svgbob
In my config.toml
file, I have the following
[markup.asciidocExt.attributes]
svgbob = "/usr/local/bin/svgbob"
The diagram code looks like this:
[svgbob]
....
.----------------------------------------.
| Host Computer |
| |
| |
| |
| |
| |
+-------+--------------------------------+
| Start | |
'----------------------------------------'
....
Why does Hugo output that error every time I change the diagram, but renders fine second time I save the document?