platformio-core icon indicating copy to clipboard operation
platformio-core copied to clipboard

Build fails with libraries that are git repositories

Open aphelps opened this issue 11 years ago • 5 comments

I'm making strides to converting my code base to build on platformio, but it seems to not be able to use a library that's within a git repo (ie which I've cloned from elsewhere). I took a look in the platformio line that generated this error, but its not clear to me what the root cause is:

$ platformio run Processing arduino_nano environment:

scons: *** '/Users/amp/Dropbox/Arduino/HMTL.platformio/HMTL_Module/.pioenvs/arduino_nano/FastLED/refs' already has a source directory: '/Users/amp/Dropbox/Arduino/libraries/FastLED/.git/refs'. File "/Library/Python/2.7/site-packages/platformio/builder/tools/platformio.py", line 142, in VariantDirRecursive

aphelps avatar Jan 15 '15 06:01 aphelps

Give me please a structure of your project. Go to project root dir and type tree -L 3.

ivankravets avatar Jan 16 '15 16:01 ivankravets

Please test it with the latest develop version:

$ pip uninstall platformio
$ pip install https://github.com/ivankravets/platformio/archive/develop.zip

Does it work for you?

ivankravets avatar Jan 16 '15 16:01 ivankravets

Yeah, that fixed the issue. Thanks.

aphelps avatar Jan 17 '15 18:01 aphelps

@ivankravets, your suggestion worked for me, too. i'd be glad to have this fix mainstream

$ git clone --depth 1 https://github.com/ivankravets/platformio
$ cd platformio
$ pip install -e .
$ pip install --egg scons

gretel avatar Feb 13 '15 22:02 gretel

@gretel Thanks a lot for your feedback. We are hardly working on the first stable release 1.0.0. PlatformIO has not been released as stable yet. You can monitor by active issues for 1.0.0 milestone here or follow us via Twitter @PlatformIO_Org.

ivankravets avatar Feb 13 '15 22:02 ivankravets