Skip to content

KeyError: (('/usr/include/c++/7/type_traits', 580), ('::', 'std', 'type')) #105

@manuka89

Description

@manuka89

Hi there,

I have encountered the following error during the execution of pygccxml. If I launch castXML myself it sucessfully generates the XML file so I guess the issue comes from the parsing:

decls = parser.parse([filename], config)

File "/usr/lib/python2.7/site-packages/pygccxml/parser/init.py", line 51, in parse
declarations = parser.read_files(files, compilation_mode)
File "/usr/lib/python2.7/site-packages/pygccxml/parser/project_reader.py", line 264, in read_files
return self.__parse_file_by_file(files)
File "/usr/lib/python2.7/site-packages/pygccxml/parser/project_reader.py", line 332, in __parse_file_by_file
leaved_classes = self._join_class_hierarchy(answer)
File "/usr/lib/python2.7/site-packages/pygccxml/parser/project_reader.py", line 481, in _join_class_hierarchy
derived_info.related_class)]
KeyError: (('/opt/rh/devtoolset-7/root/usr/include/c++/7/type_traits', 580), ('::', 'std', 'type'))

I'm using clang 8.0, castXML 0.2 botuh compiled with GCC 7.3 on CentOS 7.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions