Skip to content

KeyError: 'concept' when listing nodes to console #195

@5p4k

Description

@5p4k

It seems that Doxygen and Breathe now generate also concept entries from C++20.
Exhale is wise enough to ignore kinds that it doesn't know how to handle:

(!) Unabridged API: unexpected kind 'concept' (IGNORED)

however, it fails later on because it does not have a color in fmt_spec for unknown kinds:

(!) Exhale: could not generate reStructuredText documents :/Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/exhale/__init__.py", line 25, in environment_ready
    deploy.explode()
  File "/usr/local/lib/python3.10/site-packages/exhale/deploy.py", line 421, in explode
    textRoot.toConsole()
  File "/usr/local/lib/python3.10/site-packages/exhale/graph.py", line 4248, in toConsole
    self.consoleFormat(
  File "/usr/local/lib/python3.10/site-packages/exhale/graph.py", line 4310, in consoleFormat
    l.toConsole(0, fmt_spec)
  File "/usr/local/lib/python3.10/site-packages/exhale/graph.py", line 595, in toConsole
    c.toConsole(level + 1, fmt_spec)
  File "/usr/local/lib/python3.10/site-packages/exhale/graph.py", line 568, in toConsole
    kind=utils._use_color(self.kind, fmt_spec[self.kind], sys.stderr),
KeyError: 'concept'
make: *** [Makefile:24: html] Error 1

I will post a PR associated to this issue in a few minutes, that will simply pick red when the kind is not known.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions