Lolin S2 Mini Compilation error

Hi iam trying to do something but i failed to get even to the beggining. Iam getting compilation error and not able to upload anything. There are error and my platformio.ini

Compiling .pio\build\lolin_s2_mini\src\main.o
'xtensa-esp32s2-elf-g++' is not recognized as an internal or external command,
operable program or batch file.
*** [.pio\build\lolin_s2_mini\src\main.o] Error 1
[env:lolin_s2_mini]

platform = espressif32

board = lolin_s2_mini

OK i found solution. I just copy env from board documentation but it was something missing for my use case: framework = arduino

[env:lolin_s2_mini]
platform = espressif32
board = lolin_s2_mini
framework = arduino

Now it compiles