Error : nothing to build (ESP32, vs code)

Hello,

I am new to programming board world and have an issue.
Hope it’s not something too dumb :slight_smile:

I am trying to build a small internet radio with ESP32 and I found some code about it.
Here is the code : https://pastebin.com/raw/06u2X27h
During the build process a have an error I do not understand :

 *  Executing task: platformio run 

Processing esp32-c3-devkitc-02 (platform: espressif32; board: esp32-c3-devkitc-02)
-------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-c3-devkitc-02.html
PLATFORM: Espressif 32 (6.10.0) > Espressif ESP32-C3-DevKitC-02
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - tool-esptoolpy @ 1.40501.0 (4.5.1) 
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 1 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ESP_WifiManager @ 1.12.1
Error: Nothing to build. Please put your source code files to the '/home/jaared/Github_Divers/ESP332/Radio/Radio_esp/src' folder
==================================================== [FAILED] Took 0.59 seconds ====================================================

 *  The terminal process "platformio 'run'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

My project is located here :

jaared@optiplex:~$ tree /home/jaared/Github_Divers/ESP332/Radio/Radio_esp/
/home/jaared/Github_Divers/ESP332/Radio/Radio_esp/
β”œβ”€β”€ EEPROM.h
β”œβ”€β”€ ESP32_VS1053_Stream.h
β”œβ”€β”€ ESP32_Web_Radio.ino
β”œβ”€β”€ esp_wifi.h
β”œβ”€β”€ HTTPClient.h
β”œβ”€β”€ InternetRadio.HMI
β”œβ”€β”€ InternetRadio.tft
β”œβ”€β”€ platformio.ini
β”œβ”€β”€ Schematic.png
β”œβ”€β”€ Stations.h
β”œβ”€β”€ VS1053.h
└── WiFi.h

1 directory, 12 files

Here is my platformio.ini :

[env:esp32-c3-devkitc-02]
platform = espressif32
board = esp32-c3-devkitc-02
lib_deps = 
	baldram/ESP_VS1053_Library@^1.1.4
	khoih-prog/ESP_WifiManager@^1.12.1
	celliesprojects/ESP32_VS1053_Stream@^2.1.2
	amcewen/HttpClient@^2.2.0

Do you have any idea what I am suppose to do ?

Thank you very much for you help.

The default project file and folder structure is

.
β”œβ”€β”€ include
β”œβ”€β”€ lib
β”œβ”€β”€ src
β”œβ”€β”€ test
└── platformio.ini

Create at least a folder called β€œsrc” at the same level as your β€œplatformio.ini” is located and put your source files in this folder.

You should also convert your .ino to a .cpp
See Convert Arduino file to C++ manually β€” PlatformIO latest documentation

How is WiFi.h and esp_wifi.h just chilling in this folder? These are framework-given files (WiFi, esp_wifi.h), the project shouldn’t have a copy of them. They are automatically provided by the framework.