Closed sdarwin closed 3 weeks ago
Just checked with Doxygen 1.11, which is installed by release-tools on MacOS. And the error manifests locally. So, something has changed in Doxygen output. I'll try to fix this as soon as possible.
boostorg/docca#150 should fix the issue
Should be fixed now
New docca errors on Windows 2019 and Windows 2022.
https://github.com/boostorg/release-tools/actions/runs/9567848900/job/26424016691
https://github.com/boostorg/release-tools/actions/runs/9567848900/job/26424016327
jinja2.exceptions.UndefinedError: '__main__.Phrase object' has no attribute 'unhandled_type'
"python" "C:\boostorg\boost\tools\docca\docca.py" -i"bin.v2\libs\json\doc\_reference-dir\index.xml" -o"bin.v2\libs\json\doc\reference.qbk" -c"libs\json\doc\config.json" -c"bin.v2\libs\json\doc\_reference-dir\docca-config.json" -T"C:\boostorg\boost\tools\docca\include\docca\quickbook.jinja2" -I"."
Traceback (most recent call last):
File "C:\boostorg\boost\tools\docca\docca.py", line 1281, in <module>
main(sys.argv, sys.stdin, sys.stdout, os.path.realpath(__file__))
File "C:\boostorg\boost\tools\docca\docca.py", line 1278, in main
render(env, template, file, data)
File "C:\boostorg\boost\tools\docca\docca.py", line 1256, in render
template.stream(entities=data).dump(output)
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\environment.py", line 1618, in dump
fp.writelines(iterable)
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\environment.py", line 1662, in __next__
return self._next() # type: ignore
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\environment.py", line 1354, in generate
yield self.environment.handle_exception()
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "C:\boostorg\boost\tools\docca\include\docca\quickbook.jinja2", line 318, in top-level template code
{{ comps.write_namespace(entity) }}
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\runtime.py", line 777, in _invoke
rv = self._func(*arguments)
File "C:\boostorg\boost\tools\docca\include\docca\quickbook\components.jinja2", line 29, in template
{{ write_type(m) }}
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\runtime.py", line 777, in _invoke
rv = self._func(*arguments)
File "C:\boostorg\boost\tools\docca\include\docca\quickbook\components.jinja2", line 43, in template
{% call(segment) section(entity) %}
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\runtime.py", line 777, in _invoke
rv = self._func(*arguments)
File "C:\boostorg\boost\tools\docca\include\docca\quickbook\components.jinja2", line 379, in template
{{ caller("members") }}
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\runtime.py", line 777, in _invoke
rv = self._func(*arguments)
File "C:\boostorg\boost\tools\docca\include\docca\quickbook\components.jinja2", line 180, in template
{{ write_entity(member) }}
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\runtime.py", line 777, in _invoke
rv = self._func(*arguments)
File "C:\boostorg\boost\tools\docca\include\docca\quickbook\components.jinja2", line 17, in template
{{ write_overload_set(entity) }}
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\runtime.py", line 777, in _invoke
rv = self._func(*arguments)
File "C:\boostorg\boost\tools\docca\include\docca\quickbook\components.jinja2", line 310, in template
{{ function_declaration(func, linked=True) }}
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\runtime.py", line 777, in _invoke
rv = self._func(*arguments)
File "C:\boostorg\boost\tools\docca\include\docca\quickbook\components.jinja2", line 385, in template
{{ template_parameters(entity) }}
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\runtime.py", line 777, in _invoke
rv = self._func(*arguments)
File "C:\boostorg\boost\tools\docca\include\docca\quickbook\components.jinja2", line 474, in template
{%- if tparam.default_value %} = {{ phrase(tparam.default_value, in_code=True) }}{% endif -%}
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\runtime.py", line 777, in _invoke
rv = self._func(*arguments)
File "C:\boostorg\boost\tools\docca\include\docca\quickbook\components.jinja2", line 661, in template
{%- for part in para -%}{{ phrase_part(part, in_code=in_code) }}{%- endfor -%}
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\runtime.py", line 777, in _invoke
rv = self._func(*arguments)
File "C:\boostorg\boost\tools\docca\include\docca\quickbook\components.jinja2", line 696, in template
{{ part.unhandled_type() }}
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\jinja2\utils.py", line 83, in from_obj
if hasattr(obj, "jinja_pass_arg"):
jinja2.exceptions.UndefinedError: '__main__.Phrase object' has no attribute 'unhandled_type'
...failed docca.generate-reference bin.v2\libs\json\doc\reference.qbk...
The fix is in boostorg/docca#151. Please try now.
Windows docs succeeded.
In https://github.com/boostorg/release-tools, build_docs scripts generate boost library docs on linux, windows, and macos platforms. The CI tests run on all those platforms, testing the build process.
Recently boostorg/json is failing with docca errors on macos and windows. The cause of the problem could be the scripts themselves. Or a docca issue.
Any ideas?
https://github.com/boostorg/release-tools/actions/runs/9566036415/job/26370337036
AssertionError