eclipse-embed-cdt / eclipse-plugins

The Eclipse Embedded CDT plug-ins for Arm & RISC-V C/C++ developers (formerly known as the GNU MCU Eclipse plug-ins). Includes the archive of previous plug-ins versions, as Releases.
http://eclipse-embed-cdt.github.io/
Eclipse Public License 2.0
558 stars 130 forks source link

Certain Silicon Labs CMSIS packs error with a -1 length #335

Closed jahess closed 5 years ago

jahess commented 5 years ago

While updating the pack lists, certain packages from Silicon Labs report "illegal PDSC file size -1."

The devices with similar errors are:

EFM32GG11B_DFP.pdsc EFM32LG_DFP.pdsc EFM32TG11B_DFP.pdsc EFM32WG_DFP.pdsc EFM32GG12B_DFP.pdsc

Screen shots at: https://www.element14.com/community/message/270275/l/some-silicon-labs-cmsis-packs-report-a-length-of-1#270275

TommyMurphyTM1234 commented 5 years ago

Link to screenshots above seems to be incorrect (text is correct but the URL that is linked is wrong):

https://www.element14.com/community/message/270275/l/some-silicon-labs-cmsis-packs-report-a-length-of-1#270275

ilg-ul commented 5 years ago

Which URL is wrong?

I manually tried:

$ curl -L https://www.silabs.com/documents/public/cmsis-packs/SiliconLabs.EFM32GG11B_DFP.pdsc

and I got the .pdsc file.

TommyMurphyTM1234 commented 5 years ago

When I click on the link in the original post it goes to:

https://github.com/gnu-mcu-eclipse/eclipse-plugins/issues/url

instead of this (which is the text of the URL):

https://www.element14.com/community/message/270275/l/some-silicon-labs-cmsis-packs-report-a-length-of-1#270275

jahess commented 5 years ago

Fixed the link.

On Jan 11, 2019, at 11:19 AM, Tommy Murphy notifications@github.com wrote:

When I click on the link in the original post it goes to:

https://github.com/gnu-mcu-eclipse/eclipse-plugins/issues/url https://github.com/gnu-mcu-eclipse/eclipse-plugins/issues/url instead of this (which is the text of the URL):

https://www.element14.com/community/message/270275/l/some-silicon-labs-cmsis-packs-report-a-length-of-1#270275 https://www.element14.com/community/message/270275/l/some-silicon-labs-cmsis-packs-report-a-length-of-1#270275 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gnu-mcu-eclipse/eclipse-plugins/issues/335#issuecomment-453609291, or mute the thread https://github.com/notifications/unsubscribe-auth/AJwSeFDvAShY04IrM0mqeMl_YJ68thVyks5vCNWUgaJpZM4Z7irI.

ilg-ul commented 5 years ago

please do not reply by email; use the web interface, or at least edit your mesage.

ilg-ul commented 5 years ago

Fixed in 4.6.1, on 2019-09-21.

The URL conn.getContentLength() returns -1 when the file is sent in chunks, so it cannot be used; instead it must be computed.