You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root cause was that in the library.properties file I had a typo in the line includes=RunningAverager.h instead of RunningAverage.h This caused an error in the unit test code stating that the #include file could not be found. It took some time to find the cause as the dependency was not obvious for me. Fixing the typo solved the problem.
The error message in the log file did not give any clue (see below).
Unit Test log , Illustrating the Problem
Snippet from the log file
Compiling ra_test.ino for arduino:avr:uno...
Last command: $ /usr/local/bin/arduino-cli --format json compile --fqbn arduino:avr:uno --warnings all --dry-run
/github/home/Arduino/libraries/RunningAverage/examples/ra_test/ra_test.ino
/github/home/Arduino/libraries/RunningAverage/examples/ra_test/ra_test.ino:10:10: fatal error: RunningAverage.h: No such file or directory
#include "RunningAverage.h"
^~~~~~~~~~~~~~~~~~
Request
It would be good if
the dependency is documented
the test environment checks the dependencies somehow,
e.g. it checks the consistency of library.properties file and the library.json file
Thanks,
Rob
The text was updated successfully, but these errors were encountered:
ianfixes
changed the title
Error in Arduino-ci run because of dependency on library.properties
Error in Arduino-ci run because of typo in library.properties produces cryptic error
Dec 14, 2020
Today I had a typo (case mismatch) in the field: includes=DHT.h which should be includes=dht.h
It took a while to find the root cause as the error message just said "#include <dht.h> not found.
The very same sketch compiled perfect in the IDE for years so that made me wonder.
Solutions
a better error message why the #include is not found, e.g. what is expected.
a script that verifies the fields of the library.properties file.
All mandatory fields are available and correct?
document this problem in an FAQ for known error messages
I've added scans for both the library dependencies (depends=) existence and includes (includes=) existence. Please try to outsmart my checks and let me know if I missed anything.
Issue Summary
Problem occurred during this run - https://github.com/RobTillaart/RunningAverage/runs/1506309632?check_suite_focus=true
The root cause was that in the library.properties file I had a typo in the line
includes=RunningAverager.h
instead ofRunningAverage.h
This caused an error in the unit test code stating that the #include file could not be found. It took some time to find the cause as the dependency was not obvious for me. Fixing the typo solved the problem.The error message in the log file did not give any clue (see below).
Unit Test log , Illustrating the Problem
Snippet from the log file
Request
It would be good if
Thanks,
Rob
The text was updated successfully, but these errors were encountered: