Marlin: RuntimeError: deque mutated during iteration:

keep getting this error. been tryn for days to get this fixed…maybe someone here can help me out

my set up…ender 3 v2. skr mini e3 v3 main board, pheatus dragonfly BMS hotend, bl touch…tryn to get the platformio.ini to compile. and its fight me tooth and nail

the error

Verbose mode can be enabled via -v, --verbose option

CONFIGURATION: Redirecting...

PLATFORM: ST STM32 (6.1.1) > STM32F103RC (48k RAM. 256k Flash)

HARDWARE: STM32F103RCT6 72MHz, 48KB RAM, 512KB Flash

DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)

PACKAGES:

  • framework-arduinoststm32-maple @ 2.10000.200103 (1.0.0)

  • tool-stm32duino @ 1.0.2

  • toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)

Converting Marlin.ino

LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation

LDF Modes: Finder ~ chain, Compatibility ~ soft

Found 38 compatible libraries

Scanning dependencies…

Dependency Graph

|-- LiquidCrystal @ 1.5.0

|-- TMCStepper @ 0.7.1

|-- Adafruit MAX31865 library @ 1.1.0

|-- U8glib-HAL @ 0.4.1

|-- Arduino-L6470 @ 0.8.0

|-- SlowSoftI2CMaster @ 1.0.0

|-- LiquidTWI2 @ 1.2.7

|-- SailfishLCD @ 0.0.0+20230708193619

|-- SoftwareSerialM @ 1.0.0

|-- STM32ADC @ 1.0

|-- EEPROM

|-- Wire @ 1.0

|-- USBComposite for STM32F1 @ 0.91

|-- Servo(STM32F1) @ 1.1.2

Building in release mode

RuntimeError: deque mutated during iteration:

File “C:\Users\Aidan.platformio\penv\lib\site-packages\platformio\builder\main.py”, line 182:

env.SConscript(env.GetExtraScripts(“post”), exports=“env”)

File “C:\Users\Aidan.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py”, line 598:

return _SConscript(self.fs, *files, **subst_kw)

File “C:\Users\Aidan.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py”, line 285:

exec(compile(scriptdata, scriptname, ‘exec’), call_stack[-1].globals)

File “C:\Marlin\BTT-SKR-MINI-V3-For-ENDER-3-PRO-with-BLTouch–master\buildroot\share\PlatformIO\scripts\STM32F103RC_SKR_MINI.py”, line 6:

for define in env[‘CPPDEFINES’]:

please help me out

You use outdated Marlin Firmware. Please update to the latest https://marlinfw.org/

Gonna try it thjs morning, in the case of this fixing me…i love u dude, your my fn hero rn, superman cape and all

Your a mfkn rockstar ivan… i just needed pointed in the right direction…thank you eminencly