Skip to content

Library installed from library-manager has a different directory name #11572

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
kulbhushanchand opened this issue May 29, 2021 · 3 comments
Closed
Labels
Component: Board/Lib Manager Boards Manager or Library Manager Type: Bug Type: Duplicate Another item already exists for this topic

Comments

@kulbhushanchand
Copy link

Thanks for accepting my library MCP4251. It is now available in the library manager.

When installing this library (MCP4251) from the library manager, it is installed under a different directory name (arduino_984644) than the original name (MCP4251).

Expected - C:\Users\Kulbhushan\Documents\Arduino\libraries\MCP4251
Actual - C:\Users\Kulbhushan\Documents\Arduino\libraries\arduino_984644

Please note everything else works fine, the issue is with the name of the installed directory only.

  • Library browser

image

  • Installed directory

image

Few other libraries (USBHost, ArduinoUnit, PulseSensor Playground) also has the similar issue.

Kindly guide me if I'm doing something wrong?

Thanks

@kulbhushanchand kulbhushanchand changed the title Library installed from library-manager has a different name Library installed from library-manager has a different directory name May 29, 2021
@per1234
Copy link
Collaborator

per1234 commented May 29, 2021

Hi @kulbhushanchand. This arduino_nnnnnn folder is the temporary staging folder the library is installed to before the IDE renames it to the folder matching the library.properties name value. If for some reason the Arduino IDE is blocked from creating that final installation folder then the library installation remains in the temporary folder name. I usually get this durig experimentations when I do a Library Manager update while I have the existing library installation open, causing it to be locked from overwrite by the IDE. That's not likely to be a common set of circumstances for a normal user to produce, though more likely for a library developer such as yourself.

There was a report at #11203 of this being caused by having Dropbox configured to monitor the libraries folder. Do you have Dropbox or some other cloud storage service enabled for your C:\Users\Kulbhushan\Documents\Arduino\libraries folder?

@per1234 per1234 added Component: Board/Lib Manager Boards Manager or Library Manager Type: Bug Waiting for feedback More information must be provided before we can proceed labels May 29, 2021
@kulbhushanchand
Copy link
Author

Thanks @per1234 for your prompt attention to the issue and your expert advice.

As you have mentioned, I do have Mega cloud storage service enabled in background for My Documents folder. So to test your advice, I did fresh install of my library with Mega process killed, and the issue resolved. Just to be extra sure, I re-tested fresh library installation again with Mega process running with upload/download paused, and the issue persists.

So, definitely, it was the cloud storage service in the background causing the issue.
As of now, totally exiting the background service during library install is a good workaround.

@per1234
Copy link
Collaborator

per1234 commented May 29, 2021

You're welcome and thanks for getting back to us with an update.

Since we already have a report at #11203 of this problem with incomplete Library Manager installations to directories managed by cloud storage services, I'll go ahead and close this one so we can be sure to consolidate all relevant discussion in one place.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as completed May 29, 2021
@per1234 per1234 added Type: Duplicate Another item already exists for this topic and removed Waiting for feedback More information must be provided before we can proceed labels May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Board/Lib Manager Boards Manager or Library Manager Type: Bug Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

2 participants