Skip to content

BUG: Сan't install tools if installation was interrupted #43

Closed
@brusherru

Description

@brusherru

I catch it when installing esp8266:esp8266, so I'll write steps about it.

Steps to reproduce

  1. Add the additional URL into .cli-config.yml:
    board_manager:
      additional_urls:
        - http://arduino.esp8266.com/stable/package_esp8266com_index.json
  2. Run arduino-cli core install esp8266:esp8266
  3. It runs installation and shows progress bars...
  4. Press "Ctrl+C" (abort installation) while it loads one of tools.
  5. Run arduino-cli core install esp8266:esp8266 again

Expected behavior

It tries to download tools again and then installs the core.

Actual behavior

It exits with a message on each run:

Downloading esp8266:[email protected]...
esp8266:[email protected] downloaded                                                                
Error: server returned a non-2XX status code
Error downloading esp8266:[email protected]

How to reproduce again

  1. Go to the data folder (by default it is arduino15 folder)
  2. Open staging/packages directory and remove all archives with esp tools.
  3. Run arduino-cli core install esp8266:esp8266 — it will download tools again without error about "non-2XX status code".

So... looks like it can't override archive in the staging folder and throws an incorrect error 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions