Open geeksville opened 4 years ago
this isnt a good idea because we will not update the version number.. the json file was commited a few years ago https://github.com/adafruit/Adafruit_nRF52_Arduino/tree/master/tools/midi_tests so its something with platform.io that changed. please ask them to change it back :)
I just updated my fork of your great project and discovered it was printing the following build error. The root cause was that the find_pkg_root method in base.py of platformio was looking for a package.json file in the downloaded project (and if not found it would assume that it should treat the root directory of the project as 'the root').
The problem was that this framework doesn't have a package.json which should normally be acceptable. But the "tools/midi_tests" subdirectory in this project does have a package.json. So platformio sees that file and "I assume that directory is the root of the project". Which is not correct and causes the later build error.
the relevant bits from the failure:
I've fixed things by adding a package.json a the root - I guessed at contents based on what your org would want. Apparently package.json is the magic file platformio wants to be at the root of any project. If it doesn't find one it punts and assumes the top directory in the project is the root. Which is why this project used to work nicely there. The presence of package.json in midi_tests confused this logic (I'm not sure if it is because this file was recently added to midi_test or if platformio recently changed their search logic)
Failing run (before this fix)