I am running latest version op PIO (4.0.3) on OS X within Atom.
Same problem.
Recompiling Marlin after small changes in config.h results in a complete recompile, 11minutes total.
target processor: LPC1768
edit:
I upgraded PIO to the debug version.
When I recompile when nothing has changed, no code will be recompiled.
I guess that changes in the config impact all the sourcecode in theory, and therefor every file that includes the changed header file will be recompiled.
Any change in a lib or copy paste some new main.c/h files will force system to a complete recompile process that takes 13 minutes. (!!)
System recompiles whole bunch off Bluetooth TCPIP etc. stuff that wasn’t touched at all.
If you’d only change one source system just compiles this one but taking also approx 40-50sec. for just one piece, this is way too long.
Are there bulid settings to optimize it? Yet I wasn’t lucky finding some…
40-50 sec. for just one changed file is too long indeed. Let’s ensure that your antivirus (if you have one) doesn’t interfere, try disabling it temporarily.
Did you guys ever solve this? I’m brand new to PlatformIO, just installed it (the VSCode extension, on Windows), didn’t change any settings.
Opened the mbed-blink example for the Atmel Xplained Pro board. When I change one line in main(), even just myled = 1 to myled = 0, then build, it recompiles everything. Tested multiple times. No other changes in between (and no changes to platformio.ini).
I had the same issue whenever I tried to debug the micro.
Then I realized that my micro did not support debugging, and I only used released build.
In addition, I used the small tick icon in the blue bar that is usually at the bottom of the window, between the house and the right arrow. And only the modified file was compiled