jessevdk / cldoc

clang based documentation generator for C and C++
GNU General Public License v2.0
553 stars 59 forks source link

ValueError: Unknown type kind 119 (Mac OS X Sierra) #124

Closed ruurdadema closed 7 years ago

ruurdadema commented 7 years ago

I'm not sure when this issue popped up as I didn't use cldoc for a while, but at the moment I'm on Mac OS X Sierra (10.12.15).

Here's the backtrace:

Traceback (most recent call last):
  File "/usr/local/bin/cldoc", line 11, in <module>
    sys.exit(run())
  File "/usr/local/lib/python2.7/site-packages/cldoc/__init__.py", line 57, in run
    run_generate(rest)
  File "/usr/local/lib/python2.7/site-packages/cldoc/__init__.py", line 27, in run_generate
    cmdgenerate.run(args)
  File "/usr/local/lib/python2.7/site-packages/cldoc/cmdgenerate.py", line 125, in run
    t.process()
  File "/usr/local/lib/python2.7/site-packages/cldoc/tree.py", line 212, in process
    self.visit(tu.cursor.get_children())
  File "/usr/local/lib/python2.7/site-packages/cldoc/tree.py", line 517, in visit
    self.visit(item.get_children(), node)
  File "/usr/local/lib/python2.7/site-packages/cldoc/tree.py", line 502, in visit
    node = cls(item, None)
  File "/usr/local/lib/python2.7/site-packages/cldoc/nodes/field.py", line 23, in __init__
    self.type = Type(cursor.type, cursor=cursor)
  File "/usr/local/lib/python2.7/site-packages/cldoc/nodes/ctype.py", line 60, in __init__
    self.extract(tp)
  File "/usr/local/lib/python2.7/site-packages/cldoc/nodes/ctype.py", line 132, in extract
    self.extract(tp.get_pointee())
  File "/usr/local/lib/python2.7/site-packages/cldoc/nodes/ctype.py", line 131, in extract
    if tp.kind in Type.kindmap:
  File "/usr/local/lib/python2.7/site-packages/cldoc/clang/cindex.py", line 1627, in kind
    return TypeKind.from_id(self._kind_id)
  File "/usr/local/lib/python2.7/site-packages/cldoc/clang/cindex.py", line 1519, in from_id
    raise ValueError,'Unknown type kind %d' % id
ValueError: Unknown type kind 119

Any idea of what might be going on?