Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlatformIO failing to parse manifest on install. #722

Open
RobertByrnes opened this issue Apr 10, 2024 · 1 comment
Open

PlatformIO failing to parse manifest on install. #722

RobertByrnes opened this issue Apr 10, 2024 · 1 comment

Comments

@RobertByrnes
Copy link

This is producable error in GitHub Actions as well as in local install.

I do not know if this is an issue with PlatformIO dependency resolution or with Unity library.json?

Resolving native dependencies...
Library Manager: Installing git+https://github.com/ThrowTheSwitch/Unity.git#master
git version 2.41.0.windows.1
Cloning into 'C:\Users\robby.platformio.cache\tmp\pkg-installing-t2di71c3'...

Library Manager: Could not parse manifest -> Expecting value: line 1 column 1 (char 0)
MissingPackageManifestError: Could not find one of 'library.json, library.properties, module.json' manifest files in the package

This issue can be viewed in the following GitHub Action:

https://github.com/govorox/SSLClient/actions/runs/8637423637/job/23679567024?pr=69

@DrewBrandt
Copy link

The issue appears to stem from the header included in the JSON file:

# =========================================================================
#   Unity - A Test Framework for C
#   ThrowTheSwitch.org
#   Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
#   SPDX-License-Identifier: MIT
# =========================================================================

PlatformIO doesn't recognize the JSON file with this there.

I forked the project here and literally the only change I made was to delete that, and it works.

I also noticed that removing the dependency from the pio ini let pio install the library itself from its registry, which is a working version labelled as 2.6.0 without the JSON header. (deleting the .pio/libdeps/<env> folder may be necessary, not sure)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants