Skip to content
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

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

Open
5p4k opened this issue Sep 4, 2023 · 1 comment
Open

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

5p4k opened this issue Sep 4, 2023 · 1 comment

Comments

@5p4k
Copy link

5p4k commented Sep 4, 2023

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.

@florianhumblot
Copy link
Collaborator

I'll try to have a look at adding tests to your PR when I get a chance hopefully by the end of the week and then I'll try to review it ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants