Describe the problem
Hey there,
I've just run into quite annoying issue with the compilation database trying to compile an example sketch for the ESP32-C6:
If I open that file the error turns into a 'freertos/FreeRTOS.h' file not found error although that might just be caused by the directory switch and therefore missing compile-commands.json.
Edit: A seemingly related issue:

Edit 2: Even more surprisingly, My editor thinkgs the Zigbee.h header is unused and instead tried to import ZigbeeDimmableLight.h which now causes the build to fail, as the arduino-cli can't find that header. The compilation database is basically unusable as-is...
Other cores like the official Arduino core or MiniCore work completely fine. The Esp32 core instead is fighting me quite hard.
Any idea what's wrong?
Thanks!
To reproduce
- obtain https://raw.githubusercontent.com/espressif/arduino-esp32/refs/heads/master/libraries/Zigbee/examples/Zigbee_Dimmable_Light/Zigbee_Dimmable_Light.ino
arduino-cli compile . -b esp32:esp32:esp32c6:PartitionScheme=zigbee,ZigbeeMode=ed --build-path build && cp build/compile-commands.json .
- open the code file in your favourite editor using the clangd LSP
Expected behavior
It should be able to find all used libraries like with the Arduino and MiniCore cores
Arduino CLI version
arduino-cli Version: 1.4.1 Commit: e394193
Operating system
Linux
Operating system version
Endeavour OS, linux on 7.0.3-zen1-2-zen
Additional context
Can't try the nightly build because git clone times out and the nightly builds webpage returns a bad gateway error.
Issue checklist
Describe the problem
Hey there,
I've just run into quite annoying issue with the compilation database trying to compile an example sketch for the ESP32-C6:
If I open that file the error turns into a
'freertos/FreeRTOS.h' file not founderror although that might just be caused by the directory switch and therefore missing compile-commands.json.Edit: A seemingly related issue:

Edit 2: Even more surprisingly, My editor thinkgs the
Zigbee.hheader is unused and instead tried to importZigbeeDimmableLight.hwhich now causes the build to fail, as the arduino-cli can't find that header. The compilation database is basically unusable as-is...Other cores like the official Arduino core or MiniCore work completely fine. The Esp32 core instead is fighting me quite hard.
Any idea what's wrong?
Thanks!
To reproduce
arduino-cli compile . -b esp32:esp32:esp32c6:PartitionScheme=zigbee,ZigbeeMode=ed --build-path build && cp build/compile-commands.json .Expected behavior
It should be able to find all used libraries like with the Arduino and MiniCore cores
Arduino CLI version
arduino-cli Version: 1.4.1 Commit: e394193
Operating system
Linux
Operating system version
Endeavour OS, linux on 7.0.3-zen1-2-zen
Additional context
Can't try the nightly build because git clone times out and the nightly builds webpage returns a bad gateway error.
Issue checklist