ESP32 "Source `partitions.csv' not found"

Like the title says… I’ve got a “partitions.csv” file in my project (in the src folder) that I’m trying to use, but the compiler is not happy.

Contents of my platformio.ini below… does anyone have any ideas what’s going on? I have another project in the same workspace that uses a partitions file and it works fine… it’s also an ESP32 but a different variation (M5Dial which uses an M5StampS3.

This is the specific error message:

Building .pio\build\esp32-s3-devkitm-1\bootloader.bin
*** [.pio\build\esp32-s3-devkitm-1\partitions.bin] Source `partitions.csv' not found, needed by target `.pio\build\esp32-s3-devkitm-1\partitions.bin'.

And platformio.ini:

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:esp32-s3-devkitm-1]
platform = espressif32
board = esp32-s3-devkitm-1
framework = arduino

upload_speed = 921600
monitor_speed = 115200

lib_deps = 
    rtclib
    ESPAsyncWebServer
    yiannisbourkelis/Uptime Library
    uTimerLib
    EMailSender

;Dev board uses ESP32-S3-WROOM1 N16R8 processor
;  Settings found here: https://github.com/sivar2311/ESP32-S3-PlatformIO-Flash-and-PSRAM-configurations
board_build.partitions = partitions.csv

board_build.filesystem = littlefs    

board_build.arduino.memory_type = qio_opi
board_build.flash_mode = qio
board_build.psram_type = opi
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216
board_build.extra_flags = 
    -DBOARD_HAS_PSRAM


upload_port = COM11

Update… I fixed it!

I changed:

board_build.partitions = partitions.csv

To:

board_build.partitions = src\partitions.csv

I’d tried that once before and it caused all sorts of weirdness with libraries (somehow I ended up with an RP2040 library in my .pio\libdeps folder) but three were a lot of other things wrong with the program at that time so I’m not worrying about it too much.