-
-
Notifications
You must be signed in to change notification settings - Fork 792
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
Unable to remove library from VS Code #4896
Comments
Do you use any antivirus tools? |
Update on this topic. It appears that the anti-virus software is complaining about exactly what the message indicates: "attempted to modify attributes". The odd thing isthat the operation seems to have been partially successful, and is also the problem with library removal. Specifically, it appears the The checkbox looks like this when and like this when not read-only: At library removal time, all the files are successfully removed, but as seen in the error message above, the directories are the things that were not deleted. Perhaps this could be fixed with something as easy as a config or prompt asking to flag things as read-only or not? I suspect library removal would proceed as desired if the read-only flag had not been touched. |
Could you provide an output of
See the related code https://github.com/platformio/platformio-core/blob/develop/platformio/fs.py#L212 |
Hi @ivankravets I've confirmed that if I manually flag all the files and all the directories in the wolfSSL directory as R/W, later removal and/or upgrade works just fine. Specifically this directory:
We are providing two different Official wolfSSL libraries: standard and another specifically for Arduino: There are also two different versions: the stable release versions (above) and these staging updates, with the latest post-release changes. |
I'm logged into Windows 11 Pro 22H2 (22621.3447) as a regular user (not a member of local
Administrators
group) and using PlatformIO Core 6.1.14·Home 3.4.4 for VS Code 1.88.0, specifically:I'm working on wolfSSL for PlatformIO as described in platformio/platformio-registry#85
The install of the wolfSSL library works well, but the removal (or update) from VS Code fails with this error:
Here's the full error:
I'm able to otherwise manually delete the library as noted in the error message, but that is of course not ideal.
See example staging versions: https://registry.platformio.org/libraries/wolfssl-staging/wolfSSL/versions
The example above was with 5.6.6-test6 installed, attempting to remove and upgrade.
The error seems related to permissions and/or antivirus (not the library itself), as I also see this error:
Does PlatformIO modify attributes at registry library install time?
This is not limited to my wolfSSL library, as I also see the error for this Adafruit library:
Thanks for taking a look at this.
The text was updated successfully, but these errors were encountered: