Skip to content

RuntimeError: attribute 'fullname' is only available when compiling C++ code #72

Description

@davidmalcolm

I got this error when trying to use gccutils.pformat when compiling C code:

{{{
File "/home/tromey/Space/Trunk/gcc-python-plugin/cvtlisp.py", line 204, in map_tree
print gccutils.pformat(tree)
File "/home/tromey/Space/Trunk/gcc-python-plugin/gccutils.py", line 123, in pformat
return pp.pformat(obj)
File "/home/tromey/Space/Trunk/gcc-python-plugin/gccutils.py", line 176, in pformat
return self._recursive_format_obj(obj, set(), 0)
File "/home/tromey/Space/Trunk/gcc-python-plugin/gccutils.py", line 208, in _recursive_format_obj
visited, depth + 1)
File "/home/tromey/Space/Trunk/gcc-python-plugin/gccutils.py", line 199, in _recursive_format_obj
for name, value in self.iter_tree_attrs(obj):
File "/home/tromey/Space/Trunk/gcc-python-plugin/gccutils.py", line 143, in iter_tree_attrs
value = getattr(obj, name)
RuntimeError: attribute 'fullname' is only available when compiling C++ code
}}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions