ARMmbed / mbed-client-for-azure

Azure IoT Device SDK port for Mbed OS
Apache License 2.0
5 stars 4 forks source link

Error - Library files are corrupt #14

Closed noutram closed 2 years ago

noutram commented 2 years ago

Description of defect

When building this project in Mbed Studio (it is one of the template projects), the button to "fix library" cannot seem to fetch azure-io-sdk-c

It says "Library files are corrupt"

I assume this is a submodule with the wrong URL, and I am able to work around this by cloning this submodule manually.

Target(s) affected by this defect ?

NUCLEO F429ZI

Toolchain(s) (name and version) displaying this defect ?

ARMC6

What version of Mbed-os are you using (tag or sha) ?

6.15.1

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

Mbed Studio 1.4.3 Arm C6 6.16

How is this defect reproduced ?

Create a new project in Mbed Studio, and choose the Azure IoT Hub template. Attempt to fix libraries.

0xc0170 commented 2 years ago

Is it this one: https://github.com/ARMmbed/mbed-client-for-azure/blob/master/azure-iot-sdk-c.lib (related to the issue) ?

The reference looks correct (I've checked if the commit exists, it does in the remote).

noutram commented 2 years ago

It would seem so. However, when I clone the example, it reports "Corrupted Library" for the iot-sdk-c library.

noutram commented 2 years ago

Screenshot 2021-12-13 131524

mcgordonite commented 2 years ago

Hi @noutram, this is likely an issue with Mbed Studio. Some things to try:

noutram commented 2 years ago

ok, I will give that a try and report back

noutram commented 2 years ago

It appeared to be a corrupt cache. Interestring it happened on several student's computers as well As you suggested, deleting the azure-iot-sdk-c entry from %HOME%\AppData\Local\Mbed Studio\library-cache\github.com\azure seemed to fix it. I will pass the message on. Many thanks.