Compiling Tasmota Error VSC

I am trying to compile tasmota by using this command

gitpod /workspace/Tasmota $ platformio run -e sonoff
Processing sonoff (platform: https://github.com/Jason2866/platform-espressif8266.git#Tasmota; framework: arduino; board: esp01_1m)

PlatformManager: Installing platform-espressif8266
git version 2.20.1
Cloning into '/home/gitpod/.platformio/platforms/_tmp_installing-jfPg3_-package'...
warning: Could not find remote branch Tasmota to clone.
fatal: Remote branch Tasmota not found in upstream origin
Error: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', '--branch', 'Tasmota', 'https://github.com/Jason2866/platform-espressif8266.git', '/home/gitpod/.platformio/platforms/_tmp_installing-jfPg3_-package']

I dont know how to start, thanks

I am using gitpod

It is referencing the repository GitHub - Jason2866/platform-espressif8266: Espressif 8266: Tasmota development platform for PlatformIO with the branch or tag “Tasmota”. This branch is non-existant, so the error message is correct.

Also I can’t find the environment “sonoff” in the Tasmota repository (Tasmota/platformio.ini at development · arendst/Tasmota · GitHub). Which exact code are you trying to compile?

The sonoff environment has not been valid for about a month now, basically since the release of 7.x of Tasmota. Most likely the change to Json2866’s github happened in this last month also, as there has been a lot of changes in updating to the 2.6.0 and 2.6.1 ESP8266 Arduino core for security updates, etc.

In other words, you’re either using old code, or old instructions, and will need to update to the current code if you want it to work.