I intend to publish a library, but fail to provide a proper library.json manifest.
Tried lots of variants, all failed while I think it conforms to docs. Maybe you can help spot the error?
Error: Invalid manifest fields: {'examples': {39: {'name': ['Length must be between 1 and 255.']}, 40: {'name': ['Length must be between 1 and 255.']}, 41: {'name': ['Length must be between 1 and 255.']}, 42: {'name': ['Length must be between 1 and 255.']}}}.
Please check specification -> https://docs.platformio.org/page/librarymanager/config.html
Interesting, this reads like the “examples” attribute in line 39 are wrong, but the library.json you showed doesn’t even have an examples field. Maybe it tries to auto-generate the missing on and it trips?
pio pkg publish ~/Downloads/Joba_ESmart3-master/
Preparing a package...
Type: library
Owner: ivankravets
Name: Joba_ESmart3
Version: 3.0
Size: 23.74KB
Are you sure you want to publish the library ivankravets/Joba_ESmart3@3.0 to the registry?
[y/N]: y
The package publishing may take some time depending on your Internet connection and the package size.
Publishing...
The package has been accepted. We will notify you on email when process it.
FWIW I tested with git tag v1.0 because that is what I want to publish first.
Couldn’t reproduce on another pc with git clone, pio pkg pack - all fine there.
Did a clone in another directory on the first pc - all fine as well
Removed all .pio and .vscode in the examples of the problematic repo - all fine now (!)
Did another build inside vscode to get new .pio and .vscode → still all fine (?)
Must have been something toxic inside one of those hidden folders - but now I cannot reproduce anymore. If it comes back, I’ll report. Thank you for your support!
(I upgraded to 6.1.4 before reporting, didnt know --dev exists, until just now)