Skip to content
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

Arduino Library Update won't delete older library folders when updating #2596

Open
3 tasks done
thorathome opened this issue Dec 8, 2024 · 0 comments
Open
3 tasks done
Labels
type: imperfection Perceived defect in any part of project

Comments

@thorathome
Copy link

Describe the problem

Hello IDE Team.

Arduino library updates are still a little rough for me, and have been for quite some time. Long ago, library updates were simpler.
When manually updating a library using the IDE, the older library folder is not replaced. It causes an error and fails until I manually delete the older folder.

I am running:
Windows 11 Pro 23H2
Fully configured AMD Ryzen 9 6900HX with Radeon Graphics with 32 GB Ram
IDE 2.3.4

When I attempt to manually update an existing Arduino library, I always have to delete the old library folder to make the update work.
Here’s a partial screenshot of my library folder.

This example is for library SensorLib. It shows the SensorLib library folder in within the library folder before I try to update it.
Image

First: Arduino IDE tells me to update the library.
I hit the UPDATE (SensorLib) button and get the error messages in the screen shot below.
Image

Then, I delete the SensorLib folder in my library folder and hit the UPDATE button again.
Now the library updates without error, as shown in the screenshot below.
Image

However, it also leaves a folder named package-xxxxxxx behind, which I have to manually delete. See screenshot below.
Image

This is a minor nuisance, but not a showstopper. This behavior has been around for a long time, but at one time, libraries updated more easily, without the need to delete the older library folder.
Please tell me if you want additional information. I am happy to help.

Thanks for keeping IDE updated and constantly improving. I remain a fan and a donor to the cause.

To reproduce

Manually update any library using IDE 2.3.4 without deleting the library folder first.

Expected behavior

Error message belowImage

Arduino IDE version

2.3.4

Operating system

Windows

Operating system version

11 Pro 23H2

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@thorathome thorathome added the type: imperfection Perceived defect in any part of project label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

1 participant