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

Library submission failure

Open aphelps opened this issue 11 years ago • 3 comments

This is my first attempt at submitting a library, so please correct me if I'm doing it wrong. I have a github repo with a number of libraries, and so I figured I'd start by submitting a simple debugging framework from there.

I've placed the library.json file here: https://github.com/AMPWorks/ArduinoLibs/blob/master/Debug/library.json

However my attempts to submit this is failing with an error thats pretty generic:

$ platformio --version
PlatformIO, version 0.9.2
$ platformio lib register https://github.com/AMPWorks/ArduinoLibs/blob/master/Debug/library.json
Invalid library config: https://github.com/AMPWorks/ArduinoLibs/blob/master/Debug/library.json

Any idea whats wrong here? This is basically copied from the github example, except with the 'include' parameter added.

aphelps avatar Dec 29 '14 05:12 aphelps

@aphelps thanks a lot for trying to add new library. I want to add more libs but don't have time for it :(

Invalid library config: https://github.com/AMPWorks/ArduinoLibs/blob/master/Debug/library.json

Sure, this isn't valid JSON file. This is a link to GitHub HTML page. Click on "Raw" button and you will receive a valid URL to JSON data, like that https://raw.githubusercontent.com/AMPWorks/ArduinoLibs/master/Debug/library.json

P.S: Don't forget that you can validate your JSON file before submission here http://jsonlint.com.

ivankravets avatar Dec 29 '14 08:12 ivankravets

Thanks so much, I should have figured that one out myself, must have been pretty late. I've got a few easily sharable ones I'll be adding shortly then.

aphelps avatar Dec 29 '14 17:12 aphelps

Thanks, I'm waiting for your libs :+1:

ivankravets avatar Dec 29 '14 17:12 ivankravets