platformio-core: Cannot compile Marlin all of a sudden
Solution
- Please open PlatformIO Core CLI (see screenshot below)
- Type
pio upgrade --dev - Restart VSCode.

Executing task: C:\Users\Mike.platformio\penv\Scripts\platformio.exe run <
Warning! src_filter configuration option in section [env:include_tree] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:DUE] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:esp32] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_build_flags configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_flags instead Warning! src_filter configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_build_flags configuration option in section [env:simulator_windows] is deprecated and will be removed in the next release! Please use build_src_flags instead Warning! src_filter configuration option in section [env:SAMD51_grandcentral_m4] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:malyan_M300] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:STM32F103CB_malyan] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:teensy31] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:teensy35] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:teensy36] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:teensy41] is deprecated and will be removed in the next release! Please use build_src_filter instead Processing STM32F103RE_btt_maple (platform: ststm32@~12.1; board: genericSTM32F103RE; framework: arduino) ---------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 63 (17 by maintainers)
Commits related to this issue
- [PlatformIO] Change src_filter into build_src_filter for PIO 6.0.0 See: https://github.com/platformio/platformio-core/issues/4270 — committed to tonhuisman/ESPEasy-1 by TD-er 2 years ago
- [PlatformIO] Revert to PlatformIO 5.2.5 See: https://github.com/platformio/platformio-core/issues/4270 — committed to TD-er/ESPEasy by TD-er 2 years ago
The PlatformIO Core 6.0.1 is out! https://github.com/platformio/platformio-core/releases/tag/v6.0.1
Please upgrade via
pio uprade.We still like you anyway 😃
This issue can be closed. It’s purely a Marlin issue whether the
platformio.iniand other.inifiles are prepared for PlatformIO 6 and up. See the Marlin Releases page for legacy versions of Marlin patched for PlatformIO 6 and up.Awesome even Marlin 2.7.2 is working, thank you for your hard work.
Yes, please ignore yellow warnings.
just followed this and is working with Marlin 2.0.9.3 Bugfix from last night! you will still see the warnings but it will compile. Thank you!
Open PlatformIO Core CLI Type pio upgrade --dev
@ivankravets I can confirm renaming occurances
src_filterwithbuild_src_filterresolves the issue. So appears the backward compatability is not working.I’m getting the same warning and then it will fail. after about 3 attempts with different files that previously worked the program crashed and I had to restart my pc.