Ericsson / CodeCheckerEclipsePlugin

This is an Eclipse plugin that shows C/C++ static analysis results found by Clang Static Analyzer and Clang Tidy
Eclipse Public License 1.0
32 stars 13 forks source link

Path to compilation log is wrong #203

Open sstickel opened 4 years ago

sstickel commented 4 years ago

Hi,

I am facing an issue here. Installed CodeChecker on Friday, working as intended on bash. Then I installed the Eclipse plugin but there seems to be something wrong.

The project is a c++ project using cmake4eclipse. Builds go into $projectdir/build/Debug, here also a file called _compilecommands.json is created and published.

But when I look at the command which is builtin CodeChecker properties theses paths do not match:

(command stripped) CodeChecker analyze -j 4 -n javarunner -o (...)/workspace_eclipse_2020-06/.codechecker/($projectname)/results (...)/workspace_eclipse_2020-06/.codechecker/($projectname)/compilation_commands.json.javarunner

Neither path nor file name match. When I edit this command to hold the correct file path $projectfolder/build/Debug/compile_commands.json it runs as expected.

Is this a problem of the combination of cmake4eclipse and CodeCheckerEclipsePlugin?