Closed
Description
Bug Report
Current behavior
/home/linuxbrew/.linuxbrew/bin/arduino-cli --config-file /home/jacquesg/.arduino15/arduino-cli.yaml compile --fqbn esp32:esp32:featheresp32 --only-compilation-database --clean --build-path $PWD/build --format json /home/jacquesg/dev/AdvancedWebServer
{
"compiler_out": "",
"compiler_err": "xtensa-esp32-elf-g++: error: /home/jacquesg/dev/AdvancedWebServer/build/build_opt.h: No such file or directory\n",
"builder_result": {
"build_path": "/home/jacquesg/dev/AdvancedWebServer/build"
},
"success": false
}
/home/linuxbrew/.linuxbrew/bin/arduino-cli --config-file /home/jacquesg/.arduino15/arduino-cli.yaml compile --fqbn esp32:esp32:featheresp32 --clean --build-path $PWD/build --format json /home/jacquesg/dev/AdvancedWebServer
{
"compiler_out": "Sketch uses 701109 bytes (53%) of program storage space. Maximum is 1310720 bytes.\nGlobal variables use 39840 bytes (12%) of dynamic memory, leaving 287840 bytes for local variables.
Maximum is 327680 bytes.\n",
"compiler_err": "",
... SNIP ...
},
"success": true
}
From the above, by only requesting the compilation database the compilation fails.
Expected behavior
No error should be generated.
Environment
- CLI version (output of
arduino-cli version
): arduino-cli alpha Version: 0.19.3 Commit: 12f1afc Date: 2021-10-11T15:14:04Z - OS and platform: Linux with an ESP32 board