Skip to content

Let Library manager delete libraries #8269

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
AndKe opened this issue Dec 6, 2018 · 4 comments
Closed

Let Library manager delete libraries #8269

AndKe opened this issue Dec 6, 2018 · 4 comments
Assignees
Labels
arduino-cli Related to the arduino-cli tool Component: Board/Lib Manager Boards Manager or Library Manager feature request A request to make an enhancement (not a bug fix) Type: Duplicate Another item already exists for this topic

Comments

@AndKe
Copy link

AndKe commented Dec 6, 2018

Please make it equally easy to un-install libraries, not only update.

@facchinm
Copy link
Member

facchinm commented Dec 6, 2018

This was discussed in the past (~4 years ago) when introducing the Library Manager.

The final outcome is that, unlike all other IDEs that allow "removing" a library from a project while leaving it in the filesystem, in Arduino everything in the sketchbook is a target for being compiled, so the button should really delete the library files (quite dangerous).

The board manager, instead, allows removing boards (apart from builtin AVR core) because they live in an "hidden" folder that the user is much less likely to modify.

@facchinm facchinm closed this as completed Dec 6, 2018
@PaulStoffregen
Copy link
Contributor

While it would involve quite a bit of work, the library manager could download a fresh copy of the library and compare all the files. If all are identical, then it's safe to delete. If any have changed, maybe a message could be displayed asking the user to confirm they are willing to lose their edits. Or maybe just refuse to delete, but print the full pathname and advise the user to manually delete their edited copy, losing all their work.

@facchinm facchinm reopened this Dec 13, 2018
@facchinm facchinm added feature request A request to make an enhancement (not a bug fix) Component: Board/Lib Manager Boards Manager or Library Manager arduino-cli Related to the arduino-cli tool labels Dec 13, 2018
@matthijskooijman matthijskooijman changed the title Let Library/Board manager delete libraries/boards Let Library manager delete libraries Sep 19, 2019
@matthijskooijman
Copy link
Collaborator

I've changed the title to only mention libraries, since this is what the issue is about. Also, boards/cores can already be uninstalled with the current IDE version.

@per1234
Copy link
Collaborator

per1234 commented Mar 16, 2020

I'm going to close this as a duplicate of #2878, but I'll add a link back from there to make sure the good discussion in this thread won't be lost.

@per1234 per1234 closed this as completed Mar 16, 2020
@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arduino-cli Related to the arduino-cli tool Component: Board/Lib Manager Boards Manager or Library Manager feature request A request to make an enhancement (not a bug fix) Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

6 participants