-
-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include path doesn't always contain the dependencies from a library.json file #4900
Comments
If you add |
Thanks @ivankravets . Unfortunately, adding My problem seems to be both simpler and stranger that what I originally described. Please see this repo of a minimal library: And here is a simple project that includes this library: platformio.ini:
main.cpp: #include <Arduino.h>
void setup() {
}
void loop() {
} Compilation result:
It makes no sense to me. I've just spent two hours deleting .pio folders, doing Clean, Full Clean, reinstalling platformio, trying with symlink:, file:, etc. Sometimes it has worked, most of the time it hasn't. Any clue is welcome. |
Have you added |
I provided you with all the code I'm using. There's no hidden project file, the only one is Or do you mean that I should add Unfortunately, I cannot test whether adding May I ask what's the behavior on your side with the code I provided? |
Hi @sylque, strange, but I cannot reproduce the issue. I took your
Here is my test project if you're interested: platformio-core-issue-4900.zip Am I missing something? |
@valeros , here is the full output when I compile your project:
|
I believe your issue is probably a duplicate of #4885 that's already fixed in the dev branch. Please run |
@valeros , I confirm the issue doesn't occur with the dev branch. Thanks a million! |
PlatformIO Core 6.1.15 has been released! |
Configuration
Operating system: Windows
PlatformIO Version: 6.1.14
Description of problem
If you put this in a
library.json
file:and file
ImuBMI270.cpp
of your library includesSparkFun_BMI270_Arduino_Library.h
,but your project never includes directly
SparkFun_BMI270_Arduino_Library.h
,then you will get a compile error:
The library is actually loaded and built, but the include path is not found.
Expected Results
As I added "SparkFun_BMI270_Arduino_Library" explicitly in a manifest, I expect it to be reachable.
Additional info
A workaround is to use
lib_ldf_mode = deep
.The text was updated successfully, but these errors were encountered: