UTBotCpp icon indicating copy to clipboard operation
UTBotCpp copied to clipboard

Configure error: compile_commands.json doesn't contain a command for object file

Open mishok2503 opened this issue 3 years ago • 0 comments

Try to generate tests for base64 project When I try to generate tests, I get this

2022-05-13 11:31:50 |     projectConfig.js: 37 |I| Project 'base64' was successfully configured.
2022-05-13 11:31:50 |            client.js:572 |E| Request project targets error: 3 INVALID_ARGUMENT: Failed to find compile_commands.json:
compile_commands.json doesn't contain a command for object file /home/utbot/Experiments/base64/build/test/CMakeFiles/test_base64.dir/codec_supported.c.o

But compile_commands.json contains this command

{
        "arguments": [
            "/utbot_distr/install/bin/clang",
            "-c",
            "-DBASE64_STATIC_DEFINE",
            "-I/home/utbot/Experiments/base64/include",
            "-o",
            "CMakeFiles/benchmark.dir/codec_supported.c.o",
            "../../test/codec_supported.c"
        ],
        "directory": "/home/utbot/Experiments/base64/build/test",
        "file": "../../test/codec_supported.c"
    }

mishok2503 avatar May 13 '22 13:05 mishok2503