platformio-core: Cannot compile Marlin all of a sudden

Solution

  1. Please open PlatformIO Core CLI (see screenshot below)
  2. Type pio upgrade --dev
  3. Restart VSCode.

168773624-58165d88-e854-497a-8da9-40fc758651f6


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

Most upvoted comments

The PlatformIO Core 6.0.1 is out! https://github.com/platformio/platformio-core/releases/tag/v6.0.1

Please upgrade via pio uprade.

Yes but I am definitely not a coder

We still like you anyway 😃

This issue can be closed. It’s purely a Marlin issue whether the platformio.ini and other .ini files are prepared for PlatformIO 6 and up. See the Marlin Releases page for legacy versions of Marlin patched for PlatformIO 6 and up.

The PlatformIO Core 6.0.1 is out! https://github.com/platformio/platformio-core/releases/tag/v6.0.1

Please upgrade via pio uprade.

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_filter with build_src_filter resolves 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.