git-afsantos / haros_plugins

Plugin repository for the HAROS tool.
7 stars 2 forks source link

Error in CCCC plugin: cccc.xml not found #14

Open git-afsantos opened 4 years ago

git-afsantos commented 4 years ago
ERROR:haros.analysis_manager:Plugin haros_plugin_cccc ran into an error.
DEBUG:haros.analysis_manager:Traceback (most recent call last):
  File "/home/<user>/haros/analysis_manager.py", line 480, in _analysis
    plugin.analysis.analyse_package(iface, scope)
  File "/home/<user>/haros/plugin_manager.py", line 76, in analyse_package
    self.module.package_analysis(iface, scope)
  File "/home/<user>/.local/lib/python2.7/site-packages/haros_plugin_cccc/plugin.py", line 68, in package_analysis
    with open(os.path.join(outdir, "cccc.xml"), "r") as handle:
IOError: [Errno 2] No such file or directory: '/tmp/tmp0NDzeR/haros_plugin_cccc/<some_package_analyzed>/cccc.xml'

This is past the point of calling cccc with subprocess. It is not creating the file for whatever reason. Perhaps a different version? Perhaps a package without C++ code?

git-afsantos commented 4 years ago

This was reported for CCCC Version 3.1.4.

git-afsantos commented 4 years ago

The package did not have any C++ files. Perhaps add a condition to package_analysis to skip packages without C++.