New version vs code not compatible with platformio?

ValueError: list.remove(x): x not in list:
File “C:\users\xxx.platformio\penv\lib\site-packages\platformio\builder\”, line 175:
env.SConscript(item, exports=“env”)
File “C:\Users\xxx.platformio\packages\tool-scons\script…\engine\SCons\Script\”, line 541:
return _SConscript(self.fs, *files, **subst_kw)
File “C:\Users\xxx.platformio\packages\tool-scons\script…\engine\SCons\Script\”, line 250:
exec file in call_stack[-1].globals

So what exactly do you do to make the error occur? Simply compile a project?

Yes,i’m compiling the stm32f1 project? before i upgrape the vs code and platformio , that’s no problems

Can you provide your platformio.ini file, PIO version (“core” version") and VSCode version for reference.

I think that is the problem of platform ,if i use
platform = ststm32@5.1.0
but if i change the platform to
platform = ststm32@5.2.0
problem comes
i just don’t know why

Could you share a simple project to reproduce this issue?