Skip to content

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

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

Closed
brusherru opened this issue Sep 17, 2018 · 2 comments · Fixed by #89
Closed

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

brusherru opened this issue Sep 17, 2018 · 2 comments · Fixed by #89
Labels
type: enhancement Proposed improvement

Comments

@brusherru
Copy link

brusherru commented Sep 17, 2018

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 🤔

@cmaglie
Copy link
Member

cmaglie commented Sep 20, 2018

Interesting, right now I think that the installer just stops in the middle leaving in an dirty state.
I guess we should catch SIGINT and act accordingly during installation.

@cmaglie cmaglie added bug type: enhancement Proposed improvement labels Sep 20, 2018
@ljcucc
Copy link

ljcucc commented Sep 24, 2018

I have same problem 2. 😕

On windows 10:

username@DESKTOP C:\Users\username\bin\Arduino
$ arduino-cli core install esp8266:esp8266

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

Then the .cli-config.yml file

board_manager: 
  additional_urls:
    - http://arduino.esp8266.com/stable/package_esp8266com_index.json 

But after I clean the data that failed to uninstall before, the installation will complete and without error message.

@cmaglie cmaglie added this to the next alpha preview milestone Nov 15, 2018
per1234 added a commit that referenced this issue Aug 9, 2021
Add schema provided checks for library.properties category field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants