Question on upgrade

Hi,

sorry for the probably dumb question beforehand. I’m using platformIO in conjunction with framework-arduinoespressif8266 and espressif8266. My setup is like so currently

$ pio platform show espressif8266
espressif8266 ~ Espressif 8266

Espressif Systems is a privately held fabless semiconductor company. They provide wireless communications and Wi-Fi chips which are widely used in mobile devices and the Internet of Things applications.

Version: 1.3.0
Home:
License: Apache-2.0
Frameworks: simba, arduino

Package toolchain-xtensa

Type: toolchain
Requirements: ~1.40802.0
Installed: Yes
Description: xtensa-gcc
Url:
Version: 1.40802.0 (4.8.2)

Package framework-simba

Type: framework
Requirements: >=7.0.0
Installed: No (optional)

Package tool-esptool

Type: uploader
Requirements: ~1.409.0
Installed: Yes
Description: esptool-ck
Url:
Version: 1.409.0 (4.9)

Package tool-mkspiffs

Type: uploader
Requirements: ~1.102.0
Installed: Yes
Description: Tool to build and unpack SPIFFS images
Url:
Version: 1.102.0 (1.2)

Package tool-espotapy

Type: uploader
Requirements: ~1.0.0
Installed: Yes
Description: This script will push an OTA update to the ESP
Url:
Version: 1.0.0

Package framework-arduinoespressif8266

Type: framework
Requirements: ~1.20300.1
Installed: Yes
Description: Arduino Wiring-based Framework (ESP8266 Core)
Url:
Version: 1.20300.1 (2.3.0)

Package sdk-esp8266

Requirements: ~1.10502.0
Installed: No (optional)
$

Lately I got an information from the pio cli about new versions available. I’m a bit hesitant to update, because I don’t have major issues with the current versions. But I’m keen to see, if some of my little issues are fixed in between.

Is there a way to save the entire platformIO installation “as is” in order to rollback on issues after upgrading? Am I right to consider the .platformio directory as the one and only platformIO related thing on my HD?

PS: I had to remove all links above, because I’m not allowed to post more than 2 links as a new user.

TIA
Regards

Yes, ~/.platformio is the single place where PIO Core keeps all information, packages, development platforms and libraries. You can backup it before any upgrades.

Please note that you can use different versions of espressif8266 platform in the same project. See Redirecting...


P.S: Which updates PIO Core proposes you?

Thanks for the quick response. Sorry, don’t have the PIO core update proposal on top of my head right now. It just blinked up once a few days before on a build attempt. Is there a way to provoke that?

Just run pio update --only-check and it will show you all updates.

$ pio update --only-check

Platform Manager

Platform espressif32

Checking platform-espressif32 @ 5e86166: [Skip]
Checking tool-esptoolpy @ 1.20000.0: [Up-to-date]
Checking toolchain-xtensa32 @ 1.50200.0: [Up-to-date]
Checking framework-arduinoespressif32 @ 1.1.2: [Up-to-date]
Checking framework-espidf @ 1.200.0: [Up-to-date]

Platform espressif8266_stage

Checking platform-espressif8266 @ 7b58e60: [Skip]
Checking tool-mkspiffs @ 1.102.0: [Up-to-date]
Checking tool-esptool @ 1.409.0: [Up-to-date]
Checking tool-espotapy @ 1.0.0: [Up-to-date]
Checking toolchain-xtensa @ 1.40802.0: [Up-to-date]

Platform espressif8266

Checking espressif8266 @ 1.3.0: [Up-to-date]
Checking tool-mkspiffs @ 1.102.0: [Up-to-date]
Checking tool-esptool @ 1.409.0: [Up-to-date]
Checking tool-espotapy @ 1.0.0: [Up-to-date]
Checking framework-arduinoespressif8266 @ 1.20300.1: [Up-to-date]
Checking toolchain-xtensa @ 1.40802.0: [Up-to-date]

Updating tool-pioplus @ 0.6.10: [Out-of-date]
Uninstalling tool-pioplus @ 0.6.10: [OK]
PioPlusPackageManager: Installing tool-pioplus @ 0.7.3
Downloading [####################################] 100%
Unpacking [####################################] 100%
tool-pioplus @ 0.7.3 has been successfully installed!
Updating pysite-pioplus @ 0.3.0: [Up-to-date]

Library Manager

The last lines do concern me a bit. Seems pysite-pioplus has been updated?

Yes, the tool-pioplus has been updated (this is a core/system package). I don’t see any updates…

Maybe, you use obosolate PIO Core? What do you use with pio --version? Do you use PIO IDE?

PlatformIO, version 3.2.1

No, I’m not using PIO IDE (is this the Atom thing?) I’m using Visual Studio Code.

Got the info again today:


There is a new version 3.3.0 of PlatformIO available.
Please upgrade it via platformio upgrade or pip install -U platformio command.
Changes: Redirecting...