Always full rebuild allegedly after V4.0.0 - is my platformio.ini file deficient?

Same problem, I updated to Python 3.8 but no change.
A full rebuild of mbed is triggered for the smallest change.

My observations :

  • Full rebuild is only triggered by “upload” and “debug”, not by “build”.
  • Even if no files are modified a full rebuild is triggered on “upload” and “debug”, in this case the checksum doesn’t change

VS Code v1.40.1 / Windows 10

CONFIGURATION: Redirecting...
PLATFORM: ST STM32 5.7.0 > ST 32F746GDISCOVERY
HARDWARE: STM32F746NGH6 216MHz, 320KB RAM, 1MB Flash
DEBUG: Current (stlink) On-board (stlink) External (blackmagic, jlink)
PACKAGES: toolchain-gccarmnoneeabi 1.70201.0 (7.2.1), framework-mbed 5.51401.191023 (5.14.1), tool-stm32duino 1.0.2, tool-openocd 2.1000.190707 (10.0), tool-dfuutil 1.9.190708
Collecting mbed sources…
LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 9 compatible libraries
Scanning dependencies…
Dependency Graph
|--
Building in release mode

Platformio.ini

[platformio]
description = My project
[env:stm32f746ng]
platform = ststm32
board = disco_f746ng
framework = mbed
;test_ignore = test_local
;build_flags = -D PIO_FRAMEWORK_MBED_RTOS_PRESENT
;[env:local]

;platform = native
;test_ignore = test_device

pio --version

PlatformIO, version 4.1.0

pio update

Updating contrib-piohome @ 3.0.1 [Up-to-date]
Updating contrib-pysite @ 2.38.191019 [Up-to-date]
Updating tool-pioplus @ 2.6.0 [Up-to-date]
Updating tool-unity @ 1.20403.0 [Up-to-date]
Updating tool-scons @ 3.30101.0 [Up-to-date]

Platform Manager

Platform Native

Updating native @ 1.1.2 [Up-to-date]

Platform ST STM32

Updating ststm32 @ 5.7.0 [Up-to-date]
Updating toolchain-gccarmnoneeabi @ 1.70201.0 [Up-to-date]
Updating framework-mbed @ 5.51401.191023 [Up-to-date]
Updating tool-stm32duino @ 1.0.2 [Up-to-date]
Updating tool-openocd @ 2.1000.190707 [Up-to-date]
Updating tool-dfuutil @ 1.9.190708 [Up-to-date]

Platform Windows x86

Updating windows_x86 @ 1.1.3 [Up-to-date]
Updating toolchain-gccmingw32 @ 1.50100.0 [Up-to-date]

Library Manager

Library Storage: