Ubuntu 22 - VSCode - ESP-IDF - esp-matter not generating compile_commands.json

Marius Dumas
Posts: 1
Joined: Wed Jul 31, 2024 6:58 am

Ubuntu 22 - VSCode - ESP-IDF - esp-matter not generating compile_commands.json

Postby Marius Dumas » Wed Jul 31, 2024 7:23 am

Using:
Ubuntu 22.04.2 LTS
VS Code V1.91.1
ESP-IDF v5.4.0

The issue I get and I got this using Ubunto 24... as well.
When I open a esp-matter example for example "Light" then I can try anything but I do not get the compile_commands.json to be generated at all. Hence the entry in c_cpp_properties.json "compileCommands": "${config:idf.buildPath}/compile_commands.json", points to a missing file.

I get the following error message when building the example.
Cannot find "/home/<user>/Desktop/ESP_Light2/all_device_types_app/build/compile_commands.json"

Does anyone have an idea why I am getting this issue and how to fix it?

ESP_radurentea
Posts: 18
Joined: Thu Mar 09, 2023 8:30 am

Re: Ubuntu 22 - VSCode - ESP-IDF - esp-matter not generating compile_commands.json

Postby ESP_radurentea » Fri Aug 02, 2024 9:59 am

Hi Marius,

Have you tried running the command "ESP-IDF: Run idf.py reconfigure task" from command palette? (CTRL+SHIFT+P), this command should generate the compile_commands.json

Who is online

Users browsing this forum: No registered users and 27 guests