-
Notifications
You must be signed in to change notification settings - Fork 56
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
Library path requirements between deviot and platformio #162
Comments
Hmm. That's interesting for sure. To be clear, you are not using the
I'm on arch linux.
|
I've check now with When you activate
At least in ubuntu is working, will check now on arch linux |
Ah, I know what the issue is. I got used to symlinking If I edit
Now open Not sure if you consider this a bug... but technically the file is there in Edit: for clarity:
|
If you don't have checked the let me know if you understand that, I think that explanation was a little confusing |
I don't totally get it...
I take it that deviot will, then, not add the
Based on this, is it odd that I get the error? Without this |
If you have:
Deviot will considerate this a with:
This will work in In both cases, Deviot will not use the But if you have:
It won't be a PlatformIO project, so That means you should use But be aware, the |
This is related to #88 and some discussion in #154.
My understanding is that deviot should now tolerate a typical platformio setup. Here is a way I went about setting up a reproducible example. It requires at least some external library; if you don't have one installed, you can use this one, a pretty small library for reading a wheatstone bridge HX711 board.
Steps:
Preferences -> Package Control -> Install -> Deviot 2017.09.07.03.02.41
. Output:Deviot -> Options -> Upgrade PlatformIO
Deviot -> New sketch -> deviot-lib-test
; then navigate to~/Arduino
for the directory choiceDeviot -> Select board
; I choose UnoDeviot -> Compile
: get error; this is also needed for Deviot to createplatformio.ini
platformio
compliant structure. Get same error:So, as it is, it doesn't appear that Deviot will take accept the structure that works for
platformio
.I did a second test, which did work:
pio-struc
, located in~/Arduino
Deviot -> Use PlatformIO Structure
Deviot -> Select board
: Arduino UnoDeviot -> Compile
on blank template (seems required to trigger creation ofsrc
,lib
, andplatformio.ino
#include "HX711.h"
as above, save fileDeviot -> Compile
, success.Based on conversations in #154 , I'm not sure if you meant that the first example should work, or only if one chooses the
platformio
structure option. I can see a few ways to approach...platformio
, it should work with Deviotplatformio
doesn't really intend for~/Arduino/libraries
to be linked in this folder (it's for truly custom libraries created for the project itself)... instead, I think the intended way is to uselib_extra_dirs
which I verified is what Deviot does withDeviot -> Library options -> Extra library folder
.~/Arduino/libraries
, neither should Deviot (add this directory by default tolib_extra_dirs
during install)As a side note for compatibility, if you have this structure, compiling works with Deviot,
platformio
and Arduino simultaneously (omittedlib
andplatformio.ini
for brevity).Interestingly, if you switch the real file (have it top level) and symlink (put in
src
), Arduino fails!Alright... that's what I've got. Hope that's helpful!
The text was updated successfully, but these errors were encountered: