hpp2plantuml 0.8.0
Traceback (most recent call last):
File "/usr/local/bin/hpp2plantuml", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/hpp2plantuml/hpp2plantuml.py", line 1474, in main
flag_dep=args.flag_dep)
File "/usr/local/lib/python3.6/dist-packages/hpp2plantuml/hpp2plantuml.py", line 1434, in CreatePlantUMLFile
diag_render = diag.render()
File "/usr/local/lib/python3.6/dist-packages/hpp2plantuml/hpp2plantuml.py", line 1267, in render
ns_obj_map[ns_parent].append(ns_obj_map[ns])
KeyError: 'first_ns'
If a class is added to the top namespace, no error is thrown and the correct result is produced:
namespace first_ns::second_ns{
class A{};
}
namespace first_ns{
class B{};
}
If a namespace which contains a class is contained inside of a namespace which contains no classes, an error is thrown.
Minimal example:
Output:
If a class is added to the top namespace, no error is thrown and the correct result is produced: