Is that possible to downgrade Platform Io Core?

Hello guys, i recently build a project using platform io, it works when i build and upload file, but since the platform io core update to 6.0 yesterday, i can no longer do build and upload, the terminal out with this error

Library Manager: Installing khoih.prog/ESP_DoubleResetDetector @ >=1.1.1
Error: Could not find the package with 'khoih.prog/ESP_DoubleResetDetector @ >=1.1.1' requirements for your system 'windows_amd64'
The terminal process "C:\Users\rolan\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

Can i go back to 5.2.5 version or there is something i can do to fix it?

Thank you

I remember that there was some double-registering going on with different names, the correct name of the library is khoih-prog/ESP_DoubleResetDetector@^1.3.1. I don’t think that has something to do with the core upgrade, just compiling the project at a later time and the PlatformIO registry has changed. See PlatformIO Registry

1 Like

i have tried to follow the installation from the link you sent, but i still got the error

this is my platformio.ini file

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
lib_deps = 
    adafruit/DHT sensor library@^1.4.2
    khoih-prog/ESP_DoubleResetDetector@^1.3.1

i also included the library on my source code

#include <Arduino.h>
#include "ESPAsyncWebServer.h"
#include <definitions.h>
#include <FS.h>
#include <storage.hpp>
#include <auth.hpp>
#include <Hash.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#include <Simple_HCSR04.h>
#include <PubSubClient.h>
#include <ESP_DoubleResetDetector.h>

before the upgrade, everything is fine, i don’t know why now it’s not work

and actually, I don’t use/need this library and didn’t use it before

This is not a problem with PlatformIO Core 6.0. Could you remove .pio folder from your project and ESP_DoubleResetDetector tracks if you don’t need it?

i remove the .pio folder and try to build again, but the error is the same
where can i remove ESP_DoubleResetDetector ?

here is my library list on my main code

#include <Arduino.h>
#include "ESPAsyncWebServer.h"
// #include <ESPAsyncTCP.h>
#include <definitions.h>
#include <FS.h>
#include <storage.hpp>
#include <auth.hpp>
#include <Hash.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#include <Simple_HCSR04.h>
#include <PubSubClient.h>

Please read
https://docs.platformio.org/en/latest/librarymanager/dependencies.html

Include directive and dependency declaration are different things.

i remove ESP_DoubleResetDetector both from platformio.ini and my code, but when i build, still error

my updated platformio.ini

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
lib_deps = adafruit/DHT sensor library@^1.4.2

i don’t know where this library come from
Library Manager: Installing khoih.prog/ESP_DoubleResetDetector @ >=1.1.1

Could you try again to remove .pio folder from the project and try to build it? You will see which library depends on ESP_DoubleResetDetector.

here is the output

Do you have any global libraries installed in C:\Users\<user>\.platformio\lib?


no lib folder here

Please share your FULL platformio.ini. See the code icon above when writing a comment.

this is my full platformio.ini

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
lib_deps = 	adafruit/DHT sensor library@^1.4.2

Try and delete the .cache folder there and the .pio folder of your project.

I propose to close this topic. Your config does not correlate with your output.

Please share here as a ZIP archive the minimal project to reproduce this issue.

Where can i share the zip file

You have multiple libraries in lib folder. Platformio resolves ALL nested dependencies of those libs declared in library.json. Please remove unused libs from lib folder and use lib_deps option instead.

Here is a good guide Dependency Management — PlatformIO latest documentation

1 Like

It works!, I tried to delete the unused folder and it works now, thank you for your help and your fast response sir.

Thank You

1 Like