PlatformIO Community

New version vs code not compatible with platformio?


#1

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


#2

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


#3

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


#4

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


#5

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


#6

Could you share a simple project to reproduce this issue?