compile_commands.json is not generated if cli run with --only-compilation-database ends in error #1245
Labels
topic: build-process
Related to the sketch build process
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Bug Report
Current behavior
this issue is discovered in Arduino IDE 2.0 beta 4 found here
arduino/arduino-ide#220 (comment)
if
arduino-cli compile
is run with--only-compilation-database
ends in error,compile_commands.json
is not generatedhowever if
arduino-cli compile
is run without--only-compilation-database
the build completes, though with asuccess : false
status and a detailedcompile_commands.json
file is successfully generatedthe complete details is in the Arduino IDE issue comment link above.
Expected behavior
the missing
compile_commands.json
file causes definition and symbol lookup to fail in Arduino IDE 2.0.it would seem
--only-compilation-database
needs to run to completion even if encountering some errors as otherwisecompile_commands.json
is not generatedEnvironment
arduino-cli version
):arduino-cli alpha Version: 0.17.0 Commit: ab58758 Date: 2021-03-17T15:10:16Z
Additional context
the problem is discovered in Arduino IDE 2.0 beta4
The text was updated successfully, but these errors were encountered: