Failed to compile -- weirdest bug I've ever seen

> Executing task: C:\Users\Susan\.platformio\penv\Scripts\platformio.exe run --environment STM32G0B1RE_btt <

Processing STM32G0B1RE_btt (platform: ststm32@~14.1.0; board: marlin_STM32G0B1RE; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\Susan\\.platformio\\packages\\framework-arduinoststm32@src-06b9d2668dcd05a92820ac50e10b17c7\\variants\\STM32G0xx/MARLIN_G0B1RE':
  File "C:\Users\Susan\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 179:
    env.SConscript(item, exports="env")
  File "C:\Users\Susan\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\Susan\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 285:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\Users\Susan\Downloads\KS Firmware\E3V3\buildroot\share\PlatformIO\scripts\generic_create_variant.py", line 50:
    os.mkdir(variant_dir)
==================================================================== [FAILED] Took 2.23 seconds ====================================================================

Environment      Status    Duration
---------------  --------  ------------
STM32G0B1RE_btt  FAILED    00:00:02.226

In C:\Users\Susan\.platformio\, remove the folders .cache, packages and platforms, then try again.

Removing the whole user \ .platform and reinstalling the program fixed the issue.

1 Like