Using pio ci to build example from a library i’m writing generates the following error.
scons: *** 'C:\users\username\appdata\local\temp\tmpbcql9r\.pioenvs\adafruit_feather_m0_usb\src' already has a source directory: 'C:\users\username\appdata\local\temp\tmpbcql9r\lib\src'.
File "C:\python27\lib\site-packages\platformio\builder\tools\platformio.py", line 179, in VariantDirWrap
I know that the code itself doesn’t work but I think the example file should compile.
Travis compiles it fine so I guess it must be a local setup issue.
command used: $ pio ci -l src -b adafruit_feather_m0_usb examples/printData
As I’m writing a library I’ve set the library folder to src in the ci command.
Thanks -
I’ve got it to run by renaming the src folder to something else, or I guess i could move them into the top level.
I presume that there is a conflict between a library being a folder called src and the src folder created by platformio init.
I haven’t had this conflict on other systems though.
I got this problem. It’s a bug where 2 libs don’t have manifests but have the same folder name. If manifest is missed (where “name” is defined), PIO uses folder as “name”. In this case, we have a conflict.
Please remove 2.11.2 and use IDE’s version. You can install pio command globally into the system via PlatformIO IDE: Menu > PlatformIO > Install Shell Commands.