Ivan, Why is this your recommendation, are there different libraries in the 2 locations?
- I don’t recommend to use libraries installed by Arduino IDE. Please use our Library Manager
- Nevertheless, if you need them, please remove
lib_dir=~\Documents\Arduino\librariesline from [platformio] and use lib_extra_dirs instead. For example.
[env:myenv] lib_extra_dirs = ~\Documents\Arduino\libraries