-
Notifications
You must be signed in to change notification settings - Fork 31
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
No such file or directory when compiling with PlatformIO and VsCode #76
Comments
Yeha. I noticed that in my CI, which compile tests all the boards in the Compatibility Table on PlatformIO, and it failed nearly all of the Teensy boards for the same reason you're describing here. What's interesting is... they all used to compile with impunity, until fairly recently. So, it looks more like something outside the scope of CRSF for Arduino changed and it has affected the compilation process for Teensy targets. |
Yeah, seems like path handling has changed in PlatformIO. |
Well, I'll add this to #61 and go from there. |
Okay, I looked into this on my end, and compile-tested the Main-Trunk:
What's weird about this is, compiling the entire unified Teensy targets on my end succeeded.
After a recent update to PlatformIO, that
So, chances are, that on your end, there may be a |
Alright! I found it. =^/.^= Now I know what I am dealing with here. Yea, this is how I point the Arduino IDE to the rest of CRSF for Arduino's files, because the Arduino IDE doesn't like nested library files and folders. So, PlatformIO kinda has to come along for the ride. |
I just checked and I didn't see any extra $PROJECT_DIR folder on my end, also I'm not specifying any folders in my platformio.ini, for what it's worth, here's what my platformio.ini looks like, nothing too special:
|
I see. I dug a little more into the issue you're having here, and it seems to me like it's a lot more problematic than what I initially thought. By the way things are going, I may finish up doing another re-structure of the entire repository. 'Cause on my end, no matter how I tried to dick around with the includes, compilation still failed. This bug isn't hardware-specific, by the way. |
I was on vacation so I was just now able to test this out. I tried it out this morning by updating my platformio.ini library dependency with
and everything compiles and seems to work fine. Thanks! |
Excellent. You're welcome. =^/.^= |
Is there an existing issue for this bug?
What development environment are you using?
PlatformIO
What board are you using?
Teensy 4.0
What part of CRSF for Arduino is this bug related to?
Build/Compile/Upload
Current behaviour
Compiling fails with "No such file or directory". This looks very similar to #19, but now the issue is with PlatformIO / VsCode and not the Arduino IDE.
Expected behaviour
No compiler errors.
Steps to reproduce
Using VsCode with a PlatformIO project, Add https://github.com/ZZ-Cat/CRSFforArduino to lib_deps in platformio.ini. Compile.
Additional information
I was able to "fix" the behavior for myself by creating a fork of the project at https://github.com/berickson/CRSFforArduinoFork where I #undef PLATFORMIO in several CPP files forcing it to use the same include paths that are used for Arduino. If I reference that repo from my platformio.ini libdeps, things compile fine.
The text was updated successfully, but these errors were encountered: