Stm8s.h: No such file or directory

I have problem with project for stm8. I’m install Visual Studio Code and PlatformIO. Os Windows 10. Create new project for STM8S103F3. It’s empty. Import Project examples: spl-blink. Terminal → Compile.

Result:

cmd /c chcp 65001>nul && C:/Users/MikelSV/.platformio/packages/toolchain-sdcc/bin/sdcc.exe -fdiagnostics-color=always -g C:\Users\MikelSV\Documents\PlatformIO\Projects\240701-210402-spl-blink\src\main.c -o C:\Users\MikelSV\Documents\PlatformIO\Projects\240701-210402-spl-blink\src\main.exe -mstm8
C:\Users\MikelSV\Documents\PlatformIO\Projects\240701-210402-spl-blink\src\main.c:29:19: fatal error: stm8s.h: No such file or directory
compilation terminated.
at 1: warning 117: unknown compiler option ‘-fdiagnostics-color=always’ ignored
at 1: warning 117: unknown compiler option ‘-g’ ignored
C:\Users\MikelSV\Documents\PlatformIO\Projects\240701-210402-spl-blink\src\main.c:1: warning 190: ISO C forbids an empty source file

stm8s.h is exits in C:\Users\MikelSV.platformio\packages\framework-ststm8spl\Libraries\STM8S_StdPeriph_Driver\inc\stm8s.h and show visual studio (F12).

Copy srс files to my project have this ptoblem too. Restart Visual Studio doesn’t help.

How to solve this problem?

You’re not using the PlatformIO build button at all? Double check that you are invoking PlatformIO build, not some other fake build button. PlatformIO would never generate that build command.