You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please remove .pio folder from a project and restart build.
Configuration
Operating system:
macOS 10.14
PlatformIO Version (platformio --version):
4.0.3
Description of problem
Old dependencies that are no longer referenced from platformio.ini are not removed from .pio folder and are still included in the build.
As a consequence, invalid projects still build as long as they are not shared with other developers via a repository. Furthermore, header files from old dependencies can be included if they have the same name as other files in the project causing hard to find bugs.
Steps to Reproduce
Build project - succeeds
Remove lib_deps line from platformio.ini
Build project again - succeeds even though it should fail
Actual Results
Project without lib_deps still builds even if dependency is removed
Expected Results
Project without lib_deps should fail to build since it's missing a dependency
Temporary solution
Please remove
.pio
folder from a project and restart build.Configuration
Operating system:
macOS 10.14
PlatformIO Version (
platformio --version
):4.0.3
Description of problem
Old dependencies that are no longer referenced from
platformio.ini
are not removed from.pio
folder and are still included in the build.As a consequence, invalid projects still build as long as they are not shared with other developers via a repository. Furthermore, header files from old dependencies can be included if they have the same name as other files in the project causing hard to find bugs.
Steps to Reproduce
lib_deps
line fromplatformio.ini
Actual Results
Project without
lib_deps
still builds even if dependency is removedExpected Results
Project without
lib_deps
should fail to build since it's missing a dependencyIf problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
The folder
/Users/me/.platformio/lib
is empty.If the folder
.pio
within the project folder is deleted, the project (without lib_deps) no longer compiles as expected.Also see: https://community.platformio.org/t/what-is-the-proper-way-to-remove-dependency/9580
The text was updated successfully, but these errors were encountered: