platformio/platformio-core

Unable to remove library from VS Code

Open

#4 896 ouverte le 11 avr. 2024

Voir sur GitHub
 (5 commentaires) (0 réactions) (0 assignés)Python (791 forks)batch import
help wantedpackage management

Métriques du dépôt

Stars
 (7 329 stars)
Métriques de merge PR
 (Merge moyen 109j 16h) (5 PRs mergées en 30 j)

Description

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:

image

I'm working on wolfSSL for PlatformIO as described in https://github.com/platformio/platformio-registry/issues/85

The install of the wolfSSL library works well, but the removal (or update) from VS Code fails with this error:

image

Here's the full error:

WARNING: This command is deprecated and will be removed in the next releases.
Please use `pio pkg uninstall` instead.
Resolving esp32dev dependencies...
Removing wolfSSL @ 5.6.6-test7
wolfSSL@5.6.6-test7 has been removed!
[WinError 5] Access is denied: 'C:\\Users\\gojimmypi\\Documents\\PlatformIO\\Projects\\ESP_IDF_Hello_World\\.pio\\libdeps\\esp32dev\\wolfSSL\\src\\src'
Please manually remove the file `C:\Users\gojimmypi\Documents\PlatformIO\Projects\ESP_IDF_Hello_World\.pio\libdeps\esp32dev\wolfSSL\src\src`
[WinError 5] Access is denied: 'C:\\Users\\gojimmypi\\Documents\\PlatformIO\\Projects\\ESP_IDF_Hello_World\\.pio\\libdeps\\esp32dev\\wolfSSL\\src\\wolfcrypt\\src\\port\\Espressif'
Please manually remove the file `C:\Users\gojimmypi\Documents\PlatformIO\Projects\ESP_IDF_Hello_World\.pio\libdeps\esp32dev\wolfSSL\src\wolfcrypt\src\port\Espressif`
[WinError 5] Access is denied: 'C:\\Users\\gojimmypi\\Documents\\PlatformIO\\Projects\\ESP_IDF_Hello_World\\.pio\\libdeps\\esp32dev\\wolfSSL\\src\\wolfcrypt\\src\\port'
Please manually remove the file `C:\Users\gojimmypi\Documents\PlatformIO\Projects\ESP_IDF_Hello_World\.pio\libdeps\esp32dev\wolfSSL\src\wolfcrypt\src\port`
[WinError 5] Access is denied: 'C:\\Users\\gojimmypi\\Documents\\PlatformIO\\Projects\\ESP_IDF_Hello_World\\.pio\\libdeps\\esp32dev\\wolfSSL\\src\\wolfcrypt\\src'
Please manually remove the file `C:\Users\gojimmypi\Documents\PlatformIO\Projects\ESP_IDF_Hello_World\.pio\libdeps\esp32dev\wolfSSL\src\wolfcrypt\src`
[WinError 5] Access is denied: 'C:\\Users\\gojimmypi\\Documents\\PlatformIO\\Projects\\ESP_IDF_Hello_World\\.pio\\libdeps\\esp32dev\\wolfSSL\\src\\wolfcrypt'
Please manually remove the file `C:\Users\gojimmypi\Documents\PlatformIO\Projects\ESP_IDF_Hello_World\.pio\libdeps\esp32dev\wolfSSL\src\wolfcrypt`
[WinError 5] Access is denied: 'C:\\Users\\gojimmypi\\Documents\\PlatformIO\\Projects\\ESP_IDF_Hello_World\\.pio\\libdeps\\esp32dev\\wolfSSL\\src\\wolfssl\\openssl'
Please manually remove the file `C:\Users\gojimmypi\Documents\PlatformIO\Projects\ESP_IDF_Hello_World\.pio\libdeps\esp32dev\wolfSSL\src\wolfssl\openssl`
[WinError 5] Access is denied: 'C:\\Users\\gojimmypi\\Documents\\PlatformIO\\Projects\\ESP_IDF_Hello_World\\.pio\\libdeps\\esp32dev\\wolfSSL\\src\\wolfssl\\wolfcrypt'
Please manually remove the file `C:\Users\gojimmypi\Documents\PlatformIO\Projects\ESP_IDF_Hello_World\.pio\libdeps\esp32dev\wolfSSL\src\wolfssl\wolfcrypt`
[WinError 5] Access is denied: 'C:\\Users\\gojimmypi\\Documents\\PlatformIO\\Projects\\ESP_IDF_Hello_World\\.pio\\libdeps\\esp32dev\\wolfSSL\\src\\wolfssl'
Please manually remove the file `C:\Users\gojimmypi\Documents\PlatformIO\Projects\ESP_IDF_Hello_World\.pio\libdeps\esp32dev\wolfSSL\src\wolfssl`
[WinError 5] Access is denied: 'C:\\Users\\gojimmypi\\Documents\\PlatformIO\\Projects\\ESP_IDF_Hello_World\\.pio\\libdeps\\esp32dev\\wolfSSL\\src'
Please manually remove the file `C:\Users\gojimmypi\Documents\PlatformIO\Projects\ESP_IDF_Hello_World\.pio\libdeps\esp32dev\wolfSSL\src`
[WinError 5] Access is denied: 'C:\\Users\\gojimmypi\\Documents\\PlatformIO\\Projects\\ESP_IDF_Hello_World\\.pio\\libdeps\\esp32dev\\wolfSSL'
Please manually remove the file `C:\Users\gojimmypi\Documents\PlatformIO\Projects\ESP_IDF_Hello_World\.pio\libdeps\esp32dev\wolfSSL`

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:

image

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:

image

Thanks for taking a look at this.

Guide contributeur