Program size error

I have the following error on a new project in VScode in which I’m using an Adafruit Feather32 for the first time.

\The program size (1391672 bytes) is greater than maximum allowed (1310720 bytes)
***** [checkprogsize] Explicit exit, status 1**

I have added the following lines into my platformio.ini file:

[env:custom_table]
board_build.partitions = defpart.csv

but this seems to be being ignored during project build.

The contents of the defpart.csv file are:

# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x9000,  0x5000,
otadata,  data, ota,     0xe000,  0x2000,
app0,     app,  ota_0,   0x10000, 0x280000,
spiffs,   data, spiffs,  0x290000,0x170000,

Any help here much appreciated.

Thanks

You have created a new environment with no other settings but the partition table. You probably have your actual working environment with e.g. [env:esp32dev], this is where the line board_build.partitions = defpart.csv needs to go.

Thanks very much. That sorted it.